blob: 8e06154b98c4b1aa4c1aaa9c72f292c15d48b900 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramer537d9a72012-11-17 22:01:08 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
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 Takumia6fdcaa2013-01-01 10:00:19 +000012# Copyright (c) 2003-2013 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 Kramer537d9a72012-11-17 22:01:08 +0000564PACKAGE_VERSION='3.3svn'
565PACKAGE_STRING='LLVM 3.3svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Chandler Carruth5ebee9e2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/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
Roman Divackyd14baf42012-12-13 16:07:19 +0000688ENABLE_CLANG_ARCMT
689ENABLE_CLANG_STATIC_ANALYZER
690ENABLE_CLANG_REWRITER
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000691ENABLE_OPTIMIZED
692ENABLE_PROFILING
693DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000694ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_EXPENSIVE_CHECKS
696EXPENSIVE_CHECKS
697DEBUG_RUNTIME
698DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000699KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700JIT
701TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000702ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000704LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000705ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000707ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000708ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000709ENABLE_TIMESTAMPS
Eric Christopherf0b3b742012-11-19 19:31:02 +0000710ENABLE_BACKTRACES
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711TARGETS_TO_BUILD
712LLVM_ENUM_TARGETS
713LLVM_ENUM_ASM_PRINTERS
714LLVM_ENUM_ASM_PARSERS
715LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716OPTIMIZE_OPTION
717EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000718EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000719CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000720BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000721INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000722NM
723ifGNUmake
724LN_S
725CMP
726CP
727DATE
728FIND
729MKDIR
730MV
731RANLIB
732AR
733RM
734SED
735TAR
736BINPWD
737GRAPHVIZ
738DOT
739FDP
740NEATO
741TWOPI
742CIRCO
743GV
744DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000745XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746INSTALL_PROGRAM
747INSTALL_SCRIPT
748INSTALL_DATA
749BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000750CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000752GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000753GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000754PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755ZIP
756OCAMLC
757OCAMLOPT
758OCAMLDEP
759OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000760GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000761HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762INSTALL_LTDL_TRUE
763INSTALL_LTDL_FALSE
764CONVENIENCE_LTDL_TRUE
765CONVENIENCE_LTDL_FALSE
766LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767NO_VARIADIC_MACROS
768NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000769COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000770USE_UDIS86
771USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000772USE_INTEL_JITEVENTS
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000773XML2CONFIG
774LIBXML2_LIBS
775LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776HAVE_PTHREAD
777HUGE_VAL_SANITY
778MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000780SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000781LLVM_PREFIX
782LLVM_BINDIR
783LLVM_LIBDIR
784LLVM_DATADIR
785LLVM_DOCSDIR
786LLVM_ETCDIR
787LLVM_INCLUDEDIR
788LLVM_INFODIR
789LLVM_MANDIR
790LLVM_CONFIGTIME
791BINDINGS_TO_BUILD
792ALL_BINDINGS
793OCAML_LIBDIR
794ENABLE_VISIBILITY_INLINES_HIDDEN
795RPATH
796RDYNAMIC
Jordan Rose92080522012-10-01 18:40:32 +0000797program_prefix
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000798LIBOBJS
799LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000800ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000801 ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000808CXX
809CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000810CCC
811CPP'
John Criswell0157f502010-03-19 21:31:39 +0000812ac_subdirs_all='projects/llvm-gcc
813projects/test-suite
814projects/llvm-test
815projects/poolalloc
816projects/llvm-poolalloc
817projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000819projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000821projects/llvm-java
822projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000823projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000824projects/llvm-kernel
825tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000826
827# Initialize some variables set by options.
828ac_init_help=
829ac_init_version=false
830# The variables have the same names as the options, with
831# dashes changed to underlines.
832cache_file=/dev/null
833exec_prefix=NONE
834no_create=
835no_recursion=
836prefix=NONE
837program_prefix=NONE
838program_suffix=NONE
839program_transform_name=s,x,x,
840silent=
841site=
842srcdir=
843verbose=
844x_includes=NONE
845x_libraries=NONE
846
847# Installation directory options.
848# These are left unexpanded so users can "make install exec_prefix=/foo"
849# and all the variables that are supposed to be based on exec_prefix
850# by default will actually change.
851# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000852# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000853bindir='${exec_prefix}/bin'
854sbindir='${exec_prefix}/sbin'
855libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000856datarootdir='${prefix}/share'
857datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000858sysconfdir='${prefix}/etc'
859sharedstatedir='${prefix}/com'
860localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000861includedir='${prefix}/include'
862oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000863docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864infodir='${datarootdir}/info'
865htmldir='${docdir}'
866dvidir='${docdir}'
867pdfdir='${docdir}'
868psdir='${docdir}'
869libdir='${exec_prefix}/lib'
870localedir='${datarootdir}/locale'
871mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000872
873ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000874ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000875for ac_option
876do
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000879 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000880 ac_prev=
881 continue
882 fi
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_option in
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *) ac_optarg=yes ;;
887 esac
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 # Accept the important Cygnus configure options, so we can diagnose typos.
890
Reid Spencera773bd52006-08-04 18:18:08 +0000891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000916 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000918 datadir=$ac_optarg ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
John Criswell7a73b802003-06-30 21:59:07 +0000927 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000928 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000929 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000930 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
931 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
932 { (exit 1); exit 1; }; }
933 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
934 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000935
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
940
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000947 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000948 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000949 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
950 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951 { (exit 1); exit 1; }; }
952 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
953 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
Reid Spencera773bd52006-08-04 18:18:08 +0000980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
John Criswell7a73b802003-06-30 21:59:07 +0000986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
Reid Spencera773bd52006-08-04 18:18:08 +00001010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
John Criswell7a73b802003-06-30 21:59:07 +00001015 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001016 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
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 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
Reid Spencera773bd52006-08-04 18:18:08 +00001084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
John Criswell7a73b802003-06-30 21:59:07 +00001094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package| sed 's/-/_/g'`
1150 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001153 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001154 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package | sed 's/-/_/g'`
1159 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 -*) { echo "$as_me: error: unrecognized option: $ac_option
1180Try \`$0 --help' for more information." >&2
1181 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1189 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001190 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001195 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 ;;
1200
1201 esac
1202done
1203
1204if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206 { echo "$as_me: error: missing argument to $ac_option" >&2
1207 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001208fi
1209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001210# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001215do
Reid Spencera773bd52006-08-04 18:18:08 +00001216 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001217 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001220 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001221 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001236 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001237 If a cross compiler is detected then cross compile mode will be used." >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
Reid Spencera773bd52006-08-04 18:18:08 +00001249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001252 { echo "$as_me: error: Working directory cannot be determined" >&2
1253 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 { echo "$as_me: error: pwd does not report name of working directory" >&2
1256 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001257
1258
John Criswell7a73b802003-06-30 21:59:07 +00001259# Find the source files, if location was not specified.
1260if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001262 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001263 ac_confdir=`$as_dirname -- "$0" ||
1264$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$0" : 'X\(//\)[^/]' \| \
1266 X"$0" : 'X\(//\)$' \| \
1267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1268echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001286 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001287 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001288 srcdir=..
1289 fi
1290else
1291 ac_srcdir_defaulted=no
1292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1301 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001302 pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001327\`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
John Criswell7a73b802003-06-30 21:59:07 +00001347Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001349 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001351 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001375 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001380_ACEOF
1381
1382 cat <<\_ACEOF
1383
1384System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
1392 case $ac_init_help in
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001393 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001394 esac
1395 cat <<\_ACEOF
1396
1397Optional Features:
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001400 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001401 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001402 --enable-cxx11 Use c++11 if available (default is NO)
Roman Divackyd14baf42012-12-13 16:07:19 +00001403 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1404 --enable-clang-static-analyzer
1405 Enable building of clang Static Analyzer (default is
1406 YES)
1407 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001408 --enable-optimized Compile with optimizations enabled (default is NO)
1409 --enable-profiling Compile with profiling enabled (default is NO)
1410 --enable-assertions Compile with assertion checks enabled (default is
1411 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001412 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001413 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001414 Compile with expensive debug checks enabled (default
1415 is NO)
1416 --enable-debug-runtime Build runtime libs with debug symbols (default is
1417 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001418 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1419 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001420 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001421 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001422 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001423 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001424 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001425 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001426 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001427 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001428 --enable-shared Build a shared library and link tools against it
1429 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001430 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001431 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001432 --enable-timestamps Enable embedding timestamp information in build
1433 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001434 --enable-backtraces Enable embedding backtraces on crash (default is
1435 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001436 --enable-targets Build specific host targets: all or
1437 target1,target2,... Valid targets are: host, x86,
Eric Christopher06b42342012-11-14 22:09:20 +00001438 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1439 msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001445 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001446 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001447
1448Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001451 --with-optimize-option Select the compiler options to use for optimized
1452 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001453 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001454 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001455 --with-ocaml-libdir Specify install location for ocaml bindings (default
1456 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001457 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001458 --with-clang-resource-dir
1459 Relative directory from the Clang binary for
1460 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001461 --with-c-include-dirs Colon separated list of directories clang will
1462 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001463 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001464 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001465 --with-binutils-include Specify path to binutils/include/ containing
1466 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001467 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001468 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001469 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001470 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001471 --with-oprofile=<prefix>
1472 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor770b97b2012-09-28 17:35:20 +00001473 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1474
John Criswell7a73b802003-06-30 21:59:07 +00001475
1476Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001477 CC C compiler command
1478 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001482 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001483 CXX C++ compiler command
1484 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001485 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
Eric Christopherf33ab862011-12-21 00:52:44 +00001490Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001491_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001492ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001498 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001499 ac_builddir=.
1500
Reid Spencera773bd52006-08-04 18:18:08 +00001501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001505 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001516
1517case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001518 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001519 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001523 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001530esac
Reid Spencera773bd52006-08-04 18:18:08 +00001531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001532
Reid Spencera773bd52006-08-04 18:18:08 +00001533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001541 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001545 done
1546fi
1547
Reid Spencera773bd52006-08-04 18:18:08 +00001548test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001549if $ac_init_version; then
1550 cat <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001551LLVM configure 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001552generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15552002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001558
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +00001559Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001560_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001561 exit
John Criswell7a73b802003-06-30 21:59:07 +00001562fi
Reid Spencera773bd52006-08-04 18:18:08 +00001563cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001564This file contains any messages produced by compilers while
1565running configure, to aid debugging if configure makes a mistake.
1566
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001567It was created by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001568generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001569
1570 $ $0 $@
1571
1572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001573exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001574{
1575cat <<_ASUNAME
1576## --------- ##
1577## Platform. ##
1578## --------- ##
1579
1580hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584uname -v = `(uname -v) 2>/dev/null || echo unknown`
1585
1586/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1588
1589/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1590/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1591/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001592/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001593/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1594/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1595/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1596
1597_ASUNAME
1598
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001604 echo "PATH: $as_dir"
1605done
Reid Spencera773bd52006-08-04 18:18:08 +00001606IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001607
1608} >&5
1609
1610cat >&5 <<_ACEOF
1611
1612
1613## ----------- ##
1614## Core tests. ##
1615## ----------- ##
1616
1617_ACEOF
1618
1619
1620# Keep a trace of the command line.
1621# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001622# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001623# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001624# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001625ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001626ac_configure_args0=
1627ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001628ac_must_keep_next=false
1629for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001630do
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 for ac_arg
1632 do
1633 case $ac_arg in
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636 | -silent | --silent | --silen | --sile | --sil)
1637 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001638 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 esac
1641 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001646 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001648 case $ac_arg in
1649 *=* | --config-cache | -C | -disable-* | --disable-* \
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652 | -with-* | --with-* | -without-* | --without-* | --x)
1653 case "$ac_configure_args0 " in
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655 esac
1656 ;;
1657 -* ) ac_must_keep_next=true ;;
1658 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001660 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ;;
1662 esac
1663 done
John Criswell7a73b802003-06-30 21:59:07 +00001664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001665$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666$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 +00001667
1668# When interrupted or exit'd, cleanup temporary files, and complete
1669# config.log. We remove comments because anyway the quotes in there
1670# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001671# WARNING: Use '\'' to represent an apostrophe within the trap.
1672# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001673trap 'exit_status=$?
1674 # Save into config.log some information that might help in debugging.
1675 {
1676 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001677
John Criswell7a73b802003-06-30 21:59:07 +00001678 cat <<\_ASBOX
1679## ---------------- ##
1680## Cache variables. ##
1681## ---------------- ##
1682_ASBOX
1683 echo
1684 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001685(
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687 eval ac_val=\$$ac_var
1688 case $ac_val in #(
1689 *${as_nl}*)
1690 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac
1694 case $ac_var in #(
1695 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001696 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001697 esac ;;
1698 esac
1699 done
John Criswell7a73b802003-06-30 21:59:07 +00001700 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001703 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001704 "s/'\''/'\''\\\\'\'''\''/g;
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001707 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001709 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001710 esac |
1711 sort
1712)
John Criswell7a73b802003-06-30 21:59:07 +00001713 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001714
1715 cat <<\_ASBOX
1716## ----------------- ##
1717## Output variables. ##
1718## ----------------- ##
1719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_vars
1722 do
Reid Spencera773bd52006-08-04 18:18:08 +00001723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 done | sort
1729 echo
1730
1731 if test -n "$ac_subst_files"; then
1732 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001733## ------------------- ##
1734## File substitutions. ##
1735## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_files
1739 do
Reid Spencera773bd52006-08-04 18:18:08 +00001740 eval ac_val=\$$ac_var
1741 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001743 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001744 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 done | sort
1746 echo
1747 fi
1748
John Criswell7a73b802003-06-30 21:59:07 +00001749 if test -s confdefs.h; then
1750 cat <<\_ASBOX
1751## ----------- ##
1752## confdefs.h. ##
1753## ----------- ##
1754_ASBOX
1755 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001756 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001757 echo
1758 fi
1759 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001760 echo "$as_me: caught signal $ac_signal"
1761 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001762 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001763 rm -f core *.core core.conftest.* &&
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001765 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001766' 0
John Criswell7a73b802003-06-30 21:59:07 +00001767for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001769done
1770ac_signal=0
1771
1772# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001773rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001774
1775# Predefined preprocessor variables.
1776
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_NAME "$PACKAGE_NAME"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_VERSION "$PACKAGE_VERSION"
1789_ACEOF
1790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_STRING "$PACKAGE_STRING"
1794_ACEOF
1795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796
John Criswell7a73b802003-06-30 21:59:07 +00001797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1799_ACEOF
1800
1801
1802# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001804if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001806elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 set x "$ac_default_prefix/share/config.site" \
1810 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812shift
1813for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001814do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 if test -r "$ac_site_file"; then
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001818 sed 's/^/| /' "$ac_site_file" >&5
1819 . "$ac_site_file"
1820 fi
1821done
1822
1823if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001824 # Some versions of bash will fail to source /dev/null (special
1825 # files actually), so we avoid doing that.
1826 if test -f "$cache_file"; then
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001829 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001832 esac
1833 fi
1834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 >$cache_file
1838fi
1839
1840# Check that the precious variables saved in the cache have kept the same
1841# value.
1842ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001843for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001848 case $ac_old_set,$ac_new_set in
1849 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001852 ac_cache_corrupted=: ;;
1853 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001856 ac_cache_corrupted=: ;;
1857 ,);;
1858 *)
1859 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1863echo "$as_me: former value: $ac_old_val" >&2;}
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1865echo "$as_me: current value: $ac_new_val" >&2;}
1866 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001867 fi;;
1868 esac
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1871 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001873 *) ac_arg=$ac_var=$ac_new_val ;;
1874 esac
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 esac
1879 fi
1880done
1881if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
Reid Spencera773bd52006-08-04 18:18:08 +00001912
John Criswell7a73b802003-06-30 21:59:07 +00001913ac_ext=c
1914ac_cpp='$CPP $CPPFLAGS'
1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001921cat >>confdefs.h <<\_ACEOF
1922#define LLVM_VERSION_MAJOR 3
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001927#define LLVM_VERSION_MINOR 3
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001928_ACEOF
1929
1930
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +00001931LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001932
1933
1934
1935
1936
1937
1938
John Criswell7a73b802003-06-30 21:59:07 +00001939ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001940for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001941 if test -f "$ac_dir/install-sh"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1944 break
1945 elif test -f "$ac_dir/install.sh"; then
1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1948 break
1949 elif test -f "$ac_dir/shtool"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 break
1953 fi
John Criswell7a73b802003-06-30 21:59:07 +00001954done
1955if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1957echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1958 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001959fi
Reid Spencera773bd52006-08-04 18:18:08 +00001960
1961# These three variables are undocumented and unsupported,
1962# and are intended to be withdrawn in a future Autoconf release.
1963# They can cause serious problems if a builder's source tree is in a directory
1964# whose full name contains unusual characters.
1965ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968
John Criswell7a73b802003-06-30 21:59:07 +00001969
John Criswell392aaa32003-07-22 19:18:09 +00001970
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001972 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001973 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1974echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1975 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001976 fi
John Criswell93e1c722003-09-15 17:04:06 +00001977fi
1978
Nick Lewycky83fc4472009-09-29 05:48:51 +00001979ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001980ac_cpp='$CPP $CPPFLAGS'
1981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1983ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001984if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001985 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001986 do
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001993else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001996else
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 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 +00002004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002006 break 2
2007 fi
2008done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002009done
Reid Spencera773bd52006-08-04 18:18:08 +00002010IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002011
2012fi
2013fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002014CC=$ac_cv_prog_CC
2015if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016 { echo "$as_me:$LINENO: result: $CC" >&5
2017echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002019 { echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002021fi
2022
Reid Spencera773bd52006-08-04 18:18:08 +00002023
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002025 done
2026fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002027if test -z "$CC"; then
2028 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002029 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002030do
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002037else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 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 +00002048 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002050 break 2
2051 fi
2052done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002053done
Reid Spencera773bd52006-08-04 18:18:08 +00002054IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002055
2056fi
2057fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002060 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002063 { echo "$as_me:$LINENO: result: no" >&5
2064echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002065fi
2066
Reid Spencera773bd52006-08-04 18:18:08 +00002067
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002069done
John Criswell7a73b802003-06-30 21:59:07 +00002070
Reid Spencera773bd52006-08-04 18:18:08 +00002071 if test "x$ac_ct_CC" = x; then
2072 CC=""
2073 else
2074 case $cross_compiling:$ac_tool_warned in
2075yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2077whose name does not start with the host triplet. If you think this
2078configuration is useful to you, please write to autoconf@gnu.org." >&5
2079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2080whose name does not start with the host triplet. If you think this
2081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002082ac_tool_warned=yes ;;
2083esac
2084 CC=$ac_ct_CC
2085 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002086fi
2087
John Criswell7a73b802003-06-30 21:59:07 +00002088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002089test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: no acceptable C compiler found in \$PATH
2092See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002094
John Criswell7a73b802003-06-30 21:59:07 +00002095# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002096echo "$as_me:$LINENO: checking for C compiler version" >&5
2097ac_compiler=`set X $ac_compile; echo $2`
2098{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002105 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108{ (ac_try="$ac_compiler -v >&5"
2109case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112esac
2113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -v >&5") 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118{ (ac_try="$ac_compiler -V >&5"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler -V >&5") 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h. */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002135
John Criswell7a73b802003-06-30 21:59:07 +00002136int
2137main ()
2138{
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002146# Try to create an executable without -o first, disregard a.out.
2147# It will help us diagnose broken compilers, and finding out an intuition
2148# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002149{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152#
2153# List of possible output files, starting from the most likely.
2154# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2155# only as a last resort. b.out is created by i960 compilers.
2156ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2157#
2158# The IRIX 6 linker writes into existing files which may not be
2159# executable, retaining their permissions. Remove them first so a
2160# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002161ac_rmfiles=
2162for ac_file in $ac_files
2163do
2164 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2167 esac
2168done
2169rm -f $ac_rmfiles
2170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002172case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002177 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002178 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183# in a Makefile. We should not override ac_cv_exeext if it was cached,
2184# so that the user can short-circuit this test for compilers unknown to
2185# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002186for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002187do
2188 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002189 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002192 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002193 # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002196 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002198 then :; else
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 fi
2201 # We set ac_cv_exeext here because the later test for it is not
2202 # safe: cross compilers may not add the suffix if given an `-o'
2203 # argument, so we may need to know it at that point already.
2204 # Even if this section looks crufty: it has the advantage of
2205 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002206 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002207 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002208 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002209 esac
2210done
Reid Spencera773bd52006-08-04 18:18:08 +00002211test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
John Criswell7a73b802003-06-30 21:59:07 +00002213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002215sed 's/^/| /' conftest.$ac_ext >&5
2216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002217{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218See \`config.log' for more details." >&5
2219echo "$as_me: error: C compiler cannot create executables
2220See \`config.log' for more details." >&2;}
2221 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002222fi
John Criswell7a73b802003-06-30 21:59:07 +00002223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002224ac_exeext=$ac_cv_exeext
2225{ echo "$as_me:$LINENO: result: $ac_file" >&5
2226echo "${ECHO_T}$ac_file" >&6; }
2227
2228# Check that the compiler produces executables we can run. If not, either
2229# the compiler is broken, or we cross compile.
2230{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2232# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233# If not cross compiling, check that we can run a simple program.
2234if test "$cross_compiling" != yes; then
2235 if { ac_try='./$ac_file'
2236 { (case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2239esac
2240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval "$ac_try") 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 cross_compiling=no
2246 else
2247 if test "$cross_compiling" = maybe; then
2248 cross_compiling=yes
2249 else
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251If you meant to cross compile, use \`--host'.
2252See \`config.log' for more details." >&5
2253echo "$as_me: error: cannot run C compiled programs.
2254If you meant to cross compile, use \`--host'.
2255See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2257 fi
2258 fi
2259fi
2260{ echo "$as_me:$LINENO: result: yes" >&5
2261echo "${ECHO_T}yes" >&6; }
2262
2263rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002264ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002265# Check that the compiler produces executables we can run. If not, either
2266# the compiler is broken, or we cross compile.
2267{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2269{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270echo "${ECHO_T}$cross_compiling" >&6; }
2271
2272{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2274if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002275case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002280 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002281 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2286# work properly (i.e., refer to `conftest.exe'), while it won't with
2287# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002288for ac_file in conftest.exe conftest conftest.*; do
2289 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002290 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002293 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002294 * ) break;;
2295 esac
2296done
2297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002298 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2301See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304
2305rm -f conftest$ac_cv_exeext
2306{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2307echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002308
2309rm -f conftest.$ac_ext
2310EXEEXT=$ac_cv_exeext
2311ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2313echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2314if test "${ac_cv_objext+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002317 cat >conftest.$ac_ext <<_ACEOF
2318/* confdefs.h. */
2319_ACEOF
2320cat confdefs.h >>conftest.$ac_ext
2321cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002323
John Criswell7a73b802003-06-30 21:59:07 +00002324int
2325main ()
2326{
2327
2328 ;
2329 return 0;
2330}
2331_ACEOF
2332rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002334case "(($ac_try" in
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2337esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002339 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002340 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002343 for ac_file in conftest.o conftest.obj conftest.*; do
2344 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002345 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2348 break;;
2349 esac
2350done
2351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002353sed 's/^/| /' conftest.$ac_ext >&5
2354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2356See \`config.log' for more details." >&5
2357echo "$as_me: error: cannot compute suffix of object files: cannot compile
2358See \`config.log' for more details." >&2;}
2359 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002361
John Criswell7a73b802003-06-30 21:59:07 +00002362rm -f conftest.$ac_cv_objext conftest.$ac_ext
2363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002364{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2365echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002366OBJEXT=$ac_cv_objext
2367ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2369echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2370if test "${ac_cv_c_compiler_gnu+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373 cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h. */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002379
John Criswell7a73b802003-06-30 21:59:07 +00002380int
2381main ()
2382{
2383#ifndef __GNUC__
2384 choke me
2385#endif
2386
2387 ;
2388 return 0;
2389}
2390_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002391rm -f conftest.$ac_objext
2392if { (ac_try="$ac_compile"
2393case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396esac
2397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_compile") 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409esac
2410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_try") 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002425 ac_compiler_gnu=yes
2426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427 echo "$as_me: failed program was:" >&5
2428sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002432
Reid Spencera773bd52006-08-04 18:18:08 +00002433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002435
2436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2438echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2439GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440ac_test_CFLAGS=${CFLAGS+set}
2441ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002442{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2444if test "${ac_cv_prog_cc_g+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002446else
Reid Spencera773bd52006-08-04 18:18:08 +00002447 ac_save_c_werror_flag=$ac_c_werror_flag
2448 ac_c_werror_flag=yes
2449 ac_cv_prog_cc_g=no
2450 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451 cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h. */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002457
John Criswell7a73b802003-06-30 21:59:07 +00002458int
2459main ()
2460{
2461
2462 ;
2463 return 0;
2464}
2465_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002466rm -f conftest.$ac_objext
2467if { (ac_try="$ac_compile"
2468case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471esac
2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compile") 2>conftest.er1
2474 ac_status=$?
2475 grep -v '^ *+' conftest.er1 >conftest.err
2476 rm -f conftest.er1
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494esac
2495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_try") 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502 echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 CFLAGS=""
2506 cat >conftest.$ac_ext <<_ACEOF
2507/* confdefs.h. */
2508_ACEOF
2509cat confdefs.h >>conftest.$ac_ext
2510cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002511/* end confdefs.h. */
2512
2513int
2514main ()
2515{
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521rm -f conftest.$ac_objext
2522if { (ac_try="$ac_compile"
2523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_compile") 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539esac
2540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549esac
2550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_try") 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 :
Torok Edwin871384f2010-01-26 08:50:50 +00002556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 echo "$as_me: failed program was:" >&5
2558sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002561 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002562 cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002567/* end confdefs.h. */
2568
2569int
2570main ()
2571{
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002577rm -f conftest.$ac_objext
2578if { (ac_try="$ac_compile"
2579case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595esac
2596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2605esac
2606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_try") 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002611 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612else
2613 echo "$as_me: failed program was:" >&5
2614sed 's/^/| /' conftest.$ac_ext >&5
2615
2616
John Criswell7a73b802003-06-30 21:59:07 +00002617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618
Reid Spencera773bd52006-08-04 18:18:08 +00002619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002621
Reid Spencera773bd52006-08-04 18:18:08 +00002622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624
Reid Spencera773bd52006-08-04 18:18:08 +00002625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_c_werror_flag=$ac_save_c_werror_flag
2627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002628{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2629echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630if test "$ac_test_CFLAGS" = set; then
2631 CFLAGS=$ac_save_CFLAGS
2632elif test $ac_cv_prog_cc_g = yes; then
2633 if test "$GCC" = yes; then
2634 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002635 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002637 fi
2638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 if test "$GCC" = yes; then
2640 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002641 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002643 fi
2644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002645{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2646echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2647if test "${ac_cv_prog_cc_c89+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649else
Reid Spencera773bd52006-08-04 18:18:08 +00002650 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002652cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h. */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657/* end confdefs.h. */
2658#include <stdarg.h>
2659#include <stdio.h>
2660#include <sys/types.h>
2661#include <sys/stat.h>
2662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2663struct buf { int x; };
2664FILE * (*rcsopen) (struct buf *, struct stat *, int);
2665static char *e (p, i)
2666 char **p;
2667 int i;
2668{
2669 return p[i];
2670}
2671static char *f (char * (*g) (char **, int), char **p, ...)
2672{
2673 char *s;
2674 va_list v;
2675 va_start (v,p);
2676 s = g (p, va_arg (v,int));
2677 va_end (v);
2678 return s;
2679}
2680
2681/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2682 function prototypes and stuff, but not '\xHH' hex character constants.
2683 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002684 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2686 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002687 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002688int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2689
Reid Spencera773bd52006-08-04 18:18:08 +00002690/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2691 inside strings and character constants. */
2692#define FOO(x) 'x'
2693int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2694
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002695int test (int i, double x);
2696struct s1 {int (*f) (int a);};
2697struct s2 {int (*f) (double a);};
2698int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2699int argc;
2700char **argv;
2701int
2702main ()
2703{
2704return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2705 ;
2706 return 0;
2707}
2708_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002709for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002711do
2712 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002713 rm -f conftest.$ac_objext
2714if { (ac_try="$ac_compile"
2715case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_try") 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002747 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748else
2749 echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754
Reid Spencera773bd52006-08-04 18:18:08 +00002755rm -f core conftest.err conftest.$ac_objext
2756 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757done
Reid Spencera773bd52006-08-04 18:18:08 +00002758rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002759CC=$ac_save_CC
2760
2761fi
Reid Spencera773bd52006-08-04 18:18:08 +00002762# AC_CACHE_VAL
2763case "x$ac_cv_prog_cc_c89" in
2764 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002765 { echo "$as_me:$LINENO: result: none needed" >&5
2766echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002767 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002768 { echo "$as_me:$LINENO: result: unsupported" >&5
2769echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002770 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002771 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2773echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002774esac
2775
John Criswell0c38eaf2003-09-10 15:17:25 +00002776
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002777ac_ext=c
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782
Eric Christopherffee5722011-09-16 20:36:25 +00002783ac_ext=cpp
2784ac_cpp='$CXXCPP $CPPFLAGS'
2785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2788if test -z "$CXX"; then
2789 if test -n "$CCC"; then
2790 CXX=$CCC
2791 else
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in clang++ llvm-g++ g++
2794 do
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799if test "${ac_cv_prog_CXX+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801else
2802 if test -n "$CXX"; then
2803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816done
2817done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822CXX=$ac_cv_prog_CXX
2823if test -n "$CXX"; then
2824 { echo "$as_me:$LINENO: result: $CXX" >&5
2825echo "${ECHO_T}$CXX" >&6; }
2826else
2827 { echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6; }
2829fi
2830
2831
2832 test -n "$CXX" && break
2833 done
2834fi
2835if test -z "$CXX"; then
2836 ac_ct_CXX=$CXX
2837 for ac_prog in clang++ llvm-g++ g++
2838do
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840set dummy $ac_prog; ac_word=$2
2841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846 if test -n "$ac_ct_CXX"; then
2847 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_CXX="$ac_prog"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860done
2861done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2867if test -n "$ac_ct_CXX"; then
2868 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2869echo "${ECHO_T}$ac_ct_CXX" >&6; }
2870else
2871 { echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6; }
2873fi
2874
2875
2876 test -n "$ac_ct_CXX" && break
2877done
2878
2879 if test "x$ac_ct_CXX" = x; then
2880 CXX="g++"
2881 else
2882 case $cross_compiling:$ac_tool_warned in
2883yes:)
2884{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2885whose name does not start with the host triplet. If you think this
2886configuration is useful to you, please write to autoconf@gnu.org." >&5
2887echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2888whose name does not start with the host triplet. If you think this
2889configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2890ac_tool_warned=yes ;;
2891esac
2892 CXX=$ac_ct_CXX
2893 fi
2894fi
2895
2896 fi
2897fi
2898# Provide some information about the compiler.
2899echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2900ac_compiler=`set X $ac_compile; echo $2`
2901{ (ac_try="$ac_compiler --version >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler --version >&5") 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911{ (ac_try="$ac_compiler -v >&5"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -v >&5") 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921{ (ac_try="$ac_compiler -V >&5"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compiler -V >&5") 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931
2932{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2933echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2934if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947#ifndef __GNUC__
2948 choke me
2949#endif
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext
2956if { (ac_try="$ac_compile"
2957case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_try") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 ac_compiler_gnu=yes
2990else
2991 echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 ac_compiler_gnu=no
2995fi
2996
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2999
3000fi
3001{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3002echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3003GXX=`test $ac_compiler_gnu = yes && echo yes`
3004ac_test_CXXFLAGS=${CXXFLAGS+set}
3005ac_save_CXXFLAGS=$CXXFLAGS
3006{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3007echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3008if test "${ac_cv_prog_cxx_g+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3012 ac_cxx_werror_flag=yes
3013 ac_cv_prog_cxx_g=no
3014 CXXFLAGS="-g"
3015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021
3022int
3023main ()
3024{
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext
3031if { (ac_try="$ac_compile"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_cxx_g=yes
3065else
3066 echo "$as_me: failed program was:" >&5
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 CXXFLAGS=""
3070 cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h. */
3076
3077int
3078main ()
3079{
3080
3081 ;
3082 return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 :
3120else
3121 echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3125 CXXFLAGS="-g"
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 ac_cv_prog_cxx_g=yes
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180
3181fi
3182
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
3185
3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191fi
3192{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3193echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3194if test "$ac_test_CXXFLAGS" = set; then
3195 CXXFLAGS=$ac_save_CXXFLAGS
3196elif test $ac_cv_prog_cxx_g = yes; then
3197 if test "$GXX" = yes; then
3198 CXXFLAGS="-g -O2"
3199 else
3200 CXXFLAGS="-g"
3201 fi
3202else
3203 if test "$GXX" = yes; then
3204 CXXFLAGS="-O2"
3205 else
3206 CXXFLAGS=
3207 fi
3208fi
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003214
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215ac_ext=c
3216ac_cpp='$CPP $CPPFLAGS'
3217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003220{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3221echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222# On Suns, sometimes $CPP names a directory.
3223if test -n "$CPP" && test -d "$CPP"; then
3224 CPP=
3225fi
3226if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227 if test "${ac_cv_prog_CPP+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229else
3230 # Double quotes because CPP needs to be expanded
3231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3232 do
3233 ac_preproc_ok=false
3234for ac_c_preproc_warn_flag in '' yes
3235do
3236 # Use a header file that comes with gcc, so configuring glibc
3237 # with a fresh cross-compiler works.
3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3239 # <limits.h> exists even on freestanding compilers.
3240 # On the NeXT, cc -E runs the code through the compiler's parser,
3241 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003242 cat >conftest.$ac_ext <<_ACEOF
3243/* confdefs.h. */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003247/* end confdefs.h. */
3248#ifdef __STDC__
3249# include <limits.h>
3250#else
3251# include <assert.h>
3252#endif
3253 Syntax error
3254_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255if { (ac_try="$ac_cpp conftest.$ac_ext"
3256case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
3260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } >/dev/null; then
3268 if test -s conftest.err; then
3269 ac_cpp_err=$ac_c_preproc_warn_flag
3270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3271 else
3272 ac_cpp_err=
3273 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003274else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003275 ac_cpp_err=yes
3276fi
3277if test -z "$ac_cpp_err"; then
3278 :
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283 # Broken: fails on valid input.
3284continue
3285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003286
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287rm -f conftest.err conftest.$ac_ext
3288
Reid Spencera773bd52006-08-04 18:18:08 +00003289 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003291 cat >conftest.$ac_ext <<_ACEOF
3292/* confdefs.h. */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296/* end confdefs.h. */
3297#include <ac_nonexistent.h>
3298_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003299if { (ac_try="$ac_cpp conftest.$ac_ext"
3300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315 else
3316 ac_cpp_err=
3317 fi
3318else
3319 ac_cpp_err=yes
3320fi
3321if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 # Broken: success on invalid input.
3323continue
3324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003325 echo "$as_me: failed program was:" >&5
3326sed 's/^/| /' conftest.$ac_ext >&5
3327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328 # Passes both tests.
3329ac_preproc_ok=:
3330break
3331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333rm -f conftest.err conftest.$ac_ext
3334
3335done
3336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3337rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003338if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339 break
3340fi
3341
3342 done
3343 ac_cv_prog_CPP=$CPP
3344
3345fi
3346 CPP=$ac_cv_prog_CPP
3347else
3348 ac_cv_prog_CPP=$CPP
3349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350{ echo "$as_me:$LINENO: result: $CPP" >&5
3351echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352ac_preproc_ok=false
3353for ac_c_preproc_warn_flag in '' yes
3354do
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003361 cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003366/* end confdefs.h. */
3367#ifdef __STDC__
3368# include <limits.h>
3369#else
3370# include <assert.h>
3371#endif
3372 Syntax error
3373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374if { (ac_try="$ac_cpp conftest.$ac_ext"
3375case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
3379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null; then
3387 if test -s conftest.err; then
3388 ac_cpp_err=$ac_c_preproc_warn_flag
3389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3390 else
3391 ac_cpp_err=
3392 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003394 ac_cpp_err=yes
3395fi
3396if test -z "$ac_cpp_err"; then
3397 :
3398else
3399 echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402 # Broken: fails on valid input.
3403continue
3404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406rm -f conftest.err conftest.$ac_ext
3407
Reid Spencera773bd52006-08-04 18:18:08 +00003408 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003409 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003410 cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003415/* end confdefs.h. */
3416#include <ac_nonexistent.h>
3417_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003418if { (ac_try="$ac_cpp conftest.$ac_ext"
3419case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422esac
3423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } >/dev/null; then
3431 if test -s conftest.err; then
3432 ac_cpp_err=$ac_c_preproc_warn_flag
3433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434 else
3435 ac_cpp_err=
3436 fi
3437else
3438 ac_cpp_err=yes
3439fi
3440if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441 # Broken: success on invalid input.
3442continue
3443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003444 echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447 # Passes both tests.
3448ac_preproc_ok=:
3449break
3450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003452rm -f conftest.err conftest.$ac_ext
3453
3454done
3455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003457if $ac_preproc_ok; then
3458 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003460 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3461See \`config.log' for more details." >&5
3462echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3463See \`config.log' for more details." >&2;}
3464 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003465fi
3466
John Criswell7a73b802003-06-30 21:59:07 +00003467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472
John Criswell7a73b802003-06-30 21:59:07 +00003473
Eric Christopherffee5722011-09-16 20:36:25 +00003474
3475
3476if test -d ${srcdir}/projects/llvm-gcc ; then
3477 subdirs="$subdirs projects/llvm-gcc"
3478
3479fi
3480
3481if test -d ${srcdir}/projects/test-suite ; then
3482 subdirs="$subdirs projects/test-suite"
3483
3484fi
3485
3486if test -d ${srcdir}/projects/llvm-test ; then
3487 subdirs="$subdirs projects/llvm-test"
3488
3489fi
3490
3491if test -d ${srcdir}/projects/poolalloc ; then
3492 subdirs="$subdirs projects/poolalloc"
3493
3494fi
3495
3496if test -d ${srcdir}/projects/llvm-poolalloc ; then
3497 subdirs="$subdirs projects/llvm-poolalloc"
3498
3499fi
3500
3501for i in `ls ${srcdir}/projects`
3502do
3503 if test -d ${srcdir}/projects/${i} ; then
3504 case ${i} in
3505 sample) subdirs="$subdirs projects/sample"
3506 ;;
3507 privbracket) subdirs="$subdirs projects/privbracket"
3508 ;;
3509 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3510 ;;
3511 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3512;;
3513 llvm-java) subdirs="$subdirs projects/llvm-java"
3514 ;;
3515 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3516 ;;
3517 safecode) subdirs="$subdirs projects/safecode"
3518 ;;
3519 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3520 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003521 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003522 llvm-gcc) ;;
3523 test-suite) ;;
3524 llvm-test) ;;
3525 poolalloc) ;;
3526 llvm-poolalloc) ;;
3527 *)
3528 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3529echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3530 ;;
3531 esac
3532 fi
3533done
3534
3535# Check whether --enable-polly was given.
3536if test "${enable_polly+set}" = set; then
3537 enableval=$enable_polly;
3538else
3539 enableval=default
3540fi
3541
3542case "$enableval" in
3543 yes) ENABLE_POLLY=1
3544 ;;
3545 no) ENABLE_POLLY=0
3546 ;;
3547 default) ENABLE_POLLY=1
3548 ;;
3549 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3550echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3551 { (exit 1); exit 1; }; } ;;
3552esac
3553
3554
3555if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3556 LLVM_HAS_POLLY=1
3557
3558 subdirs="$subdirs tools/polly"
3559
3560fi
3561
3562
3563# Make sure we can run config.sub.
3564$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3565 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3566echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3567 { (exit 1); exit 1; }; }
3568
3569{ echo "$as_me:$LINENO: checking build system type" >&5
3570echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3571if test "${ac_cv_build+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573else
3574 ac_build_alias=$build_alias
3575test "x$ac_build_alias" = x &&
3576 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3577test "x$ac_build_alias" = x &&
3578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3579echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3580 { (exit 1); exit 1; }; }
3581ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3582 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3583echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3584 { (exit 1); exit 1; }; }
3585
3586fi
3587{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3588echo "${ECHO_T}$ac_cv_build" >&6; }
3589case $ac_cv_build in
3590*-*-*) ;;
3591*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3592echo "$as_me: error: invalid value of canonical build" >&2;}
3593 { (exit 1); exit 1; }; };;
3594esac
3595build=$ac_cv_build
3596ac_save_IFS=$IFS; IFS='-'
3597set x $ac_cv_build
3598shift
3599build_cpu=$1
3600build_vendor=$2
3601shift; shift
3602# Remember, the first character of IFS is used to create $*,
3603# except with old shells:
3604build_os=$*
3605IFS=$ac_save_IFS
3606case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3607
3608
3609{ echo "$as_me:$LINENO: checking host system type" >&5
3610echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3611if test "${ac_cv_host+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613else
3614 if test "x$host_alias" = x; then
3615 ac_cv_host=$ac_cv_build
3616else
3617 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3618 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3619echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3620 { (exit 1); exit 1; }; }
3621fi
3622
3623fi
3624{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3625echo "${ECHO_T}$ac_cv_host" >&6; }
3626case $ac_cv_host in
3627*-*-*) ;;
3628*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3629echo "$as_me: error: invalid value of canonical host" >&2;}
3630 { (exit 1); exit 1; }; };;
3631esac
3632host=$ac_cv_host
3633ac_save_IFS=$IFS; IFS='-'
3634set x $ac_cv_host
3635shift
3636host_cpu=$1
3637host_vendor=$2
3638shift; shift
3639# Remember, the first character of IFS is used to create $*,
3640# except with old shells:
3641host_os=$*
3642IFS=$ac_save_IFS
3643case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3644
3645
3646{ echo "$as_me:$LINENO: checking target system type" >&5
3647echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3648if test "${ac_cv_target+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651 if test "x$target_alias" = x; then
3652 ac_cv_target=$ac_cv_host
3653else
3654 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3655 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3656echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3657 { (exit 1); exit 1; }; }
3658fi
3659
3660fi
3661{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3662echo "${ECHO_T}$ac_cv_target" >&6; }
3663case $ac_cv_target in
3664*-*-*) ;;
3665*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3666echo "$as_me: error: invalid value of canonical target" >&2;}
3667 { (exit 1); exit 1; }; };;
3668esac
3669target=$ac_cv_target
3670ac_save_IFS=$IFS; IFS='-'
3671set x $ac_cv_target
3672shift
3673target_cpu=$1
3674target_vendor=$2
3675shift; shift
3676# Remember, the first character of IFS is used to create $*,
3677# except with old shells:
3678target_os=$*
3679IFS=$ac_save_IFS
3680case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3681
3682
3683# The aliases save the names the user supplied, while $host etc.
3684# will get canonicalized.
3685test -n "$target_alias" &&
3686 test "$program_prefix$program_suffix$program_transform_name" = \
3687 NONENONEs,x,x, &&
3688 program_prefix=${target_alias}-
3689
3690{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3691echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3692if test "${llvm_cv_os_type+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695 case $host in
3696 *-*-aix*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="AIX"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-irix*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="IRIX"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-cygwin*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="Cygwin"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-darwin*)
3712 llvm_cv_link_all_option="-Wl,-all_load"
3713 llvm_cv_no_link_all_option="-Wl,-noall_load"
3714 llvm_cv_os_type="Darwin"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-minix*)
3717 llvm_cv_link_all_option="-Wl,-all_load"
3718 llvm_cv_no_link_all_option="-Wl,-noall_load"
3719 llvm_cv_os_type="Minix"
3720 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003721 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="FreeBSD"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-openbsd*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="OpenBSD"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-netbsd*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="NetBSD"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-dragonfly*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="DragonFly"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-hpux*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="HP-UX"
3745 llvm_cv_platform_type="Unix" ;;
3746 *-*-interix*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Interix"
3750 llvm_cv_platform_type="Unix" ;;
3751 *-*-linux*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="Linux"
3755 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003756 *-*-gnu*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="GNU"
3760 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003761 *-*-solaris*)
3762 llvm_cv_link_all_option="-Wl,-z,allextract"
3763 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3764 llvm_cv_os_type="SunOS"
3765 llvm_cv_platform_type="Unix" ;;
3766 *-*-auroraux*)
3767 llvm_cv_link_all_option="-Wl,-z,allextract"
3768 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3769 llvm_cv_os_type="AuroraUX"
3770 llvm_cv_platform_type="Unix" ;;
3771 *-*-win32*)
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Win32"
3775 llvm_cv_platform_type="Win32" ;;
3776 *-*-mingw*)
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="MingW"
3780 llvm_cv_platform_type="Win32" ;;
3781 *-*-haiku*)
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Haiku"
3785 llvm_cv_platform_type="Unix" ;;
3786 *-unknown-eabi*)
3787 llvm_cv_link_all_option="-Wl,--whole-archive"
3788 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3789 llvm_cv_os_type="Freestanding"
3790 llvm_cv_platform_type="Unix" ;;
3791 *-unknown-elf*)
3792 llvm_cv_link_all_option="-Wl,--whole-archive"
3793 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3794 llvm_cv_os_type="Freestanding"
3795 llvm_cv_platform_type="Unix" ;;
3796 *)
3797 llvm_cv_link_all_option=""
3798 llvm_cv_no_link_all_option=""
3799 llvm_cv_os_type="Unknown"
3800 llvm_cv_platform_type="Unknown" ;;
3801esac
3802fi
3803{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3804echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3805
3806{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3807echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3808if test "${llvm_cv_target_os_type+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 case $target in
3812 *-*-aix*)
3813 llvm_cv_target_os_type="AIX" ;;
3814 *-*-irix*)
3815 llvm_cv_target_os_type="IRIX" ;;
3816 *-*-cygwin*)
3817 llvm_cv_target_os_type="Cygwin" ;;
3818 *-*-darwin*)
3819 llvm_cv_target_os_type="Darwin" ;;
3820 *-*-minix*)
3821 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003822 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003823 llvm_cv_target_os_type="FreeBSD" ;;
3824 *-*-openbsd*)
3825 llvm_cv_target_os_type="OpenBSD" ;;
3826 *-*-netbsd*)
3827 llvm_cv_target_os_type="NetBSD" ;;
3828 *-*-dragonfly*)
3829 llvm_cv_target_os_type="DragonFly" ;;
3830 *-*-hpux*)
3831 llvm_cv_target_os_type="HP-UX" ;;
3832 *-*-interix*)
3833 llvm_cv_target_os_type="Interix" ;;
3834 *-*-linux*)
3835 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003836 *-*-gnu*)
3837 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003838 *-*-solaris*)
3839 llvm_cv_target_os_type="SunOS" ;;
3840 *-*-auroraux*)
3841 llvm_cv_target_os_type="AuroraUX" ;;
3842 *-*-win32*)
3843 llvm_cv_target_os_type="Win32" ;;
3844 *-*-mingw*)
3845 llvm_cv_target_os_type="MingW" ;;
3846 *-*-haiku*)
3847 llvm_cv_target_os_type="Haiku" ;;
3848 *-*-rtems*)
3849 llvm_cv_target_os_type="RTEMS" ;;
3850 *-*-nacl*)
3851 llvm_cv_target_os_type="NativeClient" ;;
3852 *-unknown-eabi*)
3853 llvm_cv_target_os_type="Freestanding" ;;
3854 *)
3855 llvm_cv_target_os_type="Unknown" ;;
3856esac
3857fi
3858{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3859echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3860
3861if test "$llvm_cv_os_type" = "Unknown" ; then
3862 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3863echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3864 { (exit 1); exit 1; }; }
3865fi
3866
3867OS=$llvm_cv_os_type
3868
3869HOST_OS=$llvm_cv_os_type
3870
3871TARGET_OS=$llvm_cv_target_os_type
3872
3873
3874LINKALL=$llvm_cv_link_all_option
3875
3876NOLINKALL=$llvm_cv_no_link_all_option
3877
3878
3879case $llvm_cv_platform_type in
3880 Unix)
3881
3882cat >>confdefs.h <<\_ACEOF
3883#define LLVM_ON_UNIX 1
3884_ACEOF
3885
3886 LLVM_ON_UNIX=1
3887
3888 LLVM_ON_WIN32=0
3889
3890 ;;
3891 Win32)
3892
3893cat >>confdefs.h <<\_ACEOF
3894#define LLVM_ON_WIN32 1
3895_ACEOF
3896
3897 LLVM_ON_UNIX=0
3898
3899 LLVM_ON_WIN32=1
3900
3901 ;;
3902esac
3903
3904{ echo "$as_me:$LINENO: checking target architecture" >&5
3905echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3906if test "${llvm_cv_target_arch+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 case $target in
3910 i?86-*) llvm_cv_target_arch="x86" ;;
3911 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3912 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3913 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003914 arm*-*) llvm_cv_target_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003915 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3916 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003917 xcore-*) llvm_cv_target_arch="XCore" ;;
3918 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003919 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003920 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003921 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003922 *) llvm_cv_target_arch="Unknown" ;;
3923esac
3924fi
3925{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3926echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3927
3928if test "$llvm_cv_target_arch" = "Unknown" ; then
3929 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3930echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3931fi
3932
Eric Christopherffee5722011-09-16 20:36:25 +00003933case "$llvm_cv_target_arch" in
3934 x86) LLVM_NATIVE_ARCH="X86" ;;
3935 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3936 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3937esac
3938
3939ARCH=$llvm_cv_target_arch
3940
3941
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003942case $host in
3943 i?86-*) host_arch="x86" ;;
3944 amd64-* | x86_64-*) host_arch="x86_64" ;;
3945 sparc*-*) host_arch="Sparc" ;;
3946 powerpc*-*) host_arch="PowerPC" ;;
3947 arm*-*) host_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00003948 mips-* | mips64-*) host_arch="Mips" ;;
3949 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003950 xcore-*) host_arch="XCore" ;;
3951 msp430-*) host_arch="MSP430" ;;
3952 hexagon-*) host_arch="Hexagon" ;;
3953 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003954 *) host_arch="Unknown" ;;
3955esac
3956
3957if test "$host_arch" = "Unknown" ; then
3958 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3959echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3960fi
3961
3962HOST_ARCH=$host_arch
3963
3964
Eric Christopherffee5722011-09-16 20:36:25 +00003965
3966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3968echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3969if test "${ac_cv_path_GREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003972 # Extract the first word of "grep ggrep" to use in msg output
3973if test -z "$GREP"; then
3974set dummy grep ggrep; ac_prog_name=$2
3975if test "${ac_cv_path_GREP+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
Reid Spencera773bd52006-08-04 18:18:08 +00003978 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979# Loop through the user's path and test for each of PROGNAME-LIST
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003981for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985 for ac_prog in grep ggrep; do
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3988 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3989 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003990 # Check for GNU $ac_path_GREP
3991case `"$ac_path_GREP" --version 2>&1` in
3992*GNU*)
3993 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3994*)
3995 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003997 while :
3998 do
3999 cat "conftest.in" "conftest.in" >"conftest.tmp"
4000 mv "conftest.tmp" "conftest.in"
4001 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004003 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004005 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004006 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4007 # Best one so far, save it but keep looking for a better one
4008 ac_cv_path_GREP="$ac_path_GREP"
4009 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004010 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004011 # 10*(2^10) chars as input seems more than enough
4012 test $ac_count -gt 10 && break
4013 done
4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015esac
4016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004017
4018 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004019 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004020done
4021
4022done
Reid Spencera773bd52006-08-04 18:18:08 +00004023IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024
4025
4026fi
4027
4028GREP="$ac_cv_path_GREP"
4029if test -z "$GREP"; then
4030 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4031echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4032 { (exit 1); exit 1; }; }
4033fi
4034
Reid Spencera773bd52006-08-04 18:18:08 +00004035else
4036 ac_cv_path_GREP=$GREP
4037fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039
Reid Spencera773bd52006-08-04 18:18:08 +00004040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4042echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004043 GREP="$ac_cv_path_GREP"
4044
4045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046{ echo "$as_me:$LINENO: checking for egrep" >&5
4047echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4048if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004050else
4051 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4052 then ac_cv_path_EGREP="$GREP -E"
4053 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004054 # Extract the first word of "egrep" to use in msg output
4055if test -z "$EGREP"; then
4056set dummy egrep; ac_prog_name=$2
4057if test "${ac_cv_path_EGREP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
Reid Spencera773bd52006-08-04 18:18:08 +00004060 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061# Loop through the user's path and test for each of PROGNAME-LIST
4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004063for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067 for ac_prog in egrep; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4071 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004072 # Check for GNU $ac_path_EGREP
4073case `"$ac_path_EGREP" --version 2>&1` in
4074*GNU*)
4075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076*)
4077 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004079 while :
4080 do
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004087 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_EGREP="$ac_path_EGREP"
4091 ac_path_EGREP_max=$ac_count
4092 fi
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4095 done
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097esac
4098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004099
4100 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004101 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004102done
4103
4104done
Reid Spencera773bd52006-08-04 18:18:08 +00004105IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004106
4107
4108fi
4109
4110EGREP="$ac_cv_path_EGREP"
4111if test -z "$EGREP"; then
4112 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4113echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4114 { (exit 1); exit 1; }; }
4115fi
4116
Reid Spencera773bd52006-08-04 18:18:08 +00004117else
4118 ac_cv_path_EGREP=$EGREP
4119fi
4120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121
Reid Spencera773bd52006-08-04 18:18:08 +00004122 fi
4123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4125echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004126 EGREP="$ac_cv_path_EGREP"
4127
4128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4130echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4131if test "${ac_cv_header_stdc+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004134 cat >conftest.$ac_ext <<_ACEOF
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004139/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004140#include <stdlib.h>
4141#include <stdarg.h>
4142#include <string.h>
4143#include <float.h>
4144
John Criswell0c38eaf2003-09-10 15:17:25 +00004145int
4146main ()
4147{
4148
4149 ;
4150 return 0;
4151}
John Criswell7a73b802003-06-30 21:59:07 +00004152_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153rm -f conftest.$ac_objext
4154if { (ac_try="$ac_compile"
4155case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181esac
4182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004187 ac_cv_header_stdc=yes
4188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004189 echo "$as_me: failed program was:" >&5
4190sed 's/^/| /' conftest.$ac_ext >&5
4191
4192 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194
Reid Spencera773bd52006-08-04 18:18:08 +00004195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004196
4197if test $ac_cv_header_stdc = yes; then
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004199 cat >conftest.$ac_ext <<_ACEOF
4200/* confdefs.h. */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004205#include <string.h>
4206
4207_ACEOF
4208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004209 $EGREP "memchr" >/dev/null 2>&1; then
4210 :
John Criswell7a73b802003-06-30 21:59:07 +00004211else
4212 ac_cv_header_stdc=no
4213fi
4214rm -f conftest*
4215
4216fi
4217
4218if test $ac_cv_header_stdc = yes; then
4219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004220 cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004226#include <stdlib.h>
4227
4228_ACEOF
4229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004230 $EGREP "free" >/dev/null 2>&1; then
4231 :
John Criswell7a73b802003-06-30 21:59:07 +00004232else
4233 ac_cv_header_stdc=no
4234fi
4235rm -f conftest*
4236
4237fi
4238
4239if test $ac_cv_header_stdc = yes; then
4240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004241 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004242 :
4243else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004244 cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h. */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004250#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004251#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004252#if ((' ' & 0x0FF) == 0x020)
4253# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4254# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4255#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004256# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004257 (('a' <= (c) && (c) <= 'i') \
4258 || ('j' <= (c) && (c) <= 'r') \
4259 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004260# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4261#endif
4262
4263#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4264int
4265main ()
4266{
4267 int i;
4268 for (i = 0; i < 256; i++)
4269 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004270 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004271 return 2;
4272 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004273}
4274_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004275rm -f conftest$ac_exeext
4276if { (ac_try="$ac_link"
4277case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280esac
4281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_link") 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 :
John Criswell7a73b802003-06-30 21:59:07 +00004296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004297 echo "$as_me: program exited with status $ac_status" >&5
4298echo "$as_me: failed program was:" >&5
4299sed 's/^/| /' conftest.$ac_ext >&5
4300
4301( exit $ac_status )
4302ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004304rm -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 +00004305fi
4306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004307
John Criswell7a73b802003-06-30 21:59:07 +00004308fi
4309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004310{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4311echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004312if test $ac_cv_header_stdc = yes; then
4313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314cat >>confdefs.h <<\_ACEOF
4315#define STDC_HEADERS 1
4316_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004317
4318fi
4319
Reid Spencera773bd52006-08-04 18:18:08 +00004320# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004321
4322
4323
4324
4325
4326
4327
4328
4329
Reid Spencera773bd52006-08-04 18:18:08 +00004330for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4331 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004332do
4333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345$ac_includes_default
4346
4347#include <$ac_header>
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (ac_try="$ac_compile"
4351case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354esac
4355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_compile") 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 eval "$as_ac_Header=yes"
4384else
4385 echo "$as_me: failed program was:" >&5
4386sed 's/^/| /' conftest.$ac_ext >&5
4387
4388 eval "$as_ac_Header=no"
4389fi
4390
4391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392fi
4393ac_res=`eval echo '${'$as_ac_Header'}'`
4394 { echo "$as_me:$LINENO: result: $ac_res" >&5
4395echo "${ECHO_T}$ac_res" >&6; }
4396if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004397 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004399_ACEOF
4400
4401fi
4402
4403done
4404
4405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4407echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4408if test "${ac_cv_c_bigendian+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004411 # See if sys/param.h defines the BYTE_ORDER macro.
4412cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004417/* end confdefs.h. */
4418#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004420
4421int
4422main ()
4423{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4425 bogus endian macros
4426#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004427
4428 ;
4429 return 0;
4430}
4431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004432rm -f conftest.$ac_objext
4433if { (ac_try="$ac_compile"
4434case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437esac
4438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_try") 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004466 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467cat >conftest.$ac_ext <<_ACEOF
4468/* confdefs.h. */
4469_ACEOF
4470cat confdefs.h >>conftest.$ac_ext
4471cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004472/* end confdefs.h. */
4473#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004475
4476int
4477main ()
4478{
4479#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004480 not big endian
4481#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004482
4483 ;
4484 return 0;
4485}
4486_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004487rm -f conftest.$ac_objext
4488if { (ac_try="$ac_compile"
4489case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492esac
4493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_compile") 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505esac
4506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515esac
4516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_try") 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004521 ac_cv_c_bigendian=yes
4522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004523 echo "$as_me: failed program was:" >&5
4524sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526 ac_cv_c_bigendian=no
4527fi
4528
4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530else
4531 echo "$as_me: failed program was:" >&5
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 # It does not; compile a test program.
4535if test "$cross_compiling" = yes; then
4536 # try to guess the endianness by grepping values into an object file
4537 ac_cv_c_bigendian=unknown
4538 cat >conftest.$ac_ext <<_ACEOF
4539/* confdefs.h. */
4540_ACEOF
4541cat confdefs.h >>conftest.$ac_ext
4542cat >>conftest.$ac_ext <<_ACEOF
4543/* end confdefs.h. */
4544short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4545short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4546void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4547short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4548short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4549void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004550int
4551main ()
4552{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004554 ;
4555 return 0;
4556}
4557_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004558rm -f conftest.$ac_objext
4559if { (ac_try="$ac_compile"
4560case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563esac
4564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_compile") 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576esac
4577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest.$ac_objext'
4583 { (case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
4587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_try") 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004593 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594fi
4595if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4596 if test "$ac_cv_c_bigendian" = unknown; then
4597 ac_cv_c_bigendian=no
4598 else
4599 # finding both strings is unlikely to happen, but who knows?
4600 ac_cv_c_bigendian=unknown
4601 fi
4602fi
Reid Spencera773bd52006-08-04 18:18:08 +00004603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604 echo "$as_me: failed program was:" >&5
4605sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607
Torok Edwin871384f2010-01-26 08:50:50 +00004608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609
Reid Spencera773bd52006-08-04 18:18:08 +00004610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612 cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h. */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004617/* end confdefs.h. */
4618$ac_includes_default
4619int
4620main ()
4621{
4622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623 /* Are we little or big endian? From Harbison&Steele. */
4624 union
4625 {
4626 long int l;
4627 char c[sizeof (long int)];
4628 } u;
4629 u.l = 1;
4630 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004631
4632 ;
4633 return 0;
4634}
4635_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636rm -f conftest$ac_exeext
4637if { (ac_try="$ac_link"
4638case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
4642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_link") 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4647 { (case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650esac
4651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_try") 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004656 ac_cv_c_bigendian=no
4657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004658 echo "$as_me: program exited with status $ac_status" >&5
4659echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662( exit $ac_status )
4663ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004665rm -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 +00004666fi
4667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668
Reid Spencera773bd52006-08-04 18:18:08 +00004669fi
4670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672fi
4673{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4674echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4675case $ac_cv_c_bigendian in
4676 yes)
4677 ENDIAN=big
4678 ;;
4679 no)
4680 ENDIAN=little
4681 ;;
4682 *)
4683 { { echo "$as_me:$LINENO: error: unknown endianness
4684presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4685echo "$as_me: error: unknown endianness
4686presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4687 { (exit 1); exit 1; }; } ;;
4688esac
Reid Spencera773bd52006-08-04 18:18:08 +00004689
4690
4691if test "$cross_compiling" = yes; then
4692 LLVM_CROSS_COMPILING=1
4693
4694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4696echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4697if test "${ac_cv_build_exeext+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004699else
4700 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4701 ac_cv_build_exeext=.exe
4702else
4703 ac_build_prefix=${build_alias}-
4704
4705 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4706set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004711else
4712 if test -n "$BUILD_CC"; then
4713 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 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 +00004722 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004724 break 2
4725 fi
4726done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004727done
Reid Spencera773bd52006-08-04 18:18:08 +00004728IFS=$as_save_IFS
4729
4730fi
4731fi
4732BUILD_CC=$ac_cv_prog_BUILD_CC
4733if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737 { echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004739fi
4740
4741
4742 if test -z "$BUILD_CC"; then
4743 # Extract the first word of "gcc", so it can be a program name with args.
4744set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004749else
4750 if test -n "$BUILD_CC"; then
4751 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 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 +00004760 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004762 break 2
4763 fi
4764done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765done
Reid Spencera773bd52006-08-04 18:18:08 +00004766IFS=$as_save_IFS
4767
4768fi
4769fi
4770BUILD_CC=$ac_cv_prog_BUILD_CC
4771if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004772 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4773echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004775 { echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004777fi
4778
4779
4780 if test -z "$BUILD_CC"; then
4781 # Extract the first word of "cc", so it can be a program name with args.
4782set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004787else
4788 if test -n "$BUILD_CC"; then
4789 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4790else
4791 ac_prog_rejected=no
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 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 +00004799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4800 ac_prog_rejected=yes
4801 continue
4802 fi
4803 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004805 break 2
4806 fi
4807done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808done
Reid Spencera773bd52006-08-04 18:18:08 +00004809IFS=$as_save_IFS
4810
4811if test $ac_prog_rejected = yes; then
4812 # We found a bogon in the path, so make sure we never use it.
4813 set dummy $ac_cv_prog_BUILD_CC
4814 shift
4815 if test $# != 0; then
4816 # We chose a different compiler from the bogus one.
4817 # However, it has the same basename, so the bogon will be chosen
4818 # first if we set BUILD_CC to just the basename; use the full file name.
4819 shift
4820 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4821 fi
4822fi
4823fi
4824fi
4825BUILD_CC=$ac_cv_prog_BUILD_CC
4826if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4828echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004830 { echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004832fi
4833
4834
4835 fi
4836 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4838echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4839 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004840 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4841 rm -f conftest*
4842 echo 'int main () { return 0; }' > conftest.$ac_ext
4843 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004845 (eval $ac_build_link) 2>&5
4846 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004849 for file in conftest.*; do
4850 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004851 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004852 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4853 esac
4854 done
4855 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4857echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4858 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004859 fi
4860 rm -f conftest*
4861 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4862fi
4863fi
4864
4865BUILD_EXEEXT=""
4866test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004867{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4868echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004869ac_build_exeext=$BUILD_EXEEXT
4870
Jim Grosbach673612e2008-10-02 22:56:44 +00004871 ac_build_prefix=${build_alias}-
4872 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4873set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4876if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004878else
4879 if test -n "$BUILD_CXX"; then
4880 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 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 +00004889 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004891 break 2
4892 fi
4893done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894done
Jim Grosbach673612e2008-10-02 22:56:44 +00004895IFS=$as_save_IFS
4896
4897fi
4898fi
4899BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004904 { echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004906fi
4907
4908
4909 if test -z "$BUILD_CXX"; then
4910 # Extract the first word of "g++", so it can be a program name with args.
4911set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004916else
4917 if test -n "$BUILD_CXX"; then
4918 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4919else
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 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 +00004927 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004929 break 2
4930 fi
4931done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004932done
Jim Grosbach673612e2008-10-02 22:56:44 +00004933IFS=$as_save_IFS
4934
4935fi
4936fi
4937BUILD_CXX=$ac_cv_prog_BUILD_CXX
4938if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4940echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004942 { echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004944fi
4945
4946
4947 if test -z "$BUILD_CXX"; then
4948 # Extract the first word of "c++", so it can be a program name with args.
4949set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4952if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004954else
4955 if test -n "$BUILD_CXX"; then
4956 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4957else
4958 ac_prog_rejected=no
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 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 +00004966 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4967 ac_prog_rejected=yes
4968 continue
4969 fi
4970 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004972 break 2
4973 fi
4974done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004975done
Jim Grosbach673612e2008-10-02 22:56:44 +00004976IFS=$as_save_IFS
4977
4978if test $ac_prog_rejected = yes; then
4979 # We found a bogon in the path, so make sure we never use it.
4980 set dummy $ac_cv_prog_BUILD_CXX
4981 shift
4982 if test $# != 0; then
4983 # We chose a different compiler from the bogus one.
4984 # However, it has the same basename, so the bogon will be chosen
4985 # first if we set BUILD_CXX to just the basename; use the full file name.
4986 shift
4987 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4988 fi
4989fi
4990fi
4991fi
4992BUILD_CXX=$ac_cv_prog_BUILD_CXX
4993if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004994 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4995echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004997 { echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004999fi
5000
5001
5002 fi
5003 fi
Reid Spencera773bd52006-08-04 18:18:08 +00005004else
5005 LLVM_CROSS_COMPILING=0
5006
5007fi
5008
Dan Gohman56fb5f92010-08-04 16:25:01 +00005009if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005010 cvsbuild="yes"
5011 optimize="no"
5012 CVSBUILD=CVSBUILD=1
5013
5014else
5015 cvsbuild="no"
5016 optimize="yes"
5017fi
5018
5019
Eric Christopherbee515f2011-11-11 22:51:42 +00005020# Check whether --enable-libcpp was given.
5021if test "${enable_libcpp+set}" = set; then
5022 enableval=$enable_libcpp;
5023else
5024 enableval=default
5025fi
5026
5027case "$enableval" in
5028 yes) ENABLE_LIBCPP=1
5029 ;;
5030 no) ENABLE_LIBCPP=0
5031 ;;
5032 default) ENABLE_LIBCPP=0
5033;;
5034 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5035echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5036 { (exit 1); exit 1; }; } ;;
5037esac
5038
Eric Christopher82120022012-08-03 19:47:14 +00005039# Check whether --enable-cxx11 was given.
5040if test "${enable_cxx11+set}" = set; then
5041 enableval=$enable_cxx11;
5042else
5043 enableval=default
5044fi
5045
5046case "$enableval" in
5047 yes) ENABLE_CXX11=1
5048 ;;
5049 no) ENABLE_CXX11=0
5050 ;;
5051 default) ENABLE_CXX11=0
5052;;
5053 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5054echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5055 { (exit 1); exit 1; }; } ;;
5056esac
5057
Roman Divackyd14baf42012-12-13 16:07:19 +00005058clang_arcmt="yes"
5059# Check whether --enable-clang-arcmt was given.
5060if test "${enable_clang_arcmt+set}" = set; then
5061 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5062else
5063 enableval="yes"
5064fi
5065
5066case "$enableval" in
5067 yes) ENABLE_CLANG_ARCMT=1
5068 ;;
5069 no) ENABLE_CLANG_ARCMT=0
5070 ;;
5071 default) ENABLE_CLANG_ARCMT=1
5072;;
5073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5074echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5075 { (exit 1); exit 1; }; } ;;
5076esac
5077
5078clang_static_analyzer="yes"
5079# Check whether --enable-clang-static-analyzer was given.
5080if test "${enable_clang_static_analyzer+set}" = set; then
5081 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5082else
5083 enableval="yes"
5084fi
5085
5086case "$enableval" in
5087 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5088 ;;
5089 no) ENABLE_CLANG_STATIC_ANALYZER=0
5090 ;;
5091 default) ENABLE_CLANG_STATIC_ANALYZER=1
5092;;
5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5094echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5095 { (exit 1); exit 1; }; } ;;
5096esac
5097
5098# Check whether --enable-clang-rewriter was given.
5099if test "${enable_clang_rewriter+set}" = set; then
5100 enableval=$enable_clang_rewriter;
5101else
5102 enableval="yes"
5103fi
5104
5105case "$enableval" in
5106 yes) ENABLE_CLANG_REWRITER=1
5107 ;;
5108 no)
Benjamin Kramer23c50212012-12-26 10:48:49 +00005109 if test ${clang_arcmt} != "no" ; then
Roman Divackyd14baf42012-12-13 16:07:19 +00005110 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5111echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5112 { (exit 1); exit 1; }; }
5113 fi
Benjamin Kramer23c50212012-12-26 10:48:49 +00005114 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyd14baf42012-12-13 16:07:19 +00005115 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5116echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5117 { (exit 1); exit 1; }; }
5118 fi
5119 ENABLE_CLANG_REWRITER=0
5120
5121 ;;
5122 default) ENABLE_CLANG_REWRITER=1
5123;;
5124 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5125echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5126 { (exit 1); exit 1; }; } ;;
5127esac
5128
Reid Spencera773bd52006-08-04 18:18:08 +00005129# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005130if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005131 enableval=$enable_optimized;
5132else
5133 enableval=$optimize
5134fi
5135
5136if test ${enableval} = "no" ; then
5137 ENABLE_OPTIMIZED=
5138
5139else
5140 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5141
5142fi
5143
David Greene2a5a12c2009-04-17 14:50:39 +00005144# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005145if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005146 enableval=$enable_profiling;
5147else
5148 enableval="no"
5149fi
5150
5151if test ${enableval} = "no" ; then
5152 ENABLE_PROFILING=
5153
5154else
5155 ENABLE_PROFILING=ENABLE_PROFILING=1
5156
5157fi
5158
Reid Spencera773bd52006-08-04 18:18:08 +00005159# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005160if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005161 enableval=$enable_assertions;
5162else
5163 enableval="yes"
5164fi
5165
5166if test ${enableval} = "yes" ; then
5167 DISABLE_ASSERTIONS=
5168
5169else
5170 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5171
5172fi
5173
Eric Christopher09a88732012-08-03 19:58:20 +00005174# Check whether --enable-werror was given.
5175if test "${enable_werror+set}" = set; then
5176 enableval=$enable_werror;
5177else
5178 enableval="no"
5179fi
5180
5181case "$enableval" in
5182 yes) ENABLE_WERROR=1
5183 ;;
5184 no) ENABLE_WERROR=0
5185 ;;
5186 default) ENABLE_WERROR=0
5187;;
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5189echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5191esac
5192
David Greenea696d242007-06-28 19:36:08 +00005193# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005194if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005195 enableval=$enable_expensive_checks;
5196else
5197 enableval="no"
5198fi
5199
5200if test ${enableval} = "yes" ; then
5201 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5202
5203 EXPENSIVE_CHECKS=yes
5204
5205else
5206 ENABLE_EXPENSIVE_CHECKS=
5207
5208 EXPENSIVE_CHECKS=no
5209
5210fi
5211
Reid Spencer8b2e1412006-11-17 03:32:33 +00005212# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005214 enableval=$enable_debug_runtime;
5215else
5216 enableval=no
5217fi
5218
5219if test ${enableval} = "no" ; then
5220 DEBUG_RUNTIME=
5221
5222else
5223 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5224
5225fi
5226
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005227# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005228if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005229 enableval=$enable_debug_symbols;
5230else
5231 enableval=no
5232fi
5233
5234if test ${enableval} = "no" ; then
5235 DEBUG_SYMBOLS=
5236
5237else
5238 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5239
5240fi
5241
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005242# Check whether --enable-keep-symbols was given.
5243if test "${enable_keep_symbols+set}" = set; then
5244 enableval=$enable_keep_symbols;
5245else
5246 enableval=no
5247fi
5248
5249if test ${enableval} = "no" ; then
5250 KEEP_SYMBOLS=
5251
5252else
5253 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5254
5255fi
5256
Reid Spencera773bd52006-08-04 18:18:08 +00005257# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005258if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005259 enableval=$enable_jit;
5260else
5261 enableval=default
5262fi
5263
5264if test ${enableval} = "no"
5265then
5266 JIT=
5267
5268else
5269 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005270 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005271 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005272 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005273 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005274 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005275 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005276 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005277 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005278 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005279 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005280 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005281 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005282 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005283 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005284 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005285 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005286 Hexagon) TARGET_HAS_JIT=0
5287 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005288 MBlaze) TARGET_HAS_JIT=0
5289 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005290 NVPTX) TARGET_HAS_JIT=0
5291 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005292 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005293 ;;
5294 esac
5295fi
5296
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005297# Check whether --enable-docs was given.
5298if test "${enable_docs+set}" = set; then
5299 enableval=$enable_docs;
5300else
5301 enableval=default
5302fi
5303
5304case "$enableval" in
5305 yes) ENABLE_DOCS=1
5306 ;;
5307 no) ENABLE_DOCS=0
5308 ;;
5309 default) ENABLE_DOCS=1
5310 ;;
5311 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5312echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5313 { (exit 1); exit 1; }; } ;;
5314esac
5315
Reid Spencera773bd52006-08-04 18:18:08 +00005316# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005317if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005318 enableval=$enable_doxygen;
5319else
5320 enableval=default
5321fi
5322
5323case "$enableval" in
5324 yes) ENABLE_DOXYGEN=1
5325 ;;
5326 no) ENABLE_DOXYGEN=0
5327 ;;
5328 default) ENABLE_DOXYGEN=0
5329 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005330 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5331echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5332 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005333esac
5334
5335# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005336if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005337 enableval=$enable_threads;
5338else
Reid Spencer65c5d752006-11-05 17:08:18 +00005339 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005340fi
5341
5342case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005343 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005344 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005345 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005346 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005347 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005348 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005349 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5350echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5351 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005352esac
5353
Owen Andersona8603702009-05-19 22:18:56 +00005354cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005355#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005356_ACEOF
5357
5358
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005359# Check whether --enable-pthreads was given.
5360if test "${enable_pthreads+set}" = set; then
5361 enableval=$enable_pthreads;
5362else
5363 enableval=default
5364fi
5365
5366case "$enableval" in
5367 yes) ENABLE_PTHREADS=1
5368 ;;
5369 no) ENABLE_PTHREADS=0
5370 ;;
5371 default) ENABLE_PTHREADS=1
5372 ;;
5373 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5374echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5375 { (exit 1); exit 1; }; } ;;
5376esac
5377
Reid Spencer89b0d992006-12-16 22:07:52 +00005378# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005379if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005380 enableval=$enable_pic;
5381else
5382 enableval=default
5383fi
5384
5385case "$enableval" in
5386 yes) ENABLE_PIC=1
5387 ;;
5388 no) ENABLE_PIC=0
5389 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005390 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005391 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005392 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5393echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5394 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005395esac
5396
5397cat >>confdefs.h <<_ACEOF
5398#define ENABLE_PIC $ENABLE_PIC
5399_ACEOF
5400
5401
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005402# Check whether --enable-shared was given.
5403if test "${enable_shared+set}" = set; then
5404 enableval=$enable_shared;
5405else
5406 enableval=default
5407fi
5408
5409case "$enableval" in
5410 yes) ENABLE_SHARED=1
5411 ;;
5412 no) ENABLE_SHARED=0
5413 ;;
5414 default) ENABLE_SHARED=0
5415 ;;
5416 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5417echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5418 { (exit 1); exit 1; }; } ;;
5419esac
5420
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005421# Check whether --enable-embed-stdcxx was given.
5422if test "${enable_embed_stdcxx+set}" = set; then
5423 enableval=$enable_embed_stdcxx;
5424else
5425 enableval=default
5426fi
5427
5428case "$enableval" in
5429 yes) ENABLE_EMBED_STDCXX=1
5430 ;;
5431 no) ENABLE_EMBED_STDCXX=0
5432 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005433 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005434 ;;
5435 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5436echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5437 { (exit 1); exit 1; }; } ;;
5438esac
5439
Daniel Dunbardd464df2010-05-10 20:11:56 +00005440# Check whether --enable-timestamps was given.
5441if test "${enable_timestamps+set}" = set; then
5442 enableval=$enable_timestamps;
5443else
5444 enableval=default
5445fi
5446
5447case "$enableval" in
5448 yes) ENABLE_TIMESTAMPS=1
5449 ;;
5450 no) ENABLE_TIMESTAMPS=0
5451 ;;
5452 default) ENABLE_TIMESTAMPS=1
5453 ;;
5454 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5455echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5457esac
5458
5459cat >>confdefs.h <<_ACEOF
5460#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5461_ACEOF
5462
5463
Eric Christopherc69bdad2012-09-21 23:03:29 +00005464
5465# Check whether --enable-backtraces was given.
5466if test "${enable_backtraces+set}" = set; then
5467 enableval=$enable_backtraces;
5468else
5469 enableval=default
5470fi
5471
5472case "$enableval" in
Eric Christopherf0b3b742012-11-19 19:31:02 +00005473 yes) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005474 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005475 no) ENABLE_BACKTRACES=0
Eric Christopherc69bdad2012-09-21 23:03:29 +00005476 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005477 default) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005478 ;;
5479 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5480echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5481 { (exit 1); exit 1; }; } ;;
5482esac
5483
5484cat >>confdefs.h <<_ACEOF
5485#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5486_ACEOF
5487
5488
Reid Spencera773bd52006-08-04 18:18:08 +00005489TARGETS_TO_BUILD=""
5490# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005491if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005492 enableval=$enable_targets;
5493else
5494 enableval=all
5495fi
5496
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005497if test "$enableval" = host-only ; then
5498 enableval=host
5499fi
Reid Spencera773bd52006-08-04 18:18:08 +00005500case "$enableval" in
Eric Christopher06b42342012-11-14 22:09:20 +00005501 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005502 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5503 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005504 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5505 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5506 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5507 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005508 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5509 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005510 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00005511 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5512 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005513 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5514 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005515 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005516 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005517 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005518 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005519 host) case "$llvm_cv_target_arch" in
5520 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5521 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5522 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5523 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005524 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5525 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005526 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005527 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5528 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005529 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005530 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005531 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5532echo "$as_me: error: Can not set target to build" >&2;}
5533 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005534 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5536echo "$as_me: error: Unrecognized target $a_target" >&2;}
5537 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005538 esac
5539 done
5540 ;;
5541esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005542
5543# Check whether --enable-experimental-targets was given.
5544if test "${enable_experimental_targets+set}" = set; then
5545 enableval=$enable_experimental_targets;
5546else
5547 enableval=disable
5548fi
5549
5550
5551if test ${enableval} != "disable"
5552then
5553 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5554fi
5555
Reid Spencera773bd52006-08-04 18:18:08 +00005556TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5557
5558
Douglas Gregor0711c302009-06-17 00:43:20 +00005559for a_target in $TARGETS_TO_BUILD; do
5560 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5561
5562cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005563#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5564_ACEOF
5565
5566 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5567 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005568 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005569 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005570 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5571 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5572 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005573 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5574 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5575 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005576
5577cat >>confdefs.h <<_ACEOF
5578#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005579_ACEOF
5580
5581
5582cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005583#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5584_ACEOF
5585
5586
5587cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005588#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005589_ACEOF
5590
5591
5592cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005593#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005594_ACEOF
5595
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005596 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005597
5598cat >>confdefs.h <<_ACEOF
5599#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5600_ACEOF
5601
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005602 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005603 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5604
5605cat >>confdefs.h <<_ACEOF
5606#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5607_ACEOF
5608
5609 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005610 fi
5611done
5612
Douglas Gregor1555a232009-06-16 20:12:29 +00005613LLVM_ENUM_TARGETS=""
5614LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005615LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005616LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005617for target_to_build in $TARGETS_TO_BUILD; do
5618 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005619 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005620 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5621 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005622 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5623 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5624 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005625 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5626 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5627 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005628done
5629
5630
5631
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005632
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005633
Reid Spencera773bd52006-08-04 18:18:08 +00005634
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005635# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005636if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005637 withval=$with_optimize_option;
5638else
5639 withval=default
5640fi
5641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642{ echo "$as_me:$LINENO: checking optimization flags" >&5
5643echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005644case "$withval" in
5645 default)
5646 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005647 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005648 MingW) optimize_option=-O2 ;;
5649 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005650 esac ;;
5651 *) optimize_option="$withval" ;;
5652esac
5653OPTIMIZE_OPTION=$optimize_option
5654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5656echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005657
5658
Reid Spencera773bd52006-08-04 18:18:08 +00005659# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005661 withval=$with_extra_options;
5662else
5663 withval=default
5664fi
5665
5666case "$withval" in
5667 default) EXTRA_OPTIONS= ;;
5668 *) EXTRA_OPTIONS=$withval ;;
5669esac
5670EXTRA_OPTIONS=$EXTRA_OPTIONS
5671
5672
Daniel Dunbared344d22011-06-16 22:30:41 +00005673
5674# Check whether --with-extra-ld-options was given.
5675if test "${with_extra_ld_options+set}" = set; then
5676 withval=$with_extra_ld_options;
5677else
5678 withval=default
5679fi
5680
5681case "$withval" in
5682 default) EXTRA_LD_OPTIONS= ;;
5683 *) EXTRA_LD_OPTIONS=$withval ;;
5684esac
5685EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5686
5687
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005688# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005689if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005690 enableval=$enable_bindings;
5691else
5692 enableval=default
5693fi
5694
5695BINDINGS_TO_BUILD=""
5696case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005697 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005698 all ) BINDINGS_TO_BUILD="ocaml" ;;
5699 none | no) BINDINGS_TO_BUILD="" ;;
5700 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5701 case "$a_binding" in
5702 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005703 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5704echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5705 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005706 esac
5707 done
5708 ;;
5709esac
5710
Reid Spencera773bd52006-08-04 18:18:08 +00005711
Gordon Henriksenf0915682007-10-02 16:42:22 +00005712# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005713if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005714 withval=$with_ocaml_libdir;
5715else
5716 withval=auto
5717fi
5718
5719case "$withval" in
5720 auto) with_ocaml_libdir="$withval" ;;
5721 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005722 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5723echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5724 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005725esac
5726
5727
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005728# Check whether --with-clang-srcdir was given.
5729if test "${with_clang_srcdir+set}" = set; then
5730 withval=$with_clang_srcdir;
5731else
5732 withval="-"
5733fi
5734
5735case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005736 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005737 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5738 *) clang_src_root="$ac_pwd/$withval" ;;
5739esac
5740CLANG_SRC_ROOT=$clang_src_root
5741
5742
5743
Chandler Carruth6b241162010-10-19 08:21:25 +00005744# Check whether --with-clang-resource-dir was given.
5745if test "${with_clang_resource_dir+set}" = set; then
5746 withval=$with_clang_resource_dir;
5747else
5748 withval=""
5749fi
5750
5751
5752cat >>confdefs.h <<_ACEOF
5753#define CLANG_RESOURCE_DIR "$withval"
5754_ACEOF
5755
5756
5757
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005758# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005759if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005760 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005761else
5762 withval=""
5763fi
5764
5765
5766cat >>confdefs.h <<_ACEOF
5767#define C_INCLUDE_DIRS "$withval"
5768_ACEOF
5769
5770
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005771# Clang normally uses the system c++ headers and libraries. With this option,
5772# clang will use the ones provided by a gcc installation instead. This option should
5773# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005774
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005775# Check whether --with-gcc-toolchain was given.
5776if test "${with_gcc_toolchain+set}" = set; then
5777 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005778else
5779 withval=""
5780fi
5781
5782
5783cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005784#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005785_ACEOF
5786
5787
5788
Sebastian Pope4f1b372012-04-30 20:06:58 +00005789# Check whether --with-default-sysroot was given.
5790if test "${with_default_sysroot+set}" = set; then
5791 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005792else
5793 withval=""
5794fi
5795
5796
5797cat >>confdefs.h <<_ACEOF
5798#define DEFAULT_SYSROOT "$withval"
5799_ACEOF
5800
5801
5802
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005803# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005804if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005805 withval=$with_binutils_include;
5806else
5807 withval=default
5808fi
5809
5810case "$withval" in
5811 default) WITH_BINUTILS_INCDIR=default ;;
5812 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5814echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5815 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005816esac
5817if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5818 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5819
5820 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5821 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5823echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5824 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005825 fi
5826fi
5827
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005828
5829# Check whether --with-bug-report-url was given.
5830if test "${with_bug_report_url+set}" = set; then
5831 withval=$with_bug_report_url;
5832else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005833 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005834fi
5835
5836
5837cat >>confdefs.h <<_ACEOF
5838#define BUG_REPORT_URL "$withval"
5839_ACEOF
5840
5841
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005842# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005844 enableval=$enable_libffi; case "$enableval" in
5845 yes) llvm_cv_enable_libffi="yes" ;;
5846 no) llvm_cv_enable_libffi="no" ;;
5847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5849 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005850 esac
5851else
5852 llvm_cv_enable_libffi=no
5853fi
5854
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005855
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005856
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005857# Check whether --with-internal-prefix was given.
5858if test "${with_internal_prefix+set}" = set; then
5859 withval=$with_internal_prefix;
5860else
5861 withval=""
5862fi
5863
5864INTERNAL_PREFIX=$withval
5865
5866
5867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5869echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5870if test "${lt_cv_path_NM+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005872else
5873 if test -n "$NM"; then
5874 # Let the user override the test.
5875 lt_cv_path_NM="$NM"
5876else
5877 lt_nm_to_check="${ac_tool_prefix}nm"
5878 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5879 lt_nm_to_check="$lt_nm_to_check nm"
5880 fi
5881 for lt_tmp_nm in $lt_nm_to_check; do
5882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5883 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5884 IFS="$lt_save_ifs"
5885 test -z "$ac_dir" && ac_dir=.
5886 tmp_nm="$ac_dir/$lt_tmp_nm"
5887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5888 # Check to see if the nm accepts a BSD-compat flag.
5889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5890 # nm: unknown option "B" ignored
5891 # Tru64's nm complains that /dev/null is an invalid object file
5892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5893 */dev/null* | *'Invalid file or object type'*)
5894 lt_cv_path_NM="$tmp_nm -B"
5895 break
5896 ;;
5897 *)
5898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5899 */dev/null*)
5900 lt_cv_path_NM="$tmp_nm -p"
5901 break
5902 ;;
5903 *)
5904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5905 continue # so that we can try to find one that supports BSD flags
5906 ;;
5907 esac
5908 ;;
5909 esac
5910 fi
5911 done
5912 IFS="$lt_save_ifs"
5913 done
5914 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5915fi
5916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5918echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005919NM="$lt_cv_path_NM"
5920
5921
5922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005923{ echo "$as_me:$LINENO: checking for GNU make" >&5
5924echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5925if test "${llvm_cv_gnu_make_command+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005927else
5928 llvm_cv_gnu_make_command=''
5929 for a in "$MAKE" make gmake gnumake ; do
5930 if test -z "$a" ; then continue ; fi ;
5931 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5932 then
5933 llvm_cv_gnu_make_command=$a ;
5934 break;
5935 fi
5936 done
5937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5939echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005940 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5941 ifGNUmake='' ;
5942 else
5943 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5945echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005946 fi
5947
5948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5950echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005951LN_S=$as_ln_s
5952if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953 { echo "$as_me:$LINENO: result: yes" >&5
5954echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5957echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005958fi
5959
5960# Extract the first word of "cmp", so it can be a program name with args.
5961set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5964if test "${ac_cv_path_CMP+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005966else
5967 case $CMP in
5968 [\\/]* | ?:[\\/]*)
5969 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5970 ;;
5971 *)
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 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 +00005979 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005981 break 2
5982 fi
5983done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984done
Reid Spencera773bd52006-08-04 18:18:08 +00005985IFS=$as_save_IFS
5986
5987 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5988 ;;
5989esac
5990fi
5991CMP=$ac_cv_path_CMP
5992if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005993 { echo "$as_me:$LINENO: result: $CMP" >&5
5994echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005996 { echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005998fi
5999
6000
6001# Extract the first word of "cp", so it can be a program name with args.
6002set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6005if test "${ac_cv_path_CP+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006007else
6008 case $CP in
6009 [\\/]* | ?:[\\/]*)
6010 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6011 ;;
6012 *)
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 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 +00006020 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006022 break 2
6023 fi
6024done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025done
Reid Spencera773bd52006-08-04 18:18:08 +00006026IFS=$as_save_IFS
6027
6028 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6029 ;;
6030esac
6031fi
6032CP=$ac_cv_path_CP
6033if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006034 { echo "$as_me:$LINENO: result: $CP" >&5
6035echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006036else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037 { echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006039fi
6040
6041
6042# Extract the first word of "date", so it can be a program name with args.
6043set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046if test "${ac_cv_path_DATE+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006048else
6049 case $DATE in
6050 [\\/]* | ?:[\\/]*)
6051 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6052 ;;
6053 *)
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 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 +00006061 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006063 break 2
6064 fi
6065done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066done
Reid Spencera773bd52006-08-04 18:18:08 +00006067IFS=$as_save_IFS
6068
6069 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6070 ;;
6071esac
6072fi
6073DATE=$ac_cv_path_DATE
6074if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006075 { echo "$as_me:$LINENO: result: $DATE" >&5
6076echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078 { echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006080fi
6081
6082
6083# Extract the first word of "find", so it can be a program name with args.
6084set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087if test "${ac_cv_path_FIND+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006089else
6090 case $FIND in
6091 [\\/]* | ?:[\\/]*)
6092 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6093 ;;
6094 *)
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096for as_dir in $PATH
6097do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 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 +00006102 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006104 break 2
6105 fi
6106done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107done
Reid Spencera773bd52006-08-04 18:18:08 +00006108IFS=$as_save_IFS
6109
6110 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6111 ;;
6112esac
6113fi
6114FIND=$ac_cv_path_FIND
6115if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006116 { echo "$as_me:$LINENO: result: $FIND" >&5
6117echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119 { echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006121fi
6122
6123
6124# Extract the first word of "grep", so it can be a program name with args.
6125set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128if test "${ac_cv_path_GREP+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006130else
6131 case $GREP in
6132 [\\/]* | ?:[\\/]*)
6133 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6134 ;;
6135 *)
6136 as_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_path_GREP="$as_dir/$ac_word$ac_exec_ext"
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
6151 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6152 ;;
6153esac
6154fi
6155GREP=$ac_cv_path_GREP
6156if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006157 { echo "$as_me:$LINENO: result: $GREP" >&5
6158echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160 { echo "$as_me:$LINENO: result: no" >&5
6161echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006162fi
6163
6164
6165# Extract the first word of "mkdir", so it can be a program name with args.
6166set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169if test "${ac_cv_path_MKDIR+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006171else
6172 case $MKDIR in
6173 [\\/]* | ?:[\\/]*)
6174 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6175 ;;
6176 *)
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 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 +00006184 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006186 break 2
6187 fi
6188done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189done
Reid Spencera773bd52006-08-04 18:18:08 +00006190IFS=$as_save_IFS
6191
6192 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6193 ;;
6194esac
6195fi
6196MKDIR=$ac_cv_path_MKDIR
6197if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6199echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201 { echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006203fi
6204
6205
6206# Extract the first word of "mv", so it can be a program name with args.
6207set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210if test "${ac_cv_path_MV+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006212else
6213 case $MV in
6214 [\\/]* | ?:[\\/]*)
6215 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6216 ;;
6217 *)
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 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 +00006225 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006227 break 2
6228 fi
6229done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006230done
Reid Spencera773bd52006-08-04 18:18:08 +00006231IFS=$as_save_IFS
6232
6233 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6234 ;;
6235esac
6236fi
6237MV=$ac_cv_path_MV
6238if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006239 { echo "$as_me:$LINENO: result: $MV" >&5
6240echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242 { echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006244fi
6245
6246
6247if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6249set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252if test "${ac_cv_prog_RANLIB+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006254else
6255 if test -n "$RANLIB"; then
6256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 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 +00006265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006267 break 2
6268 fi
6269done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006270done
Reid Spencera773bd52006-08-04 18:18:08 +00006271IFS=$as_save_IFS
6272
6273fi
6274fi
6275RANLIB=$ac_cv_prog_RANLIB
6276if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6278echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006280 { echo "$as_me:$LINENO: result: no" >&5
6281echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006282fi
6283
6284
6285fi
6286if test -z "$ac_cv_prog_RANLIB"; then
6287 ac_ct_RANLIB=$RANLIB
6288 # Extract the first word of "ranlib", so it can be a program name with args.
6289set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006294else
6295 if test -n "$ac_ct_RANLIB"; then
6296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 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 +00006305 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006307 break 2
6308 fi
6309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310done
Reid Spencera773bd52006-08-04 18:18:08 +00006311IFS=$as_save_IFS
6312
6313fi
6314fi
6315ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6316if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6318echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320 { echo "$as_me:$LINENO: result: no" >&5
6321echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006322fi
6323
6324 if test "x$ac_ct_RANLIB" = x; then
6325 RANLIB=":"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6330whose name does not start with the host triplet. If you think this
6331configuration is useful to you, please write to autoconf@gnu.org." >&5
6332echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6333whose name does not start with the host triplet. If you think this
6334configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006335ac_tool_warned=yes ;;
6336esac
6337 RANLIB=$ac_ct_RANLIB
6338 fi
6339else
6340 RANLIB="$ac_cv_prog_RANLIB"
6341fi
6342
Torok Edwin871384f2010-01-26 08:50:50 +00006343if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6345set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348if test "${ac_cv_prog_AR+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006350else
6351 if test -n "$AR"; then
6352 ac_cv_prog_AR="$AR" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 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 +00006361 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006363 break 2
6364 fi
6365done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366done
Torok Edwin871384f2010-01-26 08:50:50 +00006367IFS=$as_save_IFS
6368
6369fi
6370fi
6371AR=$ac_cv_prog_AR
6372if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006373 { echo "$as_me:$LINENO: result: $AR" >&5
6374echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006376 { echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006378fi
6379
6380
6381fi
6382if test -z "$ac_cv_prog_AR"; then
6383 ac_ct_AR=$AR
6384 # Extract the first word of "ar", so it can be a program name with args.
6385set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006390else
6391 if test -n "$ac_ct_AR"; then
6392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 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 +00006401 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006403 break 2
6404 fi
6405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406done
Torok Edwin871384f2010-01-26 08:50:50 +00006407IFS=$as_save_IFS
6408
6409fi
6410fi
6411ac_ct_AR=$ac_cv_prog_ac_ct_AR
6412if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6414echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416 { echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006418fi
6419
6420 if test "x$ac_ct_AR" = x; then
6421 AR="false"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6426whose name does not start with the host triplet. If you think this
6427configuration is useful to you, please write to autoconf@gnu.org." >&5
6428echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6429whose name does not start with the host triplet. If you think this
6430configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006431ac_tool_warned=yes ;;
6432esac
6433 AR=$ac_ct_AR
6434 fi
6435else
6436 AR="$ac_cv_prog_AR"
6437fi
6438
Reid Spencera773bd52006-08-04 18:18:08 +00006439# Extract the first word of "rm", so it can be a program name with args.
6440set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6443if test "${ac_cv_path_RM+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006445else
6446 case $RM in
6447 [\\/]* | ?:[\\/]*)
6448 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6449 ;;
6450 *)
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452for as_dir in $PATH
6453do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 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 +00006458 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006460 break 2
6461 fi
6462done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463done
Reid Spencera773bd52006-08-04 18:18:08 +00006464IFS=$as_save_IFS
6465
6466 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6467 ;;
6468esac
6469fi
6470RM=$ac_cv_path_RM
6471if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006472 { echo "$as_me:$LINENO: result: $RM" >&5
6473echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006475 { echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006477fi
6478
6479
6480# Extract the first word of "sed", so it can be a program name with args.
6481set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484if test "${ac_cv_path_SED+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006486else
6487 case $SED in
6488 [\\/]* | ?:[\\/]*)
6489 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6490 ;;
6491 *)
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 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 +00006499 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006501 break 2
6502 fi
6503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504done
Reid Spencera773bd52006-08-04 18:18:08 +00006505IFS=$as_save_IFS
6506
6507 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6508 ;;
6509esac
6510fi
6511SED=$ac_cv_path_SED
6512if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006513 { echo "$as_me:$LINENO: result: $SED" >&5
6514echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006516 { echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006518fi
6519
6520
6521# Extract the first word of "tar", so it can be a program name with args.
6522set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525if test "${ac_cv_path_TAR+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006527else
6528 case $TAR in
6529 [\\/]* | ?:[\\/]*)
6530 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6531 ;;
6532 *)
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 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 +00006540 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006542 break 2
6543 fi
6544done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006545done
Reid Spencera773bd52006-08-04 18:18:08 +00006546IFS=$as_save_IFS
6547
6548 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6549 ;;
6550esac
6551fi
6552TAR=$ac_cv_path_TAR
6553if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006554 { echo "$as_me:$LINENO: result: $TAR" >&5
6555echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006557 { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006559fi
6560
6561
6562# Extract the first word of "pwd", so it can be a program name with args.
6563set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566if test "${ac_cv_path_BINPWD+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006568else
6569 case $BINPWD in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6572 ;;
6573 *)
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 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 +00006581 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006583 break 2
6584 fi
6585done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006586done
Reid Spencera773bd52006-08-04 18:18:08 +00006587IFS=$as_save_IFS
6588
6589 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6590 ;;
6591esac
6592fi
6593BINPWD=$ac_cv_path_BINPWD
6594if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6596echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598 { echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006600fi
6601
6602
6603
6604# Extract the first word of "Graphviz", so it can be a program name with args.
6605set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006610else
6611 case $GRAPHVIZ in
6612 [\\/]* | ?:[\\/]*)
6613 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6614 ;;
6615 *)
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 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 +00006623 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006625 break 2
6626 fi
6627done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628done
Reid Spencera773bd52006-08-04 18:18:08 +00006629IFS=$as_save_IFS
6630
6631 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6632 ;;
6633esac
6634fi
6635GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6636if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006637 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6638echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006640 { echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006642fi
6643
6644
6645if test "$GRAPHVIZ" != "echo Graphviz" ; then
6646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006647cat >>confdefs.h <<\_ACEOF
6648#define HAVE_GRAPHVIZ 1
6649_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006650
Jeff Cohen28783c32007-01-12 18:22:38 +00006651 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006652 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6653 fi
6654
6655cat >>confdefs.h <<_ACEOF
6656#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6657_ACEOF
6658
6659fi
6660# Extract the first word of "dot", so it can be a program name with args.
6661set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664if test "${ac_cv_path_DOT+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006666else
6667 case $DOT in
6668 [\\/]* | ?:[\\/]*)
6669 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6670 ;;
6671 *)
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 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 +00006679 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006681 break 2
6682 fi
6683done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684done
Reid Spencera773bd52006-08-04 18:18:08 +00006685IFS=$as_save_IFS
6686
6687 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6688 ;;
6689esac
6690fi
6691DOT=$ac_cv_path_DOT
6692if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693 { echo "$as_me:$LINENO: result: $DOT" >&5
6694echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696 { echo "$as_me:$LINENO: result: no" >&5
6697echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006698fi
6699
6700
6701if test "$DOT" != "echo dot" ; then
6702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703cat >>confdefs.h <<\_ACEOF
6704#define HAVE_DOT 1
6705_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006706
Jeff Cohen28783c32007-01-12 18:22:38 +00006707 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006708 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6709 fi
6710
6711cat >>confdefs.h <<_ACEOF
6712#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6713_ACEOF
6714
6715fi
David Greenef0b9eff2009-07-09 17:16:26 +00006716# Extract the first word of "fdp", so it can be a program name with args.
6717set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_path_FDP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006722else
6723 case $FDP in
6724 [\\/]* | ?:[\\/]*)
6725 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6726 ;;
6727 *)
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 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 +00006735 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006737 break 2
6738 fi
6739done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740done
David Greenef0b9eff2009-07-09 17:16:26 +00006741IFS=$as_save_IFS
6742
6743 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6744 ;;
6745esac
6746fi
6747FDP=$ac_cv_path_FDP
6748if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006749 { echo "$as_me:$LINENO: result: $FDP" >&5
6750echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752 { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006754fi
6755
6756
6757if test "$FDP" != "echo fdp" ; then
6758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759cat >>confdefs.h <<\_ACEOF
6760#define HAVE_FDP 1
6761_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006762
6763 if test "$llvm_cv_os_type" = "MingW" ; then
6764 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6765 fi
6766
6767cat >>confdefs.h <<_ACEOF
6768#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6769_ACEOF
6770
6771fi
6772# Extract the first word of "neato", so it can be a program name with args.
6773set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_path_NEATO+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006778else
6779 case $NEATO in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6782 ;;
6783 *)
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 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 +00006791 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006793 break 2
6794 fi
6795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796done
David Greenef0b9eff2009-07-09 17:16:26 +00006797IFS=$as_save_IFS
6798
6799 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6800 ;;
6801esac
6802fi
6803NEATO=$ac_cv_path_NEATO
6804if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805 { echo "$as_me:$LINENO: result: $NEATO" >&5
6806echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808 { echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006810fi
6811
6812
6813if test "$NEATO" != "echo neato" ; then
6814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815cat >>confdefs.h <<\_ACEOF
6816#define HAVE_NEATO 1
6817_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006818
6819 if test "$llvm_cv_os_type" = "MingW" ; then
6820 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6821 fi
6822
6823cat >>confdefs.h <<_ACEOF
6824#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6825_ACEOF
6826
6827fi
6828# Extract the first word of "twopi", so it can be a program name with args.
6829set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_path_TWOPI+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006834else
6835 case $TWOPI in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6838 ;;
6839 *)
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 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 +00006847 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006849 break 2
6850 fi
6851done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006852done
David Greenef0b9eff2009-07-09 17:16:26 +00006853IFS=$as_save_IFS
6854
6855 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6856 ;;
6857esac
6858fi
6859TWOPI=$ac_cv_path_TWOPI
6860if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006861 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6862echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 { echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006866fi
6867
6868
6869if test "$TWOPI" != "echo twopi" ; then
6870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871cat >>confdefs.h <<\_ACEOF
6872#define HAVE_TWOPI 1
6873_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006874
6875 if test "$llvm_cv_os_type" = "MingW" ; then
6876 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6877 fi
6878
6879cat >>confdefs.h <<_ACEOF
6880#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6881_ACEOF
6882
6883fi
6884# Extract the first word of "circo", so it can be a program name with args.
6885set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888if test "${ac_cv_path_CIRCO+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006890else
6891 case $CIRCO in
6892 [\\/]* | ?:[\\/]*)
6893 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6894 ;;
6895 *)
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 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 +00006903 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006905 break 2
6906 fi
6907done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006908done
David Greenef0b9eff2009-07-09 17:16:26 +00006909IFS=$as_save_IFS
6910
6911 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6912 ;;
6913esac
6914fi
6915CIRCO=$ac_cv_path_CIRCO
6916if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006917 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6918echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006920 { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006922fi
6923
6924
6925if test "$CIRCO" != "echo circo" ; then
6926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006927cat >>confdefs.h <<\_ACEOF
6928#define HAVE_CIRCO 1
6929_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006930
6931 if test "$llvm_cv_os_type" = "MingW" ; then
6932 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6933 fi
6934
6935cat >>confdefs.h <<_ACEOF
6936#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6937_ACEOF
6938
6939fi
Reid Spencera773bd52006-08-04 18:18:08 +00006940for ac_prog in gv gsview32
6941do
6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
6943set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946if test "${ac_cv_path_GV+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006948else
6949 case $GV in
6950 [\\/]* | ?:[\\/]*)
6951 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6952 ;;
6953 *)
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 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 +00006961 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006963 break 2
6964 fi
6965done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966done
Reid Spencera773bd52006-08-04 18:18:08 +00006967IFS=$as_save_IFS
6968
6969 ;;
6970esac
6971fi
6972GV=$ac_cv_path_GV
6973if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006974 { echo "$as_me:$LINENO: result: $GV" >&5
6975echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006977 { echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006979fi
6980
6981
6982 test -n "$GV" && break
6983done
6984test -n "$GV" || GV="echo gv"
6985
6986if test "$GV" != "echo gv" ; then
6987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988cat >>confdefs.h <<\_ACEOF
6989#define HAVE_GV 1
6990_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006991
Jeff Cohen28783c32007-01-12 18:22:38 +00006992 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006993 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6994 fi
6995
6996cat >>confdefs.h <<_ACEOF
6997#define LLVM_PATH_GV "$GV${EXEEXT}"
6998_ACEOF
6999
7000fi
7001# Extract the first word of "dotty", so it can be a program name with args.
7002set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005if test "${ac_cv_path_DOTTY+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007007else
7008 case $DOTTY in
7009 [\\/]* | ?:[\\/]*)
7010 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7011 ;;
7012 *)
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 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 +00007020 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007022 break 2
7023 fi
7024done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025done
Reid Spencera773bd52006-08-04 18:18:08 +00007026IFS=$as_save_IFS
7027
7028 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7029 ;;
7030esac
7031fi
7032DOTTY=$ac_cv_path_DOTTY
7033if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7035echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007036else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 { echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007039fi
7040
7041
7042if test "$DOTTY" != "echo dotty" ; then
7043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044cat >>confdefs.h <<\_ACEOF
7045#define HAVE_DOTTY 1
7046_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007047
Jeff Cohen28783c32007-01-12 18:22:38 +00007048 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007049 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7050 fi
7051
7052cat >>confdefs.h <<_ACEOF
7053#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7054_ACEOF
7055
7056fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007057# Extract the first word of "xdot.py", so it can be a program name with args.
7058set dummy xdot.py; ac_word=$2
7059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061if test "${ac_cv_path_XDOT_PY+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064 case $XDOT_PY in
7065 [\\/]* | ?:[\\/]*)
7066 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7067 ;;
7068 *)
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080done
7081done
7082IFS=$as_save_IFS
7083
7084 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7085 ;;
7086esac
7087fi
7088XDOT_PY=$ac_cv_path_XDOT_PY
7089if test -n "$XDOT_PY"; then
7090 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7091echo "${ECHO_T}$XDOT_PY" >&6; }
7092else
7093 { echo "$as_me:$LINENO: result: no" >&5
7094echo "${ECHO_T}no" >&6; }
7095fi
7096
7097
7098if test "$XDOT_PY" != "echo xdot.py" ; then
7099
7100cat >>confdefs.h <<\_ACEOF
7101#define HAVE_XDOT_PY 1
7102_ACEOF
7103
7104 if test "$llvm_cv_os_type" = "MingW" ; then
7105 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7106 fi
7107
7108cat >>confdefs.h <<_ACEOF
7109#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7110_ACEOF
7111
7112fi
Reid Spencera773bd52006-08-04 18:18:08 +00007113
Reid Spencera773bd52006-08-04 18:18:08 +00007114# Find a good install program. We prefer a C program (faster),
7115# so one script is as good as another. But avoid the broken or
7116# incompatible versions:
7117# SysV /etc/install, /usr/sbin/install
7118# SunOS /usr/etc/install
7119# IRIX /sbin/install
7120# AIX /bin/install
7121# AmigaOS /C/install, which installs bootblocks on floppy discs
7122# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7123# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7124# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7125# OS/2's system install, which has a completely different semantic
7126# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007127{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7128echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007129if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130if test "${ac_cv_path_install+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007132else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138 # Account for people who put trailing slashes in PATH elements.
7139case $as_dir/ in
7140 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007143 /usr/ucb/* ) ;;
7144 *)
7145 # OSF1 and SCO ODT 3.0 have their own names for install.
7146 # Don't use installbsd from OSF since it installs stuff as root
7147 # by default.
7148 for ac_prog in ginstall scoinst install; do
7149 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150 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 +00007151 if test $ac_prog = install &&
7152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7153 # AIX install. It has an incompatible calling convention.
7154 :
7155 elif test $ac_prog = install &&
7156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7157 # program-specific install script used by HP pwplus--don't use.
7158 :
7159 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7161 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007162 fi
7163 fi
7164 done
7165 done
7166 ;;
7167esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168done
Reid Spencera773bd52006-08-04 18:18:08 +00007169IFS=$as_save_IFS
7170
7171
7172fi
7173 if test "${ac_cv_path_install+set}" = set; then
7174 INSTALL=$ac_cv_path_install
7175 else
7176 # As a last resort, use the slow shell script. Don't cache a
7177 # value for INSTALL within a source directory, because that will
7178 # break other packages using the cache if that directory is
7179 # removed, or if the value is a relative name.
7180 INSTALL=$ac_install_sh
7181 fi
7182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007183{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7184echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007185
7186# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7187# It thinks the first close brace ends the variable substitution.
7188test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7189
7190test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7191
7192test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7193
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007194case "$INSTALL" in
7195 [\\/$]* | ?:[\\/]* ) ;;
7196 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7197esac
Reid Spencera773bd52006-08-04 18:18:08 +00007198
7199# Extract the first word of "bzip2", so it can be a program name with args.
7200set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203if test "${ac_cv_path_BZIP2+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007205else
7206 case $BZIP2 in
7207 [\\/]* | ?:[\\/]*)
7208 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7209 ;;
7210 *)
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 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 +00007218 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007220 break 2
7221 fi
7222done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223done
Reid Spencera773bd52006-08-04 18:18:08 +00007224IFS=$as_save_IFS
7225
Reid Spencera773bd52006-08-04 18:18:08 +00007226 ;;
7227esac
7228fi
7229BZIP2=$ac_cv_path_BZIP2
7230if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7232echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 { echo "$as_me:$LINENO: result: no" >&5
7235echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007236fi
7237
7238
mike-m68cb3192010-05-06 23:45:43 +00007239# Extract the first word of "cat", so it can be a program name with args.
7240set dummy cat; ac_word=$2
7241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243if test "${ac_cv_path_CAT+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246 case $CAT in
7247 [\\/]* | ?:[\\/]*)
7248 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7249 ;;
7250 *)
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262done
7263done
7264IFS=$as_save_IFS
7265
7266 ;;
7267esac
7268fi
7269CAT=$ac_cv_path_CAT
7270if test -n "$CAT"; then
7271 { echo "$as_me:$LINENO: result: $CAT" >&5
7272echo "${ECHO_T}$CAT" >&6; }
7273else
7274 { echo "$as_me:$LINENO: result: no" >&5
7275echo "${ECHO_T}no" >&6; }
7276fi
7277
7278
Reid Spencera773bd52006-08-04 18:18:08 +00007279# Extract the first word of "doxygen", so it can be a program name with args.
7280set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7283if test "${ac_cv_path_DOXYGEN+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007285else
7286 case $DOXYGEN in
7287 [\\/]* | ?:[\\/]*)
7288 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7289 ;;
7290 *)
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 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 +00007298 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007300 break 2
7301 fi
7302done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303done
Reid Spencera773bd52006-08-04 18:18:08 +00007304IFS=$as_save_IFS
7305
Reid Spencera773bd52006-08-04 18:18:08 +00007306 ;;
7307esac
7308fi
7309DOXYGEN=$ac_cv_path_DOXYGEN
7310if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7312echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007314 { echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007316fi
7317
7318
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007319# Extract the first word of "groff", so it can be a program name with args.
7320set dummy groff; ac_word=$2
7321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323if test "${ac_cv_path_GROFF+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 case $GROFF in
7327 [\\/]* | ?:[\\/]*)
7328 ac_cv_path_GROFF="$GROFF" # 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=.
7336 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
7338 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342done
7343done
7344IFS=$as_save_IFS
7345
7346 ;;
7347esac
7348fi
7349GROFF=$ac_cv_path_GROFF
7350if test -n "$GROFF"; then
7351 { echo "$as_me:$LINENO: result: $GROFF" >&5
7352echo "${ECHO_T}$GROFF" >&6; }
7353else
7354 { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
7356fi
7357
7358
Reid Spencera773bd52006-08-04 18:18:08 +00007359# Extract the first word of "gzip", so it can be a program name with args.
7360set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007363if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007365else
Eric Christopher031d3072010-12-10 01:31:51 +00007366 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007367 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007368 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007369 ;;
7370 *)
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372for as_dir in $PATH
7373do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 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 +00007378 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007380 break 2
7381 fi
7382done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383done
Reid Spencera773bd52006-08-04 18:18:08 +00007384IFS=$as_save_IFS
7385
Reid Spencera773bd52006-08-04 18:18:08 +00007386 ;;
7387esac
7388fi
Eric Christopher031d3072010-12-10 01:31:51 +00007389GZIPBIN=$ac_cv_path_GZIPBIN
7390if test -n "$GZIPBIN"; then
7391 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7392echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 { echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007396fi
7397
7398
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007399# Extract the first word of "pdfroff", so it can be a program name with args.
7400set dummy pdfroff; ac_word=$2
7401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403if test "${ac_cv_path_PDFROFF+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405else
7406 case $PDFROFF in
7407 [\\/]* | ?:[\\/]*)
7408 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7409 ;;
7410 *)
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422done
7423done
7424IFS=$as_save_IFS
7425
7426 ;;
7427esac
7428fi
7429PDFROFF=$ac_cv_path_PDFROFF
7430if test -n "$PDFROFF"; then
7431 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7432echo "${ECHO_T}$PDFROFF" >&6; }
7433else
7434 { echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6; }
7436fi
7437
7438
Reid Spencera773bd52006-08-04 18:18:08 +00007439# Extract the first word of "zip", so it can be a program name with args.
7440set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7443if test "${ac_cv_path_ZIP+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007445else
7446 case $ZIP in
7447 [\\/]* | ?:[\\/]*)
7448 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7449 ;;
7450 *)
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 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 +00007458 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007460 break 2
7461 fi
7462done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007463done
Reid Spencera773bd52006-08-04 18:18:08 +00007464IFS=$as_save_IFS
7465
Reid Spencera773bd52006-08-04 18:18:08 +00007466 ;;
7467esac
7468fi
7469ZIP=$ac_cv_path_ZIP
7470if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471 { echo "$as_me:$LINENO: result: $ZIP" >&5
7472echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 { echo "$as_me:$LINENO: result: no" >&5
7475echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007476fi
7477
7478
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007479for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007480do
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485if test "${ac_cv_path_OCAMLC+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007487else
7488 case $OCAMLC in
7489 [\\/]* | ?:[\\/]*)
7490 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7491 ;;
7492 *)
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 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 +00007500 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007502 break 2
7503 fi
7504done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007506IFS=$as_save_IFS
7507
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007508 ;;
7509esac
7510fi
7511OCAMLC=$ac_cv_path_OCAMLC
7512if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7514echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007518fi
7519
7520
Gordon Henriksene7072162008-03-07 18:20:01 +00007521 test -n "$OCAMLC" && break
7522done
7523
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007524for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007525do
7526 # Extract the first word of "$ac_prog", so it can be a program name with args.
7527set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007532else
7533 case $OCAMLOPT in
7534 [\\/]* | ?:[\\/]*)
7535 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7536 ;;
7537 *)
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 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 +00007545 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007547 break 2
7548 fi
7549done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007550done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007551IFS=$as_save_IFS
7552
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007553 ;;
7554esac
7555fi
7556OCAMLOPT=$ac_cv_path_OCAMLOPT
7557if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007558 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7559echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561 { echo "$as_me:$LINENO: result: no" >&5
7562echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007563fi
7564
7565
Gordon Henriksene7072162008-03-07 18:20:01 +00007566 test -n "$OCAMLOPT" && break
7567done
7568
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007569for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007570do
7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
7572set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007577else
7578 case $OCAMLDEP in
7579 [\\/]* | ?:[\\/]*)
7580 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7581 ;;
7582 *)
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 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 +00007590 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007592 break 2
7593 fi
7594done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007596IFS=$as_save_IFS
7597
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007598 ;;
7599esac
7600fi
7601OCAMLDEP=$ac_cv_path_OCAMLDEP
7602if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007603 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7604echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007606 { echo "$as_me:$LINENO: result: no" >&5
7607echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007608fi
7609
7610
Gordon Henriksene7072162008-03-07 18:20:01 +00007611 test -n "$OCAMLDEP" && break
7612done
7613
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007614for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007615do
7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
7617set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7620if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007622else
7623 case $OCAMLDOC in
7624 [\\/]* | ?:[\\/]*)
7625 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7626 ;;
7627 *)
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 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 +00007635 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007637 break 2
7638 fi
7639done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007641IFS=$as_save_IFS
7642
7643 ;;
7644esac
7645fi
7646OCAMLDOC=$ac_cv_path_OCAMLDOC
7647if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007648 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7649echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651 { echo "$as_me:$LINENO: result: no" >&5
7652echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007653fi
7654
7655
7656 test -n "$OCAMLDOC" && break
7657done
7658
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007659for ac_prog in gas as
7660do
7661 # Extract the first word of "$ac_prog", so it can be a program name with args.
7662set dummy $ac_prog; ac_word=$2
7663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665if test "${ac_cv_path_GAS+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 case $GAS in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7671 ;;
7672 *)
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686IFS=$as_save_IFS
7687
7688 ;;
7689esac
7690fi
7691GAS=$ac_cv_path_GAS
7692if test -n "$GAS"; then
7693 { echo "$as_me:$LINENO: result: $GAS" >&5
7694echo "${ECHO_T}$GAS" >&6; }
7695else
7696 { echo "$as_me:$LINENO: result: no" >&5
7697echo "${ECHO_T}no" >&6; }
7698fi
7699
7700
7701 test -n "$GAS" && break
7702done
7703
Reid Spencera773bd52006-08-04 18:18:08 +00007704
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007705{ echo "$as_me:$LINENO: checking for linker version" >&5
7706echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7707if test "${llvm_cv_link_version+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710
7711 version_string="$(ld -v 2>&1 | head -1)"
7712
7713 # Check for ld64.
7714 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007715 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007716 else
7717 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7718 fi
7719
7720fi
7721{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7722echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7723
7724cat >>confdefs.h <<_ACEOF
7725#define HOST_LINK_VERSION "$llvm_cv_link_version"
7726_ACEOF
7727
7728
7729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7731echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7732if test "${llvm_cv_link_use_r+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007734else
7735 ac_ext=c
7736ac_cpp='$CPP $CPPFLAGS'
7737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740
7741 oldcflags="$CFLAGS"
7742 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743 cat >conftest.$ac_ext <<_ACEOF
7744/* confdefs.h. */
7745_ACEOF
7746cat confdefs.h >>conftest.$ac_ext
7747cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007748/* end confdefs.h. */
7749
7750int
7751main ()
7752{
Dan Gohman39ed6782010-04-25 00:12:20 +00007753
Reid Spencera773bd52006-08-04 18:18:08 +00007754 ;
7755 return 0;
7756}
7757_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758rm -f conftest.$ac_objext conftest$ac_exeext
7759if { (ac_try="$ac_link"
7760case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7763esac
7764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_link") 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7773 { (case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776esac
7777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_try") 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest$ac_exeext'
7783 { (case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786esac
7787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_try") 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007792 llvm_cv_link_use_r=yes
7793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794 echo "$as_me: failed program was:" >&5
7795sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007799
Bill Wendlingebcceee2009-04-18 11:20:33 +00007800rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007802 CFLAGS="$oldcflags"
7803 ac_ext=c
7804ac_cpp='$CPP $CPPFLAGS'
7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809
7810fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007811{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7812echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007813if test "$llvm_cv_link_use_r" = yes ; then
7814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815cat >>confdefs.h <<\_ACEOF
7816#define HAVE_LINK_R 1
7817_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007818
7819 fi
7820
7821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7823echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7824if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007826else
7827 ac_ext=c
7828ac_cpp='$CPP $CPPFLAGS'
7829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832
7833 oldcflags="$CFLAGS"
7834 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835 cat >conftest.$ac_ext <<_ACEOF
7836/* confdefs.h. */
7837_ACEOF
7838cat confdefs.h >>conftest.$ac_ext
7839cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007840/* end confdefs.h. */
7841
7842int
7843main ()
7844{
Dan Gohman39ed6782010-04-25 00:12:20 +00007845
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007846 ;
7847 return 0;
7848}
7849_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850rm -f conftest.$ac_objext conftest$ac_exeext
7851if { (ac_try="$ac_link"
7852case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855esac
7856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7865 { (case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_try") 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest$ac_exeext'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878esac
7879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007884 llvm_cv_link_use_export_dynamic=yes
7885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886 echo "$as_me: failed program was:" >&5
7887sed 's/^/| /' conftest.$ac_ext >&5
7888
7889 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891
Bill Wendlingebcceee2009-04-18 11:20:33 +00007892rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007894 CFLAGS="$oldcflags"
7895 ac_ext=c
7896ac_cpp='$CPP $CPPFLAGS'
7897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901
7902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7904echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007905if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007907cat >>confdefs.h <<\_ACEOF
7908#define HAVE_LINK_EXPORT_DYNAMIC 1
7909_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007910
7911 fi
7912
7913
Dan Gohmanda612d62010-06-01 14:56:56 +00007914{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7915echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7916if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919 ac_ext=c
7920ac_cpp='$CPP $CPPFLAGS'
7921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924
7925 oldcflags="$CFLAGS"
7926
7927 # The following code is from the autoconf manual,
7928 # "11.13: Limitations of Usual Tools".
7929 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7930 # Use mktemp if possible; otherwise fall back on mkdir,
7931 # with $RANDOM to make collisions less likely.
7932 : ${TMPDIR=/tmp}
7933 {
7934 tmp=`
7935 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7936 ` &&
7937 test -n "$tmp" && test -d "$tmp"
7938 } || {
7939 tmp=$TMPDIR/foo$$-$RANDOM
7940 (umask 077 && mkdir "$tmp")
7941 } || exit $?
7942
Dan Gohmanda612d62010-06-01 14:56:56 +00007943 echo "{" > "$tmp/export.map"
7944 echo " global: main;" >> "$tmp/export.map"
7945 echo " local: *;" >> "$tmp/export.map"
7946 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007947
Dan Gohmanda612d62010-06-01 14:56:56 +00007948 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007949 cat >conftest.$ac_ext <<_ACEOF
7950/* confdefs.h. */
7951_ACEOF
7952cat confdefs.h >>conftest.$ac_ext
7953cat >>conftest.$ac_ext <<_ACEOF
7954/* end confdefs.h. */
7955
7956int
7957main ()
7958{
Dan Gohman39ed6782010-04-25 00:12:20 +00007959
Dan Gohman391569c2010-04-16 22:59:06 +00007960 ;
7961 return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext conftest$ac_exeext
7965if { (ac_try="$ac_link"
7966case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7969esac
7970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_link") 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982esac
7983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992esac
7993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_try") 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007998 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007999else
8000 echo "$as_me: failed program was:" >&5
8001sed 's/^/| /' conftest.$ac_ext >&5
8002
Dan Gohman943005e2010-06-01 16:22:27 +00008003 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008004fi
8005
8006rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008008 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008009 rmdir "$tmp"
8010 CFLAGS="$oldcflags"
8011 ac_ext=c
8012ac_cpp='$CPP $CPPFLAGS'
8013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016
8017
8018fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008019{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8020echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8021if test "$llvm_cv_link_use_version_script" = yes ; then
8022 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008023
8024 fi
8025
8026
Reid Spencera773bd52006-08-04 18:18:08 +00008027
8028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8030echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8031if test "${ac_cv_c_const+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008034 cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008039/* end confdefs.h. */
8040
8041int
8042main ()
8043{
8044/* FIXME: Include the comments suggested by Paul. */
8045#ifndef __cplusplus
8046 /* Ultrix mips cc rejects this. */
8047 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008049 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008050 char const *const *ccp;
8051 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008052 /* NEC SVR4.0.2 mips cc rejects this. */
8053 struct point {int x, y;};
8054 static struct point const zero = {0,0};
8055 /* AIX XL C 1.02.0.0 rejects this.
8056 It does not let you subtract one const X* pointer from another in
8057 an arm of an if-expression whose if-part is not a constant
8058 expression */
8059 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008060 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008061 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008062 ++ccp;
8063 p = (char**) ccp;
8064 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008065 { /* SCO 3.2v4 cc rejects this. */
8066 char *t;
8067 char const *s = 0 ? (char *) 0 : (char const *) 0;
8068
8069 *t++ = 0;
8070 if (s) return 0;
8071 }
8072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8073 int x[] = {25, 17};
8074 const int *foo = &x[0];
8075 ++foo;
8076 }
8077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8078 typedef const int *iptr;
8079 iptr p = 0;
8080 ++p;
8081 }
8082 { /* AIX XL C 1.02.0.0 rejects this saying
8083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8084 struct s { int j; const int *ap[3]; };
8085 struct s *b; b->j = 5;
8086 }
8087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8088 const int foo = 10;
8089 if (!foo) return 0;
8090 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008092#endif
8093
8094 ;
8095 return 0;
8096}
8097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008098rm -f conftest.$ac_objext
8099if { (ac_try="$ac_compile"
8100case "(($ac_try" in
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8103esac
8104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8106 ac_status=$?
8107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8113 { (case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_try") 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8126esac
8127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_try") 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008132 ac_cv_c_const=yes
8133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134 echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008139
Reid Spencera773bd52006-08-04 18:18:08 +00008140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8143echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008144if test $ac_cv_c_const = no; then
8145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146cat >>confdefs.h <<\_ACEOF
8147#define const
8148_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008149
8150fi
8151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152
8153
8154
8155
8156
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008157ac_header_dirent=no
8158for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8160{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8161echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165 cat >conftest.$ac_ext <<_ACEOF
8166/* confdefs.h. */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008170/* end confdefs.h. */
8171#include <sys/types.h>
8172#include <$ac_hdr>
8173
8174int
8175main ()
8176{
8177if ((DIR *) 0)
8178return 0;
8179 ;
8180 return 0;
8181}
8182_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008183rm -f conftest.$ac_objext
8184if { (ac_try="$ac_compile"
8185case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188esac
8189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8198 { (case "(($ac_try" in
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8201esac
8202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_try") 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; } &&
8207 { ac_try='test -s conftest.$ac_objext'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8211esac
8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008217 eval "$as_ac_Header=yes"
8218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008219 echo "$as_me: failed program was:" >&5
8220sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008224
Reid Spencera773bd52006-08-04 18:18:08 +00008225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008227ac_res=`eval echo '${'$as_ac_Header'}'`
8228 { echo "$as_me:$LINENO: result: $ac_res" >&5
8229echo "${ECHO_T}$ac_res" >&6; }
8230if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008231 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008233_ACEOF
8234
8235ac_header_dirent=$ac_hdr; break
8236fi
8237
8238done
8239# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8240if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8242echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8243if test "${ac_cv_search_opendir+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008245else
8246 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247cat >conftest.$ac_ext <<_ACEOF
8248/* confdefs.h. */
8249_ACEOF
8250cat confdefs.h >>conftest.$ac_ext
8251cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008252/* end confdefs.h. */
8253
Reid Spencera773bd52006-08-04 18:18:08 +00008254/* Override any GCC internal prototype to avoid an error.
8255 Use char because int might match the return type of a GCC
8256 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008257#ifdef __cplusplus
8258extern "C"
8259#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008260char opendir ();
8261int
8262main ()
8263{
Reid Spencera773bd52006-08-04 18:18:08 +00008264return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008265 ;
8266 return 0;
8267}
8268_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008269for ac_lib in '' dir; do
8270 if test -z "$ac_lib"; then
8271 ac_res="none required"
8272 else
8273 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008275 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008276 rm -f conftest.$ac_objext conftest$ac_exeext
8277if { (ac_try="$ac_link"
8278case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281esac
8282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_link") 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294esac
8295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_try") 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304esac
8305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_try") 2>&5
8307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008310 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311else
8312 echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
8314
8315
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008317
Bill Wendlingebcceee2009-04-18 11:20:33 +00008318rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319 conftest$ac_exeext
8320 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008321 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008322fi
John Criswell7a73b802003-06-30 21:59:07 +00008323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324if test "${ac_cv_search_opendir+set}" = set; then
8325 :
Reid Spencera773bd52006-08-04 18:18:08 +00008326else
8327 ac_cv_search_opendir=no
8328fi
8329rm conftest.$ac_ext
8330LIBS=$ac_func_search_save_LIBS
8331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8333echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008334ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008335if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008337
Reid Spencera773bd52006-08-04 18:18:08 +00008338fi
8339
8340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8342echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8343if test "${ac_cv_search_opendir+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008345else
8346 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347cat >conftest.$ac_ext <<_ACEOF
8348/* confdefs.h. */
8349_ACEOF
8350cat confdefs.h >>conftest.$ac_ext
8351cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008352/* end confdefs.h. */
8353
8354/* Override any GCC internal prototype to avoid an error.
8355 Use char because int might match the return type of a GCC
8356 builtin and then its argument prototype would still apply. */
8357#ifdef __cplusplus
8358extern "C"
8359#endif
8360char opendir ();
8361int
8362main ()
8363{
8364return opendir ();
8365 ;
8366 return 0;
8367}
8368_ACEOF
8369for ac_lib in '' x; do
8370 if test -z "$ac_lib"; then
8371 ac_res="none required"
8372 else
8373 ac_res=-l$ac_lib
8374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8375 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008376 rm -f conftest.$ac_objext conftest$ac_exeext
8377if { (ac_try="$ac_link"
8378case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381esac
8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_link") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391 { (case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394esac
8395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_try") 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008410 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008411else
8412 echo "$as_me: failed program was:" >&5
8413sed 's/^/| /' conftest.$ac_ext >&5
8414
8415
Reid Spencera773bd52006-08-04 18:18:08 +00008416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417
Bill Wendlingebcceee2009-04-18 11:20:33 +00008418rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008419 conftest$ac_exeext
8420 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008421 break
8422fi
8423done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424if test "${ac_cv_search_opendir+set}" = set; then
8425 :
Reid Spencera773bd52006-08-04 18:18:08 +00008426else
8427 ac_cv_search_opendir=no
8428fi
8429rm conftest.$ac_ext
8430LIBS=$ac_func_search_save_LIBS
8431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008432{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8433echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008434ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8437
8438fi
8439
8440fi
John Criswell7a73b802003-06-30 21:59:07 +00008441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442
John Criswell7a73b802003-06-30 21:59:07 +00008443for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444do
8445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451fi
8452ac_res=`eval echo '${'$as_ac_Header'}'`
8453 { echo "$as_me:$LINENO: result: $ac_res" >&5
8454echo "${ECHO_T}$ac_res" >&6; }
8455else
8456 # Is the header compilable?
8457{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8459cat >conftest.$ac_ext <<_ACEOF
8460/* confdefs.h. */
8461_ACEOF
8462cat confdefs.h >>conftest.$ac_ext
8463cat >>conftest.$ac_ext <<_ACEOF
8464/* end confdefs.h. */
8465$ac_includes_default
8466#include <$ac_header>
8467_ACEOF
8468rm -f conftest.$ac_objext
8469if { (ac_try="$ac_compile"
8470case "(($ac_try" in
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8473esac
8474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_compile") 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8483 { (case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486esac
8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_try") 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
8497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_header_compiler=yes
8503else
8504 echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 ac_header_compiler=no
8508fi
8509
8510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512echo "${ECHO_T}$ac_header_compiler" >&6; }
8513
8514# Is the header present?
8515{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8517cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
8523#include <$ac_header>
8524_ACEOF
8525if { (ac_try="$ac_cpp conftest.$ac_ext"
8526case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529esac
8530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } >/dev/null; then
8538 if test -s conftest.err; then
8539 ac_cpp_err=$ac_c_preproc_warn_flag
8540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8541 else
8542 ac_cpp_err=
8543 fi
8544else
8545 ac_cpp_err=yes
8546fi
8547if test -z "$ac_cpp_err"; then
8548 ac_header_preproc=yes
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_header_preproc=no
8554fi
8555
8556rm -f conftest.err conftest.$ac_ext
8557{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8558echo "${ECHO_T}$ac_header_preproc" >&6; }
8559
8560# So? What about this header?
8561case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8562 yes:no: )
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8566echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8567 ac_header_preproc=yes
8568 ;;
8569 no:yes:* )
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8571echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8573echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8575echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8577echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8579echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8581echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8582 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008583## ------------------------------------ ##
8584## Report this to http://llvm.org/bugs/ ##
8585## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008586_ASBOX
8587 ) | sed "s/^/$as_me: WARNING: /" >&2
8588 ;;
8589esac
8590{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595 eval "$as_ac_Header=\$ac_header_preproc"
8596fi
8597ac_res=`eval echo '${'$as_ac_Header'}'`
8598 { echo "$as_me:$LINENO: result: $ac_res" >&5
8599echo "${ECHO_T}$ac_res" >&6; }
8600
8601fi
8602if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008603 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008605_ACEOF
8606
8607fi
8608
8609done
8610
Reid Spencera773bd52006-08-04 18:18:08 +00008611# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008612if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008613 enableval=$enable_ltdl_install;
8614fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008615
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008617
8618
8619if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008620 INSTALL_LTDL_TRUE=
8621 INSTALL_LTDL_FALSE='#'
8622else
8623 INSTALL_LTDL_TRUE='#'
8624 INSTALL_LTDL_FALSE=
8625fi
8626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008627
8628
8629if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008630 CONVENIENCE_LTDL_TRUE=
8631 CONVENIENCE_LTDL_FALSE='#'
8632else
8633 CONVENIENCE_LTDL_TRUE='#'
8634 CONVENIENCE_LTDL_FALSE=
8635fi
8636
8637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008638{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8639echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008640library_names_spec=
8641libname_spec='lib$name'
8642soname_spec=
8643shrext_cmds=".so"
8644postinstall_cmds=
8645postuninstall_cmds=
8646finish_cmds=
8647finish_eval=
8648shlibpath_var=
8649shlibpath_overrides_runpath=unknown
8650version_type=none
8651dynamic_linker="$host_os ld.so"
8652sys_lib_dlsearch_path_spec="/lib /usr/lib"
8653if test "$GCC" = yes; then
8654 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8655 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8656 # if the path contains ";" then we assume it to be the separator
8657 # otherwise default to the standard path separator (i.e. ":") - it is
8658 # assumed that no part of a normal pathname contains ";" but that should
8659 # okay in the real world where ";" in dirpaths is itself problematic.
8660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8661 else
8662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8663 fi
8664else
8665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8666fi
8667need_lib_prefix=unknown
8668hardcode_into_libs=no
8669
8670# when you set need_version to no, make sure it does not cause -set_version
8671# flags to be left without arguments
8672need_version=unknown
8673
8674case $host_os in
8675aix3*)
8676 version_type=linux
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8678 shlibpath_var=LIBPATH
8679
8680 # AIX 3 has no versioning support, so we append a major version to the name.
8681 soname_spec='${libname}${release}${shared_ext}$major'
8682 ;;
8683
8684aix4* | aix5*)
8685 version_type=linux
8686 need_lib_prefix=no
8687 need_version=no
8688 hardcode_into_libs=yes
8689 if test "$host_cpu" = ia64; then
8690 # AIX 5 supports IA64
8691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 else
8694 # With GCC up to 2.95.x, collect2 would create an import file
8695 # for dependence libraries. The import file would start with
8696 # the line `#! .'. This would cause the generated library to
8697 # depend on `.', always an invalid library. This was fixed in
8698 # development snapshots of GCC prior to 3.0.
8699 case $host_os in
8700 aix4 | aix4.[01] | aix4.[01].*)
8701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8702 echo ' yes '
8703 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8704 :
8705 else
8706 can_build_shared=no
8707 fi
8708 ;;
8709 esac
8710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8711 # soname into executable. Probably we can add versioning support to
8712 # collect2, so additional links can be useful in future.
8713 if test "$aix_use_runtimelinking" = yes; then
8714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8715 # instead of lib<name>.a to let people know that these are not
8716 # typical AIX shared libraries.
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718 else
8719 # We preserve .a as extension for shared libraries through AIX4.2
8720 # and later when we are not doing run time linking.
8721 library_names_spec='${libname}${release}.a $libname.a'
8722 soname_spec='${libname}${release}${shared_ext}$major'
8723 fi
8724 shlibpath_var=LIBPATH
8725 fi
8726 ;;
8727
8728amigaos*)
8729 library_names_spec='$libname.ixlibrary $libname.a'
8730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8731 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'
8732 ;;
8733
8734beos*)
8735 library_names_spec='${libname}${shared_ext}'
8736 dynamic_linker="$host_os ld.so"
8737 shlibpath_var=LIBRARY_PATH
8738 ;;
8739
8740bsdi[45]*)
8741 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8746 shlibpath_var=LD_LIBRARY_PATH
8747 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8748 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8749 # the default ld.so.conf also contains /usr/contrib/lib and
8750 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8751 # libtool to hard-code these into programs
8752 ;;
8753
8754cygwin* | mingw* | pw32*)
8755 version_type=windows
8756 shrext_cmds=".dll"
8757 need_version=no
8758 need_lib_prefix=no
8759
8760 case $GCC,$host_os in
8761 yes,cygwin* | yes,mingw* | yes,pw32*)
8762 library_names_spec='$libname.dll.a'
8763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8764 postinstall_cmds='base_file=`basename \${file}`~
8765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8766 dldir=$destdir/`dirname \$dlpath`~
8767 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008768 $install_prog $dir/$dlname \$dldir/$dlname~
8769 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8771 dlpath=$dir/\$dldll~
8772 $rm \$dlpath'
8773 shlibpath_overrides_runpath=yes
8774
8775 case $host_os in
8776 cygwin*)
8777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8779 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8780 ;;
8781 mingw*)
8782 # MinGW DLLs use traditional 'lib' prefix
8783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8785 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8786 # It is most probably a Windows format PATH printed by
8787 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8788 # path with ; separators, and with drive letters. We can handle the
8789 # drive letters (cygwin fileutils understands them), so leave them,
8790 # especially as we might pass files found there to a mingw objdump,
8791 # which wouldn't understand a cygwinified path. Ahh.
8792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8793 else
8794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8795 fi
8796 ;;
8797 pw32*)
8798 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008799 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 +00008800 ;;
8801 esac
8802 ;;
8803
8804 *)
8805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8806 ;;
8807 esac
8808 dynamic_linker='Win32 ld.exe'
8809 # FIXME: first we should search . and the directory the executable is in
8810 shlibpath_var=PATH
8811 ;;
8812
8813darwin* | rhapsody*)
8814 dynamic_linker="$host_os dyld"
8815 version_type=darwin
8816 need_lib_prefix=no
8817 need_version=no
8818 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8819 soname_spec='${libname}${release}${major}$shared_ext'
8820 shlibpath_overrides_runpath=yes
8821 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008822 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008823 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8824 if test "$GCC" = yes; then
8825 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"`
8826 else
8827 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8828 fi
8829 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8830 ;;
8831
8832dgux*)
8833 version_type=linux
8834 need_lib_prefix=no
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 ;;
8840
Eric Christopher360fa9a2011-10-26 00:42:12 +00008841freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008842 dynamic_linker=no
8843 ;;
8844
8845kfreebsd*-gnu)
8846 version_type=linux
8847 need_lib_prefix=no
8848 need_version=no
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 shlibpath_var=LD_LIBRARY_PATH
8852 shlibpath_overrides_runpath=no
8853 hardcode_into_libs=yes
8854 dynamic_linker='GNU ld.so'
8855 ;;
8856
Reid Spencera773bd52006-08-04 18:18:08 +00008857freebsd* | dragonfly*)
8858 # DragonFly does not have aout. When/if they implement a new
8859 # versioning mechanism, adjust this.
8860 if test -x /usr/bin/objformat; then
8861 objformat=`/usr/bin/objformat`
8862 else
8863 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008864 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008865 *) objformat=elf ;;
8866 esac
8867 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008868 version_type=freebsd-$objformat
8869 case $version_type in
8870 freebsd-elf*)
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8872 need_version=no
8873 need_lib_prefix=no
8874 ;;
8875 freebsd-*)
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8877 need_version=yes
8878 ;;
8879 esac
8880 shlibpath_var=LD_LIBRARY_PATH
8881 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008882 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008883 shlibpath_overrides_runpath=yes
8884 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008885 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008886 shlibpath_overrides_runpath=yes
8887 hardcode_into_libs=yes
8888 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008889 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8890 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008891 shlibpath_overrides_runpath=no
8892 hardcode_into_libs=yes
8893 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008894 freebsd*) # from 4.6 on
8895 shlibpath_overrides_runpath=yes
8896 hardcode_into_libs=yes
8897 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008898 esac
8899 ;;
8900
8901gnu*)
8902 version_type=linux
8903 need_lib_prefix=no
8904 need_version=no
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 hardcode_into_libs=yes
8909 ;;
8910
8911hpux9* | hpux10* | hpux11*)
8912 # Give a soname corresponding to the major version so that dld.sl refuses to
8913 # link against other versions.
8914 version_type=sunos
8915 need_lib_prefix=no
8916 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008917 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008918 ia64*)
8919 shrext_cmds='.so'
8920 hardcode_into_libs=yes
8921 dynamic_linker="$host_os dld.so"
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 if test "X$HPUX_IA64_MODE" = X32; then
8927 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8928 else
8929 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8930 fi
8931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8932 ;;
8933 hppa*64*)
8934 shrext_cmds='.sl'
8935 hardcode_into_libs=yes
8936 dynamic_linker="$host_os dld.sl"
8937 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8943 ;;
8944 *)
8945 shrext_cmds='.sl'
8946 dynamic_linker="$host_os dld.sl"
8947 shlibpath_var=SHLIB_PATH
8948 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 ;;
8952 esac
8953 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8954 postinstall_cmds='chmod 555 $lib'
8955 ;;
8956
Reid Spencera773bd52006-08-04 18:18:08 +00008957interix3*)
8958 version_type=linux
8959 need_lib_prefix=no
8960 need_version=no
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 shlibpath_overrides_runpath=no
8966 hardcode_into_libs=yes
8967 ;;
8968
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008969irix5* | irix6* | nonstopux*)
8970 case $host_os in
8971 nonstopux*) version_type=nonstopux ;;
8972 *)
8973 if test "$lt_cv_prog_gnu_ld" = yes; then
8974 version_type=linux
8975 else
8976 version_type=irix
8977 fi ;;
8978 esac
8979 need_lib_prefix=no
8980 need_version=no
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8983 case $host_os in
8984 irix5* | nonstopux*)
8985 libsuff= shlibsuff=
8986 ;;
8987 *)
8988 case $LD in # libtool.m4 will add one of these switches to LD
8989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8990 libsuff= shlibsuff= libmagic=32-bit;;
8991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8992 libsuff=32 shlibsuff=N32 libmagic=N32;;
8993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8994 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8995 *) libsuff= shlibsuff= libmagic=never-match;;
8996 esac
8997 ;;
8998 esac
8999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9000 shlibpath_overrides_runpath=no
9001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9003 hardcode_into_libs=yes
9004 ;;
9005
9006# No shared lib support for Linux oldld, aout, or coff.
9007linux*oldld* | linux*aout* | linux*coff*)
9008 dynamic_linker=no
9009 ;;
9010
9011# This must be Linux ELF.
9012linux*)
9013 version_type=linux
9014 need_lib_prefix=no
9015 need_version=no
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=no
9021 # This implies no fast_install, which is unacceptable.
9022 # Some rework will be needed to allow for fast_install
9023 # before this can be enabled.
9024 hardcode_into_libs=yes
9025
9026 # Append ld.so.conf contents to the search path
9027 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009028 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 +00009029 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9030 fi
9031
9032 # We used to test for /lib/ld.so.1 and disable shared libraries on
9033 # powerpc, because MkLinux only supported shared libraries with the
9034 # GNU dynamic linker. Since this was broken with cross compilers,
9035 # most powerpc-linux boxes support dynamic linking these days and
9036 # people can always --disable-shared, the test was removed, and we
9037 # assume the GNU/Linux dynamic linker is in use.
9038 dynamic_linker='GNU/Linux ld.so'
9039 ;;
9040
9041knetbsd*-gnu)
9042 version_type=linux
9043 need_lib_prefix=no
9044 need_version=no
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=no
9049 hardcode_into_libs=yes
9050 dynamic_linker='GNU ld.so'
9051 ;;
9052
9053netbsd*)
9054 version_type=sunos
9055 need_lib_prefix=no
9056 need_version=no
9057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9060 dynamic_linker='NetBSD (a.out) ld.so'
9061 else
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 dynamic_linker='NetBSD ld.elf_so'
9065 fi
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes
9068 hardcode_into_libs=yes
9069 ;;
9070
9071newsos6)
9072 version_type=linux
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 ;;
9077
9078nto-qnx*)
9079 version_type=linux
9080 need_lib_prefix=no
9081 need_version=no
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=yes
9086 ;;
9087
Eric Christopherb0f67592012-08-06 20:52:18 +00009088openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009089 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009090 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009091 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9093 case $host_os in
9094 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9095 *) need_version=no ;;
9096 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9101 case $host_os in
9102 openbsd2.[89] | openbsd2.[89].*)
9103 shlibpath_overrides_runpath=no
9104 ;;
9105 *)
9106 shlibpath_overrides_runpath=yes
9107 ;;
9108 esac
9109 else
9110 shlibpath_overrides_runpath=yes
9111 fi
9112 ;;
9113
9114os2*)
9115 libname_spec='$name'
9116 shrext_cmds=".dll"
9117 need_lib_prefix=no
9118 library_names_spec='$libname${shared_ext} $libname.a'
9119 dynamic_linker='OS/2 ld.exe'
9120 shlibpath_var=LIBPATH
9121 ;;
9122
9123osf3* | osf4* | osf5*)
9124 version_type=osf
9125 need_lib_prefix=no
9126 need_version=no
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9132 ;;
9133
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134solaris*)
9135 version_type=linux
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9143 # ldd complains unless libraries are executable
9144 postinstall_cmds='chmod +x $lib'
9145 ;;
9146
9147sunos4*)
9148 version_type=sunos
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=yes
9153 if test "$with_gnu_ld" = yes; then
9154 need_lib_prefix=no
9155 fi
9156 need_version=yes
9157 ;;
9158
Reid Spencera773bd52006-08-04 18:18:08 +00009159sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009160 version_type=linux
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 case $host_vendor in
9165 sni)
9166 shlibpath_overrides_runpath=no
9167 need_lib_prefix=no
9168 export_dynamic_flag_spec='${wl}-Blargedynsym'
9169 runpath_var=LD_RUN_PATH
9170 ;;
9171 siemens)
9172 need_lib_prefix=no
9173 ;;
9174 motorola)
9175 need_lib_prefix=no
9176 need_version=no
9177 shlibpath_overrides_runpath=no
9178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9179 ;;
9180 esac
9181 ;;
9182
9183sysv4*MP*)
9184 if test -d /usr/nec ;then
9185 version_type=linux
9186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9187 soname_spec='$libname${shared_ext}.$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9189 fi
9190 ;;
9191
Reid Spencera773bd52006-08-04 18:18:08 +00009192sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9193 version_type=freebsd-elf
9194 need_lib_prefix=no
9195 need_version=no
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 hardcode_into_libs=yes
9200 if test "$with_gnu_ld" = yes; then
9201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9202 shlibpath_overrides_runpath=no
9203 else
9204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9205 shlibpath_overrides_runpath=yes
9206 case $host_os in
9207 sco3.2v5*)
9208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9209 ;;
9210 esac
9211 fi
9212 sys_lib_dlsearch_path_spec='/usr/lib'
9213 ;;
9214
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215uts4*)
9216 version_type=linux
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 ;;
9221
9222*)
9223 dynamic_linker=no
9224 ;;
9225esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009226{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9227echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228test "$dynamic_linker" = no && can_build_shared=no
9229
Reid Spencera773bd52006-08-04 18:18:08 +00009230variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9231if test "$GCC" = yes; then
9232 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9233fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009234
Reid Spencera773bd52006-08-04 18:18:08 +00009235
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009236{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9237echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9238if test "${libltdl_cv_shlibext+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009240else
9241
9242module=yes
9243eval libltdl_cv_shlibext=$shrext_cmds
9244
9245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009246{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9247echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248if test -n "$libltdl_cv_shlibext"; then
9249
9250cat >>confdefs.h <<_ACEOF
9251#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9252_ACEOF
9253
9254fi
9255
9256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9258echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9259if test "${libltdl_cv_shlibpath_var+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261else
9262 libltdl_cv_shlibpath_var="$shlibpath_var"
9263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009264{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9265echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009266if test -n "$libltdl_cv_shlibpath_var"; then
9267
9268cat >>confdefs.h <<_ACEOF
9269#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9270_ACEOF
9271
9272fi
9273
9274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009275{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9276echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9277if test "${libltdl_cv_sys_search_path+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279else
9280 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009282{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9283echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009284if test -n "$libltdl_cv_sys_search_path"; then
9285 sys_search_path=
9286 for dir in $libltdl_cv_sys_search_path; do
9287 if test -z "$sys_search_path"; then
9288 sys_search_path="$dir"
9289 else
9290 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9291 fi
9292 done
9293
9294cat >>confdefs.h <<_ACEOF
9295#define LTDL_SYSSEARCHPATH "$sys_search_path"
9296_ACEOF
9297
9298fi
9299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009300{ echo "$as_me:$LINENO: checking for objdir" >&5
9301echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9302if test "${libltdl_cv_objdir+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009304else
9305 libltdl_cv_objdir="$objdir"
9306 if test -n "$objdir"; then
9307 :
9308 else
9309 rm -f .libs 2>/dev/null
9310 mkdir .libs 2>/dev/null
9311 if test -d .libs; then
9312 libltdl_cv_objdir=.libs
9313 else
9314 # MS-DOS does not allow filenames that begin with a dot.
9315 libltdl_cv_objdir=_libs
9316 fi
9317 rmdir .libs 2>/dev/null
9318 fi
9319
9320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009321{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9322echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323
9324cat >>confdefs.h <<_ACEOF
9325#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9326_ACEOF
9327
9328
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009329
9330
9331
9332
9333# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009334{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9335echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9336if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338else
9339
9340# These are sane defaults that work on at least a few old systems.
9341# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9342
9343# Character class describing NM global symbol codes.
9344symcode='[BCDEGRST]'
9345
9346# Regexp to match symbols that can be accessed directly from C.
9347sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9348
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009349# Transform an extracted symbol line into a proper C declaration
9350lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9351
9352# Transform an extracted symbol line into symbol name and symbol address
9353lt_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'"
9354
9355# Define system-specific variables.
9356case $host_os in
9357aix*)
9358 symcode='[BCDT]'
9359 ;;
9360cygwin* | mingw* | pw32*)
9361 symcode='[ABCDGISTW]'
9362 ;;
9363hpux*) # Its linker distinguishes data from code symbols
9364 if test "$host_cpu" = ia64; then
9365 symcode='[ABCDEGRST]'
9366 fi
9367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9368 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'"
9369 ;;
9370linux*)
9371 if test "$host_cpu" = ia64; then
9372 symcode='[ABCDGIRSTW]'
9373 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9374 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'"
9375 fi
9376 ;;
9377irix* | nonstopux*)
9378 symcode='[BCDEGRST]'
9379 ;;
9380osf*)
9381 symcode='[BCDEGQRST]'
9382 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009383solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009384 symcode='[BDRT]'
9385 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009386sco3.2v5*)
9387 symcode='[DT]'
9388 ;;
9389sysv4.2uw2*)
9390 symcode='[DT]'
9391 ;;
9392sysv5* | sco5v6* | unixware* | OpenUNIX*)
9393 symcode='[ABDT]'
9394 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009395sysv4)
9396 symcode='[DFNSTU]'
9397 ;;
9398esac
9399
9400# Handle CRLF in mingw tool chain
9401opt_cr=
9402case $build_os in
9403mingw*)
9404 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9405 ;;
9406esac
9407
9408# If we're using GNU nm, then use its standard symbol codes.
9409case `$NM -V 2>&1` in
9410*GNU* | *'with BFD'*)
9411 symcode='[ABCDGIRSTW]' ;;
9412esac
9413
9414# Try without a prefix undercore, then with it.
9415for ac_symprfx in "" "_"; do
9416
Reid Spencera773bd52006-08-04 18:18:08 +00009417 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9418 symxfrm="\\1 $ac_symprfx\\2 \\2"
9419
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009421 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 +00009422
9423 # Check to see that the pipe works correctly.
9424 pipe_works=no
9425
9426 rm -f conftest*
9427 cat > conftest.$ac_ext <<EOF
9428#ifdef __cplusplus
9429extern "C" {
9430#endif
9431char nm_test_var;
9432void nm_test_func(){}
9433#ifdef __cplusplus
9434}
9435#endif
9436int main(){nm_test_var='a';nm_test_func();return(0);}
9437EOF
9438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009440 (eval $ac_compile) 2>&5
9441 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009444 # Now try to grab the symbols.
9445 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009446 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 +00009447 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9448 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451 # Try sorting and uniquifying the output.
9452 if sort "$nlist" | uniq > "$nlist"T; then
9453 mv -f "$nlist"T "$nlist"
9454 else
9455 rm -f "$nlist"T
9456 fi
9457
9458 # Make sure that we snagged all the symbols we need.
9459 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9460 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9461 cat <<EOF > conftest.$ac_ext
9462#ifdef __cplusplus
9463extern "C" {
9464#endif
9465
9466EOF
9467 # Now generate the symbol file.
9468 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9469
9470 cat <<EOF >> conftest.$ac_ext
9471#if defined (__STDC__) && __STDC__
9472# define lt_ptr_t void *
9473#else
9474# define lt_ptr_t char *
9475# define const
9476#endif
9477
9478/* The mapping between symbol names and symbols. */
9479const struct {
9480 const char *name;
9481 lt_ptr_t address;
9482}
9483lt_preloaded_symbols[] =
9484{
9485EOF
9486 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9487 cat <<\EOF >> conftest.$ac_ext
9488 {0, (lt_ptr_t) 0}
9489};
9490
9491#ifdef __cplusplus
9492}
9493#endif
9494EOF
9495 # Now try linking the two files.
9496 mv conftest.$ac_objext conftstm.$ac_objext
9497 lt_save_LIBS="$LIBS"
9498 lt_save_CFLAGS="$CFLAGS"
9499 LIBS="conftstm.$ac_objext"
9500 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502 (eval $ac_link) 2>&5
9503 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506 pipe_works=yes
9507 fi
9508 LIBS="$lt_save_LIBS"
9509 CFLAGS="$lt_save_CFLAGS"
9510 else
9511 echo "cannot find nm_test_func in $nlist" >&5
9512 fi
9513 else
9514 echo "cannot find nm_test_var in $nlist" >&5
9515 fi
9516 else
9517 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9518 fi
9519 else
9520 echo "$progname: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 fi
9523 rm -f conftest* conftst*
9524
9525 # Do not use the global_symbol_pipe unless it works.
9526 if test "$pipe_works" = yes; then
9527 break
9528 else
9529 lt_cv_sys_global_symbol_pipe=
9530 fi
9531done
9532
9533fi
9534
9535if test -z "$lt_cv_sys_global_symbol_pipe"; then
9536 lt_cv_sys_global_symbol_to_cdecl=
9537fi
9538if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009539 { echo "$as_me:$LINENO: result: failed" >&5
9540echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009542 { echo "$as_me:$LINENO: result: ok" >&5
9543echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009544fi
9545
9546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009547{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9548echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9549if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009551else
9552 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9553 libltdl_cv_preloaded_symbols=yes
9554 else
9555 libltdl_cv_preloaded_symbols=no
9556 fi
9557
9558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009559{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9560echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009561if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009563cat >>confdefs.h <<\_ACEOF
9564#define HAVE_PRELOADED_SYMBOLS 1
9565_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009566
9567fi
9568
9569LIBADD_DL=
9570
9571ac_ext=c
9572ac_cpp='$CPP $CPPFLAGS'
9573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575ac_compiler_gnu=$ac_cv_c_compiler_gnu
9576
9577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009578{ echo "$as_me:$LINENO: checking for shl_load" >&5
9579echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9580if test "${ac_cv_func_shl_load+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583 cat >conftest.$ac_ext <<_ACEOF
9584/* confdefs.h. */
9585_ACEOF
9586cat confdefs.h >>conftest.$ac_ext
9587cat >>conftest.$ac_ext <<_ACEOF
9588/* end confdefs.h. */
9589/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9591#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009593/* System header to define __stub macros and hopefully few prototypes,
9594 which can conflict with char shl_load (); below.
9595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9596 <limits.h> exists even on freestanding compilers. */
9597
9598#ifdef __STDC__
9599# include <limits.h>
9600#else
9601# include <assert.h>
9602#endif
9603
9604#undef shl_load
9605
9606/* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9609#ifdef __cplusplus
9610extern "C"
9611#endif
9612char shl_load ();
9613/* The GNU C library defines this for functions which it implements
9614 to always fail with ENOSYS. Some functions are actually named
9615 something starting with __ and the normal name is an alias. */
9616#if defined __stub_shl_load || defined __stub___shl_load
9617choke me
9618#endif
9619
9620int
9621main ()
9622{
9623return shl_load ();
9624 ;
9625 return 0;
9626}
9627_ACEOF
9628rm -f conftest.$ac_objext conftest$ac_exeext
9629if { (ac_try="$ac_link"
9630case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633esac
9634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_link") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656esac
9657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_try") 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_func_shl_load=yes
9663else
9664 echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667 ac_cv_func_shl_load=no
9668fi
9669
9670rm -f core conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9672fi
9673{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9674echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9675if test $ac_cv_func_shl_load = yes; then
9676
9677cat >>confdefs.h <<\_ACEOF
9678#define HAVE_SHL_LOAD 1
9679_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680
9681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009682 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9683echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9684if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009686else
9687 ac_check_lib_save_LIBS=$LIBS
9688LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009689cat >conftest.$ac_ext <<_ACEOF
9690/* confdefs.h. */
9691_ACEOF
9692cat confdefs.h >>conftest.$ac_ext
9693cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009694/* end confdefs.h. */
9695
Reid Spencera773bd52006-08-04 18:18:08 +00009696/* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699#ifdef __cplusplus
9700extern "C"
9701#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009702char shl_load ();
9703int
9704main ()
9705{
Reid Spencera773bd52006-08-04 18:18:08 +00009706return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009707 ;
9708 return 0;
9709}
9710_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009711rm -f conftest.$ac_objext conftest$ac_exeext
9712if { (ac_try="$ac_link"
9713case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739esac
9740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_try") 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745 ac_cv_lib_dld_shl_load=yes
9746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009747 echo "$as_me: failed program was:" >&5
9748sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009752
Bill Wendlingebcceee2009-04-18 11:20:33 +00009753rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009754 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755LIBS=$ac_check_lib_save_LIBS
9756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009757{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9758echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9759if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009761cat >>confdefs.h <<\_ACEOF
9762#define HAVE_SHL_LOAD 1
9763_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764
9765 LIBADD_DL="$LIBADD_DL -ldld"
9766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009767 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9768echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9769if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771else
9772 ac_check_lib_save_LIBS=$LIBS
9773LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009774cat >conftest.$ac_ext <<_ACEOF
9775/* confdefs.h. */
9776_ACEOF
9777cat confdefs.h >>conftest.$ac_ext
9778cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779/* end confdefs.h. */
9780
Reid Spencera773bd52006-08-04 18:18:08 +00009781/* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784#ifdef __cplusplus
9785extern "C"
9786#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787char dlopen ();
9788int
9789main ()
9790{
Reid Spencera773bd52006-08-04 18:18:08 +00009791return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009792 ;
9793 return 0;
9794}
9795_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009796rm -f conftest.$ac_objext conftest$ac_exeext
9797if { (ac_try="$ac_link"
9798case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801esac
9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_link") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814esac
9815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (case "(($ac_try" in
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9824esac
9825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_try") 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009830 ac_cv_lib_dl_dlopen=yes
9831else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009832 echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
9834
9835 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009837
Bill Wendlingebcceee2009-04-18 11:20:33 +00009838rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009839 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840LIBS=$ac_check_lib_save_LIBS
9841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009842{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9843echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9844if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009846cat >>confdefs.h <<\_ACEOF
9847#define HAVE_LIBDL 1
9848_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849
9850 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009852 cat >conftest.$ac_ext <<_ACEOF
9853/* confdefs.h. */
9854_ACEOF
9855cat confdefs.h >>conftest.$ac_ext
9856cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857/* end confdefs.h. */
9858#if HAVE_DLFCN_H
9859# include <dlfcn.h>
9860#endif
9861
9862int
9863main ()
9864{
9865dlopen(0, 0);
9866 ;
9867 return 0;
9868}
9869_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009870rm -f conftest.$ac_objext conftest$ac_exeext
9871if { (ac_try="$ac_link"
9872case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9875esac
9876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_link") 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9885 { (case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888esac
9889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890 (eval "$ac_try") 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; } &&
9894 { ac_try='test -s conftest$ac_exeext'
9895 { (case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898esac
9899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_try") 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009905cat >>confdefs.h <<\_ACEOF
9906#define HAVE_LIBDL 1
9907_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908 libltdl_cv_func_dlopen="yes"
9909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009910 echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9914echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9915if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9916 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917else
9918 ac_check_lib_save_LIBS=$LIBS
9919LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009920cat >conftest.$ac_ext <<_ACEOF
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925/* end confdefs.h. */
9926
Reid Spencera773bd52006-08-04 18:18:08 +00009927/* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930#ifdef __cplusplus
9931extern "C"
9932#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933char dlopen ();
9934int
9935main ()
9936{
Reid Spencera773bd52006-08-04 18:18:08 +00009937return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938 ;
9939 return 0;
9940}
9941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009942rm -f conftest.$ac_objext conftest$ac_exeext
9943if { (ac_try="$ac_link"
9944case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9947esac
9948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_link") 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970esac
9971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_try") 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976 ac_cv_lib_svld_dlopen=yes
9977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009978 echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009983
Bill Wendlingebcceee2009-04-18 11:20:33 +00009984rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009985 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986LIBS=$ac_check_lib_save_LIBS
9987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009988{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9989echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9990if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009992cat >>confdefs.h <<\_ACEOF
9993#define HAVE_LIBDL 1
9994_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995
9996 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009998 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9999echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10000if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010002else
10003 ac_check_lib_save_LIBS=$LIBS
10004LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010005cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010010/* end confdefs.h. */
10011
Reid Spencera773bd52006-08-04 18:18:08 +000010012/* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010015#ifdef __cplusplus
10016extern "C"
10017#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018char dld_link ();
10019int
10020main ()
10021{
Reid Spencera773bd52006-08-04 18:18:08 +000010022return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023 ;
10024 return 0;
10025}
10026_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010027rm -f conftest.$ac_objext conftest$ac_exeext
10028if { (ac_try="$ac_link"
10029case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032esac
10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10042 { (case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045esac
10046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_try") 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055esac
10056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061 ac_cv_lib_dld_dld_link=yes
10062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010063 echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010068
Bill Wendlingebcceee2009-04-18 11:20:33 +000010069rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010070 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010071LIBS=$ac_check_lib_save_LIBS
10072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010073{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10074echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10075if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010077cat >>confdefs.h <<\_ACEOF
10078#define HAVE_DLD 1
10079_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080
10081 LIBADD_DL="$LIBADD_DL -ldld"
10082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010083 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10084echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10085if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088 cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h. */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
10093/* end confdefs.h. */
10094/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10096#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010098/* System header to define __stub macros and hopefully few prototypes,
10099 which can conflict with char _dyld_func_lookup (); below.
10100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10101 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010103#ifdef __STDC__
10104# include <limits.h>
10105#else
10106# include <assert.h>
10107#endif
10108
10109#undef _dyld_func_lookup
10110
10111/* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
10114#ifdef __cplusplus
10115extern "C"
10116#endif
10117char _dyld_func_lookup ();
10118/* The GNU C library defines this for functions which it implements
10119 to always fail with ENOSYS. Some functions are actually named
10120 something starting with __ and the normal name is an alias. */
10121#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10122choke me
10123#endif
10124
10125int
10126main ()
10127{
10128return _dyld_func_lookup ();
10129 ;
10130 return 0;
10131}
10132_ACEOF
10133rm -f conftest.$ac_objext conftest$ac_exeext
10134if { (ac_try="$ac_link"
10135case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_func__dyld_func_lookup=yes
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173fi
Reid Spencera773bd52006-08-04 18:18:08 +000010174
Bill Wendlingebcceee2009-04-18 11:20:33 +000010175rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010176 conftest$ac_exeext conftest.$ac_ext
10177fi
10178{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10179echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10180if test $ac_cv_func__dyld_func_lookup = yes; then
10181
10182cat >>confdefs.h <<\_ACEOF
10183#define HAVE_DYLD 1
10184_ACEOF
10185
10186fi
10187
10188
10189fi
10190
10191
10192fi
10193
10194
10195fi
10196
10197rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199
10200fi
10201
10202
10203fi
10204
10205
10206fi
10207
10208
10209if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10210then
10211 lt_save_LIBS="$LIBS"
10212 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010213
10214for ac_func in dlerror
10215do
10216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10217{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10219if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221else
10222 cat >conftest.$ac_ext <<_ACEOF
10223/* confdefs.h. */
10224_ACEOF
10225cat confdefs.h >>conftest.$ac_ext
10226cat >>conftest.$ac_ext <<_ACEOF
10227/* end confdefs.h. */
10228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10230#define $ac_func innocuous_$ac_func
10231
10232/* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char $ac_func (); below.
10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235 <limits.h> exists even on freestanding compilers. */
10236
10237#ifdef __STDC__
10238# include <limits.h>
10239#else
10240# include <assert.h>
10241#endif
10242
10243#undef $ac_func
10244
10245/* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248#ifdef __cplusplus
10249extern "C"
10250#endif
10251char $ac_func ();
10252/* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255#if defined __stub_$ac_func || defined __stub___$ac_func
10256choke me
10257#endif
10258
10259int
10260main ()
10261{
10262return $ac_func ();
10263 ;
10264 return 0;
10265}
10266_ACEOF
10267rm -f conftest.$ac_objext conftest$ac_exeext
10268if { (ac_try="$ac_link"
10269case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272esac
10273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_link") 2>conftest.er1
10275 ac_status=$?
10276 grep -v '^ *+' conftest.er1 >conftest.err
10277 rm -f conftest.er1
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_try") 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295esac
10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 eval "$as_ac_var=yes"
10302else
10303 echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 eval "$as_ac_var=no"
10307fi
10308
10309rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311fi
10312ac_res=`eval echo '${'$as_ac_var'}'`
10313 { echo "$as_me:$LINENO: result: $ac_res" >&5
10314echo "${ECHO_T}$ac_res" >&6; }
10315if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010317#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318_ACEOF
10319
10320fi
10321done
10322
10323 LIBS="$lt_save_LIBS"
10324fi
10325ac_ext=c
10326ac_cpp='$CPP $CPPFLAGS'
10327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10329ac_compiler_gnu=$ac_cv_c_compiler_gnu
10330
10331
10332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010333{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10334echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10335if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010337else
10338 ac_cv_sys_symbol_underscore=no
10339 cat > conftest.$ac_ext <<EOF
10340void nm_test_func(){}
10341int main(){nm_test_func;return 0;}
10342EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344 (eval $ac_compile) 2>&5
10345 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348 # Now try to grab the symbols.
10349 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010350 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 +000010351 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10352 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010355 # See whether the symbols have a leading underscore.
10356 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10357 ac_cv_sys_symbol_underscore=yes
10358 else
10359 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10360 :
10361 else
10362 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10363 fi
10364 fi
10365 else
10366 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10367 fi
10368 else
10369 echo "configure: failed program was:" >&5
10370 cat conftest.c >&5
10371 fi
10372 rm -rf conftest*
10373
10374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010375{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10376echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377
10378
10379if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10380 if test x"$libltdl_cv_func_dlopen" = xyes ||
10381 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010382 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10383echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10384if test "${libltdl_cv_need_uscore+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386else
10387 libltdl_cv_need_uscore=unknown
10388 save_LIBS="$LIBS"
10389 LIBS="$LIBS $LIBADD_DL"
10390 if test "$cross_compiling" = yes; then :
10391 libltdl_cv_need_uscore=cross
10392else
10393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10394 lt_status=$lt_dlunknown
10395 cat > conftest.$ac_ext <<EOF
Roman Divackyd14baf42012-12-13 16:07:19 +000010396#line 10396 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010397#include "confdefs.h"
10398
10399#if HAVE_DLFCN_H
10400#include <dlfcn.h>
10401#endif
10402
10403#include <stdio.h>
10404
10405#ifdef RTLD_GLOBAL
10406# define LT_DLGLOBAL RTLD_GLOBAL
10407#else
10408# ifdef DL_GLOBAL
10409# define LT_DLGLOBAL DL_GLOBAL
10410# else
10411# define LT_DLGLOBAL 0
10412# endif
10413#endif
10414
10415/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10416 find out it does not work in some platform. */
10417#ifndef LT_DLLAZY_OR_NOW
10418# ifdef RTLD_LAZY
10419# define LT_DLLAZY_OR_NOW RTLD_LAZY
10420# else
10421# ifdef DL_LAZY
10422# define LT_DLLAZY_OR_NOW DL_LAZY
10423# else
10424# ifdef RTLD_NOW
10425# define LT_DLLAZY_OR_NOW RTLD_NOW
10426# else
10427# ifdef DL_NOW
10428# define LT_DLLAZY_OR_NOW DL_NOW
10429# else
10430# define LT_DLLAZY_OR_NOW 0
10431# endif
10432# endif
10433# endif
10434# endif
10435#endif
10436
10437#ifdef __cplusplus
10438extern "C" void exit (int);
10439#endif
10440
10441void fnord() { int i=42;}
10442int main ()
10443{
10444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10445 int status = $lt_dlunknown;
10446
10447 if (self)
10448 {
10449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10450 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10451 /* dlclose (self); */
10452 }
Reid Spencera773bd52006-08-04 18:18:08 +000010453 else
10454 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010455
10456 exit (status);
10457}
10458EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010460 (eval $ac_link) 2>&5
10461 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010464 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465 lt_status=$?
10466 case x$lt_status in
10467 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10468 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010469 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470 esac
10471 else :
10472 # compilation failed
10473
10474 fi
10475fi
10476rm -fr conftest*
10477
10478 LIBS="$save_LIBS"
10479
10480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010481{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10482echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483 fi
10484fi
10485
10486if test x"$libltdl_cv_need_uscore" = xyes; then
10487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010488cat >>confdefs.h <<\_ACEOF
10489#define NEED_USCORE 1
10490_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491
10492fi
10493
10494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010495{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10496echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10497if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499else
10500 # PORTME does your system automatically load deplibs for dlopen?
10501 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10502 # For now, we just catch OSes we know something about -- in the
10503 # future, we'll try test this programmatically.
10504 libltdl_cv_sys_dlopen_deplibs=unknown
10505 case "$host_os" in
10506 aix3*|aix4.1.*|aix4.2.*)
10507 # Unknown whether this is true for these versions of AIX, but
10508 # we want this `case' here to explicitly catch those versions.
10509 libltdl_cv_sys_dlopen_deplibs=unknown
10510 ;;
10511 aix[45]*)
10512 libltdl_cv_sys_dlopen_deplibs=yes
10513 ;;
10514 darwin*)
10515 # Assuming the user has installed a libdl from somewhere, this is true
10516 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10517 libltdl_cv_sys_dlopen_deplibs=yes
10518 ;;
10519 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10520 # GNU and its variants, using gnu ld.so (Glibc)
10521 libltdl_cv_sys_dlopen_deplibs=yes
10522 ;;
10523 hpux10*|hpux11*)
10524 libltdl_cv_sys_dlopen_deplibs=yes
10525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010526 interix*)
10527 libltdl_cv_sys_dlopen_deplibs=yes
10528 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 irix[12345]*|irix6.[01]*)
10530 # Catch all versions of IRIX before 6.2, and indicate that we don't
10531 # know how it worked for any of those versions.
10532 libltdl_cv_sys_dlopen_deplibs=unknown
10533 ;;
10534 irix*)
10535 # The case above catches anything before 6.2, and it's known that
10536 # at 6.2 and later dlopen does load deplibs.
10537 libltdl_cv_sys_dlopen_deplibs=yes
10538 ;;
10539 netbsd*)
10540 libltdl_cv_sys_dlopen_deplibs=yes
10541 ;;
10542 openbsd*)
10543 libltdl_cv_sys_dlopen_deplibs=yes
10544 ;;
10545 osf[1234]*)
10546 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10547 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010548 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549 libltdl_cv_sys_dlopen_deplibs=no
10550 ;;
10551 osf5.0|osf5.0a|osf5.1)
10552 # dlopen *does* load deplibs and with the right loader patch applied
10553 # it even uses RPATH in a shared library to search for shared objects
10554 # that the library depends on, but there's no easy way to know if that
10555 # patch is installed. Since this is the case, all we can really
10556 # say is unknown -- it depends on the patch being installed. If
10557 # it is, this changes to `yes'. Without it, it would be `no'.
10558 libltdl_cv_sys_dlopen_deplibs=unknown
10559 ;;
10560 osf*)
10561 # the two cases above should catch all versions of osf <= 5.1. Read
10562 # the comments above for what we know about them.
10563 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10564 # is used to find them so we can finally say `yes'.
10565 libltdl_cv_sys_dlopen_deplibs=yes
10566 ;;
10567 solaris*)
10568 libltdl_cv_sys_dlopen_deplibs=yes
10569 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10571 libltdl_cv_sys_dlopen_deplibs=yes
10572 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573 esac
10574
10575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010576{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10577echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010578if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010580cat >>confdefs.h <<\_ACEOF
10581#define LTDL_DLOPEN_DEPLIBS 1
10582_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583
10584fi
10585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010586
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010587for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010588do
10589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10595fi
10596ac_res=`eval echo '${'$as_ac_Header'}'`
10597 { echo "$as_me:$LINENO: result: $ac_res" >&5
10598echo "${ECHO_T}$ac_res" >&6; }
10599else
10600 # Is the header compilable?
10601{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10603cat >conftest.$ac_ext <<_ACEOF
10604/* confdefs.h. */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h. */
10609$ac_includes_default
10610#include <$ac_header>
10611_ACEOF
10612rm -f conftest.$ac_objext
10613if { (ac_try="$ac_compile"
10614case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617esac
10618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_compile") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630esac
10631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try='test -s conftest.$ac_objext'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640esac
10641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_header_compiler=yes
10647else
10648 echo "$as_me: failed program was:" >&5
10649sed 's/^/| /' conftest.$ac_ext >&5
10650
10651 ac_header_compiler=no
10652fi
10653
10654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10656echo "${ECHO_T}$ac_header_compiler" >&6; }
10657
10658# Is the header present?
10659{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10660echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10661cat >conftest.$ac_ext <<_ACEOF
10662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
10667#include <$ac_header>
10668_ACEOF
10669if { (ac_try="$ac_cpp conftest.$ac_ext"
10670case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673esac
10674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } >/dev/null; then
10682 if test -s conftest.err; then
10683 ac_cpp_err=$ac_c_preproc_warn_flag
10684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10685 else
10686 ac_cpp_err=
10687 fi
10688else
10689 ac_cpp_err=yes
10690fi
10691if test -z "$ac_cpp_err"; then
10692 ac_header_preproc=yes
10693else
10694 echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_header_preproc=no
10698fi
10699
10700rm -f conftest.err conftest.$ac_ext
10701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10702echo "${ECHO_T}$ac_header_preproc" >&6; }
10703
10704# So? What about this header?
10705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10706 yes:no: )
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10711 ac_header_preproc=yes
10712 ;;
10713 no:yes:* )
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10726 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010727## ------------------------------------ ##
10728## Report this to http://llvm.org/bugs/ ##
10729## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010730_ASBOX
10731 ) | sed "s/^/$as_me: WARNING: /" >&2
10732 ;;
10733esac
10734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738else
10739 eval "$as_ac_Header=\$ac_header_preproc"
10740fi
10741ac_res=`eval echo '${'$as_ac_Header'}'`
10742 { echo "$as_me:$LINENO: result: $ac_res" >&5
10743echo "${ECHO_T}$ac_res" >&6; }
10744
10745fi
10746if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010747 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749_ACEOF
10750
10751fi
10752
10753done
10754
10755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010756{ echo "$as_me:$LINENO: checking for error_t" >&5
10757echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10758if test "${ac_cv_type_error_t+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760else
10761 cat >conftest.$ac_ext <<_ACEOF
10762/* confdefs.h. */
10763_ACEOF
10764cat confdefs.h >>conftest.$ac_ext
10765cat >>conftest.$ac_ext <<_ACEOF
10766/* end confdefs.h. */
10767#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768# include <argz.h>
10769#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010770
10771typedef error_t ac__type_new_;
10772int
10773main ()
10774{
10775if ((ac__type_new_ *) 0)
10776 return 0;
10777if (sizeof (ac__type_new_))
10778 return 0;
10779 ;
10780 return 0;
10781}
10782_ACEOF
10783rm -f conftest.$ac_objext
10784if { (ac_try="$ac_compile"
10785case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10788esac
10789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_compile") 2>conftest.er1
10791 ac_status=$?
10792 grep -v '^ *+' conftest.er1 >conftest.err
10793 rm -f conftest.er1
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
10802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; } &&
10807 { ac_try='test -s conftest.$ac_objext'
10808 { (case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811esac
10812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_try") 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_cv_type_error_t=yes
10818else
10819 echo "$as_me: failed program was:" >&5
10820sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 ac_cv_type_error_t=no
10823fi
10824
10825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826fi
10827{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10828echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10829if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830
10831cat >>confdefs.h <<_ACEOF
10832#define HAVE_ERROR_T 1
10833_ACEOF
10834
10835
10836else
10837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010838cat >>confdefs.h <<\_ACEOF
10839#define error_t int
10840_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841
10842fi
10843
10844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010845
10846
10847
10848
10849
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010851do
10852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858 cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866#define $ac_func innocuous_$ac_func
10867
10868/* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10872
10873#ifdef __STDC__
10874# include <limits.h>
10875#else
10876# include <assert.h>
10877#endif
10878
10879#undef $ac_func
10880
10881/* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10884#ifdef __cplusplus
10885extern "C"
10886#endif
10887char $ac_func ();
10888/* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891#if defined __stub_$ac_func || defined __stub___$ac_func
10892choke me
10893#endif
10894
10895int
10896main ()
10897{
10898return $ac_func ();
10899 ;
10900 return 0;
10901}
10902_ACEOF
10903rm -f conftest.$ac_objext conftest$ac_exeext
10904if { (ac_try="$ac_link"
10905case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10918 { (case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_try") 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931esac
10932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_try") 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 eval "$as_ac_var=yes"
10938else
10939 echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 eval "$as_ac_var=no"
10943fi
10944
10945rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10947fi
10948ac_res=`eval echo '${'$as_ac_var'}'`
10949 { echo "$as_me:$LINENO: result: $ac_res" >&5
10950echo "${ECHO_T}$ac_res" >&6; }
10951if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954_ACEOF
10955
10956fi
10957done
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010978
10979
10980
10981
10982
10983
10984
10985
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010986for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10987 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010988do
10989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995fi
10996ac_res=`eval echo '${'$as_ac_Header'}'`
10997 { echo "$as_me:$LINENO: result: $ac_res" >&5
10998echo "${ECHO_T}$ac_res" >&6; }
10999else
11000 # Is the header compilable?
11001{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11003cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009$ac_includes_default
11010#include <$ac_header>
11011_ACEOF
11012rm -f conftest.$ac_objext
11013if { (ac_try="$ac_compile"
11014case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_compile") 2>conftest.er1
11020 ac_status=$?
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11046 ac_header_compiler=yes
11047else
11048 echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_header_compiler=no
11052fi
11053
11054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11056echo "${ECHO_T}$ac_header_compiler" >&6; }
11057
11058# Is the header present?
11059{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11061cat >conftest.$ac_ext <<_ACEOF
11062/* confdefs.h. */
11063_ACEOF
11064cat confdefs.h >>conftest.$ac_ext
11065cat >>conftest.$ac_ext <<_ACEOF
11066/* end confdefs.h. */
11067#include <$ac_header>
11068_ACEOF
11069if { (ac_try="$ac_cpp conftest.$ac_ext"
11070case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073esac
11074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } >/dev/null; then
11082 if test -s conftest.err; then
11083 ac_cpp_err=$ac_c_preproc_warn_flag
11084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11085 else
11086 ac_cpp_err=
11087 fi
11088else
11089 ac_cpp_err=yes
11090fi
11091if test -z "$ac_cpp_err"; then
11092 ac_header_preproc=yes
11093else
11094 echo "$as_me: failed program was:" >&5
11095sed 's/^/| /' conftest.$ac_ext >&5
11096
11097 ac_header_preproc=no
11098fi
11099
11100rm -f conftest.err conftest.$ac_ext
11101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11102echo "${ECHO_T}$ac_header_preproc" >&6; }
11103
11104# So? What about this header?
11105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11106 yes:no: )
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11111 ac_header_preproc=yes
11112 ;;
11113 no:yes:* )
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11126 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011127## ------------------------------------ ##
11128## Report this to http://llvm.org/bugs/ ##
11129## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011130_ASBOX
11131 ) | sed "s/^/$as_me: WARNING: /" >&2
11132 ;;
11133esac
11134{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
11139 eval "$as_ac_Header=\$ac_header_preproc"
11140fi
11141ac_res=`eval echo '${'$as_ac_Header'}'`
11142 { echo "$as_me:$LINENO: result: $ac_res" >&5
11143echo "${ECHO_T}$ac_res" >&6; }
11144
11145fi
11146if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011149_ACEOF
11150
11151fi
11152
11153done
11154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011155
11156
11157
11158
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011159for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011160do
11161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11167fi
11168ac_res=`eval echo '${'$as_ac_Header'}'`
11169 { echo "$as_me:$LINENO: result: $ac_res" >&5
11170echo "${ECHO_T}$ac_res" >&6; }
11171else
11172 # Is the header compilable?
11173{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11175cat >conftest.$ac_ext <<_ACEOF
11176/* confdefs.h. */
11177_ACEOF
11178cat confdefs.h >>conftest.$ac_ext
11179cat >>conftest.$ac_ext <<_ACEOF
11180/* end confdefs.h. */
11181$ac_includes_default
11182#include <$ac_header>
11183_ACEOF
11184rm -f conftest.$ac_objext
11185if { (ac_try="$ac_compile"
11186case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189esac
11190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_compile") 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11199 { (case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202esac
11203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_try") 2>&5
11205 ac_status=$?
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try='test -s conftest.$ac_objext'
11209 { (case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212esac
11213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_try") 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }; then
11218 ac_header_compiler=yes
11219else
11220 echo "$as_me: failed program was:" >&5
11221sed 's/^/| /' conftest.$ac_ext >&5
11222
11223 ac_header_compiler=no
11224fi
11225
11226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11228echo "${ECHO_T}$ac_header_compiler" >&6; }
11229
11230# Is the header present?
11231{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11233cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h. */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h. */
11239#include <$ac_header>
11240_ACEOF
11241if { (ac_try="$ac_cpp conftest.$ac_ext"
11242case "(($ac_try" in
11243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244 *) ac_try_echo=$ac_try;;
11245esac
11246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } >/dev/null; then
11254 if test -s conftest.err; then
11255 ac_cpp_err=$ac_c_preproc_warn_flag
11256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11257 else
11258 ac_cpp_err=
11259 fi
11260else
11261 ac_cpp_err=yes
11262fi
11263if test -z "$ac_cpp_err"; then
11264 ac_header_preproc=yes
11265else
11266 echo "$as_me: failed program was:" >&5
11267sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 ac_header_preproc=no
11270fi
11271
11272rm -f conftest.err conftest.$ac_ext
11273{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11274echo "${ECHO_T}$ac_header_preproc" >&6; }
11275
11276# So? What about this header?
11277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11278 yes:no: )
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11283 ac_header_preproc=yes
11284 ;;
11285 no:yes:* )
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11289echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11293echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11298 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011299## ------------------------------------ ##
11300## Report this to http://llvm.org/bugs/ ##
11301## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011302_ASBOX
11303 ) | sed "s/^/$as_me: WARNING: /" >&2
11304 ;;
11305esac
11306{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310else
11311 eval "$as_ac_Header=\$ac_header_preproc"
11312fi
11313ac_res=`eval echo '${'$as_ac_Header'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315echo "${ECHO_T}$ac_res" >&6; }
11316
11317fi
11318if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321_ACEOF
11322
11323fi
11324
11325done
11326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011327
11328
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011330do
11331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337fi
11338ac_res=`eval echo '${'$as_ac_Header'}'`
11339 { echo "$as_me:$LINENO: result: $ac_res" >&5
11340echo "${ECHO_T}$ac_res" >&6; }
11341else
11342 # Is the header compilable?
11343{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11345cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351$ac_includes_default
11352#include <$ac_header>
11353_ACEOF
11354rm -f conftest.$ac_objext
11355if { (ac_try="$ac_compile"
11356case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359esac
11360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_compile") 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369 { (case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372esac
11373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_try") 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11382esac
11383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_try") 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_header_compiler=yes
11389else
11390 echo "$as_me: failed program was:" >&5
11391sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 ac_header_compiler=no
11394fi
11395
11396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398echo "${ECHO_T}$ac_header_compiler" >&6; }
11399
11400# Is the header present?
11401{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11403cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409#include <$ac_header>
11410_ACEOF
11411if { (ac_try="$ac_cpp conftest.$ac_ext"
11412case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415esac
11416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null; then
11424 if test -s conftest.err; then
11425 ac_cpp_err=$ac_c_preproc_warn_flag
11426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11427 else
11428 ac_cpp_err=
11429 fi
11430else
11431 ac_cpp_err=yes
11432fi
11433if test -z "$ac_cpp_err"; then
11434 ac_header_preproc=yes
11435else
11436 echo "$as_me: failed program was:" >&5
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 ac_header_preproc=no
11440fi
11441
11442rm -f conftest.err conftest.$ac_ext
11443{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11444echo "${ECHO_T}$ac_header_preproc" >&6; }
11445
11446# So? What about this header?
11447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448 yes:no: )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11453 ac_header_preproc=yes
11454 ;;
11455 no:yes:* )
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11468 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011469## ------------------------------------ ##
11470## Report this to http://llvm.org/bugs/ ##
11471## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011472_ASBOX
11473 ) | sed "s/^/$as_me: WARNING: /" >&2
11474 ;;
11475esac
11476{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 eval "$as_ac_Header=\$ac_header_preproc"
11482fi
11483ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485echo "${ECHO_T}$ac_res" >&6; }
11486
11487fi
11488if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491_ACEOF
11492 break
11493fi
11494
11495done
11496
11497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011498
11499
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011501do
11502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11503{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11505if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11507else
11508 cat >conftest.$ac_ext <<_ACEOF
11509/* confdefs.h. */
11510_ACEOF
11511cat confdefs.h >>conftest.$ac_ext
11512cat >>conftest.$ac_ext <<_ACEOF
11513/* end confdefs.h. */
11514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11516#define $ac_func innocuous_$ac_func
11517
11518/* System header to define __stub macros and hopefully few prototypes,
11519 which can conflict with char $ac_func (); below.
11520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11521 <limits.h> exists even on freestanding compilers. */
11522
11523#ifdef __STDC__
11524# include <limits.h>
11525#else
11526# include <assert.h>
11527#endif
11528
11529#undef $ac_func
11530
11531/* Override any GCC internal prototype to avoid an error.
11532 Use char because int might match the return type of a GCC
11533 builtin and then its argument prototype would still apply. */
11534#ifdef __cplusplus
11535extern "C"
11536#endif
11537char $ac_func ();
11538/* The GNU C library defines this for functions which it implements
11539 to always fail with ENOSYS. Some functions are actually named
11540 something starting with __ and the normal name is an alias. */
11541#if defined __stub_$ac_func || defined __stub___$ac_func
11542choke me
11543#endif
11544
11545int
11546main ()
11547{
11548return $ac_func ();
11549 ;
11550 return 0;
11551}
11552_ACEOF
11553rm -f conftest.$ac_objext conftest$ac_exeext
11554if { (ac_try="$ac_link"
11555case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
11559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_link") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581esac
11582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 eval "$as_ac_var=yes"
11588else
11589 echo "$as_me: failed program was:" >&5
11590sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 eval "$as_ac_var=no"
11593fi
11594
11595rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597fi
11598ac_res=`eval echo '${'$as_ac_var'}'`
11599 { echo "$as_me:$LINENO: result: $ac_res" >&5
11600echo "${ECHO_T}$ac_res" >&6; }
11601if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604_ACEOF
11605 break
11606fi
11607done
11608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011609
11610
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011612do
11613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11614{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11616if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618else
11619 cat >conftest.$ac_ext <<_ACEOF
11620/* confdefs.h. */
11621_ACEOF
11622cat confdefs.h >>conftest.$ac_ext
11623cat >>conftest.$ac_ext <<_ACEOF
11624/* end confdefs.h. */
11625/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11627#define $ac_func innocuous_$ac_func
11628
11629/* System header to define __stub macros and hopefully few prototypes,
11630 which can conflict with char $ac_func (); below.
11631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11632 <limits.h> exists even on freestanding compilers. */
11633
11634#ifdef __STDC__
11635# include <limits.h>
11636#else
11637# include <assert.h>
11638#endif
11639
11640#undef $ac_func
11641
11642/* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11645#ifdef __cplusplus
11646extern "C"
11647#endif
11648char $ac_func ();
11649/* The GNU C library defines this for functions which it implements
11650 to always fail with ENOSYS. Some functions are actually named
11651 something starting with __ and the normal name is an alias. */
11652#if defined __stub_$ac_func || defined __stub___$ac_func
11653choke me
11654#endif
11655
11656int
11657main ()
11658{
11659return $ac_func ();
11660 ;
11661 return 0;
11662}
11663_ACEOF
11664rm -f conftest.$ac_objext conftest$ac_exeext
11665if { (ac_try="$ac_link"
11666case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_link") 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682esac
11683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest$ac_exeext'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692esac
11693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_try") 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 eval "$as_ac_var=yes"
11699else
11700 echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
11702
11703 eval "$as_ac_var=no"
11704fi
11705
11706rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708fi
11709ac_res=`eval echo '${'$as_ac_var'}'`
11710 { echo "$as_me:$LINENO: result: $ac_res" >&5
11711echo "${ECHO_T}$ac_res" >&6; }
11712if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011713 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715_ACEOF
11716 break
11717fi
11718done
11719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011720
11721
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011723do
11724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11725{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11727if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729else
11730 cat >conftest.$ac_ext <<_ACEOF
11731/* confdefs.h. */
11732_ACEOF
11733cat confdefs.h >>conftest.$ac_ext
11734cat >>conftest.$ac_ext <<_ACEOF
11735/* end confdefs.h. */
11736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11738#define $ac_func innocuous_$ac_func
11739
11740/* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11744
11745#ifdef __STDC__
11746# include <limits.h>
11747#else
11748# include <assert.h>
11749#endif
11750
11751#undef $ac_func
11752
11753/* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756#ifdef __cplusplus
11757extern "C"
11758#endif
11759char $ac_func ();
11760/* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763#if defined __stub_$ac_func || defined __stub___$ac_func
11764choke me
11765#endif
11766
11767int
11768main ()
11769{
11770return $ac_func ();
11771 ;
11772 return 0;
11773}
11774_ACEOF
11775rm -f conftest.$ac_objext conftest$ac_exeext
11776if { (ac_try="$ac_link"
11777case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780esac
11781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_link") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793esac
11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest$ac_exeext'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 eval "$as_ac_var=yes"
11810else
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 eval "$as_ac_var=no"
11815fi
11816
11817rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819fi
11820ac_res=`eval echo '${'$as_ac_var'}'`
11821 { echo "$as_me:$LINENO: result: $ac_res" >&5
11822echo "${ECHO_T}$ac_res" >&6; }
11823if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826_ACEOF
11827 break
11828fi
11829done
11830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011831
11832
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011834do
11835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11836{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11838if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840else
11841 cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11849#define $ac_func innocuous_$ac_func
11850
11851/* System header to define __stub macros and hopefully few prototypes,
11852 which can conflict with char $ac_func (); below.
11853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11854 <limits.h> exists even on freestanding compilers. */
11855
11856#ifdef __STDC__
11857# include <limits.h>
11858#else
11859# include <assert.h>
11860#endif
11861
11862#undef $ac_func
11863
11864/* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867#ifdef __cplusplus
11868extern "C"
11869#endif
11870char $ac_func ();
11871/* The GNU C library defines this for functions which it implements
11872 to always fail with ENOSYS. Some functions are actually named
11873 something starting with __ and the normal name is an alias. */
11874#if defined __stub_$ac_func || defined __stub___$ac_func
11875choke me
11876#endif
11877
11878int
11879main ()
11880{
11881return $ac_func ();
11882 ;
11883 return 0;
11884}
11885_ACEOF
11886rm -f conftest.$ac_objext conftest$ac_exeext
11887if { (ac_try="$ac_link"
11888case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11891esac
11892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_link") 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11901 { (case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_try") 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
11911 { (case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914esac
11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_try") 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 eval "$as_ac_var=yes"
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 eval "$as_ac_var=no"
11926fi
11927
11928rm -f core conftest.err conftest.$ac_objext \
11929 conftest$ac_exeext conftest.$ac_ext
11930fi
11931ac_res=`eval echo '${'$as_ac_var'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933echo "${ECHO_T}$ac_res" >&6; }
11934if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937_ACEOF
11938
11939fi
11940done
11941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011942
11943
11944
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011945for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011946do
11947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11948{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11950if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 cat >conftest.$ac_ext <<_ACEOF
11954/* confdefs.h. */
11955_ACEOF
11956cat confdefs.h >>conftest.$ac_ext
11957cat >>conftest.$ac_ext <<_ACEOF
11958/* end confdefs.h. */
11959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11961#define $ac_func innocuous_$ac_func
11962
11963/* System header to define __stub macros and hopefully few prototypes,
11964 which can conflict with char $ac_func (); below.
11965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11966 <limits.h> exists even on freestanding compilers. */
11967
11968#ifdef __STDC__
11969# include <limits.h>
11970#else
11971# include <assert.h>
11972#endif
11973
11974#undef $ac_func
11975
11976/* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11979#ifdef __cplusplus
11980extern "C"
11981#endif
11982char $ac_func ();
11983/* The GNU C library defines this for functions which it implements
11984 to always fail with ENOSYS. Some functions are actually named
11985 something starting with __ and the normal name is an alias. */
11986#if defined __stub_$ac_func || defined __stub___$ac_func
11987choke me
11988#endif
11989
11990int
11991main ()
11992{
11993return $ac_func ();
11994 ;
11995 return 0;
11996}
11997_ACEOF
11998rm -f conftest.$ac_objext conftest$ac_exeext
11999if { (ac_try="$ac_link"
12000case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003esac
12004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_link") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 eval "$as_ac_var=yes"
12033else
12034 echo "$as_me: failed program was:" >&5
12035sed 's/^/| /' conftest.$ac_ext >&5
12036
12037 eval "$as_ac_var=no"
12038fi
12039
12040rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12042fi
12043ac_res=`eval echo '${'$as_ac_var'}'`
12044 { echo "$as_me:$LINENO: result: $ac_res" >&5
12045echo "${ECHO_T}$ac_res" >&6; }
12046if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012047 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049_ACEOF
12050
12051fi
12052done
12053
12054
Douglas Gregor01746742009-05-11 18:05:52 +000012055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012056{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12057echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012058
Reid Spencer86901802004-12-08 23:07:27 +000012059ICC=no
12060IXX=no
12061case $CC in
12062 icc*|icpc*)
12063 ICC=yes
12064 IXX=yes
12065 ;;
12066 *)
12067 ;;
12068esac
12069
Duraid Madina937c60a2006-02-15 07:57:42 +000012070if test "$GCC" != "yes" && test "$ICC" != "yes"
12071then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012072 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12073echo "$as_me: error: gcc|icc required but not found" >&2;}
12074 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012075fi
12076
12077if test "$GXX" != "yes" && test "$IXX" != "yes"
12078then
Eric Christopher73e36da2010-12-08 02:02:14 +000012079 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12080echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012081 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012082fi
12083
Reid Spencer86901802004-12-08 23:07:27 +000012084if test "$GCC" = "yes"
12085then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012086 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012087#if !defined(__GNUC__) || __GNUC__ < 3
12088#error Unsupported GCC version
12089#endif
12090
12091_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012092rm -f conftest.$ac_objext
12093if { (ac_try="$ac_compile"
12094case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097esac
12098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_compile") 2>conftest.er1
12100 ac_status=$?
12101 grep -v '^ *+' conftest.er1 >conftest.err
12102 rm -f conftest.er1
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12107 { (case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110esac
12111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_try") 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest.$ac_objext'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120esac
12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012128 echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12132echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12133 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012135
Chris Lattner399c7c72008-02-05 19:43:53 +000012136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012137fi
12138
12139if test -z "$llvm_cv_gnu_make_command"
12140then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012141 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12142echo "$as_me: error: GNU Make required but not found" >&2;}
12143 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012144fi
12145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012146{ echo "$as_me:$LINENO: result: ok" >&5
12147echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012149{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12150echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012151NO_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 +000012152
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012153NO_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 +000012154
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012155COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12156
12157{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12158echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012159
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012161
12162{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12163echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12164if test "${ac_cv_lib_m_sin+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012166else
12167 ac_check_lib_save_LIBS=$LIBS
12168LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012169cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012174/* end confdefs.h. */
12175
Reid Spencera773bd52006-08-04 18:18:08 +000012176/* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012179#ifdef __cplusplus
12180extern "C"
12181#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012182char sin ();
12183int
12184main ()
12185{
Reid Spencera773bd52006-08-04 18:18:08 +000012186return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012187 ;
12188 return 0;
12189}
12190_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012191rm -f conftest.$ac_objext conftest$ac_exeext
12192if { (ac_try="$ac_link"
12193case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196esac
12197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_link") 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12206 { (case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209esac
12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_try") 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest$ac_exeext'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219esac
12220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012225 ac_cv_lib_m_sin=yes
12226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012227 echo "$as_me: failed program was:" >&5
12228sed 's/^/| /' conftest.$ac_ext >&5
12229
12230 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012232
Bill Wendlingebcceee2009-04-18 11:20:33 +000012233rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012234 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012235LIBS=$ac_check_lib_save_LIBS
12236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12238echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12239if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012240 cat >>confdefs.h <<_ACEOF
12241#define HAVE_LIBM 1
12242_ACEOF
12243
12244 LIBS="-lm $LIBS"
12245
12246fi
12247
Jeff Cohen28783c32007-01-12 18:22:38 +000012248if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012249
12250{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12251echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12252if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012254else
12255 ac_check_lib_save_LIBS=$LIBS
12256LIBS="-limagehlp $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
Reid Spencer484fc8e2006-06-01 16:55:59 +000012262/* end confdefs.h. */
12263
Reid Spencer48fdf912006-06-01 19:03:21 +000012264
Reid Spencer484fc8e2006-06-01 16:55:59 +000012265int
12266main ()
12267{
Reid Spencera773bd52006-08-04 18:18:08 +000012268return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012269 ;
12270 return 0;
12271}
12272_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012273rm -f conftest.$ac_objext conftest$ac_exeext
12274if { (ac_try="$ac_link"
12275case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278esac
12279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12288 { (case "(($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_try") 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest$ac_exeext'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012307 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012309 echo "$as_me: failed program was:" >&5
12310sed 's/^/| /' conftest.$ac_ext >&5
12311
12312 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012314
Bill Wendlingebcceee2009-04-18 11:20:33 +000012315rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012316 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012317LIBS=$ac_check_lib_save_LIBS
12318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012319{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12320echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12321if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012322 cat >>confdefs.h <<_ACEOF
12323#define HAVE_LIBIMAGEHLP 1
12324_ACEOF
12325
12326 LIBS="-limagehlp $LIBS"
12327
12328fi
12329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012330
12331{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12332echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12333if test "${ac_cv_lib_psapi_main+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012335else
12336 ac_check_lib_save_LIBS=$LIBS
12337LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012338cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012343/* end confdefs.h. */
12344
Reid Spencer48fdf912006-06-01 19:03:21 +000012345
Reid Spencer484fc8e2006-06-01 16:55:59 +000012346int
12347main ()
12348{
Reid Spencera773bd52006-08-04 18:18:08 +000012349return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012350 ;
12351 return 0;
12352}
12353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012354rm -f conftest.$ac_objext conftest$ac_exeext
12355if { (ac_try="$ac_link"
12356case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012388 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012389else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012390 echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012395
Bill Wendlingebcceee2009-04-18 11:20:33 +000012396rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012397 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012398LIBS=$ac_check_lib_save_LIBS
12399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012400{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12401echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12402if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012403 cat >>confdefs.h <<_ACEOF
12404#define HAVE_LIBPSAPI 1
12405_ACEOF
12406
12407 LIBS="-lpsapi $LIBS"
12408
12409fi
12410
12411fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012413{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12414echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12415if test "${ac_cv_search_dlopen+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012417else
12418 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012419cat >conftest.$ac_ext <<_ACEOF
12420/* confdefs.h. */
12421_ACEOF
12422cat confdefs.h >>conftest.$ac_ext
12423cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012425
Reid Spencera773bd52006-08-04 18:18:08 +000012426/* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012429#ifdef __cplusplus
12430extern "C"
12431#endif
John Criswell7a73b802003-06-30 21:59:07 +000012432char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012433int
12434main ()
12435{
Reid Spencera773bd52006-08-04 18:18:08 +000012436return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012437 ;
12438 return 0;
12439}
12440_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012441for ac_lib in '' dl; do
12442 if test -z "$ac_lib"; then
12443 ac_res="none required"
12444 else
12445 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012447 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012448 rm -f conftest.$ac_objext conftest$ac_exeext
12449if { (ac_try="$ac_link"
12450case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_link") 2>conftest.er1
12456 ac_status=$?
12457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12463 { (case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466esac
12467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_try") 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476esac
12477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012482 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012483else
12484 echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487
John Criswell7a73b802003-06-30 21:59:07 +000012488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012489
Bill Wendlingebcceee2009-04-18 11:20:33 +000012490rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012491 conftest$ac_exeext
12492 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012493 break
John Criswell7a73b802003-06-30 21:59:07 +000012494fi
Reid Spencera773bd52006-08-04 18:18:08 +000012495done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012496if test "${ac_cv_search_dlopen+set}" = set; then
12497 :
Reid Spencera773bd52006-08-04 18:18:08 +000012498else
12499 ac_cv_search_dlopen=no
12500fi
12501rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012502LIBS=$ac_func_search_save_LIBS
12503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012504{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12505echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012506ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012507if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012510cat >>confdefs.h <<\_ACEOF
12511#define HAVE_DLOPEN 1
12512_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012513
12514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012515 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12516echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012517fi
12518
12519
Chandler Carruth73c35d82013-01-04 23:19:55 +000012520{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12521echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12522if test "${ac_cv_search_clock_gettime+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524else
12525 ac_func_search_save_LIBS=$LIBS
12526cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h. */
12532
12533/* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12536#ifdef __cplusplus
12537extern "C"
12538#endif
12539char clock_gettime ();
12540int
12541main ()
12542{
12543return clock_gettime ();
12544 ;
12545 return 0;
12546}
12547_ACEOF
12548for ac_lib in '' rt; do
12549 if test -z "$ac_lib"; then
12550 ac_res="none required"
12551 else
12552 ac_res=-l$ac_lib
12553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12554 fi
12555 rm -f conftest.$ac_objext conftest$ac_exeext
12556if { (ac_try="$ac_link"
12557case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560esac
12561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_link") 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583esac
12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 ac_cv_search_clock_gettime=$ac_res
12590else
12591 echo "$as_me: failed program was:" >&5
12592sed 's/^/| /' conftest.$ac_ext >&5
12593
12594
12595fi
12596
12597rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext
12599 if test "${ac_cv_search_clock_gettime+set}" = set; then
12600 break
12601fi
12602done
12603if test "${ac_cv_search_clock_gettime+set}" = set; then
12604 :
12605else
12606 ac_cv_search_clock_gettime=no
12607fi
12608rm conftest.$ac_ext
12609LIBS=$ac_func_search_save_LIBS
12610fi
12611{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12612echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12613ac_res=$ac_cv_search_clock_gettime
12614if test "$ac_res" != no; then
12615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12616
12617else
12618 { { echo "$as_me:$LINENO: error: clock_gettime not found and is required for modern POSIX timing uspport" >&5
12619echo "$as_me: error: clock_gettime not found and is required for modern POSIX timing uspport" >&2;}
12620 { (exit 1); exit 1; }; }
12621fi
12622
12623
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012624if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012625 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12626echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12627if test "${ac_cv_search_ffi_call+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012629else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012630 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012631cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012636/* end confdefs.h. */
12637
12638/* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12641#ifdef __cplusplus
12642extern "C"
12643#endif
12644char ffi_call ();
12645int
12646main ()
12647{
12648return ffi_call ();
12649 ;
12650 return 0;
12651}
12652_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012653for ac_lib in '' ffi; do
12654 if test -z "$ac_lib"; then
12655 ac_res="none required"
12656 else
12657 ac_res=-l$ac_lib
12658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12659 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012660 rm -f conftest.$ac_objext conftest$ac_exeext
12661if { (ac_try="$ac_link"
12662case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665esac
12666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_link") 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12675 { (case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_try") 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest$ac_exeext'
12685 { (case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688esac
12689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_try") 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012694 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012695else
12696 echo "$as_me: failed program was:" >&5
12697sed 's/^/| /' conftest.$ac_ext >&5
12698
12699
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012701
Bill Wendlingebcceee2009-04-18 11:20:33 +000012702rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012703 conftest$ac_exeext
12704 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012705 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012706fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012708if test "${ac_cv_search_ffi_call+set}" = set; then
12709 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012710else
12711 ac_cv_search_ffi_call=no
12712fi
12713rm conftest.$ac_ext
12714LIBS=$ac_func_search_save_LIBS
12715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012716{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12717echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012718ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012719if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012722cat >>confdefs.h <<\_ACEOF
12723#define HAVE_FFI_CALL 1
12724_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012725
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012726else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012727 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12728echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12729 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012730fi
12731
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012732fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012734{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12735echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12736if test "${ac_cv_search_mallinfo+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012738else
12739 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012740cat >conftest.$ac_ext <<_ACEOF
12741/* confdefs.h. */
12742_ACEOF
12743cat confdefs.h >>conftest.$ac_ext
12744cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012746
Reid Spencera773bd52006-08-04 18:18:08 +000012747/* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012750#ifdef __cplusplus
12751extern "C"
12752#endif
John Criswell7a73b802003-06-30 21:59:07 +000012753char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012754int
12755main ()
12756{
Reid Spencera773bd52006-08-04 18:18:08 +000012757return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012758 ;
12759 return 0;
12760}
12761_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012762for ac_lib in '' malloc; do
12763 if test -z "$ac_lib"; then
12764 ac_res="none required"
12765 else
12766 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012768 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012769 rm -f conftest.$ac_objext conftest$ac_exeext
12770if { (ac_try="$ac_link"
12771case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_link") 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; } &&
12793 { ac_try='test -s conftest$ac_exeext'
12794 { (case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_try") 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012803 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012804else
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808
John Criswell7a73b802003-06-30 21:59:07 +000012809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810
Bill Wendlingebcceee2009-04-18 11:20:33 +000012811rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012812 conftest$ac_exeext
12813 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012814 break
John Criswell7a73b802003-06-30 21:59:07 +000012815fi
Reid Spencera773bd52006-08-04 18:18:08 +000012816done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012817if test "${ac_cv_search_mallinfo+set}" = set; then
12818 :
Reid Spencera773bd52006-08-04 18:18:08 +000012819else
12820 ac_cv_search_mallinfo=no
12821fi
12822rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012823LIBS=$ac_func_search_save_LIBS
12824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12826echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012827ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831cat >>confdefs.h <<\_ACEOF
12832#define HAVE_MALLINFO 1
12833_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012834
12835fi
12836
12837
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012838if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012839
12840{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12841echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12842if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012844else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012845 ac_check_lib_save_LIBS=$LIBS
12846LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012847cat >conftest.$ac_ext <<_ACEOF
12848/* confdefs.h. */
12849_ACEOF
12850cat confdefs.h >>conftest.$ac_ext
12851cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012852/* end confdefs.h. */
12853
Reid Spencera773bd52006-08-04 18:18:08 +000012854/* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012857#ifdef __cplusplus
12858extern "C"
12859#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012860char pthread_mutex_init ();
12861int
12862main ()
12863{
Reid Spencera773bd52006-08-04 18:18:08 +000012864return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012865 ;
12866 return 0;
12867}
12868_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012869rm -f conftest.$ac_objext conftest$ac_exeext
12870if { (ac_try="$ac_link"
12871case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12874esac
12875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_link") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897esac
12898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012903 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012905 echo "$as_me: failed program was:" >&5
12906sed 's/^/| /' conftest.$ac_ext >&5
12907
12908 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012910
Bill Wendlingebcceee2009-04-18 11:20:33 +000012911rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012912 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012913LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12916echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12917if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012918 cat >>confdefs.h <<_ACEOF
12919#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012920_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012921
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012922 LIBS="-lpthread $LIBS"
12923
Reid Spencer22177fe2005-07-12 15:24:20 +000012924fi
12925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012926 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12927echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12928if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012930else
12931 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012932cat >conftest.$ac_ext <<_ACEOF
12933/* confdefs.h. */
12934_ACEOF
12935cat confdefs.h >>conftest.$ac_ext
12936cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012937/* end confdefs.h. */
12938
Reid Spencera773bd52006-08-04 18:18:08 +000012939/* Override any GCC internal prototype to avoid an error.
12940 Use char because int might match the return type of a GCC
12941 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012942#ifdef __cplusplus
12943extern "C"
12944#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012945char pthread_mutex_lock ();
12946int
12947main ()
12948{
Reid Spencera773bd52006-08-04 18:18:08 +000012949return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012950 ;
12951 return 0;
12952}
12953_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012954for ac_lib in '' pthread; do
12955 if test -z "$ac_lib"; then
12956 ac_res="none required"
12957 else
12958 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012960 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012961 rm -f conftest.$ac_objext conftest$ac_exeext
12962if { (ac_try="$ac_link"
12963case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12966esac
12967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_link") 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979esac
12980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest$ac_exeext'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989esac
12990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012995 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012996else
12997 echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
13000
Brian Gaeke5f268f72003-12-05 19:29:01 +000013001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013002
Bill Wendlingebcceee2009-04-18 11:20:33 +000013003rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013004 conftest$ac_exeext
13005 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013006 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013007fi
Reid Spencera773bd52006-08-04 18:18:08 +000013008done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013009if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13010 :
Reid Spencera773bd52006-08-04 18:18:08 +000013011else
13012 ac_cv_search_pthread_mutex_lock=no
13013fi
13014rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013015LIBS=$ac_func_search_save_LIBS
13016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013017{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13018echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013019ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013023cat >>confdefs.h <<\_ACEOF
13024#define HAVE_PTHREAD_MUTEX_LOCK 1
13025_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013026
13027fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13030echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13031if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013033else
13034 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013035cat >conftest.$ac_ext <<_ACEOF
13036/* confdefs.h. */
13037_ACEOF
13038cat confdefs.h >>conftest.$ac_ext
13039cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013040/* end confdefs.h. */
13041
13042/* Override any GCC internal prototype to avoid an error.
13043 Use char because int might match the return type of a GCC
13044 builtin and then its argument prototype would still apply. */
13045#ifdef __cplusplus
13046extern "C"
13047#endif
13048char pthread_rwlock_init ();
13049int
13050main ()
13051{
13052return pthread_rwlock_init ();
13053 ;
13054 return 0;
13055}
13056_ACEOF
13057for ac_lib in '' pthread; do
13058 if test -z "$ac_lib"; then
13059 ac_res="none required"
13060 else
13061 ac_res=-l$ac_lib
13062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13063 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013064 rm -f conftest.$ac_objext conftest$ac_exeext
13065if { (ac_try="$ac_link"
13066case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_link") 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } &&
13088 { ac_try='test -s conftest$ac_exeext'
13089 { (case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092esac
13093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_try") 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013098 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013099else
13100 echo "$as_me: failed program was:" >&5
13101sed 's/^/| /' conftest.$ac_ext >&5
13102
13103
Owen Andersonde8aed22009-06-16 18:20:20 +000013104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105
Owen Andersonde8aed22009-06-16 18:20:20 +000013106rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013107 conftest$ac_exeext
13108 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013109 break
13110fi
13111done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013112if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13113 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013114else
13115 ac_cv_search_pthread_rwlock_init=no
13116fi
13117rm conftest.$ac_ext
13118LIBS=$ac_func_search_save_LIBS
13119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013120{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13121echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013122ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013126cat >>confdefs.h <<\_ACEOF
13127#define HAVE_PTHREAD_RWLOCK_INIT 1
13128_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013129
13130fi
13131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013132 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13133echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13134if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013136else
13137 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138cat >conftest.$ac_ext <<_ACEOF
13139/* confdefs.h. */
13140_ACEOF
13141cat confdefs.h >>conftest.$ac_ext
13142cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013143/* end confdefs.h. */
13144
13145/* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13148#ifdef __cplusplus
13149extern "C"
13150#endif
13151char pthread_getspecific ();
13152int
13153main ()
13154{
13155return pthread_getspecific ();
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160for ac_lib in '' pthread; do
13161 if test -z "$ac_lib"; then
13162 ac_res="none required"
13163 else
13164 ac_res=-l$ac_lib
13165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13166 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013167 rm -f conftest.$ac_objext conftest$ac_exeext
13168if { (ac_try="$ac_link"
13169case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>conftest.er1
13175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185esac
13186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest$ac_exeext'
13192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13195esac
13196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013201 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013202else
13203 echo "$as_me: failed program was:" >&5
13204sed 's/^/| /' conftest.$ac_ext >&5
13205
13206
Owen Anderson27fcfe12009-06-25 23:10:26 +000013207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013208
Owen Anderson27fcfe12009-06-25 23:10:26 +000013209rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013210 conftest$ac_exeext
13211 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013212 break
13213fi
13214done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013215if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13216 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013217else
13218 ac_cv_search_pthread_getspecific=no
13219fi
13220rm conftest.$ac_ext
13221LIBS=$ac_func_search_save_LIBS
13222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013223{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13224echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013225ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013226if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013229cat >>confdefs.h <<\_ACEOF
13230#define HAVE_PTHREAD_GETSPECIFIC 1
13231_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013232
13233fi
13234
Reid Spencer0a262ba2005-08-24 10:07:20 +000013235fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013236
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013237
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013238# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013240 withval=$with_udis86;
13241 USE_UDIS86=1
13242
13243 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013244 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013245 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13246 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013247
13248{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13249echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13250if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013252else
13253 ac_check_lib_save_LIBS=$LIBS
13254LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013255cat >conftest.$ac_ext <<_ACEOF
13256/* confdefs.h. */
13257_ACEOF
13258cat confdefs.h >>conftest.$ac_ext
13259cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013260/* end confdefs.h. */
13261
13262/* Override any GCC internal prototype to avoid an error.
13263 Use char because int might match the return type of a GCC
13264 builtin and then its argument prototype would still apply. */
13265#ifdef __cplusplus
13266extern "C"
13267#endif
13268char ud_init ();
13269int
13270main ()
13271{
13272return ud_init ();
13273 ;
13274 return 0;
13275}
13276_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277rm -f conftest.$ac_objext conftest$ac_exeext
13278if { (ac_try="$ac_link"
13279case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13282esac
13283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_link") 2>conftest.er1
13285 ac_status=$?
13286 grep -v '^ *+' conftest.er1 >conftest.err
13287 rm -f conftest.er1
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13292 { (case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295esac
13296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_try") 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest$ac_exeext'
13302 { (case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305esac
13306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_try") 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013311 ac_cv_lib_udis86_ud_init=yes
13312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013313 echo "$as_me: failed program was:" >&5
13314sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013318
Bill Wendlingebcceee2009-04-18 11:20:33 +000013319rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013321LIBS=$ac_check_lib_save_LIBS
13322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013323{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13324echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13325if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013326 cat >>confdefs.h <<_ACEOF
13327#define HAVE_LIBUDIS86 1
13328_ACEOF
13329
13330 LIBS="-ludis86 $LIBS"
13331
13332else
13333
13334 echo "Error! You need to have libudis86 around."
13335 exit -1
13336
13337fi
13338
13339
13340else
13341 USE_UDIS86=0
13342
13343fi
13344
13345
13346cat >>confdefs.h <<_ACEOF
13347#define USE_UDIS86 $USE_UDIS86
13348_ACEOF
13349
13350
13351
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013352# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013353if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013354 withval=$with_oprofile;
13355 USE_OPROFILE=1
13356
13357 case "$withval" in
13358 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013359 no) llvm_cv_oppath=
13360 USE_OPROFILE=0
13361 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013362 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013363 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013364 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013365 case $llvm_cv_os_type in
13366 Linux)
13367 if test -n "$llvm_cv_oppath" ; then
13368 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13369 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13371if test "${ac_cv_search_bfd_init+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013373else
13374 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013375cat >conftest.$ac_ext <<_ACEOF
13376/* confdefs.h. */
13377_ACEOF
13378cat confdefs.h >>conftest.$ac_ext
13379cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013380/* end confdefs.h. */
13381
13382/* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13385#ifdef __cplusplus
13386extern "C"
13387#endif
13388char bfd_init ();
13389int
13390main ()
13391{
13392return bfd_init ();
13393 ;
13394 return 0;
13395}
13396_ACEOF
13397for ac_lib in '' bfd; do
13398 if test -z "$ac_lib"; then
13399 ac_res="none required"
13400 else
13401 ac_res=-l$ac_lib
13402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13403 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404 rm -f conftest.$ac_objext conftest$ac_exeext
13405if { (ac_try="$ac_link"
13406case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13409esac
13410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_link") 2>conftest.er1
13412 ac_status=$?
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest$ac_exeext'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013438 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439else
13440 echo "$as_me: failed program was:" >&5
13441sed 's/^/| /' conftest.$ac_ext >&5
13442
13443
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013445
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013446rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013447 conftest$ac_exeext
13448 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013449 break
13450fi
13451done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452if test "${ac_cv_search_bfd_init+set}" = set; then
13453 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013454else
13455 ac_cv_search_bfd_init=no
13456fi
13457rm conftest.$ac_ext
13458LIBS=$ac_func_search_save_LIBS
13459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013460{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13461echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013462ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13465
13466fi
13467
Eli Bendersky61b18512012-03-13 08:33:15 +000013468 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013469echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13470if test "${ac_cv_search_op_open_agent+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013472else
13473 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013474cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013479/* end confdefs.h. */
13480
13481/* Override any GCC internal prototype to avoid an error.
13482 Use char because int might match the return type of a GCC
13483 builtin and then its argument prototype would still apply. */
13484#ifdef __cplusplus
13485extern "C"
13486#endif
13487char op_open_agent ();
13488int
13489main ()
13490{
13491return op_open_agent ();
13492 ;
13493 return 0;
13494}
13495_ACEOF
13496for ac_lib in '' opagent; do
13497 if test -z "$ac_lib"; then
13498 ac_res="none required"
13499 else
13500 ac_res=-l$ac_lib
13501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13502 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503 rm -f conftest.$ac_objext conftest$ac_exeext
13504if { (ac_try="$ac_link"
13505case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508esac
13509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_link") 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521esac
13522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531esac
13532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013537 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013538else
13539 echo "$as_me: failed program was:" >&5
13540sed 's/^/| /' conftest.$ac_ext >&5
13541
13542
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013544
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013545rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013546 conftest$ac_exeext
13547 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013548 break
13549fi
13550done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013551if test "${ac_cv_search_op_open_agent+set}" = set; then
13552 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013553else
13554 ac_cv_search_op_open_agent=no
13555fi
13556rm conftest.$ac_ext
13557LIBS=$ac_func_search_save_LIBS
13558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013559{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13560echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013561ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013562if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13564
13565else
13566
Eli Bendersky61b18512012-03-13 08:33:15 +000013567 echo "Error! You need to have libopagent around."
13568 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013569
13570fi
13571
Eli Bendersky61b18512012-03-13 08:33:15 +000013572 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013573 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13574echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13575if test "${ac_cv_header_opagent_h+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577fi
13578{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13579echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13580else
13581 # Is the header compilable?
13582{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13583echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13584cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h. */
13590$ac_includes_default
13591#include <opagent.h>
13592_ACEOF
13593rm -f conftest.$ac_objext
13594if { (ac_try="$ac_compile"
13595case "(($ac_try" in
13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13597 *) ac_try_echo=$ac_try;;
13598esac
13599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13600 (eval "$ac_compile") 2>conftest.er1
13601 ac_status=$?
13602 grep -v '^ *+' conftest.er1 >conftest.err
13603 rm -f conftest.er1
13604 cat conftest.err >&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
13607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13608 { (case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611esac
13612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_try") 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest.$ac_objext'
13618 { (case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13621esac
13622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_try") 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_header_compiler=yes
13628else
13629 echo "$as_me: failed program was:" >&5
13630sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013632 ac_header_compiler=no
13633fi
13634
13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13637echo "${ECHO_T}$ac_header_compiler" >&6; }
13638
13639# Is the header present?
13640{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13641echo $ECHO_N "checking opagent.h presence... $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#include <opagent.h>
13649_ACEOF
13650if { (ac_try="$ac_cpp conftest.$ac_ext"
13651case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13654esac
13655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } >/dev/null; then
13663 if test -s conftest.err; then
13664 ac_cpp_err=$ac_c_preproc_warn_flag
13665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13666 else
13667 ac_cpp_err=
13668 fi
13669else
13670 ac_cpp_err=yes
13671fi
13672if test -z "$ac_cpp_err"; then
13673 ac_header_preproc=yes
13674else
13675 echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678 ac_header_preproc=no
13679fi
13680
13681rm -f conftest.err conftest.$ac_ext
13682{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13683echo "${ECHO_T}$ac_header_preproc" >&6; }
13684
13685# So? What about this header?
13686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13687 yes:no: )
13688 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13689echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13691echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13692 ac_header_preproc=yes
13693 ;;
13694 no:yes:* )
13695 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13696echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13698echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13700echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13702echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13704echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13706echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13707 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013708## ------------------------------------ ##
13709## Report this to http://llvm.org/bugs/ ##
13710## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013711_ASBOX
13712 ) | sed "s/^/$as_me: WARNING: /" >&2
13713 ;;
13714esac
13715{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13716echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13717if test "${ac_cv_header_opagent_h+set}" = set; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13719else
13720 ac_cv_header_opagent_h=$ac_header_preproc
13721fi
13722{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13723echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13724
13725fi
13726if test $ac_cv_header_opagent_h = yes; then
13727 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013728else
13729
Eli Bendersky61b18512012-03-13 08:33:15 +000013730 echo "Error! You need to have opagent.h around."
13731 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013732
13733fi
13734
13735
Eli Bendersky61b18512012-03-13 08:33:15 +000013736 fi ;;
13737 *)
13738 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13739echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13740 { (exit 1); exit 1; }; } ;;
13741 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013742
13743else
13744
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013745 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013746
13747
13748fi
13749
13750
13751cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013752#define LLVM_USE_OPROFILE $USE_OPROFILE
13753_ACEOF
13754
13755
13756
13757# Check whether --with-intel-jitevents was given.
13758if test "${with_intel_jitevents+set}" = set; then
13759 withval=$with_intel_jitevents;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013760 case "$withval" in
13761 yes) USE_INTEL_JITEVENTS=1
13762;;
13763 no) USE_INTEL_JITEVENTS=0
13764;;
13765 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13766echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13767 { (exit 1); exit 1; }; };;
13768 esac
13769
Eli Bendersky61b18512012-03-13 08:33:15 +000013770 case $llvm_cv_os_type in
13771 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013772 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13773echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13774 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013775 esac
13776
Eli Bendersky61b18512012-03-13 08:33:15 +000013777 case "$llvm_cv_target_arch" in
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013778 x86|x86_64) ;;
13779 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13780echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13781 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013782 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013783
13784else
13785
13786 USE_INTEL_JITEVENTS=0
13787
13788
13789fi
13790
13791
13792cat >>confdefs.h <<_ACEOF
13793#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013794_ACEOF
13795
13796
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013797for ac_prog in xml2-config
13798do
13799 # Extract the first word of "$ac_prog", so it can be a program name with args.
13800set dummy $ac_prog; ac_word=$2
13801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13803if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13805else
13806 if test -n "$XML2CONFIG"; then
13807 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13808else
13809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810for as_dir in $PATH
13811do
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13816 ac_cv_prog_XML2CONFIG="$ac_prog"
13817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 break 2
13819 fi
13820done
13821done
13822IFS=$as_save_IFS
13823
13824fi
13825fi
13826XML2CONFIG=$ac_cv_prog_XML2CONFIG
13827if test -n "$XML2CONFIG"; then
13828 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13829echo "${ECHO_T}$XML2CONFIG" >&6; }
13830else
13831 { echo "$as_me:$LINENO: result: no" >&5
13832echo "${ECHO_T}no" >&6; }
13833fi
13834
13835
13836 test -n "$XML2CONFIG" && break
13837done
13838
13839
13840{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13841echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13842if test "x$XML2CONFIG" = "x"; then
13843 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13844echo "${ECHO_T}xml2-config not found" >&6; }
13845else
13846 LIBXML2_INC=`$XML2CONFIG --cflags`
13847 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13848echo "${ECHO_T}$LIBXML2_INC" >&6; }
13849 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13850echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13851if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853else
13854 ac_check_lib_save_LIBS=$LIBS
13855LIBS="-lxml2 $LIBS"
13856cat >conftest.$ac_ext <<_ACEOF
13857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
13862
13863/* Override any GCC internal prototype to avoid an error.
13864 Use char because int might match the return type of a GCC
13865 builtin and then its argument prototype would still apply. */
13866#ifdef __cplusplus
13867extern "C"
13868#endif
13869char xmlReadFile ();
13870int
13871main ()
13872{
13873return xmlReadFile ();
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext conftest$ac_exeext
13879if { (ac_try="$ac_link"
13880case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883esac
13884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_link") 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896esac
13897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906esac
13907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_try") 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 ac_cv_lib_xml2_xmlReadFile=yes
13913else
13914 echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
13917 ac_cv_lib_xml2_xmlReadFile=no
13918fi
13919
13920rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922LIBS=$ac_check_lib_save_LIBS
13923fi
13924{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13925echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13926if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13927
13928cat >>confdefs.h <<\_ACEOF
13929#define CLANG_HAVE_LIBXML 1
13930_ACEOF
13931
13932 LIBXML2_LIBS="-lxml2"
13933fi
13934
13935fi
13936
13937
13938
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013940
13941
13942
13943
13944
Reid Spencer59473af2004-12-25 07:31:29 +000013945ac_header_dirent=no
13946for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013947 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13948{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13949echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013953 cat >conftest.$ac_ext <<_ACEOF
13954/* confdefs.h. */
13955_ACEOF
13956cat confdefs.h >>conftest.$ac_ext
13957cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013958/* end confdefs.h. */
13959#include <sys/types.h>
13960#include <$ac_hdr>
13961
13962int
13963main ()
13964{
13965if ((DIR *) 0)
13966return 0;
13967 ;
13968 return 0;
13969}
13970_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971rm -f conftest.$ac_objext
13972if { (ac_try="$ac_compile"
13973case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_compile") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989esac
13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest.$ac_objext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999esac
14000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014005 eval "$as_ac_Header=yes"
14006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007 echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
14010 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012
Reid Spencera773bd52006-08-04 18:18:08 +000014013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014015ac_res=`eval echo '${'$as_ac_Header'}'`
14016 { echo "$as_me:$LINENO: result: $ac_res" >&5
14017echo "${ECHO_T}$ac_res" >&6; }
14018if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014019 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014021_ACEOF
14022
14023ac_header_dirent=$ac_hdr; break
14024fi
14025
14026done
14027# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14028if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014029 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14030echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14031if test "${ac_cv_search_opendir+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014033else
14034 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035cat >conftest.$ac_ext <<_ACEOF
14036/* confdefs.h. */
14037_ACEOF
14038cat confdefs.h >>conftest.$ac_ext
14039cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014040/* end confdefs.h. */
14041
Reid Spencera773bd52006-08-04 18:18:08 +000014042/* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014045#ifdef __cplusplus
14046extern "C"
14047#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014048char opendir ();
14049int
14050main ()
14051{
Reid Spencera773bd52006-08-04 18:18:08 +000014052return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014053 ;
14054 return 0;
14055}
14056_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014057for ac_lib in '' dir; do
14058 if test -z "$ac_lib"; then
14059 ac_res="none required"
14060 else
14061 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014063 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014064 rm -f conftest.$ac_objext conftest$ac_exeext
14065if { (ac_try="$ac_link"
14066case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069esac
14070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_link") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14079 { (case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14082esac
14083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_try") 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest$ac_exeext'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14092esac
14093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_try") 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014098 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014099else
14100 echo "$as_me: failed program was:" >&5
14101sed 's/^/| /' conftest.$ac_ext >&5
14102
14103
Reid Spencer59473af2004-12-25 07:31:29 +000014104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105
Bill Wendlingebcceee2009-04-18 11:20:33 +000014106rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014107 conftest$ac_exeext
14108 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014109 break
Reid Spencer59473af2004-12-25 07:31:29 +000014110fi
Reid Spencera773bd52006-08-04 18:18:08 +000014111done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112if test "${ac_cv_search_opendir+set}" = set; then
14113 :
Reid Spencera773bd52006-08-04 18:18:08 +000014114else
14115 ac_cv_search_opendir=no
14116fi
14117rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014118LIBS=$ac_func_search_save_LIBS
14119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14121echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014122ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014123if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014125
14126fi
14127
14128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014129 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14130echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14131if test "${ac_cv_search_opendir+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014133else
14134 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135cat >conftest.$ac_ext <<_ACEOF
14136/* confdefs.h. */
14137_ACEOF
14138cat confdefs.h >>conftest.$ac_ext
14139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014140/* end confdefs.h. */
14141
Reid Spencera773bd52006-08-04 18:18:08 +000014142/* Override any GCC internal prototype to avoid an error.
14143 Use char because int might match the return type of a GCC
14144 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014145#ifdef __cplusplus
14146extern "C"
14147#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014148char opendir ();
14149int
14150main ()
14151{
Reid Spencera773bd52006-08-04 18:18:08 +000014152return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014153 ;
14154 return 0;
14155}
14156_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014157for ac_lib in '' x; do
14158 if test -z "$ac_lib"; then
14159 ac_res="none required"
14160 else
14161 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014163 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164 rm -f conftest.$ac_objext conftest$ac_exeext
14165if { (ac_try="$ac_link"
14166case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14169esac
14170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_link") 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14179 { (case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14182esac
14183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_try") 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest$ac_exeext'
14189 { (case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192esac
14193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_try") 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014198 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014199else
14200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
14203
Reid Spencer59473af2004-12-25 07:31:29 +000014204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014205
Bill Wendlingebcceee2009-04-18 11:20:33 +000014206rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014207 conftest$ac_exeext
14208 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014209 break
Reid Spencer59473af2004-12-25 07:31:29 +000014210fi
Reid Spencera773bd52006-08-04 18:18:08 +000014211done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212if test "${ac_cv_search_opendir+set}" = set; then
14213 :
Reid Spencera773bd52006-08-04 18:18:08 +000014214else
14215 ac_cv_search_opendir=no
14216fi
14217rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014218LIBS=$ac_func_search_save_LIBS
14219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14221echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014222ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014225
14226fi
14227
14228fi
14229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14231echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14232if test "${ac_cv_header_mmap_anon+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014234else
14235 ac_ext=c
14236ac_cpp='$CPP $CPPFLAGS'
14237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14239ac_compiler_gnu=$ac_cv_c_compiler_gnu
14240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241 cat >conftest.$ac_ext <<_ACEOF
14242/* confdefs.h. */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014246/* end confdefs.h. */
14247#include <sys/mman.h>
14248#include <unistd.h>
14249#include <fcntl.h>
14250int
14251main ()
14252{
14253mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14254 ;
14255 return 0;
14256}
14257_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258rm -f conftest.$ac_objext
14259if { (ac_try="$ac_compile"
14260case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14263esac
14264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_compile") 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14273 { (case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14276esac
14277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_try") 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest.$ac_objext'
14283 { (case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286esac
14287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_try") 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014292 ac_cv_header_mmap_anon=yes
14293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014294 echo "$as_me: failed program was:" >&5
14295sed 's/^/| /' conftest.$ac_ext >&5
14296
14297 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014299
Reid Spencera773bd52006-08-04 18:18:08 +000014300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014301 ac_ext=c
14302ac_cpp='$CPP $CPPFLAGS'
14303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14305ac_compiler_gnu=$ac_cv_c_compiler_gnu
14306
14307
14308fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14310echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014311if test "$ac_cv_header_mmap_anon" = yes; then
14312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014313cat >>confdefs.h <<\_ACEOF
14314#define HAVE_MMAP_ANONYMOUS 1
14315_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014316
14317fi
14318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014319{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14320echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14321if test "${ac_cv_header_stat_broken+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014324 cat >conftest.$ac_ext <<_ACEOF
14325/* confdefs.h. */
14326_ACEOF
14327cat confdefs.h >>conftest.$ac_ext
14328cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014329/* end confdefs.h. */
14330#include <sys/types.h>
14331#include <sys/stat.h>
14332
Reid Spencera773bd52006-08-04 18:18:08 +000014333#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334# if S_ISBLK (S_IFDIR)
14335You lose.
14336# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014337#endif
14338
Reid Spencera773bd52006-08-04 18:18:08 +000014339#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340# if S_ISBLK (S_IFCHR)
14341You lose.
14342# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014343#endif
14344
Reid Spencera773bd52006-08-04 18:18:08 +000014345#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346# if S_ISLNK (S_IFREG)
14347You lose.
14348# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014349#endif
14350
Reid Spencera773bd52006-08-04 18:18:08 +000014351#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352# if S_ISSOCK (S_IFREG)
14353You lose.
14354# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014355#endif
14356
14357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14359 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014360 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014361else
14362 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014364rm -f conftest*
14365
Reid Spencer59473af2004-12-25 07:31:29 +000014366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014367{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14368echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014369if test $ac_cv_header_stat_broken = yes; then
14370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371cat >>confdefs.h <<\_ACEOF
14372#define STAT_MACROS_BROKEN 1
14373_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014374
14375fi
14376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014377{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14378echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14379if test "${ac_cv_header_sys_wait_h+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382 cat >conftest.$ac_ext <<_ACEOF
14383/* confdefs.h. */
14384_ACEOF
14385cat confdefs.h >>conftest.$ac_ext
14386cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014388#include <sys/types.h>
14389#include <sys/wait.h>
14390#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014391# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014392#endif
14393#ifndef WIFEXITED
14394# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14395#endif
14396
John Criswell7a73b802003-06-30 21:59:07 +000014397int
14398main ()
14399{
14400 int s;
14401 wait (&s);
14402 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14403 ;
14404 return 0;
14405}
14406_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014407rm -f conftest.$ac_objext
14408if { (ac_try="$ac_compile"
14409case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14412esac
14413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_compile") 2>conftest.er1
14415 ac_status=$?
14416 grep -v '^ *+' conftest.er1 >conftest.err
14417 rm -f conftest.er1
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14422 { (case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425esac
14426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_try") 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435esac
14436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_try") 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014441 ac_cv_header_sys_wait_h=yes
14442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014443 echo "$as_me: failed program was:" >&5
14444sed 's/^/| /' conftest.$ac_ext >&5
14445
14446 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014448
Reid Spencera773bd52006-08-04 18:18:08 +000014449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014451{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14452echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014453if test $ac_cv_header_sys_wait_h = yes; then
14454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455cat >>confdefs.h <<\_ACEOF
14456#define HAVE_SYS_WAIT_H 1
14457_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014458
14459fi
14460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014461{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14462echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14463if test "${ac_cv_header_time+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014466 cat >conftest.$ac_ext <<_ACEOF
14467/* confdefs.h. */
14468_ACEOF
14469cat confdefs.h >>conftest.$ac_ext
14470cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014471/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014472#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014473#include <sys/time.h>
14474#include <time.h>
14475
14476int
14477main ()
14478{
14479if ((struct tm *) 0)
14480return 0;
14481 ;
14482 return 0;
14483}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014484_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485rm -f conftest.$ac_objext
14486if { (ac_try="$ac_compile"
14487case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14490esac
14491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_compile") 2>conftest.er1
14493 ac_status=$?
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14500 { (case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503esac
14504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_try") 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; } &&
14509 { ac_try='test -s conftest.$ac_objext'
14510 { (case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513esac
14514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_try") 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014519 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014521 echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014526
Reid Spencera773bd52006-08-04 18:18:08 +000014527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014528fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014529{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14530echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014531if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014533cat >>confdefs.h <<\_ACEOF
14534#define TIME_WITH_SYS_TIME 1
14535_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014536
14537fi
14538
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014540
14541
14542
14543
14544
14545
Reid Spencer59473af2004-12-25 07:31:29 +000014546for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014547do
14548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14554fi
14555ac_res=`eval echo '${'$as_ac_Header'}'`
14556 { echo "$as_me:$LINENO: result: $ac_res" >&5
14557echo "${ECHO_T}$ac_res" >&6; }
14558else
14559 # Is the header compilable?
14560{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14562cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568$ac_includes_default
14569#include <$ac_header>
14570_ACEOF
14571rm -f conftest.$ac_objext
14572if { (ac_try="$ac_compile"
14573case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576esac
14577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_compile") 2>conftest.er1
14579 ac_status=$?
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
14585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14586 { (case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589esac
14590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_try") 2>&5
14592 ac_status=$?
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; } &&
14595 { ac_try='test -s conftest.$ac_objext'
14596 { (case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14599esac
14600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_try") 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14605 ac_header_compiler=yes
14606else
14607 echo "$as_me: failed program was:" >&5
14608sed 's/^/| /' conftest.$ac_ext >&5
14609
14610 ac_header_compiler=no
14611fi
14612
14613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14615echo "${ECHO_T}$ac_header_compiler" >&6; }
14616
14617# Is the header present?
14618{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14620cat >conftest.$ac_ext <<_ACEOF
14621/* confdefs.h. */
14622_ACEOF
14623cat confdefs.h >>conftest.$ac_ext
14624cat >>conftest.$ac_ext <<_ACEOF
14625/* end confdefs.h. */
14626#include <$ac_header>
14627_ACEOF
14628if { (ac_try="$ac_cpp conftest.$ac_ext"
14629case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632esac
14633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } >/dev/null; then
14641 if test -s conftest.err; then
14642 ac_cpp_err=$ac_c_preproc_warn_flag
14643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14644 else
14645 ac_cpp_err=
14646 fi
14647else
14648 ac_cpp_err=yes
14649fi
14650if test -z "$ac_cpp_err"; then
14651 ac_header_preproc=yes
14652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 ac_header_preproc=no
14657fi
14658
14659rm -f conftest.err conftest.$ac_ext
14660{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14661echo "${ECHO_T}$ac_header_preproc" >&6; }
14662
14663# So? What about this header?
14664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14665 yes:no: )
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14670 ac_header_preproc=yes
14671 ;;
14672 no:yes:* )
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14685 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014686## ------------------------------------ ##
14687## Report this to http://llvm.org/bugs/ ##
14688## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014689_ASBOX
14690 ) | sed "s/^/$as_me: WARNING: /" >&2
14691 ;;
14692esac
14693{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697else
14698 eval "$as_ac_Header=\$ac_header_preproc"
14699fi
14700ac_res=`eval echo '${'$as_ac_Header'}'`
14701 { echo "$as_me:$LINENO: result: $ac_res" >&5
14702echo "${ECHO_T}$ac_res" >&6; }
14703
14704fi
14705if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014706 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014708_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014709
14710fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014711
Reid Spencer59473af2004-12-25 07:31:29 +000014712done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014714
14715
14716
14717
14718
14719
Douglas Gregor071d73d2009-05-18 17:21:34 +000014720for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014721do
14722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728fi
14729ac_res=`eval echo '${'$as_ac_Header'}'`
14730 { echo "$as_me:$LINENO: result: $ac_res" >&5
14731echo "${ECHO_T}$ac_res" >&6; }
14732else
14733 # Is the header compilable?
14734{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14736cat >conftest.$ac_ext <<_ACEOF
14737/* confdefs.h. */
14738_ACEOF
14739cat confdefs.h >>conftest.$ac_ext
14740cat >>conftest.$ac_ext <<_ACEOF
14741/* end confdefs.h. */
14742$ac_includes_default
14743#include <$ac_header>
14744_ACEOF
14745rm -f conftest.$ac_objext
14746if { (ac_try="$ac_compile"
14747case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14750esac
14751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_compile") 2>conftest.er1
14753 ac_status=$?
14754 grep -v '^ *+' conftest.er1 >conftest.err
14755 rm -f conftest.er1
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14760 { (case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763esac
14764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_try") 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest.$ac_objext'
14770 { (case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14773esac
14774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_try") 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14779 ac_header_compiler=yes
14780else
14781 echo "$as_me: failed program was:" >&5
14782sed 's/^/| /' conftest.$ac_ext >&5
14783
14784 ac_header_compiler=no
14785fi
14786
14787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14789echo "${ECHO_T}$ac_header_compiler" >&6; }
14790
14791# Is the header present?
14792{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14794cat >conftest.$ac_ext <<_ACEOF
14795/* confdefs.h. */
14796_ACEOF
14797cat confdefs.h >>conftest.$ac_ext
14798cat >>conftest.$ac_ext <<_ACEOF
14799/* end confdefs.h. */
14800#include <$ac_header>
14801_ACEOF
14802if { (ac_try="$ac_cpp conftest.$ac_ext"
14803case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806esac
14807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } >/dev/null; then
14815 if test -s conftest.err; then
14816 ac_cpp_err=$ac_c_preproc_warn_flag
14817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14818 else
14819 ac_cpp_err=
14820 fi
14821else
14822 ac_cpp_err=yes
14823fi
14824if test -z "$ac_cpp_err"; then
14825 ac_header_preproc=yes
14826else
14827 echo "$as_me: failed program was:" >&5
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
14830 ac_header_preproc=no
14831fi
14832
14833rm -f conftest.err conftest.$ac_ext
14834{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14835echo "${ECHO_T}$ac_header_preproc" >&6; }
14836
14837# So? What about this header?
14838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14839 yes:no: )
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14841echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14843echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14844 ac_header_preproc=yes
14845 ;;
14846 no:yes:* )
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14848echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14850echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14852echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14854echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14858echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14859 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014860## ------------------------------------ ##
14861## Report this to http://llvm.org/bugs/ ##
14862## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014863_ASBOX
14864 ) | sed "s/^/$as_me: WARNING: /" >&2
14865 ;;
14866esac
14867{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14871else
14872 eval "$as_ac_Header=\$ac_header_preproc"
14873fi
14874ac_res=`eval echo '${'$as_ac_Header'}'`
14875 { echo "$as_me:$LINENO: result: $ac_res" >&5
14876echo "${ECHO_T}$ac_res" >&6; }
14877
14878fi
14879if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014880 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014882_ACEOF
14883
14884fi
14885
14886done
14887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014888
14889
Douglas Gregor071d73d2009-05-18 17:21:34 +000014890for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014891do
14892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14898fi
14899ac_res=`eval echo '${'$as_ac_Header'}'`
14900 { echo "$as_me:$LINENO: result: $ac_res" >&5
14901echo "${ECHO_T}$ac_res" >&6; }
14902else
14903 # Is the header compilable?
14904{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14905echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14906cat >conftest.$ac_ext <<_ACEOF
14907/* confdefs.h. */
14908_ACEOF
14909cat confdefs.h >>conftest.$ac_ext
14910cat >>conftest.$ac_ext <<_ACEOF
14911/* end confdefs.h. */
14912$ac_includes_default
14913#include <$ac_header>
14914_ACEOF
14915rm -f conftest.$ac_objext
14916if { (ac_try="$ac_compile"
14917case "(($ac_try" in
14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919 *) ac_try_echo=$ac_try;;
14920esac
14921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922 (eval "$ac_compile") 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14930 { (case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933esac
14934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_try") 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; } &&
14939 { ac_try='test -s conftest.$ac_objext'
14940 { (case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14943esac
14944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_try") 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_header_compiler=yes
14950else
14951 echo "$as_me: failed program was:" >&5
14952sed 's/^/| /' conftest.$ac_ext >&5
14953
14954 ac_header_compiler=no
14955fi
14956
14957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14959echo "${ECHO_T}$ac_header_compiler" >&6; }
14960
14961# Is the header present?
14962{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14963echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14964cat >conftest.$ac_ext <<_ACEOF
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
14970#include <$ac_header>
14971_ACEOF
14972if { (ac_try="$ac_cpp conftest.$ac_ext"
14973case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
14979 ac_status=$?
14980 grep -v '^ *+' conftest.er1 >conftest.err
14981 rm -f conftest.er1
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } >/dev/null; then
14985 if test -s conftest.err; then
14986 ac_cpp_err=$ac_c_preproc_warn_flag
14987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14988 else
14989 ac_cpp_err=
14990 fi
14991else
14992 ac_cpp_err=yes
14993fi
14994if test -z "$ac_cpp_err"; then
14995 ac_header_preproc=yes
14996else
14997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000 ac_header_preproc=no
15001fi
15002
15003rm -f conftest.err conftest.$ac_ext
15004{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15005echo "${ECHO_T}$ac_header_preproc" >&6; }
15006
15007# So? What about this header?
15008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15009 yes:no: )
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15011echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15013echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15014 ac_header_preproc=yes
15015 ;;
15016 no:yes:* )
15017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15018echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15020echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15022echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15024echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15026echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15028echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15029 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015030## ------------------------------------ ##
15031## Report this to http://llvm.org/bugs/ ##
15032## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015033_ASBOX
15034 ) | sed "s/^/$as_me: WARNING: /" >&2
15035 ;;
15036esac
15037{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041else
15042 eval "$as_ac_Header=\$ac_header_preproc"
15043fi
15044ac_res=`eval echo '${'$as_ac_Header'}'`
15045 { echo "$as_me:$LINENO: result: $ac_res" >&5
15046echo "${ECHO_T}$ac_res" >&6; }
15047
15048fi
15049if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015050 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015052_ACEOF
15053
15054fi
15055
15056done
Reid Spencer59473af2004-12-25 07:31:29 +000015057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015058
15059
15060
15061
Daniel Dunbar3e462932011-02-03 02:40:02 +000015062
15063for 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 +000015064do
15065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15071fi
15072ac_res=`eval echo '${'$as_ac_Header'}'`
15073 { echo "$as_me:$LINENO: result: $ac_res" >&5
15074echo "${ECHO_T}$ac_res" >&6; }
15075else
15076 # Is the header compilable?
15077{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15079cat >conftest.$ac_ext <<_ACEOF
15080/* confdefs.h. */
15081_ACEOF
15082cat confdefs.h >>conftest.$ac_ext
15083cat >>conftest.$ac_ext <<_ACEOF
15084/* end confdefs.h. */
15085$ac_includes_default
15086#include <$ac_header>
15087_ACEOF
15088rm -f conftest.$ac_objext
15089if { (ac_try="$ac_compile"
15090case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093esac
15094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_compile") 2>conftest.er1
15096 ac_status=$?
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
15102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106esac
15107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest.$ac_objext'
15113 { (case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15116esac
15117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_try") 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 ac_header_compiler=yes
15123else
15124 echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 ac_header_compiler=no
15128fi
15129
15130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15132echo "${ECHO_T}$ac_header_compiler" >&6; }
15133
15134# Is the header present?
15135{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15137cat >conftest.$ac_ext <<_ACEOF
15138/* confdefs.h. */
15139_ACEOF
15140cat confdefs.h >>conftest.$ac_ext
15141cat >>conftest.$ac_ext <<_ACEOF
15142/* end confdefs.h. */
15143#include <$ac_header>
15144_ACEOF
15145if { (ac_try="$ac_cpp conftest.$ac_ext"
15146case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15149esac
15150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } >/dev/null; then
15158 if test -s conftest.err; then
15159 ac_cpp_err=$ac_c_preproc_warn_flag
15160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15161 else
15162 ac_cpp_err=
15163 fi
15164else
15165 ac_cpp_err=yes
15166fi
15167if test -z "$ac_cpp_err"; then
15168 ac_header_preproc=yes
15169else
15170 echo "$as_me: failed program was:" >&5
15171sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_header_preproc=no
15174fi
15175
15176rm -f conftest.err conftest.$ac_ext
15177{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15178echo "${ECHO_T}$ac_header_preproc" >&6; }
15179
15180# So? What about this header?
15181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15182 yes:no: )
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15187 ac_header_preproc=yes
15188 ;;
15189 no:yes:* )
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15202 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015203## ------------------------------------ ##
15204## Report this to http://llvm.org/bugs/ ##
15205## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015206_ASBOX
15207 ) | sed "s/^/$as_me: WARNING: /" >&2
15208 ;;
15209esac
15210{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214else
15215 eval "$as_ac_Header=\$ac_header_preproc"
15216fi
15217ac_res=`eval echo '${'$as_ac_Header'}'`
15218 { echo "$as_me:$LINENO: result: $ac_res" >&5
15219echo "${ECHO_T}$ac_res" >&6; }
15220
15221fi
15222if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015223 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015225_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015226
15227fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015228
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015229done
15230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015231
15232
15233
15234
Douglas Gregor01746742009-05-11 18:05:52 +000015235for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015236do
15237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243fi
15244ac_res=`eval echo '${'$as_ac_Header'}'`
15245 { echo "$as_me:$LINENO: result: $ac_res" >&5
15246echo "${ECHO_T}$ac_res" >&6; }
15247else
15248 # Is the header compilable?
15249{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15251cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h. */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h. */
15257$ac_includes_default
15258#include <$ac_header>
15259_ACEOF
15260rm -f conftest.$ac_objext
15261if { (ac_try="$ac_compile"
15262case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_compile") 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15275 { (case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278esac
15279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_try") 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288esac
15289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_try") 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_header_compiler=yes
15295else
15296 echo "$as_me: failed program was:" >&5
15297sed 's/^/| /' conftest.$ac_ext >&5
15298
15299 ac_header_compiler=no
15300fi
15301
15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15304echo "${ECHO_T}$ac_header_compiler" >&6; }
15305
15306# Is the header present?
15307{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15309cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315#include <$ac_header>
15316_ACEOF
15317if { (ac_try="$ac_cpp conftest.$ac_ext"
15318case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15321esac
15322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15324 ac_status=$?
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } >/dev/null; then
15330 if test -s conftest.err; then
15331 ac_cpp_err=$ac_c_preproc_warn_flag
15332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15333 else
15334 ac_cpp_err=
15335 fi
15336else
15337 ac_cpp_err=yes
15338fi
15339if test -z "$ac_cpp_err"; then
15340 ac_header_preproc=yes
15341else
15342 echo "$as_me: failed program was:" >&5
15343sed 's/^/| /' conftest.$ac_ext >&5
15344
15345 ac_header_preproc=no
15346fi
15347
15348rm -f conftest.err conftest.$ac_ext
15349{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15350echo "${ECHO_T}$ac_header_preproc" >&6; }
15351
15352# So? What about this header?
15353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15354 yes:no: )
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15359 ac_header_preproc=yes
15360 ;;
15361 no:yes:* )
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15374 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015375## ------------------------------------ ##
15376## Report this to http://llvm.org/bugs/ ##
15377## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015378_ASBOX
15379 ) | sed "s/^/$as_me: WARNING: /" >&2
15380 ;;
15381esac
15382{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386else
15387 eval "$as_ac_Header=\$ac_header_preproc"
15388fi
15389ac_res=`eval echo '${'$as_ac_Header'}'`
15390 { echo "$as_me:$LINENO: result: $ac_res" >&5
15391echo "${ECHO_T}$ac_res" >&6; }
15392
15393fi
15394if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015395 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015397_ACEOF
15398
15399fi
15400
15401done
15402
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015403
15404for ac_header in valgrind/valgrind.h
15405do
15406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412fi
15413ac_res=`eval echo '${'$as_ac_Header'}'`
15414 { echo "$as_me:$LINENO: result: $ac_res" >&5
15415echo "${ECHO_T}$ac_res" >&6; }
15416else
15417 # Is the header compilable?
15418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15420cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426$ac_includes_default
15427#include <$ac_header>
15428_ACEOF
15429rm -f conftest.$ac_objext
15430if { (ac_try="$ac_compile"
15431case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434esac
15435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_compile") 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15444 { (case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447esac
15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_try") 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest.$ac_objext'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15457esac
15458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_header_compiler=yes
15464else
15465 echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_header_compiler=no
15469fi
15470
15471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15473echo "${ECHO_T}$ac_header_compiler" >&6; }
15474
15475# Is the header present?
15476{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15478cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484#include <$ac_header>
15485_ACEOF
15486if { (ac_try="$ac_cpp conftest.$ac_ext"
15487case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490esac
15491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } >/dev/null; then
15499 if test -s conftest.err; then
15500 ac_cpp_err=$ac_c_preproc_warn_flag
15501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15502 else
15503 ac_cpp_err=
15504 fi
15505else
15506 ac_cpp_err=yes
15507fi
15508if test -z "$ac_cpp_err"; then
15509 ac_header_preproc=yes
15510else
15511 echo "$as_me: failed program was:" >&5
15512sed 's/^/| /' conftest.$ac_ext >&5
15513
15514 ac_header_preproc=no
15515fi
15516
15517rm -f conftest.err conftest.$ac_ext
15518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15519echo "${ECHO_T}$ac_header_preproc" >&6; }
15520
15521# So? What about this header?
15522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15523 yes:no: )
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15528 ac_header_preproc=yes
15529 ;;
15530 no:yes:* )
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15543 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015544## ------------------------------------ ##
15545## Report this to http://llvm.org/bugs/ ##
15546## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015547_ASBOX
15548 ) | sed "s/^/$as_me: WARNING: /" >&2
15549 ;;
15550esac
15551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555else
15556 eval "$as_ac_Header=\$ac_header_preproc"
15557fi
15558ac_res=`eval echo '${'$as_ac_Header'}'`
15559 { echo "$as_me:$LINENO: result: $ac_res" >&5
15560echo "${ECHO_T}$ac_res" >&6; }
15561
15562fi
15563if test `eval echo '${'$as_ac_Header'}'` = yes; then
15564 cat >>confdefs.h <<_ACEOF
15565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15566_ACEOF
15567
15568fi
15569
15570done
15571
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015572
15573for ac_header in fenv.h
15574do
15575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15581fi
15582ac_res=`eval echo '${'$as_ac_Header'}'`
15583 { echo "$as_me:$LINENO: result: $ac_res" >&5
15584echo "${ECHO_T}$ac_res" >&6; }
15585else
15586 # Is the header compilable?
15587{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15588echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15589cat >conftest.$ac_ext <<_ACEOF
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
15594/* end confdefs.h. */
15595$ac_includes_default
15596#include <$ac_header>
15597_ACEOF
15598rm -f conftest.$ac_objext
15599if { (ac_try="$ac_compile"
15600case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15603esac
15604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_compile") 2>conftest.er1
15606 ac_status=$?
15607 grep -v '^ *+' conftest.er1 >conftest.err
15608 rm -f conftest.er1
15609 cat conftest.err >&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15613 { (case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_try") 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try='test -s conftest.$ac_objext'
15623 { (case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15626esac
15627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_try") 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_header_compiler=yes
15633else
15634 echo "$as_me: failed program was:" >&5
15635sed 's/^/| /' conftest.$ac_ext >&5
15636
15637 ac_header_compiler=no
15638fi
15639
15640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15642echo "${ECHO_T}$ac_header_compiler" >&6; }
15643
15644# Is the header present?
15645{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15647cat >conftest.$ac_ext <<_ACEOF
15648/* confdefs.h. */
15649_ACEOF
15650cat confdefs.h >>conftest.$ac_ext
15651cat >>conftest.$ac_ext <<_ACEOF
15652/* end confdefs.h. */
15653#include <$ac_header>
15654_ACEOF
15655if { (ac_try="$ac_cpp conftest.$ac_ext"
15656case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659esac
15660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } >/dev/null; then
15668 if test -s conftest.err; then
15669 ac_cpp_err=$ac_c_preproc_warn_flag
15670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15671 else
15672 ac_cpp_err=
15673 fi
15674else
15675 ac_cpp_err=yes
15676fi
15677if test -z "$ac_cpp_err"; then
15678 ac_header_preproc=yes
15679else
15680 echo "$as_me: failed program was:" >&5
15681sed 's/^/| /' conftest.$ac_ext >&5
15682
15683 ac_header_preproc=no
15684fi
15685
15686rm -f conftest.err conftest.$ac_ext
15687{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15688echo "${ECHO_T}$ac_header_preproc" >&6; }
15689
15690# So? What about this header?
15691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15692 yes:no: )
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15696echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15697 ac_header_preproc=yes
15698 ;;
15699 no:yes:* )
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15703echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15705echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15707echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15711echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15712 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015713## ------------------------------------ ##
15714## Report this to http://llvm.org/bugs/ ##
15715## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015716_ASBOX
15717 ) | sed "s/^/$as_me: WARNING: /" >&2
15718 ;;
15719esac
15720{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15724else
15725 eval "$as_ac_Header=\$ac_header_preproc"
15726fi
15727ac_res=`eval echo '${'$as_ac_Header'}'`
15728 { echo "$as_me:$LINENO: result: $ac_res" >&5
15729echo "${ECHO_T}$ac_res" >&6; }
15730
15731fi
15732if test `eval echo '${'$as_ac_Header'}'` = yes; then
15733 cat >>confdefs.h <<_ACEOF
15734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15735_ACEOF
15736
15737fi
15738
15739done
15740
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015741if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015742
15743for ac_header in pthread.h
15744do
15745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751fi
15752ac_res=`eval echo '${'$as_ac_Header'}'`
15753 { echo "$as_me:$LINENO: result: $ac_res" >&5
15754echo "${ECHO_T}$ac_res" >&6; }
15755else
15756 # Is the header compilable?
15757{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15759cat >conftest.$ac_ext <<_ACEOF
15760/* confdefs.h. */
15761_ACEOF
15762cat confdefs.h >>conftest.$ac_ext
15763cat >>conftest.$ac_ext <<_ACEOF
15764/* end confdefs.h. */
15765$ac_includes_default
15766#include <$ac_header>
15767_ACEOF
15768rm -f conftest.$ac_objext
15769if { (ac_try="$ac_compile"
15770case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15773esac
15774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_compile") 2>conftest.er1
15776 ac_status=$?
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
15782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15783 { (case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_try") 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try='test -s conftest.$ac_objext'
15793 { (case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796esac
15797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_try") 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_header_compiler=yes
15803else
15804 echo "$as_me: failed program was:" >&5
15805sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ac_header_compiler=no
15808fi
15809
15810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15812echo "${ECHO_T}$ac_header_compiler" >&6; }
15813
15814# Is the header present?
15815{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15817cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h. */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h. */
15823#include <$ac_header>
15824_ACEOF
15825if { (ac_try="$ac_cpp conftest.$ac_ext"
15826case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829esac
15830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } >/dev/null; then
15838 if test -s conftest.err; then
15839 ac_cpp_err=$ac_c_preproc_warn_flag
15840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15841 else
15842 ac_cpp_err=
15843 fi
15844else
15845 ac_cpp_err=yes
15846fi
15847if test -z "$ac_cpp_err"; then
15848 ac_header_preproc=yes
15849else
15850 echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853 ac_header_preproc=no
15854fi
15855
15856rm -f conftest.err conftest.$ac_ext
15857{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15858echo "${ECHO_T}$ac_header_preproc" >&6; }
15859
15860# So? What about this header?
15861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15862 yes:no: )
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15866echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15867 ac_header_preproc=yes
15868 ;;
15869 no:yes:* )
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15875echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15877echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15881echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15882 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015883## ------------------------------------ ##
15884## Report this to http://llvm.org/bugs/ ##
15885## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015886_ASBOX
15887 ) | sed "s/^/$as_me: WARNING: /" >&2
15888 ;;
15889esac
15890{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894else
15895 eval "$as_ac_Header=\$ac_header_preproc"
15896fi
15897ac_res=`eval echo '${'$as_ac_Header'}'`
15898 { echo "$as_me:$LINENO: result: $ac_res" >&5
15899echo "${ECHO_T}$ac_res" >&6; }
15900
15901fi
15902if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015903 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015905_ACEOF
15906 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015907
15908else
15909 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015910
15911fi
15912
Reid Spencerbe3e4192007-08-17 05:45:26 +000015913done
Reid Spencer1000b732006-12-01 00:37:14 +000015914
15915else
15916 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015917
15918fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015919
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015920if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015921
15922
15923for ac_header in ffi.h ffi/ffi.h
15924do
15925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931fi
15932ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934echo "${ECHO_T}$ac_res" >&6; }
15935else
15936 # Is the header compilable?
15937{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15939cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
15945$ac_includes_default
15946#include <$ac_header>
15947_ACEOF
15948rm -f conftest.$ac_objext
15949if { (ac_try="$ac_compile"
15950case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_compile") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_header_compiler=yes
15983else
15984 echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 ac_header_compiler=no
15988fi
15989
15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15992echo "${ECHO_T}$ac_header_compiler" >&6; }
15993
15994# Is the header present?
15995{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15997cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003#include <$ac_header>
16004_ACEOF
16005if { (ac_try="$ac_cpp conftest.$ac_ext"
16006case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009esac
16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev/null; then
16018 if test -s conftest.err; then
16019 ac_cpp_err=$ac_c_preproc_warn_flag
16020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16021 else
16022 ac_cpp_err=
16023 fi
16024else
16025 ac_cpp_err=yes
16026fi
16027if test -z "$ac_cpp_err"; then
16028 ac_header_preproc=yes
16029else
16030 echo "$as_me: failed program was:" >&5
16031sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 ac_header_preproc=no
16034fi
16035
16036rm -f conftest.err conftest.$ac_ext
16037{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16038echo "${ECHO_T}$ac_header_preproc" >&6; }
16039
16040# So? What about this header?
16041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16042 yes:no: )
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16047 ac_header_preproc=yes
16048 ;;
16049 no:yes:* )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16062 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016063## ------------------------------------ ##
16064## Report this to http://llvm.org/bugs/ ##
16065## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016066_ASBOX
16067 ) | sed "s/^/$as_me: WARNING: /" >&2
16068 ;;
16069esac
16070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074else
16075 eval "$as_ac_Header=\$ac_header_preproc"
16076fi
16077ac_res=`eval echo '${'$as_ac_Header'}'`
16078 { echo "$as_me:$LINENO: result: $ac_res" >&5
16079echo "${ECHO_T}$ac_res" >&6; }
16080
16081fi
16082if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016083 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016085_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016086
16087fi
16088
16089done
16090
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016091fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016092
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016093
Eric Christopher654dee42010-06-22 21:01:04 +000016094for ac_header in CrashReporterClient.h
16095do
16096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16102fi
16103ac_res=`eval echo '${'$as_ac_Header'}'`
16104 { echo "$as_me:$LINENO: result: $ac_res" >&5
16105echo "${ECHO_T}$ac_res" >&6; }
16106else
16107 # Is the header compilable?
16108{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16110cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
16116$ac_includes_default
16117#include <$ac_header>
16118_ACEOF
16119rm -f conftest.$ac_objext
16120if { (ac_try="$ac_compile"
16121case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16124esac
16125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_compile") 2>conftest.er1
16127 ac_status=$?
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
16133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16134 { (case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137esac
16138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_try") 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; } &&
16143 { ac_try='test -s conftest.$ac_objext'
16144 { (case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147esac
16148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_try") 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ac_header_compiler=yes
16154else
16155 echo "$as_me: failed program was:" >&5
16156sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 ac_header_compiler=no
16159fi
16160
16161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16163echo "${ECHO_T}$ac_header_compiler" >&6; }
16164
16165# Is the header present?
16166{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16168cat >conftest.$ac_ext <<_ACEOF
16169/* confdefs.h. */
16170_ACEOF
16171cat confdefs.h >>conftest.$ac_ext
16172cat >>conftest.$ac_ext <<_ACEOF
16173/* end confdefs.h. */
16174#include <$ac_header>
16175_ACEOF
16176if { (ac_try="$ac_cpp conftest.$ac_ext"
16177case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180esac
16181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } >/dev/null; then
16189 if test -s conftest.err; then
16190 ac_cpp_err=$ac_c_preproc_warn_flag
16191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16192 else
16193 ac_cpp_err=
16194 fi
16195else
16196 ac_cpp_err=yes
16197fi
16198if test -z "$ac_cpp_err"; then
16199 ac_header_preproc=yes
16200else
16201 echo "$as_me: failed program was:" >&5
16202sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_header_preproc=no
16205fi
16206
16207rm -f conftest.err conftest.$ac_ext
16208{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16209echo "${ECHO_T}$ac_header_preproc" >&6; }
16210
16211# So? What about this header?
16212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16213 yes:no: )
16214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16218 ac_header_preproc=yes
16219 ;;
16220 no:yes:* )
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16233 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016234## ------------------------------------ ##
16235## Report this to http://llvm.org/bugs/ ##
16236## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016237_ASBOX
16238 ) | sed "s/^/$as_me: WARNING: /" >&2
16239 ;;
16240esac
16241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245else
16246 eval "$as_ac_Header=\$ac_header_preproc"
16247fi
16248ac_res=`eval echo '${'$as_ac_Header'}'`
16249 { echo "$as_me:$LINENO: result: $ac_res" >&5
16250echo "${ECHO_T}$ac_res" >&6; }
16251
16252fi
16253if test `eval echo '${'$as_ac_Header'}'` = yes; then
16254 cat >>confdefs.h <<_ACEOF
16255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16256_ACEOF
16257
16258fi
16259
16260done
16261
16262
Eric Christopher51e57132010-12-07 02:05:42 +000016263{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16264echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016265cat >conftest.$ac_ext <<_ACEOF
16266/* confdefs.h. */
16267_ACEOF
16268cat confdefs.h >>conftest.$ac_ext
16269cat >>conftest.$ac_ext <<_ACEOF
16270/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016271extern const char *__crashreporter_info__;
16272 int main() {
16273 __crashreporter_info__ = "test";
16274 return 0;
16275 }
Eric Christopher481d4022010-12-03 07:45:22 +000016276
Eric Christopher481d4022010-12-03 07:45:22 +000016277_ACEOF
16278rm -f conftest.$ac_objext conftest$ac_exeext
16279if { (ac_try="$ac_link"
16280case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16283esac
16284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_link") 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296esac
16297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; } &&
16302 { ac_try='test -s conftest$ac_exeext'
16303 { (case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306esac
16307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_try") 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016312 { echo "$as_me:$LINENO: result: yes" >&5
16313echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016314
16315cat >>confdefs.h <<\_ACEOF
16316#define HAVE_CRASHREPORTER_INFO 1
16317_ACEOF
16318
Eric Christopher51e57132010-12-07 02:05:42 +000016319else
16320 echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322
16323 { echo "$as_me:$LINENO: result: no" >&5
16324echo "${ECHO_T}no" >&6; }
16325
16326cat >>confdefs.h <<\_ACEOF
16327#define HAVE_CRASHREPORTER_INFO 0
16328_ACEOF
16329
Eric Christopher481d4022010-12-03 07:45:22 +000016330fi
Eric Christopher654dee42010-06-22 21:01:04 +000016331
Eric Christopher51e57132010-12-07 02:05:42 +000016332rm -f core conftest.err conftest.$ac_objext \
16333 conftest$ac_exeext conftest.$ac_ext
16334
16335
Reid Spencer8085cff2005-01-16 02:58:39 +000016336
Torok Edwin871384f2010-01-26 08:50:50 +000016337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016338 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16339echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16340if test "${ac_cv_huge_val_sanity+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016342else
16343
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016344 ac_ext=cpp
16345ac_cpp='$CXXCPP $CPPFLAGS'
16346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016349
Eric Christopherc7718502010-03-02 05:06:54 +000016350 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016351 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016352 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016353 ac_cv_huge_val_sanity=yes
16354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016355 cat >conftest.$ac_ext <<_ACEOF
16356/* confdefs.h. */
16357_ACEOF
16358cat confdefs.h >>conftest.$ac_ext
16359cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016360/* end confdefs.h. */
16361#include <math.h>
16362int
16363main ()
16364{
16365double x = HUGE_VAL; return x != x;
16366 ;
16367 return 0;
16368}
16369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016370rm -f conftest$ac_exeext
16371if { (ac_try="$ac_link"
16372case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_link") 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016390 ac_cv_huge_val_sanity=yes
16391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016392 echo "$as_me: program exited with status $ac_status" >&5
16393echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396( exit $ac_status )
16397ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016399rm -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 +000016400fi
16401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016402
Eric Christopherc7718502010-03-02 05:06:54 +000016403 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016404 ac_ext=c
16405ac_cpp='$CPP $CPPFLAGS'
16406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16408ac_compiler_gnu=$ac_cv_c_compiler_gnu
16409
16410
16411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016412{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16413echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016414 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16415
16416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417{ echo "$as_me:$LINENO: checking for pid_t" >&5
16418echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16419if test "${ac_cv_type_pid_t+set}" = set; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16421else
16422 cat >conftest.$ac_ext <<_ACEOF
16423/* confdefs.h. */
16424_ACEOF
16425cat confdefs.h >>conftest.$ac_ext
16426cat >>conftest.$ac_ext <<_ACEOF
16427/* end confdefs.h. */
16428$ac_includes_default
16429typedef pid_t ac__type_new_;
16430int
16431main ()
16432{
16433if ((ac__type_new_ *) 0)
16434 return 0;
16435if (sizeof (ac__type_new_))
16436 return 0;
16437 ;
16438 return 0;
16439}
16440_ACEOF
16441rm -f conftest.$ac_objext
16442if { (ac_try="$ac_compile"
16443case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16446esac
16447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_compile") 2>conftest.er1
16449 ac_status=$?
16450 grep -v '^ *+' conftest.er1 >conftest.err
16451 rm -f conftest.er1
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16456 { (case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459esac
16460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_try") 2>&5
16462 ac_status=$?
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; } &&
16465 { ac_try='test -s conftest.$ac_objext'
16466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469esac
16470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_type_pid_t=yes
16476else
16477 echo "$as_me: failed program was:" >&5
16478sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016480 ac_cv_type_pid_t=no
16481fi
16482
16483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484fi
16485{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16486echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16487if test $ac_cv_type_pid_t = yes; then
16488 :
John Criswell7a73b802003-06-30 21:59:07 +000016489else
16490
16491cat >>confdefs.h <<_ACEOF
16492#define pid_t int
16493_ACEOF
16494
16495fi
16496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016497{ echo "$as_me:$LINENO: checking for size_t" >&5
16498echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16499if test "${ac_cv_type_size_t+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501else
16502 cat >conftest.$ac_ext <<_ACEOF
16503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
16508$ac_includes_default
16509typedef size_t ac__type_new_;
16510int
16511main ()
16512{
16513if ((ac__type_new_ *) 0)
16514 return 0;
16515if (sizeof (ac__type_new_))
16516 return 0;
16517 ;
16518 return 0;
16519}
16520_ACEOF
16521rm -f conftest.$ac_objext
16522if { (ac_try="$ac_compile"
16523case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549esac
16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_type_size_t=yes
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016560 ac_cv_type_size_t=no
16561fi
16562
16563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564fi
16565{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16566echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16567if test $ac_cv_type_size_t = yes; then
16568 :
John Criswell7a73b802003-06-30 21:59:07 +000016569else
16570
16571cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016572#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016573_ACEOF
16574
16575fi
16576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016577
16578cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016579#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016580_ACEOF
16581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016582{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16583echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16584if test "${ac_cv_struct_tm+set}" = set; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016587 cat >conftest.$ac_ext <<_ACEOF
16588/* confdefs.h. */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
16591cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016592/* end confdefs.h. */
16593#include <sys/types.h>
16594#include <time.h>
16595
16596int
16597main ()
16598{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016599struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016600 ;
16601 return 0;
16602}
16603_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016604rm -f conftest.$ac_objext
16605if { (ac_try="$ac_compile"
16606case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609esac
16610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_compile") 2>conftest.er1
16612 ac_status=$?
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } &&
16618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16619 { (case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_try") 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest.$ac_objext'
16629 { (case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_try") 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016638 ac_cv_struct_tm=time.h
16639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016640 echo "$as_me: failed program was:" >&5
16641sed 's/^/| /' conftest.$ac_ext >&5
16642
16643 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016645
Reid Spencera773bd52006-08-04 18:18:08 +000016646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016647fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016648{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16649echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016650if test $ac_cv_struct_tm = sys/time.h; then
16651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016652cat >>confdefs.h <<\_ACEOF
16653#define TM_IN_SYS_TIME 1
16654_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016655
16656fi
16657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016658{ echo "$as_me:$LINENO: checking for int64_t" >&5
16659echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16660if test "${ac_cv_type_int64_t+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662else
16663 cat >conftest.$ac_ext <<_ACEOF
16664/* confdefs.h. */
16665_ACEOF
16666cat confdefs.h >>conftest.$ac_ext
16667cat >>conftest.$ac_ext <<_ACEOF
16668/* end confdefs.h. */
16669$ac_includes_default
16670typedef int64_t ac__type_new_;
16671int
16672main ()
16673{
16674if ((ac__type_new_ *) 0)
16675 return 0;
16676if (sizeof (ac__type_new_))
16677 return 0;
16678 ;
16679 return 0;
16680}
16681_ACEOF
16682rm -f conftest.$ac_objext
16683if { (ac_try="$ac_compile"
16684case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687esac
16688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_compile") 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest.$ac_objext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_type_int64_t=yes
16717else
16718 echo "$as_me: failed program was:" >&5
16719sed 's/^/| /' conftest.$ac_ext >&5
16720
16721 ac_cv_type_int64_t=no
16722fi
16723
16724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725fi
16726{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16727echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16728if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016729
16730cat >>confdefs.h <<_ACEOF
16731#define HAVE_INT64_T 1
16732_ACEOF
16733
16734
16735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016736 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16737echo "$as_me: error: Type int64_t required but not found" >&2;}
16738 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016739fi
16740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016741{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16742echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16743if test "${ac_cv_type_uint64_t+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745else
16746 cat >conftest.$ac_ext <<_ACEOF
16747/* confdefs.h. */
16748_ACEOF
16749cat confdefs.h >>conftest.$ac_ext
16750cat >>conftest.$ac_ext <<_ACEOF
16751/* end confdefs.h. */
16752$ac_includes_default
16753typedef uint64_t ac__type_new_;
16754int
16755main ()
16756{
16757if ((ac__type_new_ *) 0)
16758 return 0;
16759if (sizeof (ac__type_new_))
16760 return 0;
16761 ;
16762 return 0;
16763}
16764_ACEOF
16765rm -f conftest.$ac_objext
16766if { (ac_try="$ac_compile"
16767case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_compile") 2>conftest.er1
16773 ac_status=$?
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
16779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16780 { (case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783esac
16784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_try") 2>&5
16786 ac_status=$?
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; } &&
16789 { ac_try='test -s conftest.$ac_objext'
16790 { (case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16793esac
16794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_try") 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_type_uint64_t=yes
16800else
16801 echo "$as_me: failed program was:" >&5
16802sed 's/^/| /' conftest.$ac_ext >&5
16803
16804 ac_cv_type_uint64_t=no
16805fi
16806
16807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16808fi
16809{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16810echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16811if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016812
16813cat >>confdefs.h <<_ACEOF
16814#define HAVE_UINT64_T 1
16815_ACEOF
16816
16817
16818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016819 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16820echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16821if test "${ac_cv_type_u_int64_t+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823else
16824 cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830$ac_includes_default
16831typedef u_int64_t ac__type_new_;
16832int
16833main ()
16834{
16835if ((ac__type_new_ *) 0)
16836 return 0;
16837if (sizeof (ac__type_new_))
16838 return 0;
16839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext
16844if { (ac_try="$ac_compile"
16845case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848esac
16849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_compile") 2>conftest.er1
16851 ac_status=$?
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16858 { (case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_try") 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try='test -s conftest.$ac_objext'
16868 { (case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16871esac
16872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_try") 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 ac_cv_type_u_int64_t=yes
16878else
16879 echo "$as_me: failed program was:" >&5
16880sed 's/^/| /' conftest.$ac_ext >&5
16881
16882 ac_cv_type_u_int64_t=no
16883fi
16884
16885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886fi
16887{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16888echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16889if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016890
16891cat >>confdefs.h <<_ACEOF
16892#define HAVE_U_INT64_T 1
16893_ACEOF
16894
16895
Misha Brukmanceca9042004-09-02 23:02:30 +000016896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016897 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16898echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16899 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016900fi
16901
John Criswell679ff312004-09-02 18:44:44 +000016902fi
16903
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016904
16905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016906
16907
16908
16909
16910
16911
16912
Reid Spencerdf3be822006-01-23 08:15:53 +000016913for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016914do
16915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920else
16921 cat >conftest.$ac_ext <<_ACEOF
16922/* confdefs.h. */
16923_ACEOF
16924cat confdefs.h >>conftest.$ac_ext
16925cat >>conftest.$ac_ext <<_ACEOF
16926/* end confdefs.h. */
16927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16929#define $ac_func innocuous_$ac_func
16930
16931/* System header to define __stub macros and hopefully few prototypes,
16932 which can conflict with char $ac_func (); below.
16933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16934 <limits.h> exists even on freestanding compilers. */
16935
16936#ifdef __STDC__
16937# include <limits.h>
16938#else
16939# include <assert.h>
16940#endif
16941
16942#undef $ac_func
16943
16944/* Override any GCC internal prototype to avoid an error.
16945 Use char because int might match the return type of a GCC
16946 builtin and then its argument prototype would still apply. */
16947#ifdef __cplusplus
16948extern "C"
16949#endif
16950char $ac_func ();
16951/* The GNU C library defines this for functions which it implements
16952 to always fail with ENOSYS. Some functions are actually named
16953 something starting with __ and the normal name is an alias. */
16954#if defined __stub_$ac_func || defined __stub___$ac_func
16955choke me
16956#endif
16957
16958int
16959main ()
16960{
16961return $ac_func ();
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext conftest$ac_exeext
16967if { (ac_try="$ac_link"
16968case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
16972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_link") 2>conftest.er1
16974 ac_status=$?
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16981 { (case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984esac
16985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_try") 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest$ac_exeext'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
16995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 eval "$as_ac_var=yes"
17001else
17002 echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 eval "$as_ac_var=no"
17006fi
17007
17008rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
17010fi
17011ac_res=`eval echo '${'$as_ac_var'}'`
17012 { echo "$as_me:$LINENO: result: $ac_res" >&5
17013echo "${ECHO_T}$ac_res" >&6; }
17014if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017015 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017017_ACEOF
17018
17019fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017020done
John Criswell7a73b802003-06-30 21:59:07 +000017021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017022
17023
17024
17025
Reid Spencer96cf5872007-07-13 10:05:30 +000017026for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017027do
17028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17029{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17031if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 cat >conftest.$ac_ext <<_ACEOF
17035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
17040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17042#define $ac_func innocuous_$ac_func
17043
17044/* System header to define __stub macros and hopefully few prototypes,
17045 which can conflict with char $ac_func (); below.
17046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047 <limits.h> exists even on freestanding compilers. */
17048
17049#ifdef __STDC__
17050# include <limits.h>
17051#else
17052# include <assert.h>
17053#endif
17054
17055#undef $ac_func
17056
17057/* Override any GCC internal prototype to avoid an error.
17058 Use char because int might match the return type of a GCC
17059 builtin and then its argument prototype would still apply. */
17060#ifdef __cplusplus
17061extern "C"
17062#endif
17063char $ac_func ();
17064/* The GNU C library defines this for functions which it implements
17065 to always fail with ENOSYS. Some functions are actually named
17066 something starting with __ and the normal name is an alias. */
17067#if defined __stub_$ac_func || defined __stub___$ac_func
17068choke me
17069#endif
17070
17071int
17072main ()
17073{
17074return $ac_func ();
17075 ;
17076 return 0;
17077}
17078_ACEOF
17079rm -f conftest.$ac_objext conftest$ac_exeext
17080if { (ac_try="$ac_link"
17081case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_link") 2>conftest.er1
17087 ac_status=$?
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097esac
17098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest$ac_exeext'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107esac
17108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 eval "$as_ac_var=yes"
17114else
17115 echo "$as_me: failed program was:" >&5
17116sed 's/^/| /' conftest.$ac_ext >&5
17117
17118 eval "$as_ac_var=no"
17119fi
17120
17121rm -f core conftest.err conftest.$ac_objext \
17122 conftest$ac_exeext conftest.$ac_ext
17123fi
17124ac_res=`eval echo '${'$as_ac_var'}'`
17125 { echo "$as_me:$LINENO: result: $ac_res" >&5
17126echo "${ECHO_T}$ac_res" >&6; }
17127if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017128 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017130_ACEOF
17131
17132fi
17133done
17134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017135
17136
17137
17138
17139
Reid Spencerb90645c2007-02-16 19:17:20 +000017140for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017141do
17142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147else
17148 cat >conftest.$ac_ext <<_ACEOF
17149/* confdefs.h. */
17150_ACEOF
17151cat confdefs.h >>conftest.$ac_ext
17152cat >>conftest.$ac_ext <<_ACEOF
17153/* end confdefs.h. */
17154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17156#define $ac_func innocuous_$ac_func
17157
17158/* System header to define __stub macros and hopefully few prototypes,
17159 which can conflict with char $ac_func (); below.
17160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17161 <limits.h> exists even on freestanding compilers. */
17162
17163#ifdef __STDC__
17164# include <limits.h>
17165#else
17166# include <assert.h>
17167#endif
17168
17169#undef $ac_func
17170
17171/* Override any GCC internal prototype to avoid an error.
17172 Use char because int might match the return type of a GCC
17173 builtin and then its argument prototype would still apply. */
17174#ifdef __cplusplus
17175extern "C"
17176#endif
17177char $ac_func ();
17178/* The GNU C library defines this for functions which it implements
17179 to always fail with ENOSYS. Some functions are actually named
17180 something starting with __ and the normal name is an alias. */
17181#if defined __stub_$ac_func || defined __stub___$ac_func
17182choke me
17183#endif
17184
17185int
17186main ()
17187{
17188return $ac_func ();
17189 ;
17190 return 0;
17191}
17192_ACEOF
17193rm -f conftest.$ac_objext conftest$ac_exeext
17194if { (ac_try="$ac_link"
17195case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17198esac
17199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17201 ac_status=$?
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17208 { (case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17211esac
17212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_try") 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest$ac_exeext'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 eval "$as_ac_var=yes"
17228else
17229 echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 eval "$as_ac_var=no"
17233fi
17234
17235rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237fi
17238ac_res=`eval echo '${'$as_ac_var'}'`
17239 { echo "$as_me:$LINENO: result: $ac_res" >&5
17240echo "${ECHO_T}$ac_res" >&6; }
17241if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017242 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017244_ACEOF
17245
17246fi
17247done
17248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017249
17250
17251
Reid Spencerb90645c2007-02-16 19:17:20 +000017252for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017253do
17254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17257if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259else
17260 cat >conftest.$ac_ext <<_ACEOF
17261/* confdefs.h. */
17262_ACEOF
17263cat confdefs.h >>conftest.$ac_ext
17264cat >>conftest.$ac_ext <<_ACEOF
17265/* end confdefs.h. */
17266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268#define $ac_func innocuous_$ac_func
17269
17270/* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17274
17275#ifdef __STDC__
17276# include <limits.h>
17277#else
17278# include <assert.h>
17279#endif
17280
17281#undef $ac_func
17282
17283/* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17286#ifdef __cplusplus
17287extern "C"
17288#endif
17289char $ac_func ();
17290/* The GNU C library defines this for functions which it implements
17291 to always fail with ENOSYS. Some functions are actually named
17292 something starting with __ and the normal name is an alias. */
17293#if defined __stub_$ac_func || defined __stub___$ac_func
17294choke me
17295#endif
17296
17297int
17298main ()
17299{
17300return $ac_func ();
17301 ;
17302 return 0;
17303}
17304_ACEOF
17305rm -f conftest.$ac_objext conftest$ac_exeext
17306if { (ac_try="$ac_link"
17307case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310esac
17311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_link") 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } &&
17319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17320 { (case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323esac
17324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_try") 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest$ac_exeext'
17330 { (case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17333esac
17334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_try") 2>&5
17336 ac_status=$?
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; }; then
17339 eval "$as_ac_var=yes"
17340else
17341 echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
17344 eval "$as_ac_var=no"
17345fi
17346
17347rm -f core conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17349fi
17350ac_res=`eval echo '${'$as_ac_var'}'`
17351 { echo "$as_me:$LINENO: result: $ac_res" >&5
17352echo "${ECHO_T}$ac_res" >&6; }
17353if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017354 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017356_ACEOF
17357
17358fi
17359done
17360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017361
17362
17363
17364
17365
Eric Christophere4291822010-04-16 05:14:21 +000017366
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017367
17368for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017369do
17370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17371{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17373if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17375else
17376 cat >conftest.$ac_ext <<_ACEOF
17377/* confdefs.h. */
17378_ACEOF
17379cat confdefs.h >>conftest.$ac_ext
17380cat >>conftest.$ac_ext <<_ACEOF
17381/* end confdefs.h. */
17382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17384#define $ac_func innocuous_$ac_func
17385
17386/* System header to define __stub macros and hopefully few prototypes,
17387 which can conflict with char $ac_func (); below.
17388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17389 <limits.h> exists even on freestanding compilers. */
17390
17391#ifdef __STDC__
17392# include <limits.h>
17393#else
17394# include <assert.h>
17395#endif
17396
17397#undef $ac_func
17398
17399/* Override any GCC internal prototype to avoid an error.
17400 Use char because int might match the return type of a GCC
17401 builtin and then its argument prototype would still apply. */
17402#ifdef __cplusplus
17403extern "C"
17404#endif
17405char $ac_func ();
17406/* The GNU C library defines this for functions which it implements
17407 to always fail with ENOSYS. Some functions are actually named
17408 something starting with __ and the normal name is an alias. */
17409#if defined __stub_$ac_func || defined __stub___$ac_func
17410choke me
17411#endif
17412
17413int
17414main ()
17415{
17416return $ac_func ();
17417 ;
17418 return 0;
17419}
17420_ACEOF
17421rm -f conftest.$ac_objext conftest$ac_exeext
17422if { (ac_try="$ac_link"
17423case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17426esac
17427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_link") 2>conftest.er1
17429 ac_status=$?
17430 grep -v '^ *+' conftest.er1 >conftest.err
17431 rm -f conftest.er1
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17436 { (case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439esac
17440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_try") 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest$ac_exeext'
17446 { (case "(($ac_try" in
17447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448 *) ac_try_echo=$ac_try;;
17449esac
17450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451 (eval "$ac_try") 2>&5
17452 ac_status=$?
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 eval "$as_ac_var=yes"
17456else
17457 echo "$as_me: failed program was:" >&5
17458sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 eval "$as_ac_var=no"
17461fi
17462
17463rm -f core conftest.err conftest.$ac_objext \
17464 conftest$ac_exeext conftest.$ac_ext
17465fi
17466ac_res=`eval echo '${'$as_ac_var'}'`
17467 { echo "$as_me:$LINENO: result: $ac_res" >&5
17468echo "${ECHO_T}$ac_res" >&6; }
17469if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017470 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017471#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017472_ACEOF
17473
17474fi
17475done
Reid Spencerdf3be822006-01-23 08:15:53 +000017476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017477
17478
17479
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017480
17481for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017482do
17483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489 cat >conftest.$ac_ext <<_ACEOF
17490/* confdefs.h. */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h. */
17495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17497#define $ac_func innocuous_$ac_func
17498
17499/* System header to define __stub macros and hopefully few prototypes,
17500 which can conflict with char $ac_func (); below.
17501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502 <limits.h> exists even on freestanding compilers. */
17503
17504#ifdef __STDC__
17505# include <limits.h>
17506#else
17507# include <assert.h>
17508#endif
17509
17510#undef $ac_func
17511
17512/* Override any GCC internal prototype to avoid an error.
17513 Use char because int might match the return type of a GCC
17514 builtin and then its argument prototype would still apply. */
17515#ifdef __cplusplus
17516extern "C"
17517#endif
17518char $ac_func ();
17519/* The GNU C library defines this for functions which it implements
17520 to always fail with ENOSYS. Some functions are actually named
17521 something starting with __ and the normal name is an alias. */
17522#if defined __stub_$ac_func || defined __stub___$ac_func
17523choke me
17524#endif
17525
17526int
17527main ()
17528{
17529return $ac_func ();
17530 ;
17531 return 0;
17532}
17533_ACEOF
17534rm -f conftest.$ac_objext conftest$ac_exeext
17535if { (ac_try="$ac_link"
17536case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552esac
17553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17569else
17570 echo "$as_me: failed program was:" >&5
17571sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 eval "$as_ac_var=no"
17574fi
17575
17576rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17578fi
17579ac_res=`eval echo '${'$as_ac_var'}'`
17580 { echo "$as_me:$LINENO: result: $ac_res" >&5
17581echo "${ECHO_T}$ac_res" >&6; }
17582if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017583 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017585_ACEOF
17586
17587fi
17588done
17589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017590
17591
17592
17593
Chris Lattner511f11d2005-11-14 07:25:50 +000017594for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017595do
17596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17597{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17599if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601else
17602 cat >conftest.$ac_ext <<_ACEOF
17603/* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
17608/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17610#define $ac_func innocuous_$ac_func
17611
17612/* System header to define __stub macros and hopefully few prototypes,
17613 which can conflict with char $ac_func (); below.
17614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17615 <limits.h> exists even on freestanding compilers. */
17616
17617#ifdef __STDC__
17618# include <limits.h>
17619#else
17620# include <assert.h>
17621#endif
17622
17623#undef $ac_func
17624
17625/* Override any GCC internal prototype to avoid an error.
17626 Use char because int might match the return type of a GCC
17627 builtin and then its argument prototype would still apply. */
17628#ifdef __cplusplus
17629extern "C"
17630#endif
17631char $ac_func ();
17632/* The GNU C library defines this for functions which it implements
17633 to always fail with ENOSYS. Some functions are actually named
17634 something starting with __ and the normal name is an alias. */
17635#if defined __stub_$ac_func || defined __stub___$ac_func
17636choke me
17637#endif
17638
17639int
17640main ()
17641{
17642return $ac_func ();
17643 ;
17644 return 0;
17645}
17646_ACEOF
17647rm -f conftest.$ac_objext conftest$ac_exeext
17648if { (ac_try="$ac_link"
17649case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652esac
17653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_link") 2>conftest.er1
17655 ac_status=$?
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17662 { (case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17665esac
17666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_try") 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest$ac_exeext'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17675esac
17676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 eval "$as_ac_var=yes"
17682else
17683 echo "$as_me: failed program was:" >&5
17684sed 's/^/| /' conftest.$ac_ext >&5
17685
17686 eval "$as_ac_var=no"
17687fi
17688
17689rm -f core conftest.err conftest.$ac_objext \
17690 conftest$ac_exeext conftest.$ac_ext
17691fi
17692ac_res=`eval echo '${'$as_ac_var'}'`
17693 { echo "$as_me:$LINENO: result: $ac_res" >&5
17694echo "${ECHO_T}$ac_res" >&6; }
17695if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017696 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017697#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017698_ACEOF
17699
17700fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017701done
John Criswell7a73b802003-06-30 21:59:07 +000017702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017703
17704
17705
17706
Daniel Dunbar3e462932011-02-03 02:40:02 +000017707
17708for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017709do
17710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17715else
17716 cat >conftest.$ac_ext <<_ACEOF
17717/* confdefs.h. */
17718_ACEOF
17719cat confdefs.h >>conftest.$ac_ext
17720cat >>conftest.$ac_ext <<_ACEOF
17721/* end confdefs.h. */
17722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17724#define $ac_func innocuous_$ac_func
17725
17726/* System header to define __stub macros and hopefully few prototypes,
17727 which can conflict with char $ac_func (); below.
17728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17729 <limits.h> exists even on freestanding compilers. */
17730
17731#ifdef __STDC__
17732# include <limits.h>
17733#else
17734# include <assert.h>
17735#endif
17736
17737#undef $ac_func
17738
17739/* Override any GCC internal prototype to avoid an error.
17740 Use char because int might match the return type of a GCC
17741 builtin and then its argument prototype would still apply. */
17742#ifdef __cplusplus
17743extern "C"
17744#endif
17745char $ac_func ();
17746/* The GNU C library defines this for functions which it implements
17747 to always fail with ENOSYS. Some functions are actually named
17748 something starting with __ and the normal name is an alias. */
17749#if defined __stub_$ac_func || defined __stub___$ac_func
17750choke me
17751#endif
17752
17753int
17754main ()
17755{
17756return $ac_func ();
17757 ;
17758 return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext conftest$ac_exeext
17762if { (ac_try="$ac_link"
17763case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_link") 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17776 { (case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17779esac
17780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_try") 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest$ac_exeext'
17786 { (case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789esac
17790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_try") 2>&5
17792 ac_status=$?
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 eval "$as_ac_var=yes"
17796else
17797 echo "$as_me: failed program was:" >&5
17798sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 eval "$as_ac_var=no"
17801fi
17802
17803rm -f core conftest.err conftest.$ac_objext \
17804 conftest$ac_exeext conftest.$ac_ext
17805fi
17806ac_res=`eval echo '${'$as_ac_var'}'`
17807 { echo "$as_me:$LINENO: result: $ac_res" >&5
17808echo "${ECHO_T}$ac_res" >&6; }
17809if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017810 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017812_ACEOF
17813
17814fi
17815done
17816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017817{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17818echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17819if test "${llvm_cv_c_printf_a+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017821else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017822 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017823ac_cpp='$CPP $CPPFLAGS'
17824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17826ac_compiler_gnu=$ac_cv_c_compiler_gnu
17827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017828 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017829 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017831 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017833 /* confdefs.h. */
17834_ACEOF
17835cat confdefs.h >>conftest.$ac_ext
17836cat >>conftest.$ac_ext <<_ACEOF
17837/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017838
John Criswella0137d32003-10-13 16:22:01 +000017839#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017840#include <stdlib.h>
17841
John Criswella0137d32003-10-13 16:22:01 +000017842int
17843main ()
17844{
17845
Reid Spencer2706f8c2004-09-19 23:53:36 +000017846volatile double A, B;
17847char Buffer[100];
17848A = 1;
17849A /= 10.0;
17850sprintf(Buffer, "%a", A);
17851B = atof(Buffer);
17852if (A != B)
17853 return (1);
17854if (A != 0x1.999999999999ap-4)
17855 return (1);
17856return (0);
John Criswella0137d32003-10-13 16:22:01 +000017857 ;
17858 return 0;
17859}
17860_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017861rm -f conftest$ac_exeext
17862if { (ac_try="$ac_link"
17863case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866esac
17867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17872 { (case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17875esac
17876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17877 (eval "$ac_try") 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017881 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017883 echo "$as_me: program exited with status $ac_status" >&5
17884echo "$as_me: failed program was:" >&5
17885sed 's/^/| /' conftest.$ac_ext >&5
17886
17887( exit $ac_status )
17888llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017889fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017890rm -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 +000017891fi
Reid Spencera773bd52006-08-04 18:18:08 +000017892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017893
Reid Spencer2706f8c2004-09-19 23:53:36 +000017894 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017895ac_cpp='$CPP $CPPFLAGS'
17896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17898ac_compiler_gnu=$ac_cv_c_compiler_gnu
17899
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017900fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017901{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17902echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017903 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017905cat >>confdefs.h <<\_ACEOF
17906#define HAVE_PRINTF_A 1
17907_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017908
Reid Spencer2706f8c2004-09-19 23:53:36 +000017909 fi
John Criswella0137d32003-10-13 16:22:01 +000017910
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017912{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17913echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17914if test "${ac_cv_func_rand48+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017916else
Reid Spencera773bd52006-08-04 18:18:08 +000017917 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017918ac_cpp='$CXXCPP $CPPFLAGS'
17919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017923 cat >conftest.$ac_ext <<_ACEOF
17924/* confdefs.h. */
17925_ACEOF
17926cat confdefs.h >>conftest.$ac_ext
17927cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017928/* end confdefs.h. */
17929#include <stdlib.h>
17930int
17931main ()
17932{
17933srand48(0);lrand48();drand48();
17934 ;
17935 return 0;
17936}
17937_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017938rm -f conftest.$ac_objext
17939if { (ac_try="$ac_compile"
17940case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17943esac
17944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_compile") 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17953 { (case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17956esac
17957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_try") 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17966esac
17967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968 (eval "$ac_try") 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017972 ac_cv_func_rand48=yes
17973else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017974 echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
17977 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017979
Reid Spencera773bd52006-08-04 18:18:08 +000017980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017981 ac_ext=c
17982ac_cpp='$CPP $CPPFLAGS'
17983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985ac_compiler_gnu=$ac_cv_c_compiler_gnu
17986
17987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017988{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17989echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017990
17991if test "$ac_cv_func_rand48" = "yes" ; then
17992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017993cat >>confdefs.h <<\_ACEOF
17994#define HAVE_RAND48 1
17995_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017996
17997fi
John Criswell0021c312004-02-13 21:57:29 +000017998
17999
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018000{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18001echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18002if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004else
18005 cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
18011$ac_includes_default
18012int
18013main ()
18014{
18015#ifndef strerror_s
18016 char *p = (char *) strerror_s;
18017 return !p;
18018#endif
18019
18020 ;
18021 return 0;
18022}
18023_ACEOF
18024rm -f conftest.$ac_objext
18025if { (ac_try="$ac_compile"
18026case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029esac
18030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_compile") 2>conftest.er1
18032 ac_status=$?
18033 grep -v '^ *+' conftest.er1 >conftest.err
18034 rm -f conftest.er1
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } &&
18038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18039 { (case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18042esac
18043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_try") 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try='test -s conftest.$ac_objext'
18049 { (case "(($ac_try" in
18050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051 *) ac_try_echo=$ac_try;;
18052esac
18053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18054 (eval "$ac_try") 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; }; then
18058 ac_cv_have_decl_strerror_s=yes
18059else
18060 echo "$as_me: failed program was:" >&5
18061sed 's/^/| /' conftest.$ac_ext >&5
18062
18063 ac_cv_have_decl_strerror_s=no
18064fi
18065
18066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18067fi
18068{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18069echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18070if test $ac_cv_have_decl_strerror_s = yes; then
18071
18072cat >>confdefs.h <<_ACEOF
18073#define HAVE_DECL_STRERROR_S 1
18074_ACEOF
18075
18076
18077else
18078 cat >>confdefs.h <<_ACEOF
18079#define HAVE_DECL_STRERROR_S 0
18080_ACEOF
18081
18082
18083fi
18084
18085
18086
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018087if test "$llvm_cv_os_type" = "MingW" ; then
18088 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18089echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18090if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092else
18093 ac_check_lib_save_LIBS=$LIBS
18094LIBS="-lgcc $LIBS"
18095cat >conftest.$ac_ext <<_ACEOF
18096/* confdefs.h. */
18097_ACEOF
18098cat confdefs.h >>conftest.$ac_ext
18099cat >>conftest.$ac_ext <<_ACEOF
18100/* end confdefs.h. */
18101
18102/* Override any GCC internal prototype to avoid an error.
18103 Use char because int might match the return type of a GCC
18104 builtin and then its argument prototype would still apply. */
18105#ifdef __cplusplus
18106extern "C"
18107#endif
18108char _alloca ();
18109int
18110main ()
18111{
18112return _alloca ();
18113 ;
18114 return 0;
18115}
18116_ACEOF
18117rm -f conftest.$ac_objext conftest$ac_exeext
18118if { (ac_try="$ac_link"
18119case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_link") 2>conftest.er1
18125 ac_status=$?
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -f conftest.er1
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
18131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18132 { (case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18135esac
18136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_try") 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest$ac_exeext'
18142 { (case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18145esac
18146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_try") 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; }; then
18151 ac_cv_lib_gcc__alloca=yes
18152else
18153 echo "$as_me: failed program was:" >&5
18154sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 ac_cv_lib_gcc__alloca=no
18157fi
18158
18159rm -f core conftest.err conftest.$ac_objext \
18160 conftest$ac_exeext conftest.$ac_ext
18161LIBS=$ac_check_lib_save_LIBS
18162fi
18163{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18164echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18165if test $ac_cv_lib_gcc__alloca = yes; then
18166
18167cat >>confdefs.h <<\_ACEOF
18168#define HAVE__ALLOCA 1
18169_ACEOF
18170
18171fi
18172
18173 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18174echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18175if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177else
18178 ac_check_lib_save_LIBS=$LIBS
18179LIBS="-lgcc $LIBS"
18180cat >conftest.$ac_ext <<_ACEOF
18181/* confdefs.h. */
18182_ACEOF
18183cat confdefs.h >>conftest.$ac_ext
18184cat >>conftest.$ac_ext <<_ACEOF
18185/* end confdefs.h. */
18186
18187/* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18190#ifdef __cplusplus
18191extern "C"
18192#endif
18193char __alloca ();
18194int
18195main ()
18196{
18197return __alloca ();
18198 ;
18199 return 0;
18200}
18201_ACEOF
18202rm -f conftest.$ac_objext conftest$ac_exeext
18203if { (ac_try="$ac_link"
18204case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207esac
18208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_link") 2>conftest.er1
18210 ac_status=$?
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18217 { (case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220esac
18221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_try") 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest$ac_exeext'
18227 { (case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18230esac
18231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232 (eval "$ac_try") 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_cv_lib_gcc___alloca=yes
18237else
18238 echo "$as_me: failed program was:" >&5
18239sed 's/^/| /' conftest.$ac_ext >&5
18240
18241 ac_cv_lib_gcc___alloca=no
18242fi
18243
18244rm -f core conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18246LIBS=$ac_check_lib_save_LIBS
18247fi
18248{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18249echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18250if test $ac_cv_lib_gcc___alloca = yes; then
18251
18252cat >>confdefs.h <<\_ACEOF
18253#define HAVE___ALLOCA 1
18254_ACEOF
18255
18256fi
18257
18258 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18259echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18260if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18262else
18263 ac_check_lib_save_LIBS=$LIBS
18264LIBS="-lgcc $LIBS"
18265cat >conftest.$ac_ext <<_ACEOF
18266/* confdefs.h. */
18267_ACEOF
18268cat confdefs.h >>conftest.$ac_ext
18269cat >>conftest.$ac_ext <<_ACEOF
18270/* end confdefs.h. */
18271
18272/* Override any GCC internal prototype to avoid an error.
18273 Use char because int might match the return type of a GCC
18274 builtin and then its argument prototype would still apply. */
18275#ifdef __cplusplus
18276extern "C"
18277#endif
18278char __chkstk ();
18279int
18280main ()
18281{
18282return __chkstk ();
18283 ;
18284 return 0;
18285}
18286_ACEOF
18287rm -f conftest.$ac_objext conftest$ac_exeext
18288if { (ac_try="$ac_link"
18289case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18292esac
18293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_link") 2>conftest.er1
18295 ac_status=$?
18296 grep -v '^ *+' conftest.er1 >conftest.err
18297 rm -f conftest.er1
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18302 { (case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18305esac
18306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_try") 2>&5
18308 ac_status=$?
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try='test -s conftest$ac_exeext'
18312 { (case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18315esac
18316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_try") 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_lib_gcc___chkstk=yes
18322else
18323 echo "$as_me: failed program was:" >&5
18324sed 's/^/| /' conftest.$ac_ext >&5
18325
18326 ac_cv_lib_gcc___chkstk=no
18327fi
18328
18329rm -f core conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331LIBS=$ac_check_lib_save_LIBS
18332fi
18333{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18334echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18335if test $ac_cv_lib_gcc___chkstk = yes; then
18336
18337cat >>confdefs.h <<\_ACEOF
18338#define HAVE___CHKSTK 1
18339_ACEOF
18340
18341fi
18342
18343 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18344echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18345if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18347else
18348 ac_check_lib_save_LIBS=$LIBS
18349LIBS="-lgcc $LIBS"
18350cat >conftest.$ac_ext <<_ACEOF
18351/* confdefs.h. */
18352_ACEOF
18353cat confdefs.h >>conftest.$ac_ext
18354cat >>conftest.$ac_ext <<_ACEOF
18355/* end confdefs.h. */
18356
18357/* Override any GCC internal prototype to avoid an error.
18358 Use char because int might match the return type of a GCC
18359 builtin and then its argument prototype would still apply. */
18360#ifdef __cplusplus
18361extern "C"
18362#endif
18363char ___chkstk ();
18364int
18365main ()
18366{
18367return ___chkstk ();
18368 ;
18369 return 0;
18370}
18371_ACEOF
18372rm -f conftest.$ac_objext conftest$ac_exeext
18373if { (ac_try="$ac_link"
18374case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377esac
18378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_link") 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390esac
18391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; } &&
18396 { ac_try='test -s conftest$ac_exeext'
18397 { (case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18400esac
18401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_try") 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 ac_cv_lib_gcc____chkstk=yes
18407else
18408 echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
18410
18411 ac_cv_lib_gcc____chkstk=no
18412fi
18413
18414rm -f core conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416LIBS=$ac_check_lib_save_LIBS
18417fi
18418{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18419echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18420if test $ac_cv_lib_gcc____chkstk = yes; then
18421
18422cat >>confdefs.h <<\_ACEOF
18423#define HAVE____CHKSTK 1
18424_ACEOF
18425
18426fi
18427
18428
18429 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18430echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18431if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433else
18434 ac_check_lib_save_LIBS=$LIBS
18435LIBS="-lgcc $LIBS"
18436cat >conftest.$ac_ext <<_ACEOF
18437/* confdefs.h. */
18438_ACEOF
18439cat confdefs.h >>conftest.$ac_ext
18440cat >>conftest.$ac_ext <<_ACEOF
18441/* end confdefs.h. */
18442
18443/* Override any GCC internal prototype to avoid an error.
18444 Use char because int might match the return type of a GCC
18445 builtin and then its argument prototype would still apply. */
18446#ifdef __cplusplus
18447extern "C"
18448#endif
18449char __ashldi3 ();
18450int
18451main ()
18452{
18453return __ashldi3 ();
18454 ;
18455 return 0;
18456}
18457_ACEOF
18458rm -f conftest.$ac_objext conftest$ac_exeext
18459if { (ac_try="$ac_link"
18460case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463esac
18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_link") 2>conftest.er1
18466 ac_status=$?
18467 grep -v '^ *+' conftest.er1 >conftest.err
18468 rm -f conftest.er1
18469 cat conftest.err >&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } &&
18472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18473 { (case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18476esac
18477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_try") 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest$ac_exeext'
18483 { (case "(($ac_try" in
18484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485 *) ac_try_echo=$ac_try;;
18486esac
18487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18488 (eval "$ac_try") 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_cv_lib_gcc___ashldi3=yes
18493else
18494 echo "$as_me: failed program was:" >&5
18495sed 's/^/| /' conftest.$ac_ext >&5
18496
18497 ac_cv_lib_gcc___ashldi3=no
18498fi
18499
18500rm -f core conftest.err conftest.$ac_objext \
18501 conftest$ac_exeext conftest.$ac_ext
18502LIBS=$ac_check_lib_save_LIBS
18503fi
18504{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18505echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18506if test $ac_cv_lib_gcc___ashldi3 = yes; then
18507
18508cat >>confdefs.h <<\_ACEOF
18509#define HAVE___ASHLDI3 1
18510_ACEOF
18511
18512fi
18513
18514 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18515echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18516if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518else
18519 ac_check_lib_save_LIBS=$LIBS
18520LIBS="-lgcc $LIBS"
18521cat >conftest.$ac_ext <<_ACEOF
18522/* confdefs.h. */
18523_ACEOF
18524cat confdefs.h >>conftest.$ac_ext
18525cat >>conftest.$ac_ext <<_ACEOF
18526/* end confdefs.h. */
18527
18528/* Override any GCC internal prototype to avoid an error.
18529 Use char because int might match the return type of a GCC
18530 builtin and then its argument prototype would still apply. */
18531#ifdef __cplusplus
18532extern "C"
18533#endif
18534char __ashrdi3 ();
18535int
18536main ()
18537{
18538return __ashrdi3 ();
18539 ;
18540 return 0;
18541}
18542_ACEOF
18543rm -f conftest.$ac_objext conftest$ac_exeext
18544if { (ac_try="$ac_link"
18545case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18548esac
18549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_link") 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18558 { (case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561esac
18562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_try") 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest$ac_exeext'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571esac
18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 ac_cv_lib_gcc___ashrdi3=yes
18578else
18579 echo "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 ac_cv_lib_gcc___ashrdi3=no
18583fi
18584
18585rm -f core conftest.err conftest.$ac_objext \
18586 conftest$ac_exeext conftest.$ac_ext
18587LIBS=$ac_check_lib_save_LIBS
18588fi
18589{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18590echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18591if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18592
18593cat >>confdefs.h <<\_ACEOF
18594#define HAVE___ASHRDI3 1
18595_ACEOF
18596
18597fi
18598
18599 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18600echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18601if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603else
18604 ac_check_lib_save_LIBS=$LIBS
18605LIBS="-lgcc $LIBS"
18606cat >conftest.$ac_ext <<_ACEOF
18607/* confdefs.h. */
18608_ACEOF
18609cat confdefs.h >>conftest.$ac_ext
18610cat >>conftest.$ac_ext <<_ACEOF
18611/* end confdefs.h. */
18612
18613/* Override any GCC internal prototype to avoid an error.
18614 Use char because int might match the return type of a GCC
18615 builtin and then its argument prototype would still apply. */
18616#ifdef __cplusplus
18617extern "C"
18618#endif
18619char __divdi3 ();
18620int
18621main ()
18622{
18623return __divdi3 ();
18624 ;
18625 return 0;
18626}
18627_ACEOF
18628rm -f conftest.$ac_objext conftest$ac_exeext
18629if { (ac_try="$ac_link"
18630case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18633esac
18634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_link") 2>conftest.er1
18636 ac_status=$?
18637 grep -v '^ *+' conftest.er1 >conftest.err
18638 rm -f conftest.er1
18639 cat conftest.err >&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); } &&
18642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18643 { (case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18646esac
18647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_try") 2>&5
18649 ac_status=$?
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; } &&
18652 { ac_try='test -s conftest$ac_exeext'
18653 { (case "(($ac_try" in
18654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18655 *) ac_try_echo=$ac_try;;
18656esac
18657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18658 (eval "$ac_try") 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
18662 ac_cv_lib_gcc___divdi3=yes
18663else
18664 echo "$as_me: failed program was:" >&5
18665sed 's/^/| /' conftest.$ac_ext >&5
18666
18667 ac_cv_lib_gcc___divdi3=no
18668fi
18669
18670rm -f core conftest.err conftest.$ac_objext \
18671 conftest$ac_exeext conftest.$ac_ext
18672LIBS=$ac_check_lib_save_LIBS
18673fi
18674{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18675echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18676if test $ac_cv_lib_gcc___divdi3 = yes; then
18677
18678cat >>confdefs.h <<\_ACEOF
18679#define HAVE___DIVDI3 1
18680_ACEOF
18681
18682fi
18683
18684 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18685echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18686if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18688else
18689 ac_check_lib_save_LIBS=$LIBS
18690LIBS="-lgcc $LIBS"
18691cat >conftest.$ac_ext <<_ACEOF
18692/* confdefs.h. */
18693_ACEOF
18694cat confdefs.h >>conftest.$ac_ext
18695cat >>conftest.$ac_ext <<_ACEOF
18696/* end confdefs.h. */
18697
18698/* Override any GCC internal prototype to avoid an error.
18699 Use char because int might match the return type of a GCC
18700 builtin and then its argument prototype would still apply. */
18701#ifdef __cplusplus
18702extern "C"
18703#endif
18704char __fixdfdi ();
18705int
18706main ()
18707{
18708return __fixdfdi ();
18709 ;
18710 return 0;
18711}
18712_ACEOF
18713rm -f conftest.$ac_objext conftest$ac_exeext
18714if { (ac_try="$ac_link"
18715case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_link") 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18731esac
18732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest$ac_exeext'
18738 { (case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741esac
18742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_try") 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18747 ac_cv_lib_gcc___fixdfdi=yes
18748else
18749 echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 ac_cv_lib_gcc___fixdfdi=no
18753fi
18754
18755rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18757LIBS=$ac_check_lib_save_LIBS
18758fi
18759{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18760echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18761if test $ac_cv_lib_gcc___fixdfdi = yes; then
18762
18763cat >>confdefs.h <<\_ACEOF
18764#define HAVE___FIXDFDI 1
18765_ACEOF
18766
18767fi
18768
18769 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18770echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18771if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18773else
18774 ac_check_lib_save_LIBS=$LIBS
18775LIBS="-lgcc $LIBS"
18776cat >conftest.$ac_ext <<_ACEOF
18777/* confdefs.h. */
18778_ACEOF
18779cat confdefs.h >>conftest.$ac_ext
18780cat >>conftest.$ac_ext <<_ACEOF
18781/* end confdefs.h. */
18782
18783/* Override any GCC internal prototype to avoid an error.
18784 Use char because int might match the return type of a GCC
18785 builtin and then its argument prototype would still apply. */
18786#ifdef __cplusplus
18787extern "C"
18788#endif
18789char __fixsfdi ();
18790int
18791main ()
18792{
18793return __fixsfdi ();
18794 ;
18795 return 0;
18796}
18797_ACEOF
18798rm -f conftest.$ac_objext conftest$ac_exeext
18799if { (ac_try="$ac_link"
18800case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18803esac
18804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_link") 2>conftest.er1
18806 ac_status=$?
18807 grep -v '^ *+' conftest.er1 >conftest.err
18808 rm -f conftest.er1
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } &&
18812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18813 { (case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18816esac
18817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_try") 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try='test -s conftest$ac_exeext'
18823 { (case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826esac
18827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_try") 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_cv_lib_gcc___fixsfdi=yes
18833else
18834 echo "$as_me: failed program was:" >&5
18835sed 's/^/| /' conftest.$ac_ext >&5
18836
18837 ac_cv_lib_gcc___fixsfdi=no
18838fi
18839
18840rm -f core conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18842LIBS=$ac_check_lib_save_LIBS
18843fi
18844{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18845echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18846if test $ac_cv_lib_gcc___fixsfdi = yes; then
18847
18848cat >>confdefs.h <<\_ACEOF
18849#define HAVE___FIXSFDI 1
18850_ACEOF
18851
18852fi
18853
18854 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18855echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18856if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18858else
18859 ac_check_lib_save_LIBS=$LIBS
18860LIBS="-lgcc $LIBS"
18861cat >conftest.$ac_ext <<_ACEOF
18862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
18867
18868/* Override any GCC internal prototype to avoid an error.
18869 Use char because int might match the return type of a GCC
18870 builtin and then its argument prototype would still apply. */
18871#ifdef __cplusplus
18872extern "C"
18873#endif
18874char __floatdidf ();
18875int
18876main ()
18877{
18878return __floatdidf ();
18879 ;
18880 return 0;
18881}
18882_ACEOF
18883rm -f conftest.$ac_objext conftest$ac_exeext
18884if { (ac_try="$ac_link"
18885case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18888esac
18889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_link") 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18898 { (case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901esac
18902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903 (eval "$ac_try") 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; } &&
18907 { ac_try='test -s conftest$ac_exeext'
18908 { (case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18911esac
18912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913 (eval "$ac_try") 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 ac_cv_lib_gcc___floatdidf=yes
18918else
18919 echo "$as_me: failed program was:" >&5
18920sed 's/^/| /' conftest.$ac_ext >&5
18921
18922 ac_cv_lib_gcc___floatdidf=no
18923fi
18924
18925rm -f core conftest.err conftest.$ac_objext \
18926 conftest$ac_exeext conftest.$ac_ext
18927LIBS=$ac_check_lib_save_LIBS
18928fi
18929{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18930echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18931if test $ac_cv_lib_gcc___floatdidf = yes; then
18932
18933cat >>confdefs.h <<\_ACEOF
18934#define HAVE___FLOATDIDF 1
18935_ACEOF
18936
18937fi
18938
18939 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18940echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18941if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943else
18944 ac_check_lib_save_LIBS=$LIBS
18945LIBS="-lgcc $LIBS"
18946cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952
18953/* Override any GCC internal prototype to avoid an error.
18954 Use char because int might match the return type of a GCC
18955 builtin and then its argument prototype would still apply. */
18956#ifdef __cplusplus
18957extern "C"
18958#endif
18959char __lshrdi3 ();
18960int
18961main ()
18962{
18963return __lshrdi3 ();
18964 ;
18965 return 0;
18966}
18967_ACEOF
18968rm -f conftest.$ac_objext conftest$ac_exeext
18969if { (ac_try="$ac_link"
18970case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_link") 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18983 { (case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18986esac
18987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_try") 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest$ac_exeext'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996esac
18997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_cv_lib_gcc___lshrdi3=yes
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007 ac_cv_lib_gcc___lshrdi3=no
19008fi
19009
19010rm -f core conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19012LIBS=$ac_check_lib_save_LIBS
19013fi
19014{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19015echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19016if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19017
19018cat >>confdefs.h <<\_ACEOF
19019#define HAVE___LSHRDI3 1
19020_ACEOF
19021
19022fi
19023
19024 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19025echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19026if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19028else
19029 ac_check_lib_save_LIBS=$LIBS
19030LIBS="-lgcc $LIBS"
19031cat >conftest.$ac_ext <<_ACEOF
19032/* confdefs.h. */
19033_ACEOF
19034cat confdefs.h >>conftest.$ac_ext
19035cat >>conftest.$ac_ext <<_ACEOF
19036/* end confdefs.h. */
19037
19038/* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19041#ifdef __cplusplus
19042extern "C"
19043#endif
19044char __moddi3 ();
19045int
19046main ()
19047{
19048return __moddi3 ();
19049 ;
19050 return 0;
19051}
19052_ACEOF
19053rm -f conftest.$ac_objext conftest$ac_exeext
19054if { (ac_try="$ac_link"
19055case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058esac
19059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_link") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071esac
19072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest$ac_exeext'
19078 { (case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081esac
19082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_try") 2>&5
19084 ac_status=$?
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 ac_cv_lib_gcc___moddi3=yes
19088else
19089 echo "$as_me: failed program was:" >&5
19090sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 ac_cv_lib_gcc___moddi3=no
19093fi
19094
19095rm -f core conftest.err conftest.$ac_objext \
19096 conftest$ac_exeext conftest.$ac_ext
19097LIBS=$ac_check_lib_save_LIBS
19098fi
19099{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19100echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19101if test $ac_cv_lib_gcc___moddi3 = yes; then
19102
19103cat >>confdefs.h <<\_ACEOF
19104#define HAVE___MODDI3 1
19105_ACEOF
19106
19107fi
19108
19109 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19110echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19111if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19113else
19114 ac_check_lib_save_LIBS=$LIBS
19115LIBS="-lgcc $LIBS"
19116cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
19122
19123/* Override any GCC internal prototype to avoid an error.
19124 Use char because int might match the return type of a GCC
19125 builtin and then its argument prototype would still apply. */
19126#ifdef __cplusplus
19127extern "C"
19128#endif
19129char __udivdi3 ();
19130int
19131main ()
19132{
19133return __udivdi3 ();
19134 ;
19135 return 0;
19136}
19137_ACEOF
19138rm -f conftest.$ac_objext conftest$ac_exeext
19139if { (ac_try="$ac_link"
19140case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19143esac
19144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_link") 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19153 { (case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156esac
19157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_try") 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest$ac_exeext'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166esac
19167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_cv_lib_gcc___udivdi3=yes
19173else
19174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 ac_cv_lib_gcc___udivdi3=no
19178fi
19179
19180rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182LIBS=$ac_check_lib_save_LIBS
19183fi
19184{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19185echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19186if test $ac_cv_lib_gcc___udivdi3 = yes; then
19187
19188cat >>confdefs.h <<\_ACEOF
19189#define HAVE___UDIVDI3 1
19190_ACEOF
19191
19192fi
19193
19194 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19195echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19196if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198else
19199 ac_check_lib_save_LIBS=$LIBS
19200LIBS="-lgcc $LIBS"
19201cat >conftest.$ac_ext <<_ACEOF
19202/* confdefs.h. */
19203_ACEOF
19204cat confdefs.h >>conftest.$ac_ext
19205cat >>conftest.$ac_ext <<_ACEOF
19206/* end confdefs.h. */
19207
19208/* Override any GCC internal prototype to avoid an error.
19209 Use char because int might match the return type of a GCC
19210 builtin and then its argument prototype would still apply. */
19211#ifdef __cplusplus
19212extern "C"
19213#endif
19214char __umoddi3 ();
19215int
19216main ()
19217{
19218return __umoddi3 ();
19219 ;
19220 return 0;
19221}
19222_ACEOF
19223rm -f conftest.$ac_objext conftest$ac_exeext
19224if { (ac_try="$ac_link"
19225case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228esac
19229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_link") 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19238 { (case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19241esac
19242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_try") 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest$ac_exeext'
19248 { (case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251esac
19252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_try") 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_cv_lib_gcc___umoddi3=yes
19258else
19259 echo "$as_me: failed program was:" >&5
19260sed 's/^/| /' conftest.$ac_ext >&5
19261
19262 ac_cv_lib_gcc___umoddi3=no
19263fi
19264
19265rm -f core conftest.err conftest.$ac_objext \
19266 conftest$ac_exeext conftest.$ac_ext
19267LIBS=$ac_check_lib_save_LIBS
19268fi
19269{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19270echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19271if test $ac_cv_lib_gcc___umoddi3 = yes; then
19272
19273cat >>confdefs.h <<\_ACEOF
19274#define HAVE___UMODDI3 1
19275_ACEOF
19276
19277fi
19278
19279
19280 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19281echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19282if test "${ac_cv_lib_gcc___main+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19284else
19285 ac_check_lib_save_LIBS=$LIBS
19286LIBS="-lgcc $LIBS"
19287cat >conftest.$ac_ext <<_ACEOF
19288/* confdefs.h. */
19289_ACEOF
19290cat confdefs.h >>conftest.$ac_ext
19291cat >>conftest.$ac_ext <<_ACEOF
19292/* end confdefs.h. */
19293
19294/* Override any GCC internal prototype to avoid an error.
19295 Use char because int might match the return type of a GCC
19296 builtin and then its argument prototype would still apply. */
19297#ifdef __cplusplus
19298extern "C"
19299#endif
19300char __main ();
19301int
19302main ()
19303{
19304return __main ();
19305 ;
19306 return 0;
19307}
19308_ACEOF
19309rm -f conftest.$ac_objext conftest$ac_exeext
19310if { (ac_try="$ac_link"
19311case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19314esac
19315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_link") 2>conftest.er1
19317 ac_status=$?
19318 grep -v '^ *+' conftest.er1 >conftest.err
19319 rm -f conftest.er1
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
19323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19324 { (case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19327esac
19328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_try") 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } &&
19333 { ac_try='test -s conftest$ac_exeext'
19334 { (case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19337esac
19338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_try") 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 ac_cv_lib_gcc___main=yes
19344else
19345 echo "$as_me: failed program was:" >&5
19346sed 's/^/| /' conftest.$ac_ext >&5
19347
19348 ac_cv_lib_gcc___main=no
19349fi
19350
19351rm -f core conftest.err conftest.$ac_objext \
19352 conftest$ac_exeext conftest.$ac_ext
19353LIBS=$ac_check_lib_save_LIBS
19354fi
19355{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19356echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19357if test $ac_cv_lib_gcc___main = yes; then
19358
19359cat >>confdefs.h <<\_ACEOF
19360#define HAVE___MAIN 1
19361_ACEOF
19362
19363fi
19364
19365 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19366echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19367if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19369else
19370 ac_check_lib_save_LIBS=$LIBS
19371LIBS="-lgcc $LIBS"
19372cat >conftest.$ac_ext <<_ACEOF
19373/* confdefs.h. */
19374_ACEOF
19375cat confdefs.h >>conftest.$ac_ext
19376cat >>conftest.$ac_ext <<_ACEOF
19377/* end confdefs.h. */
19378
19379/* Override any GCC internal prototype to avoid an error.
19380 Use char because int might match the return type of a GCC
19381 builtin and then its argument prototype would still apply. */
19382#ifdef __cplusplus
19383extern "C"
19384#endif
19385char __cmpdi2 ();
19386int
19387main ()
19388{
19389return __cmpdi2 ();
19390 ;
19391 return 0;
19392}
19393_ACEOF
19394rm -f conftest.$ac_objext conftest$ac_exeext
19395if { (ac_try="$ac_link"
19396case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19399esac
19400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_link") 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19409 { (case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412esac
19413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_try") 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest$ac_exeext'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422esac
19423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 ac_cv_lib_gcc___cmpdi2=yes
19429else
19430 echo "$as_me: failed program was:" >&5
19431sed 's/^/| /' conftest.$ac_ext >&5
19432
19433 ac_cv_lib_gcc___cmpdi2=no
19434fi
19435
19436rm -f core conftest.err conftest.$ac_objext \
19437 conftest$ac_exeext conftest.$ac_ext
19438LIBS=$ac_check_lib_save_LIBS
19439fi
19440{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19441echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19442if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19443
19444cat >>confdefs.h <<\_ACEOF
19445#define HAVE___CMPDI2 1
19446_ACEOF
19447
19448fi
19449
19450fi
19451
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019452if test "$llvm_cv_os_type" = "MingW" ; then
19453 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19454echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19455 cat >conftest.$ac_ext <<_ACEOF
19456#include <windows.h>
19457#include <imagehlp.h>
19458extern void foo(PENUMLOADED_MODULES_CALLBACK);
19459extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (ac_try="$ac_compile"
19463case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19466esac
19467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_compile") 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
19475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19476 { (case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479esac
19480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_try") 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest.$ac_objext'
19486 { (case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19489esac
19490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_try") 2>&5
19492 ac_status=$?
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; }; then
19495
19496 { echo "$as_me:$LINENO: result: yes" >&5
19497echo "${ECHO_T}yes" >&6; }
19498 llvm_cv_win32_elmcb_pcstr="PCSTR"
19499
19500else
19501 echo "$as_me: failed program was:" >&5
19502sed 's/^/| /' conftest.$ac_ext >&5
19503
19504
19505 { echo "$as_me:$LINENO: result: no" >&5
19506echo "${ECHO_T}no" >&6; }
19507 llvm_cv_win32_elmcb_pcstr="PSTR"
19508
19509fi
19510
19511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512
19513cat >>confdefs.h <<_ACEOF
19514#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19515_ACEOF
19516
19517fi
19518
Torok Edwin871384f2010-01-26 08:50:50 +000019519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019520{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19521echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19522if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019524else
Reid Spencera773bd52006-08-04 18:18:08 +000019525 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019526ac_cpp='$CXXCPP $CPPFLAGS'
19527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019531 cat >conftest.$ac_ext <<_ACEOF
19532/* confdefs.h. */
19533_ACEOF
19534cat confdefs.h >>conftest.$ac_ext
19535cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019536/* end confdefs.h. */
19537#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019538int
19539main ()
19540{
19541float f; isnan(f);
19542 ;
19543 return 0;
19544}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019545_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019546rm -f conftest.$ac_objext
19547if { (ac_try="$ac_compile"
19548case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551esac
19552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_compile") 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } &&
19560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19561 { (case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19564esac
19565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_try") 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try='test -s conftest.$ac_objext'
19571 { (case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574esac
19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_try") 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019580 ac_cv_func_isnan_in_math_h=yes
19581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582 echo "$as_me: failed program was:" >&5
19583sed 's/^/| /' conftest.$ac_ext >&5
19584
19585 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019586fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019587
Reid Spencera773bd52006-08-04 18:18:08 +000019588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019589 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019590ac_cpp='$CPP $CPPFLAGS'
19591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19593ac_compiler_gnu=$ac_cv_c_compiler_gnu
19594
19595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019596{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19597echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019598
19599
19600if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019602cat >>confdefs.h <<\_ACEOF
19603#define HAVE_ISNAN_IN_MATH_H 1
19604_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019605
Reid Spencerabec8f92004-10-27 23:03:44 +000019606fi
19607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019608{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19609echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19610if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019612else
Reid Spencera773bd52006-08-04 18:18:08 +000019613 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019614ac_cpp='$CXXCPP $CPPFLAGS'
19615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019619 cat >conftest.$ac_ext <<_ACEOF
19620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019624/* end confdefs.h. */
19625#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019626int
19627main ()
19628{
19629float f; isnan(f);
19630 ;
19631 return 0;
19632}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019634rm -f conftest.$ac_objext
19635if { (ac_try="$ac_compile"
19636case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639esac
19640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_compile") 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
19648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652esac
19653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } &&
19658 { ac_try='test -s conftest.$ac_objext'
19659 { (case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662esac
19663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_try") 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019668 ac_cv_func_isnan_in_cmath=yes
19669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019670 echo "$as_me: failed program was:" >&5
19671sed 's/^/| /' conftest.$ac_ext >&5
19672
19673 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675
Reid Spencera773bd52006-08-04 18:18:08 +000019676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019677 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019678ac_cpp='$CPP $CPPFLAGS'
19679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19681ac_compiler_gnu=$ac_cv_c_compiler_gnu
19682
19683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019684{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19685echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019686
19687if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019689cat >>confdefs.h <<\_ACEOF
19690#define HAVE_ISNAN_IN_CMATH 1
19691_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019692
Reid Spencerabec8f92004-10-27 23:03:44 +000019693fi
19694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019695{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19696echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19697if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019699else
Reid Spencera773bd52006-08-04 18:18:08 +000019700 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019701ac_cpp='$CXXCPP $CPPFLAGS'
19702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019706 cat >conftest.$ac_ext <<_ACEOF
19707/* confdefs.h. */
19708_ACEOF
19709cat confdefs.h >>conftest.$ac_ext
19710cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019711/* end confdefs.h. */
19712#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019713int
19714main ()
19715{
19716float f; std::isnan(f);
19717 ;
19718 return 0;
19719}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019720_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019721rm -f conftest.$ac_objext
19722if { (ac_try="$ac_compile"
19723case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726esac
19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_compile") 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19736 { (case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19739esac
19740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_try") 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest.$ac_objext'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19749esac
19750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019755 ac_cv_func_std_isnan_in_cmath=yes
19756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762
Reid Spencera773bd52006-08-04 18:18:08 +000019763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019764 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019765ac_cpp='$CPP $CPPFLAGS'
19766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769
19770fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019771{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19772echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019773
19774if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019776cat >>confdefs.h <<\_ACEOF
19777#define HAVE_STD_ISNAN_IN_CMATH 1
19778_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019779
Reid Spencerabec8f92004-10-27 23:03:44 +000019780fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019781
19782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019783{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19784echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19785if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019787else
Reid Spencera773bd52006-08-04 18:18:08 +000019788 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019789ac_cpp='$CXXCPP $CPPFLAGS'
19790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019794 cat >conftest.$ac_ext <<_ACEOF
19795/* confdefs.h. */
19796_ACEOF
19797cat confdefs.h >>conftest.$ac_ext
19798cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019799/* end confdefs.h. */
19800#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019801int
19802main ()
19803{
19804float f; isinf(f);
19805 ;
19806 return 0;
19807}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019808_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019809rm -f conftest.$ac_objext
19810if { (ac_try="$ac_compile"
19811case "(($ac_try" in
19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813 *) ac_try_echo=$ac_try;;
19814esac
19815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816 (eval "$ac_compile") 2>conftest.er1
19817 ac_status=$?
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
19823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19824 { (case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19827esac
19828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; } &&
19833 { ac_try='test -s conftest.$ac_objext'
19834 { (case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837esac
19838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019843 ac_cv_func_isinf_in_math_h=yes
19844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019845 echo "$as_me: failed program was:" >&5
19846sed 's/^/| /' conftest.$ac_ext >&5
19847
19848 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019850
Reid Spencera773bd52006-08-04 18:18:08 +000019851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019852 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019853ac_cpp='$CPP $CPPFLAGS'
19854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856ac_compiler_gnu=$ac_cv_c_compiler_gnu
19857
19858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019859{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19860echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019861
19862if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019864cat >>confdefs.h <<\_ACEOF
19865#define HAVE_ISINF_IN_MATH_H 1
19866_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019867
Reid Spencerabec8f92004-10-27 23:03:44 +000019868fi
19869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19871echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19872if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019874else
Reid Spencera773bd52006-08-04 18:18:08 +000019875 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019876ac_cpp='$CXXCPP $CPPFLAGS'
19877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881 cat >conftest.$ac_ext <<_ACEOF
19882/* confdefs.h. */
19883_ACEOF
19884cat confdefs.h >>conftest.$ac_ext
19885cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019886/* end confdefs.h. */
19887#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019888int
19889main ()
19890{
19891float f; isinf(f);
19892 ;
19893 return 0;
19894}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019895_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019896rm -f conftest.$ac_objext
19897if { (ac_try="$ac_compile"
19898case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19901esac
19902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_compile") 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest.$ac_objext'
19921 { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019930 ac_cv_func_isinf_in_cmath=yes
19931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019932 echo "$as_me: failed program was:" >&5
19933sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937
Reid Spencera773bd52006-08-04 18:18:08 +000019938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019939 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019940ac_cpp='$CPP $CPPFLAGS'
19941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19943ac_compiler_gnu=$ac_cv_c_compiler_gnu
19944
19945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019946{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19947echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019948
19949if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019951cat >>confdefs.h <<\_ACEOF
19952#define HAVE_ISINF_IN_CMATH 1
19953_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019954
Reid Spencerabec8f92004-10-27 23:03:44 +000019955fi
19956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019957{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19958echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19959if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019961else
Reid Spencera773bd52006-08-04 18:18:08 +000019962 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019963ac_cpp='$CXXCPP $CPPFLAGS'
19964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019968 cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h. */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019973/* end confdefs.h. */
19974#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019975int
19976main ()
19977{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019978float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019979 ;
19980 return 0;
19981}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019983rm -f conftest.$ac_objext
19984if { (ac_try="$ac_compile"
19985case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19988esac
19989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_compile") 2>conftest.er1
19991 ac_status=$?
19992 grep -v '^ *+' conftest.er1 >conftest.err
19993 rm -f conftest.er1
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19998 { (case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20001esac
20002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_try") 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20011esac
20012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_try") 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020017 ac_cv_func_std_isinf_in_cmath=yes
20018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020019 echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020024
Reid Spencera773bd52006-08-04 18:18:08 +000020025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020026 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020027ac_cpp='$CPP $CPPFLAGS'
20028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030ac_compiler_gnu=$ac_cv_c_compiler_gnu
20031
20032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020033{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20034echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020035
20036if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038cat >>confdefs.h <<\_ACEOF
20039#define HAVE_STD_ISINF_IN_CMATH 1
20040_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020041
Reid Spencerabec8f92004-10-27 23:03:44 +000020042fi
20043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020044{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20045echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20046if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020048else
Reid Spencera773bd52006-08-04 18:18:08 +000020049 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020050ac_cpp='$CXXCPP $CPPFLAGS'
20051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020055 cat >conftest.$ac_ext <<_ACEOF
20056/* confdefs.h. */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020060/* end confdefs.h. */
20061#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020062int
20063main ()
20064{
20065float f; finite(f);
20066 ;
20067 return 0;
20068}
Brian Gaeked59a6472004-07-21 03:33:58 +000020069_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070rm -f conftest.$ac_objext
20071if { (ac_try="$ac_compile"
20072case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075esac
20076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_compile") 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20085 { (case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088esac
20089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_try") 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098esac
20099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_try") 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020104 ac_cv_func_finite_in_ieeefp_h=yes
20105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106 echo "$as_me: failed program was:" >&5
20107sed 's/^/| /' conftest.$ac_ext >&5
20108
20109 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020111
Reid Spencera773bd52006-08-04 18:18:08 +000020112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020113 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020114ac_cpp='$CPP $CPPFLAGS'
20115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20117ac_compiler_gnu=$ac_cv_c_compiler_gnu
20118
20119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020120{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20121echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020122
Brian Gaeke6802b552004-10-28 05:06:45 +000020123if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020125cat >>confdefs.h <<\_ACEOF
20126#define HAVE_FINITE_IN_IEEEFP_H 1
20127_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020128
Reid Spencerabec8f92004-10-27 23:03:44 +000020129fi
20130
20131
20132
Reid Spencer30fe5262007-01-20 07:48:49 +000020133if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020134
20135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020136for ac_header in stdlib.h unistd.h
20137do
20138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144fi
20145ac_res=`eval echo '${'$as_ac_Header'}'`
20146 { echo "$as_me:$LINENO: result: $ac_res" >&5
20147echo "${ECHO_T}$ac_res" >&6; }
20148else
20149 # Is the header compilable?
20150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20152cat >conftest.$ac_ext <<_ACEOF
20153/* confdefs.h. */
20154_ACEOF
20155cat confdefs.h >>conftest.$ac_ext
20156cat >>conftest.$ac_ext <<_ACEOF
20157/* end confdefs.h. */
20158$ac_includes_default
20159#include <$ac_header>
20160_ACEOF
20161rm -f conftest.$ac_objext
20162if { (ac_try="$ac_compile"
20163case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166esac
20167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_compile") 2>conftest.er1
20169 ac_status=$?
20170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20176 { (case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20179esac
20180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_try") 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; } &&
20185 { ac_try='test -s conftest.$ac_objext'
20186 { (case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189esac
20190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_try") 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20195 ac_header_compiler=yes
20196else
20197 echo "$as_me: failed program was:" >&5
20198sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020200 ac_header_compiler=no
20201fi
20202
20203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20205echo "${ECHO_T}$ac_header_compiler" >&6; }
20206
20207# Is the header present?
20208{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20210cat >conftest.$ac_ext <<_ACEOF
20211/* confdefs.h. */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h. */
20216#include <$ac_header>
20217_ACEOF
20218if { (ac_try="$ac_cpp conftest.$ac_ext"
20219case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20222esac
20223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } >/dev/null; then
20231 if test -s conftest.err; then
20232 ac_cpp_err=$ac_c_preproc_warn_flag
20233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20234 else
20235 ac_cpp_err=
20236 fi
20237else
20238 ac_cpp_err=yes
20239fi
20240if test -z "$ac_cpp_err"; then
20241 ac_header_preproc=yes
20242else
20243 echo "$as_me: failed program was:" >&5
20244sed 's/^/| /' conftest.$ac_ext >&5
20245
20246 ac_header_preproc=no
20247fi
20248
20249rm -f conftest.err conftest.$ac_ext
20250{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20251echo "${ECHO_T}$ac_header_preproc" >&6; }
20252
20253# So? What about this header?
20254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20255 yes:no: )
20256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20260 ac_header_preproc=yes
20261 ;;
20262 no:yes:* )
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20266echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20270echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20275 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020276## ------------------------------------ ##
20277## Report this to http://llvm.org/bugs/ ##
20278## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020279_ASBOX
20280 ) | sed "s/^/$as_me: WARNING: /" >&2
20281 ;;
20282esac
20283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20287else
20288 eval "$as_ac_Header=\$ac_header_preproc"
20289fi
20290ac_res=`eval echo '${'$as_ac_Header'}'`
20291 { echo "$as_me:$LINENO: result: $ac_res" >&5
20292echo "${ECHO_T}$ac_res" >&6; }
20293
20294fi
20295if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020296 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020298_ACEOF
20299
20300fi
20301
20302done
20303
20304
20305for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306do
20307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20308{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20310if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312else
20313 cat >conftest.$ac_ext <<_ACEOF
20314/* confdefs.h. */
20315_ACEOF
20316cat confdefs.h >>conftest.$ac_ext
20317cat >>conftest.$ac_ext <<_ACEOF
20318/* end confdefs.h. */
20319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20321#define $ac_func innocuous_$ac_func
20322
20323/* System header to define __stub macros and hopefully few prototypes,
20324 which can conflict with char $ac_func (); below.
20325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20326 <limits.h> exists even on freestanding compilers. */
20327
20328#ifdef __STDC__
20329# include <limits.h>
20330#else
20331# include <assert.h>
20332#endif
20333
20334#undef $ac_func
20335
20336/* Override any GCC internal prototype to avoid an error.
20337 Use char because int might match the return type of a GCC
20338 builtin and then its argument prototype would still apply. */
20339#ifdef __cplusplus
20340extern "C"
20341#endif
20342char $ac_func ();
20343/* The GNU C library defines this for functions which it implements
20344 to always fail with ENOSYS. Some functions are actually named
20345 something starting with __ and the normal name is an alias. */
20346#if defined __stub_$ac_func || defined __stub___$ac_func
20347choke me
20348#endif
20349
20350int
20351main ()
20352{
20353return $ac_func ();
20354 ;
20355 return 0;
20356}
20357_ACEOF
20358rm -f conftest.$ac_objext conftest$ac_exeext
20359if { (ac_try="$ac_link"
20360case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363esac
20364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20376esac
20377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_try") 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest$ac_exeext'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20386esac
20387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 eval "$as_ac_var=yes"
20393else
20394 echo "$as_me: failed program was:" >&5
20395sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 eval "$as_ac_var=no"
20398fi
20399
20400rm -f core conftest.err conftest.$ac_objext \
20401 conftest$ac_exeext conftest.$ac_ext
20402fi
20403ac_res=`eval echo '${'$as_ac_var'}'`
20404 { echo "$as_me:$LINENO: result: $ac_res" >&5
20405echo "${ECHO_T}$ac_res" >&6; }
20406if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020407 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020409_ACEOF
20410
20411fi
20412done
20413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020414{ echo "$as_me:$LINENO: checking for working mmap" >&5
20415echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20416if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020419 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020420 ac_cv_func_mmap_fixed_mapped=no
20421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020422 cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h. */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020428$ac_includes_default
20429/* malloc might have been renamed as rpl_malloc. */
20430#undef malloc
20431
20432/* Thanks to Mike Haertel and Jim Avera for this test.
20433 Here is a matrix of mmap possibilities:
20434 mmap private not fixed
20435 mmap private fixed at somewhere currently unmapped
20436 mmap private fixed at somewhere already mapped
20437 mmap shared not fixed
20438 mmap shared fixed at somewhere currently unmapped
20439 mmap shared fixed at somewhere already mapped
20440 For private mappings, we should verify that changes cannot be read()
20441 back from the file, nor mmap's back from the file at a different
20442 address. (There have been systems where private was not correctly
20443 implemented like the infamous i386 svr4.0, and systems where the
20444 VM page cache was not coherent with the file system buffer cache
20445 like early versions of FreeBSD and possibly contemporary NetBSD.)
20446 For shared mappings, we should conversely verify that changes get
20447 propagated back to all the places they're supposed to be.
20448
20449 Grep wants private fixed already mapped.
20450 The main things grep needs to know about mmap are:
20451 * does it exist and is it safe to write into the mmap'd area
20452 * how to use it (BSD variants) */
20453
20454#include <fcntl.h>
20455#include <sys/mman.h>
20456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020458char *malloc ();
20459#endif
20460
20461/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020462#if !HAVE_GETPAGESIZE
20463/* Assume that all systems that can run configure have sys/param.h. */
20464# if !HAVE_SYS_PARAM_H
20465# define HAVE_SYS_PARAM_H 1
20466# endif
20467
John Criswell7a73b802003-06-30 21:59:07 +000020468# ifdef _SC_PAGESIZE
20469# define getpagesize() sysconf(_SC_PAGESIZE)
20470# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020471# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020472# include <sys/param.h>
20473# ifdef EXEC_PAGESIZE
20474# define getpagesize() EXEC_PAGESIZE
20475# else /* no EXEC_PAGESIZE */
20476# ifdef NBPG
20477# define getpagesize() NBPG * CLSIZE
20478# ifndef CLSIZE
20479# define CLSIZE 1
20480# endif /* no CLSIZE */
20481# else /* no NBPG */
20482# ifdef NBPC
20483# define getpagesize() NBPC
20484# else /* no NBPC */
20485# ifdef PAGESIZE
20486# define getpagesize() PAGESIZE
20487# endif /* PAGESIZE */
20488# endif /* no NBPC */
20489# endif /* no NBPG */
20490# endif /* no EXEC_PAGESIZE */
20491# else /* no HAVE_SYS_PARAM_H */
20492# define getpagesize() 8192 /* punt totally */
20493# endif /* no HAVE_SYS_PARAM_H */
20494# endif /* no _SC_PAGESIZE */
20495
20496#endif /* no HAVE_GETPAGESIZE */
20497
20498int
20499main ()
20500{
20501 char *data, *data2, *data3;
20502 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020503 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020504
20505 pagesize = getpagesize ();
20506
20507 /* First, make a file with some known garbage in it. */
20508 data = (char *) malloc (pagesize);
20509 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020510 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020511 for (i = 0; i < pagesize; ++i)
20512 *(data + i) = rand ();
20513 umask (0);
20514 fd = creat ("conftest.mmap", 0600);
20515 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020516 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020517 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020519 close (fd);
20520
20521 /* Next, try to mmap the file at a fixed address which already has
20522 something else allocated at it. If we can, also make sure that
20523 we see the same garbage. */
20524 fd = open ("conftest.mmap", O_RDWR);
20525 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526 return 1;
20527 data2 = (char *) malloc (2 * pagesize);
20528 if (!data2)
20529 return 1;
20530 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020531 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020532 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020534 for (i = 0; i < pagesize; ++i)
20535 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020537
20538 /* Finally, make sure that changes to the mapped area do not
20539 percolate back to the file as seen by read(). (This is a bug on
20540 some variants of i386 svr4.0.) */
20541 for (i = 0; i < pagesize; ++i)
20542 *(data2 + i) = *(data2 + i) + 1;
20543 data3 = (char *) malloc (pagesize);
20544 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020545 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020546 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020547 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020548 for (i = 0; i < pagesize; ++i)
20549 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020550 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020551 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020552 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020553}
20554_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020555rm -f conftest$ac_exeext
20556if { (ac_try="$ac_link"
20557case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560esac
20561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_link") 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20566 { (case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20569esac
20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_try") 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020575 ac_cv_func_mmap_fixed_mapped=yes
20576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577 echo "$as_me: program exited with status $ac_status" >&5
20578echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
20580
20581( exit $ac_status )
20582ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584rm -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 +000020585fi
Reid Spencera773bd52006-08-04 18:18:08 +000020586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020587
John Criswell7a73b802003-06-30 21:59:07 +000020588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20590echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020591if test $ac_cv_func_mmap_fixed_mapped = yes; then
20592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020593cat >>confdefs.h <<\_ACEOF
20594#define HAVE_MMAP 1
20595_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020596
20597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020598rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20601echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20602if test "${ac_cv_func_mmap_file+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020604else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020605 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020606ac_cpp='$CPP $CPPFLAGS'
20607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20609ac_compiler_gnu=$ac_cv_c_compiler_gnu
20610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020612 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020614 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616 /* confdefs.h. */
20617_ACEOF
20618cat confdefs.h >>conftest.$ac_ext
20619cat >>conftest.$ac_ext <<_ACEOF
20620/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020621
John Criswell7a73b802003-06-30 21:59:07 +000020622#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020623#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020624#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020625
20626int
20627main ()
20628{
John Criswell7a73b802003-06-30 21:59:07 +000020629
20630 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020631 fd = creat ("foo",0777);
20632 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20633 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020634 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020635 ;
20636 return 0;
20637}
John Criswell7a73b802003-06-30 21:59:07 +000020638_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020639rm -f conftest$ac_exeext
20640if { (ac_try="$ac_link"
20641case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644esac
20645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_link") 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20650 { (case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20653esac
20654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_try") 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020659 ac_cv_func_mmap_file=yes
20660else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020661 echo "$as_me: program exited with status $ac_status" >&5
20662echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665( exit $ac_status )
20666ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020668rm -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 +000020669fi
Reid Spencera773bd52006-08-04 18:18:08 +000020670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671
John Criswell7a73b802003-06-30 21:59:07 +000020672 ac_ext=c
20673ac_cpp='$CPP $CPPFLAGS'
20674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20676ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677
20678
20679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20681echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020682if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020684cat >>confdefs.h <<\_ACEOF
20685#define HAVE_MMAP_FILE
20686_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020687
20688 MMAP_FILE=yes
20689
20690fi
20691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20693echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20694if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020696else
Reid Spencer582a23c2004-12-29 07:07:57 +000020697 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020698 ac_cv_need_dev_zero_for_mmap=yes
20699 else
20700 ac_cv_need_dev_zero_for_mmap=no
20701 fi
20702
20703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20705echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020706if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020708cat >>confdefs.h <<\_ACEOF
20709#define NEED_DEV_ZERO_FOR_MMAP 1
20710_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020711
20712fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020713
Reid Spencer30fe5262007-01-20 07:48:49 +000020714 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20715 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20717echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020718 fi
20719 if test "$ac_cv_func_mmap_file" = "no"
20720 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020721 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20722echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020723 fi
John Criswellb13092b2003-07-22 21:00:24 +000020724fi
John Criswell7a73b802003-06-30 21:59:07 +000020725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020726{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20727echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020728ac_ext=cpp
20729ac_cpp='$CXXCPP $CPPFLAGS'
20730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020734cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020739/* end confdefs.h. */
20740int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020741 volatile unsigned long val = 1;
20742 __sync_synchronize();
20743 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020744 __sync_add_and_fetch(&val, 1);
20745 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020746 return 0;
20747 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020748
20749_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020750rm -f conftest.$ac_objext conftest$ac_exeext
20751if { (ac_try="$ac_link"
20752case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755esac
20756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_link") 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
20764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20765 { (case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20768esac
20769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_try") 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest$ac_exeext'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778esac
20779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020784 ac_ext=c
20785ac_cpp='$CPP $CPPFLAGS'
20786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20788ac_compiler_gnu=$ac_cv_c_compiler_gnu
20789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020790 { echo "$as_me:$LINENO: result: yes" >&5
20791echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020793cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020794#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020795_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020796
Owen Andersond4b272b2009-05-18 23:58:51 +000020797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020798 echo "$as_me: failed program was:" >&5
20799sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020801 { echo "$as_me:$LINENO: result: no" >&5
20802echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020804cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020805#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020806_ACEOF
20807
20808 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20809echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020810fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020811
Owen Andersond4b272b2009-05-18 23:58:51 +000020812rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020813 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020814
John Criswell7a73b802003-06-30 21:59:07 +000020815
Nick Lewycky4372e692009-09-29 06:18:23 +000020816if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020817 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20818echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20819if test "${llvm_cv_linux_mixed+set}" = set; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020821else
20822 ac_ext=c
20823ac_cpp='$CPP $CPPFLAGS'
20824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826ac_compiler_gnu=$ac_cv_c_compiler_gnu
20827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020828 cat >conftest.$ac_ext <<_ACEOF
20829/* confdefs.h. */
20830_ACEOF
20831cat confdefs.h >>conftest.$ac_ext
20832cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020833/* end confdefs.h. */
20834#ifndef __x86_64__
20835 error: Not x86-64 even if uname says so!
20836 #endif
20837
20838int
20839main ()
20840{
20841
20842 ;
20843 return 0;
20844}
20845_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846rm -f conftest.$ac_objext
20847if { (ac_try="$ac_compile"
20848case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851esac
20852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20854 ac_status=$?
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20861 { (case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864esac
20865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_try") 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest.$ac_objext'
20871 { (case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874esac
20875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_try") 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020880 llvm_cv_linux_mixed=no
20881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020882 echo "$as_me: failed program was:" >&5
20883sed 's/^/| /' conftest.$ac_ext >&5
20884
20885 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887
Nick Lewycky4372e692009-09-29 06:18:23 +000020888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889 ac_ext=c
20890ac_cpp='$CPP $CPPFLAGS'
20891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20893ac_compiler_gnu=$ac_cv_c_compiler_gnu
20894
20895
20896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020897{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20898echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020899
20900 if test "$llvm_cv_linux_mixed" = "yes"; then
20901 llvm_cv_target_arch="x86"
20902 ARCH="x86"
20903 fi
20904fi
20905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906
Reid Spencer9372f152007-07-30 20:13:24 +000020907for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020908do
20909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20910{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20912if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20914else
20915 cat >conftest.$ac_ext <<_ACEOF
20916/* confdefs.h. */
20917_ACEOF
20918cat confdefs.h >>conftest.$ac_ext
20919cat >>conftest.$ac_ext <<_ACEOF
20920/* end confdefs.h. */
20921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20923#define $ac_func innocuous_$ac_func
20924
20925/* System header to define __stub macros and hopefully few prototypes,
20926 which can conflict with char $ac_func (); below.
20927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20928 <limits.h> exists even on freestanding compilers. */
20929
20930#ifdef __STDC__
20931# include <limits.h>
20932#else
20933# include <assert.h>
20934#endif
20935
20936#undef $ac_func
20937
20938/* Override any GCC internal prototype to avoid an error.
20939 Use char because int might match the return type of a GCC
20940 builtin and then its argument prototype would still apply. */
20941#ifdef __cplusplus
20942extern "C"
20943#endif
20944char $ac_func ();
20945/* The GNU C library defines this for functions which it implements
20946 to always fail with ENOSYS. Some functions are actually named
20947 something starting with __ and the normal name is an alias. */
20948#if defined __stub_$ac_func || defined __stub___$ac_func
20949choke me
20950#endif
20951
20952int
20953main ()
20954{
20955return $ac_func ();
20956 ;
20957 return 0;
20958}
20959_ACEOF
20960rm -f conftest.$ac_objext conftest$ac_exeext
20961if { (ac_try="$ac_link"
20962case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20965esac
20966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_link") 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20975 { (case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978esac
20979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_try") 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest$ac_exeext'
20985 { (case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988esac
20989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_try") 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 eval "$as_ac_var=yes"
20995else
20996 echo "$as_me: failed program was:" >&5
20997sed 's/^/| /' conftest.$ac_ext >&5
20998
20999 eval "$as_ac_var=no"
21000fi
21001
21002rm -f core conftest.err conftest.$ac_objext \
21003 conftest$ac_exeext conftest.$ac_ext
21004fi
21005ac_res=`eval echo '${'$as_ac_var'}'`
21006 { echo "$as_me:$LINENO: result: $ac_res" >&5
21007echo "${ECHO_T}$ac_res" >&6; }
21008if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021009 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021011_ACEOF
21012
21013fi
21014done
21015
21016
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021017SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021018
21019
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021020SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21021
21022
Jeff Cohen28783c32007-01-12 18:22:38 +000021023if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021024 prefix="/usr/local"
21025fi
Reid Spencere9de0912004-08-20 09:03:57 +000021026eval LLVM_PREFIX="${prefix}";
21027eval LLVM_BINDIR="${prefix}/bin";
21028eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021029eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021030eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021031eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021032eval LLVM_INCLUDEDIR="${prefix}/include";
21033eval LLVM_INFODIR="${prefix}/info";
21034eval LLVM_MANDIR="${prefix}/man";
21035LLVM_CONFIGTIME=`date`
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021047if test "${ENABLE_TIMESTAMPS}" = "0"; then
21048 LLVM_CONFIGTIME="(timestamp not enabled)"
21049fi
21050
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021051
Reid Spencere9de0912004-08-20 09:03:57 +000021052cat >>confdefs.h <<_ACEOF
21053#define LLVM_PREFIX "$LLVM_PREFIX"
21054_ACEOF
21055
21056
21057cat >>confdefs.h <<_ACEOF
21058#define LLVM_BINDIR "$LLVM_BINDIR"
21059_ACEOF
21060
21061
21062cat >>confdefs.h <<_ACEOF
21063#define LLVM_LIBDIR "$LLVM_LIBDIR"
21064_ACEOF
21065
21066
21067cat >>confdefs.h <<_ACEOF
21068#define LLVM_DATADIR "$LLVM_DATADIR"
21069_ACEOF
21070
21071
21072cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021073#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021074_ACEOF
21075
21076
21077cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021078#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021079_ACEOF
21080
21081
21082cat >>confdefs.h <<_ACEOF
21083#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21084_ACEOF
21085
21086
21087cat >>confdefs.h <<_ACEOF
21088#define LLVM_INFODIR "$LLVM_INFODIR"
21089_ACEOF
21090
21091
21092cat >>confdefs.h <<_ACEOF
21093#define LLVM_MANDIR "$LLVM_MANDIR"
21094_ACEOF
21095
21096
21097cat >>confdefs.h <<_ACEOF
21098#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21099_ACEOF
21100
21101
Eric Christopher790e11c2007-12-01 00:34:39 +000021102cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021103#define LLVM_HOSTTRIPLE "$host"
21104_ACEOF
21105
21106
21107cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021108#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021109_ACEOF
21110
21111
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021112if test "$BINDINGS_TO_BUILD" = auto ; then
21113 BINDINGS_TO_BUILD=""
21114 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21115 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21116 fi
21117fi
21118BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21119
21120
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021121ALL_BINDINGS=ocaml
21122
21123
Gordon Henriksenf0915682007-10-02 16:42:22 +000021124binding_prereqs_failed=0
21125for a_binding in $BINDINGS_TO_BUILD ; do
21126 case "$a_binding" in
21127 ocaml)
21128 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021129 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21130echo "$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 +000021131 binding_prereqs_failed=1
21132 fi
21133 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021134 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21135echo "$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 +000021136 binding_prereqs_failed=1
21137 fi
21138 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021139 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21140echo "$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 +000021141 fi
21142 if test "x$with_ocaml_libdir" != xauto ; then
21143 OCAML_LIBDIR=$with_ocaml_libdir
21144
21145 else
21146 ocaml_stdlib="`"$OCAMLC" -where`"
21147 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21148 then
21149 # ocaml stdlib is beneath our prefix; use stdlib
21150 OCAML_LIBDIR=$ocaml_stdlib
21151
21152 else
21153 # ocaml stdlib is outside our prefix; use libdir/ocaml
21154 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21155
21156 fi
21157 fi
21158 ;;
21159 esac
21160done
21161if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021162 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21163echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21164 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021165fi
21166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021167{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21168echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21169if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021171else
21172 ac_ext=cpp
21173ac_cpp='$CXXCPP $CPPFLAGS'
21174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21177
21178 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021179 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021180 cat >conftest.$ac_ext <<_ACEOF
21181/* confdefs.h. */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021185/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021186template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021187int
21188main ()
21189{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021190X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021191 ;
21192 return 0;
21193}
21194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021195rm -f conftest.$ac_objext
21196if { (ac_try="$ac_compile"
21197case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21200esac
21201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21203 ac_status=$?
21204 grep -v '^ *+' conftest.er1 >conftest.err
21205 rm -f conftest.er1
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21210 { (case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21213esac
21214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21215 (eval "$ac_try") 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; } &&
21219 { ac_try='test -s conftest.$ac_objext'
21220 { (case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21223esac
21224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_try") 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021229 llvm_cv_cxx_visibility_inlines_hidden=yes
21230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021231 echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21238 CXXFLAGS="$oldcxxflags"
21239 ac_ext=c
21240ac_cpp='$CPP $CPPFLAGS'
21241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21243ac_compiler_gnu=$ac_cv_c_compiler_gnu
21244
21245
21246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21248echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021249if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21250 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21251
21252else
21253 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21254
21255fi
21256
Gordon Henriksenf0915682007-10-02 16:42:22 +000021257
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021258if test "$llvm_cv_link_use_r" = "yes" ; then
21259 RPATH="-Wl,-R"
21260else
21261 RPATH="-Wl,-rpath"
21262fi
21263
21264
21265if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21266 RDYNAMIC="-Wl,-export-dynamic"
21267else
21268 RDYNAMIC=""
21269fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021270
21271
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021272
Eric Christophera1cba682010-08-08 02:44:25 +000021273ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021274
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021275
21276
21277
21278
21279
Douglas Gregor1555a232009-06-16 20:12:29 +000021280ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21281
21282ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21283
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021284ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21285
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021286ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21287
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021288ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021289
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021290
Reid Spencera773bd52006-08-04 18:18:08 +000021291ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021292
Eric Christopher360fa9a2011-10-26 00:42:12 +000021293
Reid Spencerea949cf2006-08-16 00:45:38 +000021294ac_config_files="$ac_config_files llvm.spec"
21295
21296
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021297ac_config_files="$ac_config_files docs/doxygen.cfg"
21298
Eric Christopher63c09512012-02-02 00:16:55 +000021299
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021300if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021301 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021302fi
Eric Christopher63c09512012-02-02 00:16:55 +000021303if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021304 configh="include/clang/Config/config.h"
21305 doxy="docs/doxygen.cfg"
21306 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021307
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021308 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021309
21310fi
21311
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021312ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021313
Eric Christopher360fa9a2011-10-26 00:42:12 +000021314
Jordan Rose92080522012-10-01 18:40:32 +000021315test "x$program_prefix" = "xNONE" && program_prefix=""
21316
21317
21318
Reid Spencera773bd52006-08-04 18:18:08 +000021319ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021320
Reid Spencera773bd52006-08-04 18:18:08 +000021321ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021322
21323
Reid Spencera773bd52006-08-04 18:18:08 +000021324ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021325
21326
Reid Spencera773bd52006-08-04 18:18:08 +000021327ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021328
21329
Reid Spencera773bd52006-08-04 18:18:08 +000021330ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021331
21332
Reid Spencer8b2e1412006-11-17 03:32:33 +000021333ac_config_commands="$ac_config_commands runtime/Makefile"
21334
21335
Reid Spencera773bd52006-08-04 18:18:08 +000021336ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021337
21338
Reid Spencera773bd52006-08-04 18:18:08 +000021339ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021340
21341
Bill Wendlingf24eb392009-01-04 23:12:30 +000021342ac_config_commands="$ac_config_commands unittests/Makefile"
21343
21344
Reid Spencera773bd52006-08-04 18:18:08 +000021345ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021346
21347
Reid Spencera773bd52006-08-04 18:18:08 +000021348ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021349
21350
Reid Spencera773bd52006-08-04 18:18:08 +000021351ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021352
21353
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021354ac_config_commands="$ac_config_commands bindings/Makefile"
21355
21356
21357ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21358
21359
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021360
John Criswell7a73b802003-06-30 21:59:07 +000021361cat >confcache <<\_ACEOF
21362# This file is a shell script that caches the results of configure
21363# tests run on this system so they can be shared between configure
21364# scripts and configure runs, see configure's option --config-cache.
21365# It is not useful on other systems. If it contains results you don't
21366# want to keep, you may remove or edit it.
21367#
21368# config.status only pays attention to the cache file if you give it
21369# the --recheck option to rerun configure.
21370#
John Criswell0c38eaf2003-09-10 15:17:25 +000021371# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021372# loading this file, other *unset* `ac_cv_foo' will be assigned the
21373# following values.
21374
21375_ACEOF
21376
21377# The following way of writing the cache mishandles newlines in values,
21378# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021379# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021380# Ultrix sh set writes to stderr and can't be redirected directly,
21381# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021382(
21383 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21384 eval ac_val=\$$ac_var
21385 case $ac_val in #(
21386 *${as_nl}*)
21387 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021388 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21389echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021390 esac
21391 case $ac_var in #(
21392 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021393 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021394 esac ;;
21395 esac
21396 done
21397
John Criswell7a73b802003-06-30 21:59:07 +000021398 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21400 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021401 # `set' does not quote correctly, so add quotes (double-quote
21402 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021403 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021404 "s/'/'\\\\''/g;
21405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021406 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021407 *)
21408 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021410 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021411 esac |
21412 sort
21413) |
John Criswell7a73b802003-06-30 21:59:07 +000021414 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021415 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021416 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021417 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21419 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21421 :end' >>confcache
21422if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21423 if test -w "$cache_file"; then
21424 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21426echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021427 cat confcache >$cache_file
21428 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21430echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021431 fi
21432fi
21433rm -f confcache
21434
21435test "x$prefix" = xNONE && prefix=$ac_default_prefix
21436# Let make expand exec_prefix.
21437test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21438
John Criswell7a73b802003-06-30 21:59:07 +000021439DEFS=-DHAVE_CONFIG_H
21440
John Criswell0c38eaf2003-09-10 15:17:25 +000021441ac_libobjs=
21442ac_ltlibobjs=
21443for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21444 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021445 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021446 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021447 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21448 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021449 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21450 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021451done
21452LIBOBJS=$ac_libobjs
21453
21454LTLIBOBJS=$ac_ltlibobjs
21455
21456
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021457if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021458 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21459Usually this means the macro was only invoked conditionally." >&5
21460echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21461Usually this means the macro was only invoked conditionally." >&2;}
21462 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021463fi
21464if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21466Usually this means the macro was only invoked conditionally." >&5
21467echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21468Usually this means the macro was only invoked conditionally." >&2;}
21469 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021470fi
John Criswell7a73b802003-06-30 21:59:07 +000021471
21472: ${CONFIG_STATUS=./config.status}
21473ac_clean_files_save=$ac_clean_files
21474ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021475{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21476echo "$as_me: creating $CONFIG_STATUS" >&6;}
21477cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021478#! $SHELL
21479# Generated by $as_me.
21480# Run this file to recreate the current configuration.
21481# Compiler output produced by configure, useful for debugging
21482# configure, is in config.log if it exists.
21483
21484debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021485ac_cs_recheck=false
21486ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021487SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021488_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490cat >>$CONFIG_STATUS <<\_ACEOF
21491## --------------------- ##
21492## M4sh Initialization. ##
21493## --------------------- ##
21494
21495# Be Bourne compatible
21496if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021497 emulate sh
21498 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021500 # is contrary to our usage. Disable this feature.
21501 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021502 setopt NO_GLOB_SUBST
21503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021504 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021506BIN_SH=xpg4; export BIN_SH # for Tru64
21507DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021508
John Criswell7a73b802003-06-30 21:59:07 +000021509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021510# PATH needs CR
21511# Avoid depending upon Character Ranges.
21512as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21513as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21514as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21515as_cr_digits='0123456789'
21516as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021517
21518# The user is always right.
21519if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021520 echo "#! /bin/sh" >conf$$.sh
21521 echo "exit 0" >>conf$$.sh
21522 chmod +x conf$$.sh
21523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21524 PATH_SEPARATOR=';'
21525 else
21526 PATH_SEPARATOR=:
21527 fi
21528 rm -f conf$$.sh
21529fi
21530
21531# Support unset when possible.
21532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21533 as_unset=unset
21534else
21535 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021536fi
John Criswell7a73b802003-06-30 21:59:07 +000021537
Reid Spencera773bd52006-08-04 18:18:08 +000021538
21539# IFS
21540# We need space, tab and new line, in precisely that order. Quoting is
21541# there to prevent editors from complaining about space-tab.
21542# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21543# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021544as_nl='
21545'
Reid Spencera773bd52006-08-04 18:18:08 +000021546IFS=" "" $as_nl"
21547
21548# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021550 *[\\/]* ) as_myself=$0 ;;
21551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021552for as_dir in $PATH
21553do
21554 IFS=$as_save_IFS
21555 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21557done
Reid Spencera773bd52006-08-04 18:18:08 +000021558IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021559
Reid Spencera773bd52006-08-04 18:18:08 +000021560 ;;
21561esac
21562# We did not find ourselves, most probably we were run as `sh COMMAND'
21563# in which case we are not to be found in the path.
21564if test "x$as_myself" = x; then
21565 as_myself=$0
21566fi
21567if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021568 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21569 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021570fi
21571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572# Work around bugs in pre-3.0 UWIN ksh.
21573for as_var in ENV MAIL MAILPATH
21574do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021575done
21576PS1='$ '
21577PS2='> '
21578PS4='+ '
21579
21580# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581for as_var in \
21582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21584 LC_TELEPHONE LC_TIME
21585do
21586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21587 eval $as_var=C; export $as_var
21588 else
21589 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021590 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021591done
Torok Edwin871384f2010-01-26 08:50:50 +000021592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021593# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021594if expr a : '\(a\)' >/dev/null 2>&1 &&
21595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21596 as_expr=expr
21597else
21598 as_expr=false
21599fi
21600
21601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21602 as_basename=basename
21603else
21604 as_basename=false
21605fi
21606
21607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021608# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021609as_me=`$as_basename -- "$0" ||
21610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21611 X"$0" : 'X\(//\)$' \| \
21612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021614 sed '/^.*\/\([^/][^/]*\)\/*$/{
21615 s//\1/
21616 q
21617 }
21618 /^X\/\(\/\/\)$/{
21619 s//\1/
21620 q
21621 }
21622 /^X\/\(\/\).*/{
21623 s//\1/
21624 q
21625 }
21626 s/.*/./; q'`
21627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628# CDPATH.
21629$as_unset CDPATH
21630
21631
21632
21633 as_lineno_1=$LINENO
21634 as_lineno_2=$LINENO
21635 test "x$as_lineno_1" != "x$as_lineno_2" &&
21636 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21637
21638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21639 # uniformly replaced by the line number. The first 'sed' inserts a
21640 # line-number line after each line using $LINENO; the second 'sed'
21641 # does the real work. The second script uses 'N' to pair each
21642 # line-number line with the line containing $LINENO, and appends
21643 # trailing '-' during substitution so that $LINENO is not a special
21644 # case at line end.
21645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21646 # scripts with optimization help from Paolo Bonzini. Blame Lee
21647 # E. McMahon (1931-1989) for sed's syntax. :-)
21648 sed -n '
21649 p
21650 /[$]LINENO/=
21651 ' <$as_myself |
21652 sed '
21653 s/[$]LINENO.*/&-/
21654 t lineno
21655 b
21656 :lineno
21657 N
21658 :loop
21659 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21660 t loop
21661 s/-\n.*//
21662 ' >$as_me.lineno &&
21663 chmod +x "$as_me.lineno" ||
21664 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21665 { (exit 1); exit 1; }; }
21666
21667 # Don't try to exec as it changes $[0], causing all sort of problems
21668 # (the dirname of $[0] is not the place where we might find the
21669 # original and so on. Autoconf is especially sensitive to this).
21670 . "./$as_me.lineno"
21671 # Exit status is that of the last command.
21672 exit
21673}
21674
21675
21676if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21677 as_dirname=dirname
21678else
21679 as_dirname=false
21680fi
Reid Spencera773bd52006-08-04 18:18:08 +000021681
21682ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021683case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021684-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021687 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021688 esac;;
21689*)
21690 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021691esac
21692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021693if expr a : '\(a\)' >/dev/null 2>&1 &&
21694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21695 as_expr=expr
21696else
21697 as_expr=false
21698fi
21699
John Criswell7a73b802003-06-30 21:59:07 +000021700rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021701if test -d conf$$.dir; then
21702 rm -f conf$$.dir/conf$$.file
21703else
21704 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021705 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021707echo >conf$$.file
21708if ln -s conf$$.file conf$$ 2>/dev/null; then
21709 as_ln_s='ln -s'
21710 # ... but there are two gotchas:
21711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21713 # In both cases, we have to default to `cp -p'.
21714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021715 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021716elif ln conf$$.file conf$$ 2>/dev/null; then
21717 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021718else
21719 as_ln_s='cp -p'
21720fi
Reid Spencera773bd52006-08-04 18:18:08 +000021721rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21722rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021723
John Criswell0c38eaf2003-09-10 15:17:25 +000021724if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021725 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021726else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021727 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021728 as_mkdir_p=false
21729fi
21730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021731# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21732# systems may use methods other than mode bits to determine executability.
21733cat >conf$$.file <<_ASEOF
21734#! /bin/sh
21735exit 0
21736_ASEOF
21737chmod +x conf$$.file
21738if test -x conf$$.file >/dev/null 2>&1; then
21739 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021741 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021742fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021744
21745# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021746as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021747
21748# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021749as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021750
21751
John Criswell7a73b802003-06-30 21:59:07 +000021752exec 6>&1
21753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021755# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021756# values after options handling.
21757ac_log="
Benjamin Kramer537d9a72012-11-17 22:01:08 +000021758This file was extended by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021759generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021760
21761 CONFIG_FILES = $CONFIG_FILES
21762 CONFIG_HEADERS = $CONFIG_HEADERS
21763 CONFIG_LINKS = $CONFIG_LINKS
21764 CONFIG_COMMANDS = $CONFIG_COMMANDS
21765 $ $0 $@
21766
Reid Spencera773bd52006-08-04 18:18:08 +000021767on `(hostname || uname -n) 2>/dev/null | sed 1q`
21768"
21769
John Criswell7a73b802003-06-30 21:59:07 +000021770_ACEOF
21771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021773# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021774config_files="$ac_config_files"
21775config_headers="$ac_config_headers"
21776config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021777
Reid Spencera773bd52006-08-04 18:18:08 +000021778_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021781ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021782\`$as_me' instantiates files from templates according to the
21783current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021786
21787 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021788 -V, --version print version number, then exit
21789 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021790 -d, --debug don't remove temporary files
21791 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792 --file=FILE[:TEMPLATE]
21793 instantiate the configuration file FILE
21794 --header=FILE[:TEMPLATE]
21795 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021796
21797Configuration files:
21798$config_files
21799
21800Configuration headers:
21801$config_headers
21802
John Criswellc764fbc2003-09-06 15:17:13 +000021803Configuration commands:
21804$config_commands
21805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021806Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021807
Reid Spencera773bd52006-08-04 18:18:08 +000021808_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021810ac_cs_version="\\
Benjamin Kramer537d9a72012-11-17 22:01:08 +000021811LLVM config.status 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812configured by $0, generated by GNU Autoconf 2.60,
21813 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021816This config.status script is free software; the Free Software Foundation
21817gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021818
21819ac_pwd='$ac_pwd'
21820srcdir='$srcdir'
21821INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021822_ACEOF
21823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824cat >>$CONFIG_STATUS <<\_ACEOF
21825# If no file are specified by the user, then we need to provide default
21826# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021827ac_need_defaults=:
21828while test $# != 0
21829do
21830 case $1 in
21831 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021832 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21833 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021834 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021836 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021837 ac_option=$1
21838 ac_optarg=$2
21839 ac_shift=shift
21840 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021841 esac
21842
John Criswell0c38eaf2003-09-10 15:17:25 +000021843 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021844 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21846 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021847 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021848 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021849 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021850 debug=: ;;
21851 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021852 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021853 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021854 ac_need_defaults=false;;
21855 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021856 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021857 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021858 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021859 --he | --h)
21860 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861 { echo "$as_me: error: ambiguous option: $1
21862Try \`$0 --help' for more information." >&2
21863 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021864 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21868 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021869
21870 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021871 -*) { echo "$as_me: error: unrecognized option: $1
21872Try \`$0 --help' for more information." >&2
21873 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021876 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021877
21878 esac
21879 shift
21880done
21881
John Criswell0c38eaf2003-09-10 15:17:25 +000021882ac_configure_extra_args=
21883
21884if $ac_cs_silent; then
21885 exec 6>/dev/null
21886 ac_configure_extra_args="$ac_configure_extra_args --silent"
21887fi
21888
21889_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021891if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21893 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021894 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021896fi
21897
John Criswell7a73b802003-06-30 21:59:07 +000021898_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021899cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021900exec 5>>config.log
21901{
21902 echo
21903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21904## Running $as_me. ##
21905_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021907} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021908
Reid Spencera773bd52006-08-04 18:18:08 +000021909_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021911#
Reid Spencera773bd52006-08-04 18:18:08 +000021912# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021913#
Reid Spencerc0682832005-02-24 19:05:19 +000021914llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021915
21916_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021918cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021919
21920# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021921for ac_config_target in $ac_config_targets
21922do
Reid Spencera773bd52006-08-04 18:18:08 +000021923 case $ac_config_target in
21924 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021925 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021926 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21927 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021928 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021929 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021930 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021931 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021932 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021933 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021934 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21935 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021936 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021937 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21938 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21939 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21940 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21941 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021942 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021943 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21944 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021945 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021946 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21947 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21948 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021949 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21950 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21953echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21954 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021955 esac
21956done
21957
Reid Spencera773bd52006-08-04 18:18:08 +000021958
John Criswell7a73b802003-06-30 21:59:07 +000021959# If the user did not use the arguments to specify the items to instantiate,
21960# then the envvar interface is used. Set only those that are not.
21961# We use the long form for the default assignment because of an extremely
21962# bizarre bug on SunOS 4.1.3.
21963if $ac_need_defaults; then
21964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021967fi
21968
John Criswell0c38eaf2003-09-10 15:17:25 +000021969# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021970# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021971# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021972# Hook for its removal unless debugging.
21973# Note that there is a small window in which the directory will not be cleaned:
21974# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021975$debug ||
21976{
Reid Spencera773bd52006-08-04 18:18:08 +000021977 tmp=
21978 trap 'exit_status=$?
21979 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21980' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021981 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021982}
John Criswell7a73b802003-06-30 21:59:07 +000021983# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021984
John Criswell7a73b802003-06-30 21:59:07 +000021985{
Reid Spencera773bd52006-08-04 18:18:08 +000021986 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021987 test -n "$tmp" && test -d "$tmp"
21988} ||
21989{
Reid Spencera773bd52006-08-04 18:18:08 +000021990 tmp=./conf$$-$RANDOM
21991 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992} ||
21993{
21994 echo "$me: cannot create a temporary directory in ." >&2
21995 { (exit 1); exit 1; }
21996}
John Criswell7a73b802003-06-30 21:59:07 +000021997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021998#
21999# Set up the sed scripts for CONFIG_FILES section.
22000#
22001
22002# No need to generate the scripts if there are no CONFIG_FILES.
22003# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022004if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022005
22006_ACEOF
22007
Reid Spencera773bd52006-08-04 18:18:08 +000022008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022009
Reid Spencera773bd52006-08-04 18:18:08 +000022010ac_delim='%!_!# '
22011for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012 cat >conf$$subs.sed <<_ACEOF
22013SHELL!$SHELL$ac_delim
22014PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22015PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22016PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22017PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22018PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22019PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22020exec_prefix!$exec_prefix$ac_delim
22021prefix!$prefix$ac_delim
22022program_transform_name!$program_transform_name$ac_delim
22023bindir!$bindir$ac_delim
22024sbindir!$sbindir$ac_delim
22025libexecdir!$libexecdir$ac_delim
22026datarootdir!$datarootdir$ac_delim
22027datadir!$datadir$ac_delim
22028sysconfdir!$sysconfdir$ac_delim
22029sharedstatedir!$sharedstatedir$ac_delim
22030localstatedir!$localstatedir$ac_delim
22031includedir!$includedir$ac_delim
22032oldincludedir!$oldincludedir$ac_delim
22033docdir!$docdir$ac_delim
22034infodir!$infodir$ac_delim
22035htmldir!$htmldir$ac_delim
22036dvidir!$dvidir$ac_delim
22037pdfdir!$pdfdir$ac_delim
22038psdir!$psdir$ac_delim
22039libdir!$libdir$ac_delim
22040localedir!$localedir$ac_delim
22041mandir!$mandir$ac_delim
22042DEFS!$DEFS$ac_delim
22043ECHO_C!$ECHO_C$ac_delim
22044ECHO_N!$ECHO_N$ac_delim
22045ECHO_T!$ECHO_T$ac_delim
22046LIBS!$LIBS$ac_delim
22047build_alias!$build_alias$ac_delim
22048host_alias!$host_alias$ac_delim
22049target_alias!$target_alias$ac_delim
22050LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022051CC!$CC$ac_delim
22052CFLAGS!$CFLAGS$ac_delim
22053LDFLAGS!$LDFLAGS$ac_delim
22054CPPFLAGS!$CPPFLAGS$ac_delim
22055ac_ct_CC!$ac_ct_CC$ac_delim
22056EXEEXT!$EXEEXT$ac_delim
22057OBJEXT!$OBJEXT$ac_delim
22058CXX!$CXX$ac_delim
22059CXXFLAGS!$CXXFLAGS$ac_delim
22060ac_ct_CXX!$ac_ct_CXX$ac_delim
22061CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022062subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022063ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22064LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022065build!$build$ac_delim
22066build_cpu!$build_cpu$ac_delim
22067build_vendor!$build_vendor$ac_delim
22068build_os!$build_os$ac_delim
22069host!$host$ac_delim
22070host_cpu!$host_cpu$ac_delim
22071host_vendor!$host_vendor$ac_delim
22072host_os!$host_os$ac_delim
22073target!$target$ac_delim
22074target_cpu!$target_cpu$ac_delim
22075target_vendor!$target_vendor$ac_delim
22076target_os!$target_os$ac_delim
22077OS!$OS$ac_delim
22078HOST_OS!$HOST_OS$ac_delim
22079TARGET_OS!$TARGET_OS$ac_delim
22080LINKALL!$LINKALL$ac_delim
22081NOLINKALL!$NOLINKALL$ac_delim
22082LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22083LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22084ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022085HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022086ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022087GREP!$GREP$ac_delim
22088EGREP!$EGREP$ac_delim
22089LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22090BUILD_CC!$BUILD_CC$ac_delim
22091BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22092BUILD_CXX!$BUILD_CXX$ac_delim
22093CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022094ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022095ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000022096ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22097ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22098ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022099ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22100ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22101DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022102ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022103ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22104EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22105DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22106DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022107KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022108JIT!$JIT$ac_delim
22109TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022112 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022113 break
22114 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022115 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22116echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22117 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022118 else
22119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022120 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022121done
22122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022123ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22124if test -n "$ac_eof"; then
22125 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22126 ac_eof=`expr $ac_eof + 1`
22127fi
22128
22129cat >>$CONFIG_STATUS <<_ACEOF
22130cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022132_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022133sed '
22134s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22135s/^/s,@/; s/!/@,|#_!!_#|/
22136:n
22137t n
22138s/'"$ac_delim"'$/,g/; t
22139s/$/\\/; p
22140N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22141' >>$CONFIG_STATUS <conf$$subs.sed
22142rm -f conf$$subs.sed
22143cat >>$CONFIG_STATUS <<_ACEOF
22144CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022145_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022146
22147
22148ac_delim='%!_!# '
22149for ac_last_try in false false false false false :; do
22150 cat >conf$$subs.sed <<_ACEOF
Roman Divackyd14baf42012-12-13 16:07:19 +000022151ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22152ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22153LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022154ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022155ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022156ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022157ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022158ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherf0b3b742012-11-19 19:31:02 +000022159ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022160TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22161LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22162LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022163LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022164LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022165OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022166EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022167EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022168CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022169BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022170INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022171NM!$NM$ac_delim
22172ifGNUmake!$ifGNUmake$ac_delim
22173LN_S!$LN_S$ac_delim
22174CMP!$CMP$ac_delim
22175CP!$CP$ac_delim
22176DATE!$DATE$ac_delim
22177FIND!$FIND$ac_delim
22178MKDIR!$MKDIR$ac_delim
22179MV!$MV$ac_delim
22180RANLIB!$RANLIB$ac_delim
22181AR!$AR$ac_delim
22182RM!$RM$ac_delim
22183SED!$SED$ac_delim
22184TAR!$TAR$ac_delim
22185BINPWD!$BINPWD$ac_delim
22186GRAPHVIZ!$GRAPHVIZ$ac_delim
22187DOT!$DOT$ac_delim
22188FDP!$FDP$ac_delim
22189NEATO!$NEATO$ac_delim
22190TWOPI!$TWOPI$ac_delim
22191CIRCO!$CIRCO$ac_delim
22192GV!$GV$ac_delim
22193DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022194XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22196INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22197INSTALL_DATA!$INSTALL_DATA$ac_delim
22198BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022199CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022200DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022201GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022202GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022203PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022204ZIP!$ZIP$ac_delim
22205OCAMLC!$OCAMLC$ac_delim
22206OCAMLOPT!$OCAMLOPT$ac_delim
22207OCAMLDEP!$OCAMLDEP$ac_delim
22208OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022209GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022210HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022211INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22212INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22213CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22214CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22215LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022216NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22217NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022218COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022219USE_UDIS86!$USE_UDIS86$ac_delim
22220USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022221USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022222XML2CONFIG!$XML2CONFIG$ac_delim
22223LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22224LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022225HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22226HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22227MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022228SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022229SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022230LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22231LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22232LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22233LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22234LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22235LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22236LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22237LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22238LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22239LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22240BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22241ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022242OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22243ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22244RPATH!$RPATH$ac_delim
22245RDYNAMIC!$RDYNAMIC$ac_delim
Jordan Rose92080522012-10-01 18:40:32 +000022246program_prefix!$program_prefix$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022247LIBOBJS!$LIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022248_ACEOF
22249
Roman Divackyd14baf42012-12-13 16:07:19 +000022250 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022251 break
22252 elif $ac_last_try; then
22253 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22254echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22255 { (exit 1); exit 1; }; }
22256 else
22257 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22258 fi
22259done
22260
22261ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22262if test -n "$ac_eof"; then
22263 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22264 ac_eof=`expr $ac_eof + 1`
22265fi
22266
22267cat >>$CONFIG_STATUS <<_ACEOF
22268cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyd14baf42012-12-13 16:07:19 +000022269/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22270_ACEOF
22271sed '
22272s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22273s/^/s,@/; s/!/@,|#_!!_#|/
22274:n
22275t n
22276s/'"$ac_delim"'$/,g/; t
22277s/$/\\/; p
22278N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22279' >>$CONFIG_STATUS <conf$$subs.sed
22280rm -f conf$$subs.sed
22281cat >>$CONFIG_STATUS <<_ACEOF
22282CEOF$ac_eof
22283_ACEOF
22284
22285
22286ac_delim='%!_!# '
22287for ac_last_try in false false false false false :; do
22288 cat >conf$$subs.sed <<_ACEOF
22289LTLIBOBJS!$LTLIBOBJS$ac_delim
22290_ACEOF
22291
22292 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
22293 break
22294 elif $ac_last_try; then
22295 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22296echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22297 { (exit 1); exit 1; }; }
22298 else
22299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22300 fi
22301done
22302
22303ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22304if test -n "$ac_eof"; then
22305 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22306 ac_eof=`expr $ac_eof + 1`
22307fi
22308
22309cat >>$CONFIG_STATUS <<_ACEOF
22310cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose85042e62012-09-26 00:01:00 +000022311/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grossera84b5672010-11-10 16:31:34 +000022312_ACEOF
22313sed '
22314s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22315s/^/s,@/; s/!/@,|#_!!_#|/
22316:n
22317t n
22318s/'"$ac_delim"'$/,g/; t
22319s/$/\\/; p
22320N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22321' >>$CONFIG_STATUS <conf$$subs.sed
22322rm -f conf$$subs.sed
22323cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose85042e62012-09-26 00:01:00 +000022324:end
22325s/|#_!!_#|//g
Tobias Grossera84b5672010-11-10 16:31:34 +000022326CEOF$ac_eof
22327_ACEOF
22328
22329
Reid Spencera773bd52006-08-04 18:18:08 +000022330# VPATH may cause trouble with some makes, so we remove $(srcdir),
22331# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22332# trailing colons and then remove the whole line if VPATH becomes empty
22333# (actually we leave an empty line to preserve line numbers).
22334if test "x$srcdir" = x.; then
22335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22336s/:*\$(srcdir):*/:/
22337s/:*\${srcdir}:*/:/
22338s/:*@srcdir@:*/:/
22339s/^\([^=]*=[ ]*\):*/\1/
22340s/:*$//
22341s/^[^=]*=[ ]*$//
22342}'
22343fi
22344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022345cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022346fi # test -n "$CONFIG_FILES"
22347
Reid Spencera773bd52006-08-04 18:18:08 +000022348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022349for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022350do
22351 case $ac_tag in
22352 :[FHLC]) ac_mode=$ac_tag; continue;;
22353 esac
22354 case $ac_mode$ac_tag in
22355 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022356 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22357echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22358 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022359 :[FH]-) ac_tag=-:-;;
22360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22361 esac
22362 ac_save_IFS=$IFS
22363 IFS=:
22364 set x $ac_tag
22365 IFS=$ac_save_IFS
22366 shift
22367 ac_file=$1
22368 shift
22369
22370 case $ac_mode in
22371 :L) ac_source=$1;;
22372 :[FH])
22373 ac_file_inputs=
22374 for ac_f
22375 do
22376 case $ac_f in
22377 -) ac_f="$tmp/stdin";;
22378 *) # Look for the file first in the build tree, then in the source tree
22379 # (if the path is not absolute). The absolute path cannot be DOS-style,
22380 # because $ac_f cannot contain `:'.
22381 test -f "$ac_f" ||
22382 case $ac_f in
22383 [\\/$]*) false;;
22384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22385 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022386 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22387echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22388 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022389 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022390 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022391 done
22392
22393 # Let's still pretend it is `configure' which instantiates (i.e., don't
22394 # use $as_me), people would be surprised to read:
22395 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022396 configure_input="Generated from "`IFS=:
22397 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022398 if test x"$ac_file" != x-; then
22399 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022400 { echo "$as_me:$LINENO: creating $ac_file" >&5
22401echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022402 fi
22403
22404 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022405 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022406 esac
22407 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022408 esac
22409
Reid Spencera773bd52006-08-04 18:18:08 +000022410 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022411$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022412 X"$ac_file" : 'X\(//\)[^/]' \| \
22413 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022415echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22417 s//\1/
22418 q
22419 }
22420 /^X\(\/\/\)[^/].*/{
22421 s//\1/
22422 q
22423 }
22424 /^X\(\/\/\)$/{
22425 s//\1/
22426 q
22427 }
22428 /^X\(\/\).*/{
22429 s//\1/
22430 q
22431 }
22432 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022433 { as_dir="$ac_dir"
22434 case $as_dir in #(
22435 -*) as_dir=./$as_dir;;
22436 esac
22437 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22438 as_dirs=
22439 while :; do
22440 case $as_dir in #(
22441 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22442 *) as_qdir=$as_dir;;
22443 esac
22444 as_dirs="'$as_qdir' $as_dirs"
22445 as_dir=`$as_dirname -- "$as_dir" ||
22446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22447 X"$as_dir" : 'X\(//\)[^/]' \| \
22448 X"$as_dir" : 'X\(//\)$' \| \
22449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22450echo X"$as_dir" |
22451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22452 s//\1/
22453 q
22454 }
22455 /^X\(\/\/\)[^/].*/{
22456 s//\1/
22457 q
22458 }
22459 /^X\(\/\/\)$/{
22460 s//\1/
22461 q
22462 }
22463 /^X\(\/\).*/{
22464 s//\1/
22465 q
22466 }
22467 s/.*/./; q'`
22468 test -d "$as_dir" && break
22469 done
22470 test -z "$as_dirs" || eval "mkdir $as_dirs"
22471 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22472echo "$as_me: error: cannot create directory $as_dir" >&2;}
22473 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022474 ac_builddir=.
22475
Reid Spencera773bd52006-08-04 18:18:08 +000022476case "$ac_dir" in
22477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22478*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022479 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022480 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022481 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022482 case $ac_top_builddir_sub in
22483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22485 esac ;;
22486esac
22487ac_abs_top_builddir=$ac_pwd
22488ac_abs_builddir=$ac_pwd$ac_dir_suffix
22489# for backward compatibility:
22490ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022491
22492case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022493 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022494 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022495 ac_top_srcdir=$ac_top_builddir_sub
22496 ac_abs_top_srcdir=$ac_pwd ;;
22497 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022498 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022499 ac_top_srcdir=$srcdir
22500 ac_abs_top_srcdir=$srcdir ;;
22501 *) # Relative name.
22502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22503 ac_top_srcdir=$ac_top_build_prefix$srcdir
22504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022505esac
Reid Spencera773bd52006-08-04 18:18:08 +000022506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022507
John Criswell7a73b802003-06-30 21:59:07 +000022508
Reid Spencera773bd52006-08-04 18:18:08 +000022509 case $ac_mode in
22510 :F)
22511 #
22512 # CONFIG_FILE
22513 #
John Criswell7a73b802003-06-30 21:59:07 +000022514
22515 case $INSTALL in
22516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022517 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022518 esac
John Criswell7a73b802003-06-30 21:59:07 +000022519_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022521cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022522# If the template does not know about datarootdir, expand it.
22523# FIXME: This hack should be removed a few years after 2.60.
22524ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022525
22526case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022527 p
22528 q
22529}
22530/@datadir@/p
22531/@docdir@/p
22532/@infodir@/p
22533/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022534/@mandir@/p
22535' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022536*datarootdir*) ac_datarootdir_seen=yes;;
22537*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022538 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22539echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022540_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022541cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022542 ac_datarootdir_hack='
22543 s&@datadir@&$datadir&g
22544 s&@docdir@&$docdir&g
22545 s&@infodir@&$infodir&g
22546 s&@localedir@&$localedir&g
22547 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022548 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022549esac
22550_ACEOF
22551
22552# Neutralize VPATH when `$srcdir' = `.'.
22553# Shell code in configure.ac might set extrasub.
22554# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022555cat >>$CONFIG_STATUS <<_ACEOF
22556 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022557$extrasub
22558_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022559cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022560:t
22561/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022562s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022563s&@top_builddir@&$ac_top_builddir_sub&;t t
22564s&@srcdir@&$ac_srcdir&;t t
22565s&@abs_srcdir@&$ac_abs_srcdir&;t t
22566s&@top_srcdir@&$ac_top_srcdir&;t t
22567s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22568s&@builddir@&$ac_builddir&;t t
22569s&@abs_builddir@&$ac_abs_builddir&;t t
22570s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22571s&@INSTALL@&$ac_INSTALL&;t t
22572$ac_datarootdir_hack
Roman Divackyd14baf42012-12-13 16:07:19 +000022573" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022574
Reid Spencera773bd52006-08-04 18:18:08 +000022575test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22576 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22577 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022578 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022579which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022580echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022581which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022582
Reid Spencera773bd52006-08-04 18:18:08 +000022583 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022584 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022585 -) cat "$tmp/out"; rm -f "$tmp/out";;
22586 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22587 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022588 ;;
22589 :H)
22590 #
22591 # CONFIG_HEADER
22592 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022593_ACEOF
22594
22595# Transform confdefs.h into a sed script `conftest.defines', that
22596# substitutes the proper values into config.h.in to produce config.h.
22597rm -f conftest.defines conftest.tail
22598# First, append a space to every undef/define line, to ease matching.
22599echo 's/$/ /' >conftest.defines
22600# Then, protect against being on the right side of a sed subst, or in
22601# an unquoted here document, in config.status. If some macros were
22602# called several times there might be several #defines for the same
22603# symbol, which is useless. But do not sort them, since the last
22604# AC_DEFINE must be honored.
22605ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22606# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22607# NAME is the cpp macro being defined, VALUE is the value it is being given.
22608# PARAMS is the parameter list in the macro definition--in most cases, it's
22609# just an empty string.
22610ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22611ac_dB='\\)[ (].*,\\1define\\2'
22612ac_dC=' '
22613ac_dD=' ,'
22614
22615uniq confdefs.h |
22616 sed -n '
22617 t rset
22618 :rset
22619 s/^[ ]*#[ ]*define[ ][ ]*//
22620 t ok
22621 d
22622 :ok
22623 s/[\\&,]/\\&/g
22624 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22625 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22626 ' >>conftest.defines
22627
22628# Remove the space that was appended to ease matching.
22629# Then replace #undef with comments. This is necessary, for
22630# example, in the case of _POSIX_SOURCE, which is predefined and required
22631# on some systems where configure will not decide to define it.
22632# (The regexp can be short, since the line contains either #define or #undef.)
22633echo 's/ $//
22634s,^[ #]*u.*,/* & */,' >>conftest.defines
22635
22636# Break up conftest.defines:
22637ac_max_sed_lines=50
22638
22639# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22640# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22641# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22642# et cetera.
22643ac_in='$ac_file_inputs'
22644ac_out='"$tmp/out1"'
22645ac_nxt='"$tmp/out2"'
22646
22647while :
22648do
22649 # Write a here document:
22650 cat >>$CONFIG_STATUS <<_ACEOF
22651 # First, check the format of the line:
22652 cat >"\$tmp/defines.sed" <<\\CEOF
22653/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22654/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22655b
22656:def
22657_ACEOF
22658 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22659 echo 'CEOF
22660 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22661 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22662 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22663 grep . conftest.tail >/dev/null || break
22664 rm -f conftest.defines
22665 mv conftest.tail conftest.defines
22666done
22667rm -f conftest.defines conftest.tail
22668
22669echo "ac_result=$ac_in" >>$CONFIG_STATUS
22670cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022671 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022672 echo "/* $configure_input */" >"$tmp/config.h"
22673 cat "$ac_result" >>"$tmp/config.h"
22674 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22675 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22676echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022677 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022678 rm -f $ac_file
22679 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022680 fi
22681 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022682 echo "/* $configure_input */"
22683 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022684 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022685 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022686 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022688 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22689echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022690 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022691 esac
John Criswell7a73b802003-06-30 21:59:07 +000022692
Reid Spencera773bd52006-08-04 18:18:08 +000022693
22694 case $ac_file$ac_mode in
22695 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022696 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022697 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022698 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022699 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022700 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022701 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022702 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022703 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022704 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022705 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022706 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022707 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022708 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022709 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022710 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022711 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022712 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022713 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022714 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022715 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022716 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022717 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022718 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022719 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022720 ${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 +000022721
22722 esac
22723done # for ac_tag
22724
John Criswell7a73b802003-06-30 21:59:07 +000022725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022726{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022727_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022728chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022729ac_clean_files=$ac_clean_files_save
22730
22731
22732# configure is writing to config.log, and then calls config.status.
22733# config.status does its own redirection, appending to config.log.
22734# Unfortunately, on DOS this fails, as config.log is still kept open
22735# by configure, so config.status won't be able to write to it; its
22736# output is simply discarded. So we exec the FD to /dev/null,
22737# effectively closing config.log, so it can be properly (re)opened and
22738# appended to by config.status. When coming back to configure, we
22739# need to make the FD available again.
22740if test "$no_create" != yes; then
22741 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022742 ac_config_status_args=
22743 test "$silent" = yes &&
22744 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022745 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022747 exec 5>>config.log
22748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22749 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022750 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022751fi
22752
John Criswell12399a12003-09-30 15:55:44 +000022753#
22754# CONFIG_SUBDIRS section.
22755#
22756if test "$no_recursion" != yes; then
22757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022758 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022759 ac_sub_configure_args=
22760 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022761 eval "set x $ac_configure_args"
22762 shift
22763 for ac_arg
22764 do
John Criswell12399a12003-09-30 15:55:44 +000022765 if test -n "$ac_prev"; then
22766 ac_prev=
22767 continue
22768 fi
22769 case $ac_arg in
22770 -cache-file | --cache-file | --cache-fil | --cache-fi \
22771 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22772 ac_prev=cache_file ;;
22773 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22774 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22775 | --c=*)
22776 ;;
22777 --config-cache | -C)
22778 ;;
22779 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22780 ac_prev=srcdir ;;
22781 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22782 ;;
22783 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22784 ac_prev=prefix ;;
22785 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22786 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022787 *)
22788 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022789 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022790 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022791 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022792 esac
22793 done
22794
22795 # Always prepend --prefix to ensure using the same prefix
22796 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022797 ac_arg="--prefix=$prefix"
22798 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022799 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022800 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022801 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022802
22803 ac_popdir=`pwd`
22804 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22805
22806 # Do not complain, so a configure script can configure whichever
22807 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022808 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022809
Reid Spencera773bd52006-08-04 18:18:08 +000022810 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022811 echo "$as_me:$LINENO: $ac_msg" >&5
22812 echo "$ac_msg" >&6
22813 { as_dir="$ac_dir"
22814 case $as_dir in #(
22815 -*) as_dir=./$as_dir;;
22816 esac
22817 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22818 as_dirs=
22819 while :; do
22820 case $as_dir in #(
22821 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22822 *) as_qdir=$as_dir;;
22823 esac
22824 as_dirs="'$as_qdir' $as_dirs"
22825 as_dir=`$as_dirname -- "$as_dir" ||
22826$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22827 X"$as_dir" : 'X\(//\)[^/]' \| \
22828 X"$as_dir" : 'X\(//\)$' \| \
22829 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22830echo X"$as_dir" |
22831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22832 s//\1/
22833 q
22834 }
22835 /^X\(\/\/\)[^/].*/{
22836 s//\1/
22837 q
22838 }
22839 /^X\(\/\/\)$/{
22840 s//\1/
22841 q
22842 }
22843 /^X\(\/\).*/{
22844 s//\1/
22845 q
22846 }
22847 s/.*/./; q'`
22848 test -d "$as_dir" && break
22849 done
22850 test -z "$as_dirs" || eval "mkdir $as_dirs"
22851 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22852echo "$as_me: error: cannot create directory $as_dir" >&2;}
22853 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022854 ac_builddir=.
22855
Reid Spencera773bd52006-08-04 18:18:08 +000022856case "$ac_dir" in
22857.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22858*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022860 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022861 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022862 case $ac_top_builddir_sub in
22863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22865 esac ;;
22866esac
22867ac_abs_top_builddir=$ac_pwd
22868ac_abs_builddir=$ac_pwd$ac_dir_suffix
22869# for backward compatibility:
22870ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022871
22872case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022873 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022874 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022875 ac_top_srcdir=$ac_top_builddir_sub
22876 ac_abs_top_srcdir=$ac_pwd ;;
22877 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022878 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022879 ac_top_srcdir=$srcdir
22880 ac_abs_top_srcdir=$srcdir ;;
22881 *) # Relative name.
22882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22883 ac_top_srcdir=$ac_top_build_prefix$srcdir
22884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022885esac
Reid Spencera773bd52006-08-04 18:18:08 +000022886ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022887
22888
Reid Spencera773bd52006-08-04 18:18:08 +000022889 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022890
22891 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022892 if test -f "$ac_srcdir/configure.gnu"; then
22893 ac_sub_configure=$ac_srcdir/configure.gnu
22894 elif test -f "$ac_srcdir/configure"; then
22895 ac_sub_configure=$ac_srcdir/configure
22896 elif test -f "$ac_srcdir/configure.in"; then
22897 # This should be Cygnus configure.
22898 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022899 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022900 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22901echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022902 ac_sub_configure=
22903 fi
22904
22905 # The recursion is here.
22906 if test -n "$ac_sub_configure"; then
22907 # Make the cache file name correct relative to the subdirectory.
22908 case $cache_file in
22909 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022910 *) # Relative name.
22911 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022912 esac
22913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022914 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22915echo "$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 +000022916 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022917 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22918 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022919 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22920echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22921 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022922 fi
22923
Reid Spencera773bd52006-08-04 18:18:08 +000022924 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022925 done
22926fi
22927