blob: 325606ab3c78d22337626779e1c4dec14d542c83 [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
Richard Smith1983f542013-01-31 22:19:12 +0000769NO_NESTED_ANON_TYPES
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000770COVERED_SWITCH_DEFAULT
David Greened2f82162013-01-09 22:11:13 +0000771NO_MAYBE_UNINITIALIZED
772NO_UNINITIALIZED
Saleem Abdulrasool581126e2013-01-30 04:44:17 +0000773PYTHON
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774USE_UDIS86
775USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000776USE_INTEL_JITEVENTS
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000777XML2CONFIG
778LIBXML2_LIBS
779LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000780HAVE_PTHREAD
781HUGE_VAL_SANITY
782MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000783SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000784SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785LLVM_PREFIX
786LLVM_BINDIR
787LLVM_LIBDIR
788LLVM_DATADIR
789LLVM_DOCSDIR
790LLVM_ETCDIR
791LLVM_INCLUDEDIR
792LLVM_INFODIR
793LLVM_MANDIR
794LLVM_CONFIGTIME
795BINDINGS_TO_BUILD
796ALL_BINDINGS
797OCAML_LIBDIR
798ENABLE_VISIBILITY_INLINES_HIDDEN
799RPATH
800RDYNAMIC
Jordan Rose92080522012-10-01 18:40:32 +0000801program_prefix
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000802LIBOBJS
803LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000804ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000805 ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000812CXX
813CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000814CCC
815CPP'
John Criswell0157f502010-03-19 21:31:39 +0000816ac_subdirs_all='projects/llvm-gcc
817projects/test-suite
818projects/llvm-test
819projects/poolalloc
820projects/llvm-poolalloc
821projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000822projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000823projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000824projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-java
826projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000827projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000828projects/llvm-kernel
829tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000856# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000865includedir='${prefix}/include'
866oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000876
877ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000878ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000879for ac_option
880do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000883 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000884 ac_prev=
885 continue
886 fi
887
Reid Spencera773bd52006-08-04 18:18:08 +0000888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
John Criswell7a73b802003-06-30 21:59:07 +0000892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
Reid Spencera773bd52006-08-04 18:18:08 +0000895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
903
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
918
Reid Spencera773bd52006-08-04 18:18:08 +0000919 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000920 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000922 datadir=$ac_optarg ;;
923
Reid Spencera773bd52006-08-04 18:18:08 +0000924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
John Criswell7a73b802003-06-30 21:59:07 +0000931 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000933 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000952 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
Reid Spencera773bd52006-08-04 18:18:08 +0000984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
John Criswell7a73b802003-06-30 21:59:07 +0000990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
Reid Spencera773bd52006-08-04 18:18:08 +00001014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
John Criswell7a73b802003-06-30 21:59:07 +00001019 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001020 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
Reid Spencera773bd52006-08-04 18:18:08 +00001088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
John Criswell7a73b802003-06-30 21:59:07 +00001098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001158 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001194 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 ;;
1204
1205 esac
1206done
1207
1208if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001212fi
1213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001219do
Reid Spencera773bd52006-08-04 18:18:08 +00001220 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001221 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001224 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
Reid Spencera773bd52006-08-04 18:18:08 +00001253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001261
1262
John Criswell7a73b802003-06-30 21:59:07 +00001263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001266 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001267 ac_confdir=`$as_dirname -- "$0" ||
1268$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001290 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001291 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001292 srcdir=..
1293 fi
1294else
1295 ac_srcdir_defaulted=no
1296fi
Reid Spencera773bd52006-08-04 18:18:08 +00001297if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001301fi
Reid Spencera773bd52006-08-04 18:18:08 +00001302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001331\`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
John Criswell7a73b802003-06-30 21:59:07 +00001351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001379 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001397 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001404 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001405 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001406 --enable-cxx11 Use c++11 if available (default is NO)
Roman Divackyd14baf42012-12-13 16:07:19 +00001407 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1408 --enable-clang-static-analyzer
1409 Enable building of clang Static Analyzer (default is
1410 YES)
1411 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001412 --enable-optimized Compile with optimizations enabled (default is NO)
1413 --enable-profiling Compile with profiling enabled (default is NO)
1414 --enable-assertions Compile with assertion checks enabled (default is
1415 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001416 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001417 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001418 Compile with expensive debug checks enabled (default
1419 is NO)
1420 --enable-debug-runtime Build runtime libs with debug symbols (default is
1421 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001422 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1423 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001424 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001425 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001426 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001427 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001428 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001429 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001430 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001431 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001432 --enable-shared Build a shared library and link tools against it
1433 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001435 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001436 --enable-timestamps Enable embedding timestamp information in build
1437 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001438 --enable-backtraces Enable embedding backtraces on crash (default is
1439 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001440 --enable-targets Build specific host targets: all or
1441 target1,target2,... Valid targets are: host, x86,
Tim Northover72062f52013-01-31 12:12:40 +00001442 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001444 --enable-experimental-targets
1445 Build experimental host targets: disable or
1446 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001447 --enable-bindings Build specific language bindings:
1448 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001449 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001450 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001451
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001461 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1464 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001465 --with-c-include-dirs Colon separated list of directories clang will
1466 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001467 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001471 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001472 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001473 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasool581126e2013-01-30 04:44:17 +00001474 --with-python path to python
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001475 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor770b97b2012-09-28 17:35:20 +00001478 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1479
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001482 CC C compiler command
1483 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001487 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001490 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
Eric Christopherf33ab862011-12-21 00:52:44 +00001495Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001496_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001497ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001503 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_builddir=.
1505
Reid Spencera773bd52006-08-04 18:18:08 +00001506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001510 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001521
1522case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001523 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001524 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001528 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001535esac
Reid Spencera773bd52006-08-04 18:18:08 +00001536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001537
Reid Spencera773bd52006-08-04 18:18:08 +00001538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001546 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001550 done
1551fi
1552
Reid Spencera773bd52006-08-04 18:18:08 +00001553test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001554if $ac_init_version; then
1555 cat <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001556LLVM configure 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001557generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +00001564Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001566 exit
John Criswell7a73b802003-06-30 21:59:07 +00001567fi
Reid Spencera773bd52006-08-04 18:18:08 +00001568cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001569This file contains any messages produced by compilers while
1570running configure, to aid debugging if configure makes a mistake.
1571
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001572It was created by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001573generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001574
1575 $ $0 $@
1576
1577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001578exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001579{
1580cat <<_ASUNAME
1581## --------- ##
1582## Platform. ##
1583## --------- ##
1584
1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593
1594/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001597/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001598/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601
1602_ASUNAME
1603
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001609 echo "PATH: $as_dir"
1610done
Reid Spencera773bd52006-08-04 18:18:08 +00001611IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001612
1613} >&5
1614
1615cat >&5 <<_ACEOF
1616
1617
1618## ----------- ##
1619## Core tests. ##
1620## ----------- ##
1621
1622_ACEOF
1623
1624
1625# Keep a trace of the command line.
1626# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001628# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001630ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001631ac_configure_args0=
1632ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_must_keep_next=false
1634for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001635do
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 for ac_arg
1637 do
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001643 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 esac
1646 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001651 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1661 ;;
1662 -* ) ac_must_keep_next=true ;;
1663 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001665 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 ;;
1667 esac
1668 done
John Criswell7a73b802003-06-30 21:59:07 +00001669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001670$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671$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 +00001672
1673# When interrupted or exit'd, cleanup temporary files, and complete
1674# config.log. We remove comments because anyway the quotes in there
1675# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001676# WARNING: Use '\'' to represent an apostrophe within the trap.
1677# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001678trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1680 {
1681 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001682
John Criswell7a73b802003-06-30 21:59:07 +00001683 cat <<\_ASBOX
1684## ---------------- ##
1685## Cache variables. ##
1686## ---------------- ##
1687_ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001690(
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001701 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001702 esac ;;
1703 esac
1704 done
John Criswell7a73b802003-06-30 21:59:07 +00001705 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001708 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001712 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001715 esac |
1716 sort
1717)
John Criswell7a73b802003-06-30 21:59:07 +00001718 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001719
1720 cat <<\_ASBOX
1721## ----------------- ##
1722## Output variables. ##
1723## ----------------- ##
1724_ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
Reid Spencera773bd52006-08-04 18:18:08 +00001728 eval ac_val=\$$ac_var
1729 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001731 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 done | sort
1734 echo
1735
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001738## ------------------- ##
1739## File substitutions. ##
1740## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1744 do
Reid Spencera773bd52006-08-04 18:18:08 +00001745 eval ac_val=\$$ac_var
1746 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001748 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 done | sort
1751 echo
1752 fi
1753
John Criswell7a73b802003-06-30 21:59:07 +00001754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756## ----------- ##
1757## confdefs.h. ##
1758## ----------- ##
1759_ASBOX
1760 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001761 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001762 echo
1763 fi
1764 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001767 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001770 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001771' 0
John Criswell7a73b802003-06-30 21:59:07 +00001772for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001774done
1775ac_signal=0
1776
1777# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001778rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001779
1780# Predefined preprocessor variables.
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_NAME "$PACKAGE_NAME"
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_TARNAME "$PACKAGE_TARNAME"
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_VERSION "$PACKAGE_VERSION"
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_STRING "$PACKAGE_STRING"
1799_ACEOF
1800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801
John Criswell7a73b802003-06-30 21:59:07 +00001802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804_ACEOF
1805
1806
1807# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001809if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001811elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817shift
1818for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001819do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1825 fi
1826done
1827
1828if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001837 esac
1838 fi
1839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 >$cache_file
1843fi
1844
1845# Check that the precious variables saved in the cache have kept the same
1846# value.
1847ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001848for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001853 case $ac_old_set,$ac_new_set in
1854 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001857 ac_cache_corrupted=: ;;
1858 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001861 ac_cache_corrupted=: ;;
1862 ,);;
1863 *)
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001883 esac
1884 fi
1885done
1886if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
Reid Spencera773bd52006-08-04 18:18:08 +00001917
John Criswell7a73b802003-06-30 21:59:07 +00001918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001926cat >>confdefs.h <<\_ACEOF
1927#define LLVM_VERSION_MAJOR 3
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001932#define LLVM_VERSION_MINOR 3
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001933_ACEOF
1934
1935
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +00001936LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001937
1938
1939
1940
1941
1942
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001945for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001946 if test -f "$ac_dir/install-sh"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 break
1950 elif test -f "$ac_dir/install.sh"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 break
1954 elif test -f "$ac_dir/shtool"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 break
1958 fi
John Criswell7a73b802003-06-30 21:59:07 +00001959done
1960if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1962echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1963 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001964fi
Reid Spencera773bd52006-08-04 18:18:08 +00001965
1966# These three variables are undocumented and unsupported,
1967# and are intended to be withdrawn in a future Autoconf release.
1968# They can cause serious problems if a builder's source tree is in a directory
1969# whose full name contains unusual characters.
1970ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973
John Criswell7a73b802003-06-30 21:59:07 +00001974
John Criswell392aaa32003-07-22 19:18:09 +00001975
Reid Spencer2706f8c2004-09-19 23:53:36 +00001976if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001977 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001978 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1979echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1980 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001981 fi
John Criswell93e1c722003-09-15 17:04:06 +00001982fi
1983
Patrik Hagglund6c440fc2013-02-04 08:15:53 +00001984${CFLAGS=}
1985${CXXFLAGS=}
1986
Nick Lewycky83fc4472009-09-29 05:48:51 +00001987ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001988ac_cpp='$CPP $CPPFLAGS'
1989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001992if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001993 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001994 do
1995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1996set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002001else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002002 if test -n "$CC"; then
2003 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002004else
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 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 +00002012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002014 break 2
2015 fi
2016done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017done
Reid Spencera773bd52006-08-04 18:18:08 +00002018IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002019
2020fi
2021fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002022CC=$ac_cv_prog_CC
2023if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024 { echo "$as_me:$LINENO: result: $CC" >&5
2025echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027 { echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002029fi
2030
Reid Spencera773bd52006-08-04 18:18:08 +00002031
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002033 done
2034fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035if test -z "$CC"; then
2036 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002037 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002038do
2039 # Extract the first word of "$ac_prog", so it can be a program name with args.
2040set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002045else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002046 if test -n "$ac_ct_CC"; then
2047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002048else
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 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 +00002056 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002058 break 2
2059 fi
2060done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061done
Reid Spencera773bd52006-08-04 18:18:08 +00002062IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002063
2064fi
2065fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071 { echo "$as_me:$LINENO: result: no" >&5
2072echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002073fi
2074
Reid Spencera773bd52006-08-04 18:18:08 +00002075
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002076 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002077done
John Criswell7a73b802003-06-30 21:59:07 +00002078
Reid Spencera773bd52006-08-04 18:18:08 +00002079 if test "x$ac_ct_CC" = x; then
2080 CC=""
2081 else
2082 case $cross_compiling:$ac_tool_warned in
2083yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2085whose name does not start with the host triplet. If you think this
2086configuration is useful to you, please write to autoconf@gnu.org." >&5
2087echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2088whose name does not start with the host triplet. If you think this
2089configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002090ac_tool_warned=yes ;;
2091esac
2092 CC=$ac_ct_CC
2093 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002094fi
2095
John Criswell7a73b802003-06-30 21:59:07 +00002096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002097test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2098See \`config.log' for more details." >&5
2099echo "$as_me: error: no acceptable C compiler found in \$PATH
2100See \`config.log' for more details." >&2;}
2101 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102
John Criswell7a73b802003-06-30 21:59:07 +00002103# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002104echo "$as_me:$LINENO: checking for C compiler version" >&5
2105ac_compiler=`set X $ac_compile; echo $2`
2106{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002107case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002113 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116{ (ac_try="$ac_compiler -v >&5"
2117case "(($ac_try" in
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2120esac
2121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122 (eval "$ac_compiler -v >&5") 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126{ (ac_try="$ac_compiler -V >&5"
2127case "(($ac_try" in
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2130esac
2131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132 (eval "$ac_compiler -V >&5") 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002137cat >conftest.$ac_ext <<_ACEOF
2138/* confdefs.h. */
2139_ACEOF
2140cat confdefs.h >>conftest.$ac_ext
2141cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002143
John Criswell7a73b802003-06-30 21:59:07 +00002144int
2145main ()
2146{
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002153ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002154# Try to create an executable without -o first, disregard a.out.
2155# It will help us diagnose broken compilers, and finding out an intuition
2156# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2158echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2159ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160#
2161# List of possible output files, starting from the most likely.
2162# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2163# only as a last resort. b.out is created by i960 compilers.
2164ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2165#
2166# The IRIX 6 linker writes into existing files which may not be
2167# executable, retaining their permissions. Remove them first so a
2168# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002169ac_rmfiles=
2170for ac_file in $ac_files
2171do
2172 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002174 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2175 esac
2176done
2177rm -f $ac_rmfiles
2178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002179if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002180case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002185 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002186 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2190# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2191# in a Makefile. We should not override ac_cv_exeext if it was cached,
2192# so that the user can short-circuit this test for compilers unknown to
2193# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002194for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002195do
2196 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002197 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002199 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002200 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002201 # We found the default executable, but exeext='' is most
2202 # certainly right.
2203 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002204 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002205 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002206 then :; else
2207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 fi
2209 # We set ac_cv_exeext here because the later test for it is not
2210 # safe: cross compilers may not add the suffix if given an `-o'
2211 # argument, so we may need to know it at that point already.
2212 # Even if this section looks crufty: it has the advantage of
2213 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002214 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002215 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002216 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002217 esac
2218done
Reid Spencera773bd52006-08-04 18:18:08 +00002219test "$ac_cv_exeext" = no && ac_cv_exeext=
2220
John Criswell7a73b802003-06-30 21:59:07 +00002221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002223sed 's/^/| /' conftest.$ac_ext >&5
2224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002225{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: C compiler cannot create executables
2228See \`config.log' for more details." >&2;}
2229 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002230fi
John Criswell7a73b802003-06-30 21:59:07 +00002231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002232ac_exeext=$ac_cv_exeext
2233{ echo "$as_me:$LINENO: result: $ac_file" >&5
2234echo "${ECHO_T}$ac_file" >&6; }
2235
2236# Check that the compiler produces executables we can run. If not, either
2237# the compiler is broken, or we cross compile.
2238{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2239echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2240# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2241# If not cross compiling, check that we can run a simple program.
2242if test "$cross_compiling" != yes; then
2243 if { ac_try='./$ac_file'
2244 { (case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247esac
2248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_try") 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2253 cross_compiling=no
2254 else
2255 if test "$cross_compiling" = maybe; then
2256 cross_compiling=yes
2257 else
2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259If you meant to cross compile, use \`--host'.
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: cannot run C compiled programs.
2262If you meant to cross compile, use \`--host'.
2263See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2265 fi
2266 fi
2267fi
2268{ echo "$as_me:$LINENO: result: yes" >&5
2269echo "${ECHO_T}yes" >&6; }
2270
2271rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002272ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273# Check that the compiler produces executables we can run. If not, either
2274# the compiler is broken, or we cross compile.
2275{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2277{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278echo "${ECHO_T}$cross_compiling" >&6; }
2279
2280{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2282if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002283case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2286esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002288 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002289 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002292 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2293# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2294# work properly (i.e., refer to `conftest.exe'), while it won't with
2295# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002296for ac_file in conftest.exe conftest conftest.*; do
2297 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002298 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002300 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002301 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002302 * ) break;;
2303 esac
2304done
2305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002306 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2307See \`config.log' for more details." >&5
2308echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2309See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002311fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312
2313rm -f conftest$ac_cv_exeext
2314{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2315echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002316
2317rm -f conftest.$ac_ext
2318EXEEXT=$ac_cv_exeext
2319ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002320{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2321echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2322if test "${ac_cv_objext+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325 cat >conftest.$ac_ext <<_ACEOF
2326/* confdefs.h. */
2327_ACEOF
2328cat confdefs.h >>conftest.$ac_ext
2329cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002330/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002331
John Criswell7a73b802003-06-30 21:59:07 +00002332int
2333main ()
2334{
2335
2336 ;
2337 return 0;
2338}
2339_ACEOF
2340rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002347 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002348 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002351 for ac_file in conftest.o conftest.obj conftest.*; do
2352 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002353 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356 break;;
2357 esac
2358done
2359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002361sed 's/^/| /' conftest.$ac_ext >&5
2362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2364See \`config.log' for more details." >&5
2365echo "$as_me: error: cannot compute suffix of object files: cannot compile
2366See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002369
John Criswell7a73b802003-06-30 21:59:07 +00002370rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2373echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002374OBJEXT=$ac_cv_objext
2375ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002376{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2377echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2378if test "${ac_cv_c_compiler_gnu+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002381 cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h. */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002386/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002387
John Criswell7a73b802003-06-30 21:59:07 +00002388int
2389main ()
2390{
2391#ifndef __GNUC__
2392 choke me
2393#endif
2394
2395 ;
2396 return 0;
2397}
2398_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002399rm -f conftest.$ac_objext
2400if { (ac_try="$ac_compile"
2401case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_compile") 2>conftest.er1
2407 ac_status=$?
2408 grep -v '^ *+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2414 { (case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417esac
2418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_try") 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427esac
2428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_try") 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002433 ac_compiler_gnu=yes
2434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002435 echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002439fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002440
Reid Spencera773bd52006-08-04 18:18:08 +00002441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002443
2444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002445{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2446echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2447GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448ac_test_CFLAGS=${CFLAGS+set}
2449ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002450{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2451echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2452if test "${ac_cv_prog_cc_g+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002454else
Reid Spencera773bd52006-08-04 18:18:08 +00002455 ac_save_c_werror_flag=$ac_c_werror_flag
2456 ac_c_werror_flag=yes
2457 ac_cv_prog_cc_g=no
2458 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002459 cat >conftest.$ac_ext <<_ACEOF
2460/* confdefs.h. */
2461_ACEOF
2462cat confdefs.h >>conftest.$ac_ext
2463cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002465
John Criswell7a73b802003-06-30 21:59:07 +00002466int
2467main ()
2468{
2469
2470 ;
2471 return 0;
2472}
2473_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474rm -f conftest.$ac_objext
2475if { (ac_try="$ac_compile"
2476case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_compile") 2>conftest.er1
2482 ac_status=$?
2483 grep -v '^ *+' conftest.er1 >conftest.err
2484 rm -f conftest.er1
2485 cat conftest.err >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2489 { (case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2492esac
2493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_try") 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502esac
2503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_try") 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510 echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 CFLAGS=""
2514 cat >conftest.$ac_ext <<_ACEOF
2515/* confdefs.h. */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002519/* end confdefs.h. */
2520
2521int
2522main ()
2523{
2524
2525 ;
2526 return 0;
2527}
2528_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002529rm -f conftest.$ac_objext
2530if { (ac_try="$ac_compile"
2531case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534esac
2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_compile") 2>conftest.er1
2537 ac_status=$?
2538 grep -v '^ *+' conftest.er1 >conftest.err
2539 rm -f conftest.er1
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2544 { (case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547esac
2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_try") 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_try") 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2563 :
Torok Edwin871384f2010-01-26 08:50:50 +00002564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002565 echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002569 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002570 cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002575/* end confdefs.h. */
2576
2577int
2578main ()
2579{
2580
2581 ;
2582 return 0;
2583}
2584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002585rm -f conftest.$ac_objext
2586if { (ac_try="$ac_compile"
2587case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_compile") 2>conftest.er1
2593 ac_status=$?
2594 grep -v '^ *+' conftest.er1 >conftest.err
2595 rm -f conftest.er1
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2600 { (case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603esac
2604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_try") 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613esac
2614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_try") 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002619 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620else
2621 echo "$as_me: failed program was:" >&5
2622sed 's/^/| /' conftest.$ac_ext >&5
2623
2624
John Criswell7a73b802003-06-30 21:59:07 +00002625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002626
Reid Spencera773bd52006-08-04 18:18:08 +00002627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002629
Reid Spencera773bd52006-08-04 18:18:08 +00002630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002632
Reid Spencera773bd52006-08-04 18:18:08 +00002633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 ac_c_werror_flag=$ac_save_c_werror_flag
2635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002636{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2637echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638if test "$ac_test_CFLAGS" = set; then
2639 CFLAGS=$ac_save_CFLAGS
2640elif test $ac_cv_prog_cc_g = yes; then
2641 if test "$GCC" = yes; then
2642 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002643 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002645 fi
2646else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647 if test "$GCC" = yes; then
2648 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002649 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002651 fi
2652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2654echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2655if test "${ac_cv_prog_cc_c89+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657else
Reid Spencera773bd52006-08-04 18:18:08 +00002658 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h. */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665/* end confdefs.h. */
2666#include <stdarg.h>
2667#include <stdio.h>
2668#include <sys/types.h>
2669#include <sys/stat.h>
2670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2671struct buf { int x; };
2672FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673static char *e (p, i)
2674 char **p;
2675 int i;
2676{
2677 return p[i];
2678}
2679static char *f (char * (*g) (char **, int), char **p, ...)
2680{
2681 char *s;
2682 va_list v;
2683 va_start (v,p);
2684 s = g (p, va_arg (v,int));
2685 va_end (v);
2686 return s;
2687}
2688
2689/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2690 function prototypes and stuff, but not '\xHH' hex character constants.
2691 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002692 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2694 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002695 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2697
Reid Spencera773bd52006-08-04 18:18:08 +00002698/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2699 inside strings and character constants. */
2700#define FOO(x) 'x'
2701int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2702
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703int test (int i, double x);
2704struct s1 {int (*f) (int a);};
2705struct s2 {int (*f) (double a);};
2706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2707int argc;
2708char **argv;
2709int
2710main ()
2711{
2712return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 ;
2714 return 0;
2715}
2716_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002717for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002719do
2720 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002721 rm -f conftest.$ac_objext
2722if { (ac_try="$ac_compile"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compile") 2>conftest.er1
2729 ac_status=$?
2730 grep -v '^ *+' conftest.er1 >conftest.err
2731 rm -f conftest.er1
2732 cat conftest.err >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2736 { (case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_try") 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_try") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002755 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002756else
2757 echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762
Reid Spencera773bd52006-08-04 18:18:08 +00002763rm -f core conftest.err conftest.$ac_objext
2764 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002765done
Reid Spencera773bd52006-08-04 18:18:08 +00002766rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002767CC=$ac_save_CC
2768
2769fi
Reid Spencera773bd52006-08-04 18:18:08 +00002770# AC_CACHE_VAL
2771case "x$ac_cv_prog_cc_c89" in
2772 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002773 { echo "$as_me:$LINENO: result: none needed" >&5
2774echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002775 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002776 { echo "$as_me:$LINENO: result: unsupported" >&5
2777echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002778 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002779 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002780 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2781echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002782esac
2783
John Criswell0c38eaf2003-09-10 15:17:25 +00002784
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002785ac_ext=c
2786ac_cpp='$CPP $CPPFLAGS'
2787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790
Eric Christopherffee5722011-09-16 20:36:25 +00002791ac_ext=cpp
2792ac_cpp='$CXXCPP $CPPFLAGS'
2793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2796if test -z "$CXX"; then
2797 if test -n "$CCC"; then
2798 CXX=$CCC
2799 else
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in clang++ llvm-g++ g++
2802 do
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807if test "${ac_cv_prog_CXX+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810 if test -n "$CXX"; then
2811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824done
2825done
2826IFS=$as_save_IFS
2827
2828fi
2829fi
2830CXX=$ac_cv_prog_CXX
2831if test -n "$CXX"; then
2832 { echo "$as_me:$LINENO: result: $CXX" >&5
2833echo "${ECHO_T}$CXX" >&6; }
2834else
2835 { echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6; }
2837fi
2838
2839
2840 test -n "$CXX" && break
2841 done
2842fi
2843if test -z "$CXX"; then
2844 ac_ct_CXX=$CXX
2845 for ac_prog in clang++ llvm-g++ g++
2846do
2847 # Extract the first word of "$ac_prog", so it can be a program name with args.
2848set dummy $ac_prog; ac_word=$2
2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
2854 if test -n "$ac_ct_CXX"; then
2855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_ac_ct_CXX="$ac_prog"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868done
2869done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2875if test -n "$ac_ct_CXX"; then
2876 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2877echo "${ECHO_T}$ac_ct_CXX" >&6; }
2878else
2879 { echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6; }
2881fi
2882
2883
2884 test -n "$ac_ct_CXX" && break
2885done
2886
2887 if test "x$ac_ct_CXX" = x; then
2888 CXX="g++"
2889 else
2890 case $cross_compiling:$ac_tool_warned in
2891yes:)
2892{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2893whose name does not start with the host triplet. If you think this
2894configuration is useful to you, please write to autoconf@gnu.org." >&5
2895echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2896whose name does not start with the host triplet. If you think this
2897configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2898ac_tool_warned=yes ;;
2899esac
2900 CXX=$ac_ct_CXX
2901 fi
2902fi
2903
2904 fi
2905fi
2906# Provide some information about the compiler.
2907echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2908ac_compiler=`set X $ac_compile; echo $2`
2909{ (ac_try="$ac_compiler --version >&5"
2910case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913esac
2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compiler --version >&5") 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }
2919{ (ac_try="$ac_compiler -v >&5"
2920case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923esac
2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compiler -v >&5") 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929{ (ac_try="$ac_compiler -V >&5"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compiler -V >&5") 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2939
2940{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2941echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2942if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 cat >conftest.$ac_ext <<_ACEOF
2946/* confdefs.h. */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h. */
2951
2952int
2953main ()
2954{
2955#ifndef __GNUC__
2956 choke me
2957#endif
2958
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext
2964if { (ac_try="$ac_compile"
2965case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_try") 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 ac_compiler_gnu=yes
2998else
2999 echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 ac_compiler_gnu=no
3003fi
3004
3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3007
3008fi
3009{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3010echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3011GXX=`test $ac_compiler_gnu = yes && echo yes`
3012ac_test_CXXFLAGS=${CXXFLAGS+set}
3013ac_save_CXXFLAGS=$CXXFLAGS
3014{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3015echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3016if test "${ac_cv_prog_cxx_g+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3020 ac_cxx_werror_flag=yes
3021 ac_cv_prog_cxx_g=no
3022 CXXFLAGS="-g"
3023 cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h. */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h. */
3029
3030int
3031main ()
3032{
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_prog_cxx_g=yes
3073else
3074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 CXXFLAGS=""
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084
3085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext
3094if { (ac_try="$ac_compile"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 :
3128else
3129 echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3133 CXXFLAGS="-g"
3134 cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h. */
3140
3141int
3142main ()
3143{
3144
3145 ;
3146 return 0;
3147}
3148_ACEOF
3149rm -f conftest.$ac_objext
3150if { (ac_try="$ac_compile"
3151case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compile") 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_prog_cxx_g=yes
3184else
3185 echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188
3189fi
3190
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3199fi
3200{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3201echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3202if test "$ac_test_CXXFLAGS" = set; then
3203 CXXFLAGS=$ac_save_CXXFLAGS
3204elif test $ac_cv_prog_cxx_g = yes; then
3205 if test "$GXX" = yes; then
3206 CXXFLAGS="-g -O2"
3207 else
3208 CXXFLAGS="-g"
3209 fi
3210else
3211 if test "$GXX" = yes; then
3212 CXXFLAGS="-O2"
3213 else
3214 CXXFLAGS=
3215 fi
3216fi
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003223ac_ext=c
3224ac_cpp='$CPP $CPPFLAGS'
3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3229echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003230# On Suns, sometimes $CPP names a directory.
3231if test -n "$CPP" && test -d "$CPP"; then
3232 CPP=
3233fi
3234if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003235 if test "${ac_cv_prog_CPP+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003237else
3238 # Double quotes because CPP needs to be expanded
3239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3240 do
3241 ac_preproc_ok=false
3242for ac_c_preproc_warn_flag in '' yes
3243do
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255/* end confdefs.h. */
3256#ifdef __STDC__
3257# include <limits.h>
3258#else
3259# include <assert.h>
3260#endif
3261 Syntax error
3262_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263if { (ac_try="$ac_cpp conftest.$ac_ext"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } >/dev/null; then
3276 if test -s conftest.err; then
3277 ac_cpp_err=$ac_c_preproc_warn_flag
3278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3279 else
3280 ac_cpp_err=
3281 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003283 ac_cpp_err=yes
3284fi
3285if test -z "$ac_cpp_err"; then
3286 :
3287else
3288 echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291 # Broken: fails on valid input.
3292continue
3293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003294
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003295rm -f conftest.err conftest.$ac_ext
3296
Reid Spencera773bd52006-08-04 18:18:08 +00003297 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003299 cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304/* end confdefs.h. */
3305#include <ac_nonexistent.h>
3306_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003307if { (ac_try="$ac_cpp conftest.$ac_ext"
3308case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314 ac_status=$?
3315 grep -v '^ *+' conftest.er1 >conftest.err
3316 rm -f conftest.er1
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } >/dev/null; then
3320 if test -s conftest.err; then
3321 ac_cpp_err=$ac_c_preproc_warn_flag
3322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3323 else
3324 ac_cpp_err=
3325 fi
3326else
3327 ac_cpp_err=yes
3328fi
3329if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330 # Broken: success on invalid input.
3331continue
3332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333 echo "$as_me: failed program was:" >&5
3334sed 's/^/| /' conftest.$ac_ext >&5
3335
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336 # Passes both tests.
3337ac_preproc_ok=:
3338break
3339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003340
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341rm -f conftest.err conftest.$ac_ext
3342
3343done
3344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003346if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347 break
3348fi
3349
3350 done
3351 ac_cv_prog_CPP=$CPP
3352
3353fi
3354 CPP=$ac_cv_prog_CPP
3355else
3356 ac_cv_prog_CPP=$CPP
3357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003358{ echo "$as_me:$LINENO: result: $CPP" >&5
3359echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360ac_preproc_ok=false
3361for ac_c_preproc_warn_flag in '' yes
3362do
3363 # Use a header file that comes with gcc, so configuring glibc
3364 # with a fresh cross-compiler works.
3365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366 # <limits.h> exists even on freestanding compilers.
3367 # On the NeXT, cc -E runs the code through the compiler's parser,
3368 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 cat >conftest.$ac_ext <<_ACEOF
3370/* confdefs.h. */
3371_ACEOF
3372cat confdefs.h >>conftest.$ac_ext
3373cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374/* end confdefs.h. */
3375#ifdef __STDC__
3376# include <limits.h>
3377#else
3378# include <assert.h>
3379#endif
3380 Syntax error
3381_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003382if { (ac_try="$ac_cpp conftest.$ac_ext"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null; then
3395 if test -s conftest.err; then
3396 ac_cpp_err=$ac_c_preproc_warn_flag
3397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3398 else
3399 ac_cpp_err=
3400 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402 ac_cpp_err=yes
3403fi
3404if test -z "$ac_cpp_err"; then
3405 :
3406else
3407 echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410 # Broken: fails on valid input.
3411continue
3412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414rm -f conftest.err conftest.$ac_ext
3415
Reid Spencera773bd52006-08-04 18:18:08 +00003416 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423/* end confdefs.h. */
3424#include <ac_nonexistent.h>
3425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426if { (ac_try="$ac_cpp conftest.$ac_ext"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3444 fi
3445else
3446 ac_cpp_err=yes
3447fi
3448if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449 # Broken: success on invalid input.
3450continue
3451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 # Passes both tests.
3456ac_preproc_ok=:
3457break
3458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003459
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460rm -f conftest.err conftest.$ac_ext
3461
3462done
3463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003465if $ac_preproc_ok; then
3466 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3469See \`config.log' for more details." >&5
3470echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3471See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473fi
3474
John Criswell7a73b802003-06-30 21:59:07 +00003475ac_ext=c
3476ac_cpp='$CPP $CPPFLAGS'
3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
John Criswell7a73b802003-06-30 21:59:07 +00003481
Dmitri Gribenkoa7303362013-01-09 15:25:30 +00003482if test "$CXX" = "clang++" ; then
3483 { echo "$as_me:$LINENO: checking whether clang works" >&5
3484echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3485 ac_ext=cpp
3486ac_cpp='$CXXCPP $CPPFLAGS'
3487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3490
3491
3492cat >conftest.$ac_ext <<_ACEOF
3493/* confdefs.h. */
3494_ACEOF
3495cat confdefs.h >>conftest.$ac_ext
3496cat >>conftest.$ac_ext <<_ACEOF
3497/* end confdefs.h. */
3498#include <limits>
3499#if __has_include (<cxxabi.h>)
3500#include <cxxabi.h>
3501#endif
3502#if __has_include (<unwind.h>)
3503#include <unwind.h>
3504#endif
3505
3506int
3507main ()
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
3514rm -f conftest.$ac_objext
3515if { (ac_try="$ac_compile"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3529 { (case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532esac
3533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_try") 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try='test -s conftest.$ac_objext'
3539 { (case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542esac
3543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_try") 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548
3549 { echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6; }
3551
3552else
3553 echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556
3557 { echo "$as_me:$LINENO: result: no" >&5
3558echo "${ECHO_T}no" >&6; }
3559 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3560echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3561 { (exit 1); exit 1; }; }
3562
3563fi
3564
3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_ext=c
3567ac_cpp='$CPP $CPPFLAGS'
3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571
3572fi
3573
Eric Christopherffee5722011-09-16 20:36:25 +00003574
3575
3576if test -d ${srcdir}/projects/llvm-gcc ; then
3577 subdirs="$subdirs projects/llvm-gcc"
3578
3579fi
3580
3581if test -d ${srcdir}/projects/test-suite ; then
3582 subdirs="$subdirs projects/test-suite"
3583
3584fi
3585
3586if test -d ${srcdir}/projects/llvm-test ; then
3587 subdirs="$subdirs projects/llvm-test"
3588
3589fi
3590
3591if test -d ${srcdir}/projects/poolalloc ; then
3592 subdirs="$subdirs projects/poolalloc"
3593
3594fi
3595
3596if test -d ${srcdir}/projects/llvm-poolalloc ; then
3597 subdirs="$subdirs projects/llvm-poolalloc"
3598
3599fi
3600
3601for i in `ls ${srcdir}/projects`
3602do
3603 if test -d ${srcdir}/projects/${i} ; then
3604 case ${i} in
3605 sample) subdirs="$subdirs projects/sample"
3606 ;;
3607 privbracket) subdirs="$subdirs projects/privbracket"
3608 ;;
3609 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3610 ;;
3611 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3612;;
3613 llvm-java) subdirs="$subdirs projects/llvm-java"
3614 ;;
3615 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3616 ;;
3617 safecode) subdirs="$subdirs projects/safecode"
3618 ;;
3619 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3620 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003621 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003622 llvm-gcc) ;;
3623 test-suite) ;;
3624 llvm-test) ;;
3625 poolalloc) ;;
3626 llvm-poolalloc) ;;
3627 *)
3628 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3629echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3630 ;;
3631 esac
3632 fi
3633done
3634
3635# Check whether --enable-polly was given.
3636if test "${enable_polly+set}" = set; then
3637 enableval=$enable_polly;
3638else
3639 enableval=default
3640fi
3641
3642case "$enableval" in
3643 yes) ENABLE_POLLY=1
3644 ;;
3645 no) ENABLE_POLLY=0
3646 ;;
3647 default) ENABLE_POLLY=1
3648 ;;
3649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3650echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3651 { (exit 1); exit 1; }; } ;;
3652esac
3653
3654
3655if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3656 LLVM_HAS_POLLY=1
3657
3658 subdirs="$subdirs tools/polly"
3659
3660fi
3661
3662
3663# Make sure we can run config.sub.
3664$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3665 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3666echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3667 { (exit 1); exit 1; }; }
3668
3669{ echo "$as_me:$LINENO: checking build system type" >&5
3670echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3671if test "${ac_cv_build+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 ac_build_alias=$build_alias
3675test "x$ac_build_alias" = x &&
3676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3677test "x$ac_build_alias" = x &&
3678 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3679echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3680 { (exit 1); exit 1; }; }
3681ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3682 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3683echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3684 { (exit 1); exit 1; }; }
3685
3686fi
3687{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3688echo "${ECHO_T}$ac_cv_build" >&6; }
3689case $ac_cv_build in
3690*-*-*) ;;
3691*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3692echo "$as_me: error: invalid value of canonical build" >&2;}
3693 { (exit 1); exit 1; }; };;
3694esac
3695build=$ac_cv_build
3696ac_save_IFS=$IFS; IFS='-'
3697set x $ac_cv_build
3698shift
3699build_cpu=$1
3700build_vendor=$2
3701shift; shift
3702# Remember, the first character of IFS is used to create $*,
3703# except with old shells:
3704build_os=$*
3705IFS=$ac_save_IFS
3706case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3707
3708
3709{ echo "$as_me:$LINENO: checking host system type" >&5
3710echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3711if test "${ac_cv_host+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714 if test "x$host_alias" = x; then
3715 ac_cv_host=$ac_cv_build
3716else
3717 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3718 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3719echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3720 { (exit 1); exit 1; }; }
3721fi
3722
3723fi
3724{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3725echo "${ECHO_T}$ac_cv_host" >&6; }
3726case $ac_cv_host in
3727*-*-*) ;;
3728*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3729echo "$as_me: error: invalid value of canonical host" >&2;}
3730 { (exit 1); exit 1; }; };;
3731esac
3732host=$ac_cv_host
3733ac_save_IFS=$IFS; IFS='-'
3734set x $ac_cv_host
3735shift
3736host_cpu=$1
3737host_vendor=$2
3738shift; shift
3739# Remember, the first character of IFS is used to create $*,
3740# except with old shells:
3741host_os=$*
3742IFS=$ac_save_IFS
3743case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3744
3745
3746{ echo "$as_me:$LINENO: checking target system type" >&5
3747echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3748if test "${ac_cv_target+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if test "x$target_alias" = x; then
3752 ac_cv_target=$ac_cv_host
3753else
3754 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3755 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3756echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3757 { (exit 1); exit 1; }; }
3758fi
3759
3760fi
3761{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3762echo "${ECHO_T}$ac_cv_target" >&6; }
3763case $ac_cv_target in
3764*-*-*) ;;
3765*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3766echo "$as_me: error: invalid value of canonical target" >&2;}
3767 { (exit 1); exit 1; }; };;
3768esac
3769target=$ac_cv_target
3770ac_save_IFS=$IFS; IFS='-'
3771set x $ac_cv_target
3772shift
3773target_cpu=$1
3774target_vendor=$2
3775shift; shift
3776# Remember, the first character of IFS is used to create $*,
3777# except with old shells:
3778target_os=$*
3779IFS=$ac_save_IFS
3780case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3781
3782
3783# The aliases save the names the user supplied, while $host etc.
3784# will get canonicalized.
3785test -n "$target_alias" &&
3786 test "$program_prefix$program_suffix$program_transform_name" = \
3787 NONENONEs,x,x, &&
3788 program_prefix=${target_alias}-
3789
3790{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3791echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3792if test "${llvm_cv_os_type+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 case $host in
3796 *-*-aix*)
3797 llvm_cv_link_all_option="-Wl,--whole-archive"
3798 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3799 llvm_cv_os_type="AIX"
3800 llvm_cv_platform_type="Unix" ;;
3801 *-*-irix*)
3802 llvm_cv_link_all_option="-Wl,--whole-archive"
3803 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3804 llvm_cv_os_type="IRIX"
3805 llvm_cv_platform_type="Unix" ;;
3806 *-*-cygwin*)
3807 llvm_cv_link_all_option="-Wl,--whole-archive"
3808 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809 llvm_cv_os_type="Cygwin"
3810 llvm_cv_platform_type="Unix" ;;
3811 *-*-darwin*)
3812 llvm_cv_link_all_option="-Wl,-all_load"
3813 llvm_cv_no_link_all_option="-Wl,-noall_load"
3814 llvm_cv_os_type="Darwin"
3815 llvm_cv_platform_type="Unix" ;;
3816 *-*-minix*)
3817 llvm_cv_link_all_option="-Wl,-all_load"
3818 llvm_cv_no_link_all_option="-Wl,-noall_load"
3819 llvm_cv_os_type="Minix"
3820 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003821 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003822 llvm_cv_link_all_option="-Wl,--whole-archive"
3823 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3824 llvm_cv_os_type="FreeBSD"
3825 llvm_cv_platform_type="Unix" ;;
3826 *-*-openbsd*)
3827 llvm_cv_link_all_option="-Wl,--whole-archive"
3828 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3829 llvm_cv_os_type="OpenBSD"
3830 llvm_cv_platform_type="Unix" ;;
3831 *-*-netbsd*)
3832 llvm_cv_link_all_option="-Wl,--whole-archive"
3833 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834 llvm_cv_os_type="NetBSD"
3835 llvm_cv_platform_type="Unix" ;;
3836 *-*-dragonfly*)
3837 llvm_cv_link_all_option="-Wl,--whole-archive"
3838 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839 llvm_cv_os_type="DragonFly"
3840 llvm_cv_platform_type="Unix" ;;
3841 *-*-hpux*)
3842 llvm_cv_link_all_option="-Wl,--whole-archive"
3843 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844 llvm_cv_os_type="HP-UX"
3845 llvm_cv_platform_type="Unix" ;;
3846 *-*-interix*)
3847 llvm_cv_link_all_option="-Wl,--whole-archive"
3848 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849 llvm_cv_os_type="Interix"
3850 llvm_cv_platform_type="Unix" ;;
3851 *-*-linux*)
3852 llvm_cv_link_all_option="-Wl,--whole-archive"
3853 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854 llvm_cv_os_type="Linux"
3855 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003856 *-*-gnu*)
3857 llvm_cv_link_all_option="-Wl,--whole-archive"
3858 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859 llvm_cv_os_type="GNU"
3860 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003861 *-*-solaris*)
3862 llvm_cv_link_all_option="-Wl,-z,allextract"
3863 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3864 llvm_cv_os_type="SunOS"
3865 llvm_cv_platform_type="Unix" ;;
3866 *-*-auroraux*)
3867 llvm_cv_link_all_option="-Wl,-z,allextract"
3868 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3869 llvm_cv_os_type="AuroraUX"
3870 llvm_cv_platform_type="Unix" ;;
3871 *-*-win32*)
3872 llvm_cv_link_all_option="-Wl,--whole-archive"
3873 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874 llvm_cv_os_type="Win32"
3875 llvm_cv_platform_type="Win32" ;;
3876 *-*-mingw*)
3877 llvm_cv_link_all_option="-Wl,--whole-archive"
3878 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3879 llvm_cv_os_type="MingW"
3880 llvm_cv_platform_type="Win32" ;;
3881 *-*-haiku*)
3882 llvm_cv_link_all_option="-Wl,--whole-archive"
3883 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3884 llvm_cv_os_type="Haiku"
3885 llvm_cv_platform_type="Unix" ;;
3886 *-unknown-eabi*)
3887 llvm_cv_link_all_option="-Wl,--whole-archive"
3888 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889 llvm_cv_os_type="Freestanding"
3890 llvm_cv_platform_type="Unix" ;;
3891 *-unknown-elf*)
3892 llvm_cv_link_all_option="-Wl,--whole-archive"
3893 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894 llvm_cv_os_type="Freestanding"
3895 llvm_cv_platform_type="Unix" ;;
3896 *)
3897 llvm_cv_link_all_option=""
3898 llvm_cv_no_link_all_option=""
3899 llvm_cv_os_type="Unknown"
3900 llvm_cv_platform_type="Unknown" ;;
3901esac
3902fi
3903{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3904echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3905
3906{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3907echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3908if test "${llvm_cv_target_os_type+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 case $target in
3912 *-*-aix*)
3913 llvm_cv_target_os_type="AIX" ;;
3914 *-*-irix*)
3915 llvm_cv_target_os_type="IRIX" ;;
3916 *-*-cygwin*)
3917 llvm_cv_target_os_type="Cygwin" ;;
3918 *-*-darwin*)
3919 llvm_cv_target_os_type="Darwin" ;;
3920 *-*-minix*)
3921 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003922 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003923 llvm_cv_target_os_type="FreeBSD" ;;
3924 *-*-openbsd*)
3925 llvm_cv_target_os_type="OpenBSD" ;;
3926 *-*-netbsd*)
3927 llvm_cv_target_os_type="NetBSD" ;;
3928 *-*-dragonfly*)
3929 llvm_cv_target_os_type="DragonFly" ;;
3930 *-*-hpux*)
3931 llvm_cv_target_os_type="HP-UX" ;;
3932 *-*-interix*)
3933 llvm_cv_target_os_type="Interix" ;;
3934 *-*-linux*)
3935 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003936 *-*-gnu*)
3937 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003938 *-*-solaris*)
3939 llvm_cv_target_os_type="SunOS" ;;
3940 *-*-auroraux*)
3941 llvm_cv_target_os_type="AuroraUX" ;;
3942 *-*-win32*)
3943 llvm_cv_target_os_type="Win32" ;;
3944 *-*-mingw*)
3945 llvm_cv_target_os_type="MingW" ;;
3946 *-*-haiku*)
3947 llvm_cv_target_os_type="Haiku" ;;
3948 *-*-rtems*)
3949 llvm_cv_target_os_type="RTEMS" ;;
3950 *-*-nacl*)
3951 llvm_cv_target_os_type="NativeClient" ;;
3952 *-unknown-eabi*)
3953 llvm_cv_target_os_type="Freestanding" ;;
3954 *)
3955 llvm_cv_target_os_type="Unknown" ;;
3956esac
3957fi
3958{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3959echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3960
3961if test "$llvm_cv_os_type" = "Unknown" ; then
3962 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3963echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3964 { (exit 1); exit 1; }; }
3965fi
3966
3967OS=$llvm_cv_os_type
3968
3969HOST_OS=$llvm_cv_os_type
3970
3971TARGET_OS=$llvm_cv_target_os_type
3972
3973
3974LINKALL=$llvm_cv_link_all_option
3975
3976NOLINKALL=$llvm_cv_no_link_all_option
3977
3978
3979case $llvm_cv_platform_type in
3980 Unix)
3981
3982cat >>confdefs.h <<\_ACEOF
3983#define LLVM_ON_UNIX 1
3984_ACEOF
3985
3986 LLVM_ON_UNIX=1
3987
3988 LLVM_ON_WIN32=0
3989
3990 ;;
3991 Win32)
3992
3993cat >>confdefs.h <<\_ACEOF
3994#define LLVM_ON_WIN32 1
3995_ACEOF
3996
3997 LLVM_ON_UNIX=0
3998
3999 LLVM_ON_WIN32=1
4000
4001 ;;
4002esac
4003
4004{ echo "$as_me:$LINENO: checking target architecture" >&5
4005echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4006if test "${llvm_cv_target_arch+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 case $target in
4010 i?86-*) llvm_cv_target_arch="x86" ;;
4011 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4012 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4013 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004014 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northover72062f52013-01-31 12:12:40 +00004015 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00004016 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4017 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004018 xcore-*) llvm_cv_target_arch="XCore" ;;
4019 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00004020 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004021 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00004022 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004023 *) llvm_cv_target_arch="Unknown" ;;
4024esac
4025fi
4026{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4027echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4028
4029if test "$llvm_cv_target_arch" = "Unknown" ; then
4030 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4031echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4032fi
4033
Eric Christopherffee5722011-09-16 20:36:25 +00004034case "$llvm_cv_target_arch" in
4035 x86) LLVM_NATIVE_ARCH="X86" ;;
4036 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4037 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4038esac
4039
4040ARCH=$llvm_cv_target_arch
4041
4042
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004043case $host in
4044 i?86-*) host_arch="x86" ;;
4045 amd64-* | x86_64-*) host_arch="x86_64" ;;
4046 sparc*-*) host_arch="Sparc" ;;
4047 powerpc*-*) host_arch="PowerPC" ;;
4048 arm*-*) host_arch="ARM" ;;
Tim Northover72062f52013-01-31 12:12:40 +00004049 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00004050 mips-* | mips64-*) host_arch="Mips" ;;
4051 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004052 xcore-*) host_arch="XCore" ;;
4053 msp430-*) host_arch="MSP430" ;;
4054 hexagon-*) host_arch="Hexagon" ;;
4055 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004056 *) host_arch="Unknown" ;;
4057esac
4058
4059if test "$host_arch" = "Unknown" ; then
4060 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4061echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4062fi
4063
4064HOST_ARCH=$host_arch
4065
4066
Eric Christopherffee5722011-09-16 20:36:25 +00004067
4068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4070echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4071if test "${ac_cv_path_GREP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074 # Extract the first word of "grep ggrep" to use in msg output
4075if test -z "$GREP"; then
4076set dummy grep ggrep; ac_prog_name=$2
4077if test "${ac_cv_path_GREP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
Reid Spencera773bd52006-08-04 18:18:08 +00004080 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004081# Loop through the user's path and test for each of PROGNAME-LIST
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004083for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004087 for ac_prog in grep ggrep; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4090 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4091 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004092 # Check for GNU $ac_path_GREP
4093case `"$ac_path_GREP" --version 2>&1` in
4094*GNU*)
4095 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4096*)
4097 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004098 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004099 while :
4100 do
4101 cat "conftest.in" "conftest.in" >"conftest.tmp"
4102 mv "conftest.tmp" "conftest.in"
4103 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004105 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004107 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004108 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4109 # Best one so far, save it but keep looking for a better one
4110 ac_cv_path_GREP="$ac_path_GREP"
4111 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004112 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004113 # 10*(2^10) chars as input seems more than enough
4114 test $ac_count -gt 10 && break
4115 done
4116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117esac
4118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119
4120 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004121 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004122done
4123
4124done
Reid Spencera773bd52006-08-04 18:18:08 +00004125IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004126
4127
4128fi
4129
4130GREP="$ac_cv_path_GREP"
4131if test -z "$GREP"; then
4132 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4133echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4134 { (exit 1); exit 1; }; }
4135fi
4136
Reid Spencera773bd52006-08-04 18:18:08 +00004137else
4138 ac_cv_path_GREP=$GREP
4139fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004141
Reid Spencera773bd52006-08-04 18:18:08 +00004142fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004143{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4144echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004145 GREP="$ac_cv_path_GREP"
4146
4147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148{ echo "$as_me:$LINENO: checking for egrep" >&5
4149echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4150if test "${ac_cv_path_EGREP+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004152else
4153 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4154 then ac_cv_path_EGREP="$GREP -E"
4155 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004156 # Extract the first word of "egrep" to use in msg output
4157if test -z "$EGREP"; then
4158set dummy egrep; ac_prog_name=$2
4159if test "${ac_cv_path_EGREP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
Reid Spencera773bd52006-08-04 18:18:08 +00004162 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004163# Loop through the user's path and test for each of PROGNAME-LIST
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004169 for ac_prog in egrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4173 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004174 # Check for GNU $ac_path_EGREP
4175case `"$ac_path_EGREP" --version 2>&1` in
4176*GNU*)
4177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4178*)
4179 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004186 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004189 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_EGREP="$ac_path_EGREP"
4193 ac_path_EGREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199esac
4200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201
4202 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004203 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204done
4205
4206done
Reid Spencera773bd52006-08-04 18:18:08 +00004207IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004208
4209
4210fi
4211
4212EGREP="$ac_cv_path_EGREP"
4213if test -z "$EGREP"; then
4214 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4215echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4216 { (exit 1); exit 1; }; }
4217fi
4218
Reid Spencera773bd52006-08-04 18:18:08 +00004219else
4220 ac_cv_path_EGREP=$EGREP
4221fi
4222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004223
Reid Spencera773bd52006-08-04 18:18:08 +00004224 fi
4225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004226{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4227echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004228 EGREP="$ac_cv_path_EGREP"
4229
4230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4233if test "${ac_cv_header_stdc+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236 cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h. */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004242#include <stdlib.h>
4243#include <stdarg.h>
4244#include <string.h>
4245#include <float.h>
4246
John Criswell0c38eaf2003-09-10 15:17:25 +00004247int
4248main ()
4249{
4250
4251 ;
4252 return 0;
4253}
John Criswell7a73b802003-06-30 21:59:07 +00004254_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255rm -f conftest.$ac_objext
4256if { (ac_try="$ac_compile"
4257case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004289 ac_cv_header_stdc=yes
4290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004296
Reid Spencera773bd52006-08-04 18:18:08 +00004297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004298
4299if test $ac_cv_header_stdc = yes; then
4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301 cat >conftest.$ac_ext <<_ACEOF
4302/* confdefs.h. */
4303_ACEOF
4304cat confdefs.h >>conftest.$ac_ext
4305cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004307#include <string.h>
4308
4309_ACEOF
4310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004311 $EGREP "memchr" >/dev/null 2>&1; then
4312 :
John Criswell7a73b802003-06-30 21:59:07 +00004313else
4314 ac_cv_header_stdc=no
4315fi
4316rm -f conftest*
4317
4318fi
4319
4320if test $ac_cv_header_stdc = yes; then
4321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004322 cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004328#include <stdlib.h>
4329
4330_ACEOF
4331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004332 $EGREP "free" >/dev/null 2>&1; then
4333 :
John Criswell7a73b802003-06-30 21:59:07 +00004334else
4335 ac_cv_header_stdc=no
4336fi
4337rm -f conftest*
4338
4339fi
4340
4341if test $ac_cv_header_stdc = yes; then
4342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004344 :
4345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004346 cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h. */
4348_ACEOF
4349cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004352#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004353#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004354#if ((' ' & 0x0FF) == 0x020)
4355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4357#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004358# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004359 (('a' <= (c) && (c) <= 'i') \
4360 || ('j' <= (c) && (c) <= 'r') \
4361 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4363#endif
4364
4365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4366int
4367main ()
4368{
4369 int i;
4370 for (i = 0; i < 256; i++)
4371 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004372 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004373 return 2;
4374 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004375}
4376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004377rm -f conftest$ac_exeext
4378if { (ac_try="$ac_link"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_link") 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 :
John Criswell7a73b802003-06-30 21:59:07 +00004398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399 echo "$as_me: program exited with status $ac_status" >&5
4400echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403( exit $ac_status )
4404ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406rm -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 +00004407fi
4408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409
John Criswell7a73b802003-06-30 21:59:07 +00004410fi
4411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004414if test $ac_cv_header_stdc = yes; then
4415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416cat >>confdefs.h <<\_ACEOF
4417#define STDC_HEADERS 1
4418_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004419
4420fi
4421
Reid Spencera773bd52006-08-04 18:18:08 +00004422# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423
4424
4425
4426
4427
4428
4429
4430
4431
Reid Spencera773bd52006-08-04 18:18:08 +00004432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4433 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004434do
4435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
4447$ac_includes_default
4448
4449#include <$ac_header>
4450_ACEOF
4451rm -f conftest.$ac_objext
4452if { (ac_try="$ac_compile"
4453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_compile") 2>conftest.er1
4459 ac_status=$?
4460 grep -v '^ *+' conftest.er1 >conftest.err
4461 rm -f conftest.er1
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469esac
4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_try") 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479esac
4480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_try") 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 eval "$as_ac_Header=yes"
4486else
4487 echo "$as_me: failed program was:" >&5
4488sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 eval "$as_ac_Header=no"
4491fi
4492
4493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494fi
4495ac_res=`eval echo '${'$as_ac_Header'}'`
4496 { echo "$as_me:$LINENO: result: $ac_res" >&5
4497echo "${ECHO_T}$ac_res" >&6; }
4498if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004499 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004501_ACEOF
4502
4503fi
4504
4505done
4506
4507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4509echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4510if test "${ac_cv_c_bigendian+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513 # See if sys/param.h defines the BYTE_ORDER macro.
4514cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004516_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004519/* end confdefs.h. */
4520#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004521#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004522
4523int
4524main ()
4525{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4527 bogus endian macros
4528#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004529
4530 ;
4531 return 0;
4532}
4533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534rm -f conftest.$ac_objext
4535if { (ac_try="$ac_compile"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 (eval "$ac_compile") 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4549 { (case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4552esac
4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_try") 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562esac
4563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_try") 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004568 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004574/* end confdefs.h. */
4575#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004577
4578int
4579main ()
4580{
4581#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004582 not big endian
4583#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004584
4585 ;
4586 return 0;
4587}
4588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004589rm -f conftest.$ac_objext
4590if { (ac_try="$ac_compile"
4591case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594esac
4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4604 { (case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607esac
4608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_try") 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617esac
4618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004623 ac_cv_c_bigendian=yes
4624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004625 echo "$as_me: failed program was:" >&5
4626sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628 ac_cv_c_bigendian=no
4629fi
4630
4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632else
4633 echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 # It does not; compile a test program.
4637if test "$cross_compiling" = yes; then
4638 # try to guess the endianness by grepping values into an object file
4639 ac_cv_c_bigendian=unknown
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
4646short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4647short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4648void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4649short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4650short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4651void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004652int
4653main ()
4654{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004656 ;
4657 return 0;
4658}
4659_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660rm -f conftest.$ac_objext
4661if { (ac_try="$ac_compile"
4662case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665esac
4666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_compile") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4675 { (case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678esac
4679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_try") 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_try") 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004695 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004696fi
4697if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4698 if test "$ac_cv_c_bigendian" = unknown; then
4699 ac_cv_c_bigendian=no
4700 else
4701 # finding both strings is unlikely to happen, but who knows?
4702 ac_cv_c_bigendian=unknown
4703 fi
4704fi
Reid Spencera773bd52006-08-04 18:18:08 +00004705else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706 echo "$as_me: failed program was:" >&5
4707sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004709
Torok Edwin871384f2010-01-26 08:50:50 +00004710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004711
Reid Spencera773bd52006-08-04 18:18:08 +00004712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714 cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h. */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004719/* end confdefs.h. */
4720$ac_includes_default
4721int
4722main ()
4723{
4724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725 /* Are we little or big endian? From Harbison&Steele. */
4726 union
4727 {
4728 long int l;
4729 char c[sizeof (long int)];
4730 } u;
4731 u.l = 1;
4732 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004733
4734 ;
4735 return 0;
4736}
4737_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738rm -f conftest$ac_exeext
4739if { (ac_try="$ac_link"
4740case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743esac
4744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_link") 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4749 { (case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752esac
4753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_try") 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004758 ac_cv_c_bigendian=no
4759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004760 echo "$as_me: program exited with status $ac_status" >&5
4761echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764( exit $ac_status )
4765ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767rm -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 +00004768fi
4769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770
Reid Spencera773bd52006-08-04 18:18:08 +00004771fi
4772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774fi
4775{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4776echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4777case $ac_cv_c_bigendian in
4778 yes)
4779 ENDIAN=big
4780 ;;
4781 no)
4782 ENDIAN=little
4783 ;;
4784 *)
4785 { { echo "$as_me:$LINENO: error: unknown endianness
4786presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4787echo "$as_me: error: unknown endianness
4788presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4789 { (exit 1); exit 1; }; } ;;
4790esac
Reid Spencera773bd52006-08-04 18:18:08 +00004791
4792
4793if test "$cross_compiling" = yes; then
4794 LLVM_CROSS_COMPILING=1
4795
4796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4798echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4799if test "${ac_cv_build_exeext+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004801else
4802 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4803 ac_cv_build_exeext=.exe
4804else
4805 ac_build_prefix=${build_alias}-
4806
4807 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4808set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004813else
4814 if test -n "$BUILD_CC"; then
4815 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4816else
4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 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 +00004824 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004826 break 2
4827 fi
4828done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829done
Reid Spencera773bd52006-08-04 18:18:08 +00004830IFS=$as_save_IFS
4831
4832fi
4833fi
4834BUILD_CC=$ac_cv_prog_BUILD_CC
4835if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004836 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4837echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004839 { echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004841fi
4842
4843
4844 if test -z "$BUILD_CC"; then
4845 # Extract the first word of "gcc", so it can be a program name with args.
4846set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004851else
4852 if test -n "$BUILD_CC"; then
4853 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 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 +00004862 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004864 break 2
4865 fi
4866done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004867done
Reid Spencera773bd52006-08-04 18:18:08 +00004868IFS=$as_save_IFS
4869
4870fi
4871fi
4872BUILD_CC=$ac_cv_prog_BUILD_CC
4873if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004874 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4875echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004877 { echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004879fi
4880
4881
4882 if test -z "$BUILD_CC"; then
4883 # Extract the first word of "cc", so it can be a program name with args.
4884set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004889else
4890 if test -n "$BUILD_CC"; then
4891 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4892else
4893 ac_prog_rejected=no
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 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 +00004901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4902 ac_prog_rejected=yes
4903 continue
4904 fi
4905 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004907 break 2
4908 fi
4909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910done
Reid Spencera773bd52006-08-04 18:18:08 +00004911IFS=$as_save_IFS
4912
4913if test $ac_prog_rejected = yes; then
4914 # We found a bogon in the path, so make sure we never use it.
4915 set dummy $ac_cv_prog_BUILD_CC
4916 shift
4917 if test $# != 0; then
4918 # We chose a different compiler from the bogus one.
4919 # However, it has the same basename, so the bogon will be chosen
4920 # first if we set BUILD_CC to just the basename; use the full file name.
4921 shift
4922 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4923 fi
4924fi
4925fi
4926fi
4927BUILD_CC=$ac_cv_prog_BUILD_CC
4928if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004929 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4930echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004932 { echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004934fi
4935
4936
4937 fi
4938 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4940echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4941 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004942 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4943 rm -f conftest*
4944 echo 'int main () { return 0; }' > conftest.$ac_ext
4945 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004946 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004947 (eval $ac_build_link) 2>&5
4948 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004951 for file in conftest.*; do
4952 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004953 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004954 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4955 esac
4956 done
4957 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004958 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4959echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4960 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004961 fi
4962 rm -f conftest*
4963 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4964fi
4965fi
4966
4967BUILD_EXEEXT=""
4968test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004969{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4970echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004971ac_build_exeext=$BUILD_EXEEXT
4972
Jim Grosbach673612e2008-10-02 22:56:44 +00004973 ac_build_prefix=${build_alias}-
4974 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4975set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004980else
4981 if test -n "$BUILD_CXX"; then
4982 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4983else
4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 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 +00004991 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004993 break 2
4994 fi
4995done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004996done
Jim Grosbach673612e2008-10-02 22:56:44 +00004997IFS=$as_save_IFS
4998
4999fi
5000fi
5001BUILD_CXX=$ac_cv_prog_BUILD_CXX
5002if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005003 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5004echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005006 { echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005008fi
5009
5010
5011 if test -z "$BUILD_CXX"; then
5012 # Extract the first word of "g++", so it can be a program name with args.
5013set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00005018else
5019 if test -n "$BUILD_CXX"; then
5020 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 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 +00005029 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00005031 break 2
5032 fi
5033done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005034done
Jim Grosbach673612e2008-10-02 22:56:44 +00005035IFS=$as_save_IFS
5036
5037fi
5038fi
5039BUILD_CXX=$ac_cv_prog_BUILD_CXX
5040if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005041 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5042echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005044 { echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005046fi
5047
5048
5049 if test -z "$BUILD_CXX"; then
5050 # Extract the first word of "c++", so it can be a program name with args.
5051set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00005056else
5057 if test -n "$BUILD_CXX"; then
5058 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5059else
5060 ac_prog_rejected=no
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 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 +00005068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5069 ac_prog_rejected=yes
5070 continue
5071 fi
5072 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00005074 break 2
5075 fi
5076done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005077done
Jim Grosbach673612e2008-10-02 22:56:44 +00005078IFS=$as_save_IFS
5079
5080if test $ac_prog_rejected = yes; then
5081 # We found a bogon in the path, so make sure we never use it.
5082 set dummy $ac_cv_prog_BUILD_CXX
5083 shift
5084 if test $# != 0; then
5085 # We chose a different compiler from the bogus one.
5086 # However, it has the same basename, so the bogon will be chosen
5087 # first if we set BUILD_CXX to just the basename; use the full file name.
5088 shift
5089 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5090 fi
5091fi
5092fi
5093fi
5094BUILD_CXX=$ac_cv_prog_BUILD_CXX
5095if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005096 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5097echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005099 { echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005101fi
5102
5103
5104 fi
5105 fi
Reid Spencera773bd52006-08-04 18:18:08 +00005106else
5107 LLVM_CROSS_COMPILING=0
5108
5109fi
5110
Dan Gohman56fb5f92010-08-04 16:25:01 +00005111if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005112 cvsbuild="yes"
5113 optimize="no"
5114 CVSBUILD=CVSBUILD=1
5115
5116else
5117 cvsbuild="no"
5118 optimize="yes"
5119fi
5120
5121
Eric Christopherbee515f2011-11-11 22:51:42 +00005122# Check whether --enable-libcpp was given.
5123if test "${enable_libcpp+set}" = set; then
5124 enableval=$enable_libcpp;
5125else
5126 enableval=default
5127fi
5128
5129case "$enableval" in
5130 yes) ENABLE_LIBCPP=1
5131 ;;
5132 no) ENABLE_LIBCPP=0
5133 ;;
5134 default) ENABLE_LIBCPP=0
5135;;
5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5137echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5139esac
5140
Eric Christopher82120022012-08-03 19:47:14 +00005141# Check whether --enable-cxx11 was given.
5142if test "${enable_cxx11+set}" = set; then
5143 enableval=$enable_cxx11;
5144else
5145 enableval=default
5146fi
5147
5148case "$enableval" in
5149 yes) ENABLE_CXX11=1
5150 ;;
5151 no) ENABLE_CXX11=0
5152 ;;
5153 default) ENABLE_CXX11=0
5154;;
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5156echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5158esac
5159
Roman Divackyd14baf42012-12-13 16:07:19 +00005160clang_arcmt="yes"
5161# Check whether --enable-clang-arcmt was given.
5162if test "${enable_clang_arcmt+set}" = set; then
5163 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5164else
5165 enableval="yes"
5166fi
5167
5168case "$enableval" in
5169 yes) ENABLE_CLANG_ARCMT=1
5170 ;;
5171 no) ENABLE_CLANG_ARCMT=0
5172 ;;
5173 default) ENABLE_CLANG_ARCMT=1
5174;;
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5178esac
5179
5180clang_static_analyzer="yes"
5181# Check whether --enable-clang-static-analyzer was given.
5182if test "${enable_clang_static_analyzer+set}" = set; then
5183 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5184else
5185 enableval="yes"
5186fi
5187
5188case "$enableval" in
5189 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5190 ;;
5191 no) ENABLE_CLANG_STATIC_ANALYZER=0
5192 ;;
5193 default) ENABLE_CLANG_STATIC_ANALYZER=1
5194;;
5195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5196echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5197 { (exit 1); exit 1; }; } ;;
5198esac
5199
5200# Check whether --enable-clang-rewriter was given.
5201if test "${enable_clang_rewriter+set}" = set; then
5202 enableval=$enable_clang_rewriter;
5203else
5204 enableval="yes"
5205fi
5206
5207case "$enableval" in
5208 yes) ENABLE_CLANG_REWRITER=1
5209 ;;
5210 no)
Benjamin Kramer23c50212012-12-26 10:48:49 +00005211 if test ${clang_arcmt} != "no" ; then
Roman Divackyd14baf42012-12-13 16:07:19 +00005212 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5213echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5214 { (exit 1); exit 1; }; }
5215 fi
Benjamin Kramer23c50212012-12-26 10:48:49 +00005216 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyd14baf42012-12-13 16:07:19 +00005217 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5218echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5219 { (exit 1); exit 1; }; }
5220 fi
5221 ENABLE_CLANG_REWRITER=0
5222
5223 ;;
5224 default) ENABLE_CLANG_REWRITER=1
5225;;
5226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5227echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5229esac
5230
Reid Spencera773bd52006-08-04 18:18:08 +00005231# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005232if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005233 enableval=$enable_optimized;
5234else
5235 enableval=$optimize
5236fi
5237
5238if test ${enableval} = "no" ; then
5239 ENABLE_OPTIMIZED=
5240
5241else
5242 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5243
5244fi
5245
David Greene2a5a12c2009-04-17 14:50:39 +00005246# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005247if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005248 enableval=$enable_profiling;
5249else
5250 enableval="no"
5251fi
5252
5253if test ${enableval} = "no" ; then
5254 ENABLE_PROFILING=
5255
5256else
5257 ENABLE_PROFILING=ENABLE_PROFILING=1
5258
5259fi
5260
Reid Spencera773bd52006-08-04 18:18:08 +00005261# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005262if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005263 enableval=$enable_assertions;
5264else
5265 enableval="yes"
5266fi
5267
5268if test ${enableval} = "yes" ; then
5269 DISABLE_ASSERTIONS=
5270
5271else
5272 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5273
5274fi
5275
Eric Christopher09a88732012-08-03 19:58:20 +00005276# Check whether --enable-werror was given.
5277if test "${enable_werror+set}" = set; then
5278 enableval=$enable_werror;
5279else
5280 enableval="no"
5281fi
5282
5283case "$enableval" in
5284 yes) ENABLE_WERROR=1
5285 ;;
5286 no) ENABLE_WERROR=0
5287 ;;
5288 default) ENABLE_WERROR=0
5289;;
5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5291echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5293esac
5294
David Greenea696d242007-06-28 19:36:08 +00005295# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005296if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005297 enableval=$enable_expensive_checks;
5298else
5299 enableval="no"
5300fi
5301
5302if test ${enableval} = "yes" ; then
5303 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5304
5305 EXPENSIVE_CHECKS=yes
5306
5307else
5308 ENABLE_EXPENSIVE_CHECKS=
5309
5310 EXPENSIVE_CHECKS=no
5311
5312fi
5313
Reid Spencer8b2e1412006-11-17 03:32:33 +00005314# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005315if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005316 enableval=$enable_debug_runtime;
5317else
5318 enableval=no
5319fi
5320
5321if test ${enableval} = "no" ; then
5322 DEBUG_RUNTIME=
5323
5324else
5325 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5326
5327fi
5328
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005329# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005330if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005331 enableval=$enable_debug_symbols;
5332else
5333 enableval=no
5334fi
5335
5336if test ${enableval} = "no" ; then
5337 DEBUG_SYMBOLS=
5338
5339else
5340 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5341
5342fi
5343
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005344# Check whether --enable-keep-symbols was given.
5345if test "${enable_keep_symbols+set}" = set; then
5346 enableval=$enable_keep_symbols;
5347else
5348 enableval=no
5349fi
5350
5351if test ${enableval} = "no" ; then
5352 KEEP_SYMBOLS=
5353
5354else
5355 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5356
5357fi
5358
Reid Spencera773bd52006-08-04 18:18:08 +00005359# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005360if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005361 enableval=$enable_jit;
5362else
5363 enableval=default
5364fi
5365
5366if test ${enableval} = "no"
5367then
5368 JIT=
5369
5370else
5371 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005372 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005373 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005374 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005375 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005376 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005377 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005378 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005379 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005380 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005381 ;;
Tim Northover72062f52013-01-31 12:12:40 +00005382 AArch64) TARGET_HAS_JIT=0
5383 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005384 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005385 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005386 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005387 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005388 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005389 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005390 Hexagon) TARGET_HAS_JIT=0
5391 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005392 MBlaze) TARGET_HAS_JIT=0
5393 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005394 NVPTX) TARGET_HAS_JIT=0
5395 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005396 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005397 ;;
5398 esac
5399fi
5400
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005401# Check whether --enable-docs was given.
5402if test "${enable_docs+set}" = set; then
5403 enableval=$enable_docs;
5404else
5405 enableval=default
5406fi
5407
5408case "$enableval" in
5409 yes) ENABLE_DOCS=1
5410 ;;
5411 no) ENABLE_DOCS=0
5412 ;;
5413 default) ENABLE_DOCS=1
5414 ;;
5415 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5416echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5417 { (exit 1); exit 1; }; } ;;
5418esac
5419
Reid Spencera773bd52006-08-04 18:18:08 +00005420# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005421if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005422 enableval=$enable_doxygen;
5423else
5424 enableval=default
5425fi
5426
5427case "$enableval" in
5428 yes) ENABLE_DOXYGEN=1
5429 ;;
5430 no) ENABLE_DOXYGEN=0
5431 ;;
5432 default) ENABLE_DOXYGEN=0
5433 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005434 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5435echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5436 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005437esac
5438
5439# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005440if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005441 enableval=$enable_threads;
5442else
Reid Spencer65c5d752006-11-05 17:08:18 +00005443 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005444fi
5445
5446case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005447 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005448 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005449 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005450 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005451 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005452 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005453 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5454echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5455 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005456esac
5457
Owen Andersona8603702009-05-19 22:18:56 +00005458cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005459#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005460_ACEOF
5461
5462
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005463# Check whether --enable-pthreads was given.
5464if test "${enable_pthreads+set}" = set; then
5465 enableval=$enable_pthreads;
5466else
5467 enableval=default
5468fi
5469
5470case "$enableval" in
5471 yes) ENABLE_PTHREADS=1
5472 ;;
5473 no) ENABLE_PTHREADS=0
5474 ;;
5475 default) ENABLE_PTHREADS=1
5476 ;;
5477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5478echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5479 { (exit 1); exit 1; }; } ;;
5480esac
5481
Reid Spencer89b0d992006-12-16 22:07:52 +00005482# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005483if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005484 enableval=$enable_pic;
5485else
5486 enableval=default
5487fi
5488
5489case "$enableval" in
5490 yes) ENABLE_PIC=1
5491 ;;
5492 no) ENABLE_PIC=0
5493 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005494 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005495 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005496 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5497echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5498 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005499esac
5500
5501cat >>confdefs.h <<_ACEOF
5502#define ENABLE_PIC $ENABLE_PIC
5503_ACEOF
5504
5505
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005506# Check whether --enable-shared was given.
5507if test "${enable_shared+set}" = set; then
5508 enableval=$enable_shared;
5509else
5510 enableval=default
5511fi
5512
5513case "$enableval" in
5514 yes) ENABLE_SHARED=1
5515 ;;
5516 no) ENABLE_SHARED=0
5517 ;;
5518 default) ENABLE_SHARED=0
5519 ;;
5520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5521echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5523esac
5524
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005525# Check whether --enable-embed-stdcxx was given.
5526if test "${enable_embed_stdcxx+set}" = set; then
5527 enableval=$enable_embed_stdcxx;
5528else
5529 enableval=default
5530fi
5531
5532case "$enableval" in
5533 yes) ENABLE_EMBED_STDCXX=1
5534 ;;
5535 no) ENABLE_EMBED_STDCXX=0
5536 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005537 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005538 ;;
5539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5540echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5541 { (exit 1); exit 1; }; } ;;
5542esac
5543
Daniel Dunbardd464df2010-05-10 20:11:56 +00005544# Check whether --enable-timestamps was given.
5545if test "${enable_timestamps+set}" = set; then
5546 enableval=$enable_timestamps;
5547else
5548 enableval=default
5549fi
5550
5551case "$enableval" in
5552 yes) ENABLE_TIMESTAMPS=1
5553 ;;
5554 no) ENABLE_TIMESTAMPS=0
5555 ;;
5556 default) ENABLE_TIMESTAMPS=1
5557 ;;
5558 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5559echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5561esac
5562
5563cat >>confdefs.h <<_ACEOF
5564#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5565_ACEOF
5566
5567
Eric Christopherc69bdad2012-09-21 23:03:29 +00005568
5569# Check whether --enable-backtraces was given.
5570if test "${enable_backtraces+set}" = set; then
5571 enableval=$enable_backtraces;
5572else
5573 enableval=default
5574fi
5575
5576case "$enableval" in
Eric Christopherf0b3b742012-11-19 19:31:02 +00005577 yes) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005578 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005579 no) ENABLE_BACKTRACES=0
Eric Christopherc69bdad2012-09-21 23:03:29 +00005580 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005581 default) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005582 ;;
5583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5584echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5585 { (exit 1); exit 1; }; } ;;
5586esac
5587
5588cat >>confdefs.h <<_ACEOF
5589#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5590_ACEOF
5591
5592
Reid Spencera773bd52006-08-04 18:18:08 +00005593TARGETS_TO_BUILD=""
5594# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005595if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005596 enableval=$enable_targets;
5597else
5598 enableval=all
5599fi
5600
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005601if test "$enableval" = host-only ; then
5602 enableval=host
5603fi
Reid Spencera773bd52006-08-04 18:18:08 +00005604case "$enableval" in
Tim Northover4c408402013-02-04 12:32:21 +00005605 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005606 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5607 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005608 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5609 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5610 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5611 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Joerg Sonnenbergerf8410642013-02-03 17:06:49 +00005612 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglund6c440fc2013-02-04 08:15:53 +00005613 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005614 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005615 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00005616 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5617 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005618 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5619 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005620 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005621 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005622 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005623 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005624 host) case "$llvm_cv_target_arch" in
5625 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5626 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5627 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5628 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005629 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5630 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005631 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005632 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5633 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005634 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005635 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005636 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5637echo "$as_me: error: Can not set target to build" >&2;}
5638 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005639 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5641echo "$as_me: error: Unrecognized target $a_target" >&2;}
5642 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005643 esac
5644 done
5645 ;;
5646esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005647
5648# Check whether --enable-experimental-targets was given.
5649if test "${enable_experimental_targets+set}" = set; then
5650 enableval=$enable_experimental_targets;
5651else
5652 enableval=disable
5653fi
5654
5655
5656if test ${enableval} != "disable"
5657then
5658 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5659fi
5660
Reid Spencera773bd52006-08-04 18:18:08 +00005661TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5662
5663
Douglas Gregor0711c302009-06-17 00:43:20 +00005664for a_target in $TARGETS_TO_BUILD; do
5665 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5666
5667cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005668#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5669_ACEOF
5670
5671 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5672 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005673 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005674 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005675 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5676 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5677 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005678 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5679 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5680 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005681
5682cat >>confdefs.h <<_ACEOF
5683#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005684_ACEOF
5685
5686
5687cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005688#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5689_ACEOF
5690
5691
5692cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005693#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005694_ACEOF
5695
5696
5697cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005698#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005699_ACEOF
5700
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005701 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005702
5703cat >>confdefs.h <<_ACEOF
5704#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5705_ACEOF
5706
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005707 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005708 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5709
5710cat >>confdefs.h <<_ACEOF
5711#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5712_ACEOF
5713
5714 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005715 fi
5716done
5717
Douglas Gregor1555a232009-06-16 20:12:29 +00005718LLVM_ENUM_TARGETS=""
5719LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005720LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005721LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005722for target_to_build in $TARGETS_TO_BUILD; do
5723 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005724 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005725 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5726 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005727 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5728 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5729 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005730 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5731 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5732 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005733done
5734
5735
5736
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005737
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005738
Reid Spencera773bd52006-08-04 18:18:08 +00005739
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005740# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005742 withval=$with_optimize_option;
5743else
5744 withval=default
5745fi
5746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747{ echo "$as_me:$LINENO: checking optimization flags" >&5
5748echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005749case "$withval" in
5750 default)
5751 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005752 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005753 MingW) optimize_option=-O2 ;;
5754 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005755 esac ;;
5756 *) optimize_option="$withval" ;;
5757esac
5758OPTIMIZE_OPTION=$optimize_option
5759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005760{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5761echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005762
5763
Reid Spencera773bd52006-08-04 18:18:08 +00005764# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005766 withval=$with_extra_options;
5767else
5768 withval=default
5769fi
5770
5771case "$withval" in
5772 default) EXTRA_OPTIONS= ;;
5773 *) EXTRA_OPTIONS=$withval ;;
5774esac
5775EXTRA_OPTIONS=$EXTRA_OPTIONS
5776
5777
Daniel Dunbared344d22011-06-16 22:30:41 +00005778
5779# Check whether --with-extra-ld-options was given.
5780if test "${with_extra_ld_options+set}" = set; then
5781 withval=$with_extra_ld_options;
5782else
5783 withval=default
5784fi
5785
5786case "$withval" in
5787 default) EXTRA_LD_OPTIONS= ;;
5788 *) EXTRA_LD_OPTIONS=$withval ;;
5789esac
5790EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5791
5792
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005793# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005795 enableval=$enable_bindings;
5796else
5797 enableval=default
5798fi
5799
5800BINDINGS_TO_BUILD=""
5801case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005802 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005803 all ) BINDINGS_TO_BUILD="ocaml" ;;
5804 none | no) BINDINGS_TO_BUILD="" ;;
5805 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5806 case "$a_binding" in
5807 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005808 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5809echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5810 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005811 esac
5812 done
5813 ;;
5814esac
5815
Reid Spencera773bd52006-08-04 18:18:08 +00005816
Gordon Henriksenf0915682007-10-02 16:42:22 +00005817# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005819 withval=$with_ocaml_libdir;
5820else
5821 withval=auto
5822fi
5823
5824case "$withval" in
5825 auto) with_ocaml_libdir="$withval" ;;
5826 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005827 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5828echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5829 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005830esac
5831
5832
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005833# Check whether --with-clang-srcdir was given.
5834if test "${with_clang_srcdir+set}" = set; then
5835 withval=$with_clang_srcdir;
5836else
5837 withval="-"
5838fi
5839
5840case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005841 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005842 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5843 *) clang_src_root="$ac_pwd/$withval" ;;
5844esac
5845CLANG_SRC_ROOT=$clang_src_root
5846
5847
5848
Chandler Carruth6b241162010-10-19 08:21:25 +00005849# Check whether --with-clang-resource-dir was given.
5850if test "${with_clang_resource_dir+set}" = set; then
5851 withval=$with_clang_resource_dir;
5852else
5853 withval=""
5854fi
5855
5856
5857cat >>confdefs.h <<_ACEOF
5858#define CLANG_RESOURCE_DIR "$withval"
5859_ACEOF
5860
5861
5862
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005863# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005865 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005866else
5867 withval=""
5868fi
5869
5870
5871cat >>confdefs.h <<_ACEOF
5872#define C_INCLUDE_DIRS "$withval"
5873_ACEOF
5874
5875
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005876# Clang normally uses the system c++ headers and libraries. With this option,
5877# clang will use the ones provided by a gcc installation instead. This option should
5878# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005879
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005880# Check whether --with-gcc-toolchain was given.
5881if test "${with_gcc_toolchain+set}" = set; then
5882 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005883else
5884 withval=""
5885fi
5886
5887
5888cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005889#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005890_ACEOF
5891
5892
5893
Sebastian Pope4f1b372012-04-30 20:06:58 +00005894# Check whether --with-default-sysroot was given.
5895if test "${with_default_sysroot+set}" = set; then
5896 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005897else
5898 withval=""
5899fi
5900
5901
5902cat >>confdefs.h <<_ACEOF
5903#define DEFAULT_SYSROOT "$withval"
5904_ACEOF
5905
5906
5907
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005908# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005909if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005910 withval=$with_binutils_include;
5911else
5912 withval=default
5913fi
5914
5915case "$withval" in
5916 default) WITH_BINUTILS_INCDIR=default ;;
5917 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5919echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5920 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005921esac
5922if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5923 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5924
5925 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5926 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5928echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5929 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005930 fi
5931fi
5932
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005933
5934# Check whether --with-bug-report-url was given.
5935if test "${with_bug_report_url+set}" = set; then
5936 withval=$with_bug_report_url;
5937else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005938 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005939fi
5940
5941
5942cat >>confdefs.h <<_ACEOF
5943#define BUG_REPORT_URL "$withval"
5944_ACEOF
5945
5946
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005947# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005948if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005949 enableval=$enable_libffi; case "$enableval" in
5950 yes) llvm_cv_enable_libffi="yes" ;;
5951 no) llvm_cv_enable_libffi="no" ;;
5952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5954 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005955 esac
5956else
5957 llvm_cv_enable_libffi=no
5958fi
5959
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005960
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005961
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005962# Check whether --with-internal-prefix was given.
5963if test "${with_internal_prefix+set}" = set; then
5964 withval=$with_internal_prefix;
5965else
5966 withval=""
5967fi
5968
5969INTERNAL_PREFIX=$withval
5970
5971
5972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5974echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5975if test "${lt_cv_path_NM+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005977else
5978 if test -n "$NM"; then
5979 # Let the user override the test.
5980 lt_cv_path_NM="$NM"
5981else
5982 lt_nm_to_check="${ac_tool_prefix}nm"
5983 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5984 lt_nm_to_check="$lt_nm_to_check nm"
5985 fi
5986 for lt_tmp_nm in $lt_nm_to_check; do
5987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5988 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5989 IFS="$lt_save_ifs"
5990 test -z "$ac_dir" && ac_dir=.
5991 tmp_nm="$ac_dir/$lt_tmp_nm"
5992 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5993 # Check to see if the nm accepts a BSD-compat flag.
5994 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5995 # nm: unknown option "B" ignored
5996 # Tru64's nm complains that /dev/null is an invalid object file
5997 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5998 */dev/null* | *'Invalid file or object type'*)
5999 lt_cv_path_NM="$tmp_nm -B"
6000 break
6001 ;;
6002 *)
6003 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004 */dev/null*)
6005 lt_cv_path_NM="$tmp_nm -p"
6006 break
6007 ;;
6008 *)
6009 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6010 continue # so that we can try to find one that supports BSD flags
6011 ;;
6012 esac
6013 ;;
6014 esac
6015 fi
6016 done
6017 IFS="$lt_save_ifs"
6018 done
6019 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6020fi
6021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6023echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006024NM="$lt_cv_path_NM"
6025
6026
6027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028{ echo "$as_me:$LINENO: checking for GNU make" >&5
6029echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6030if test "${llvm_cv_gnu_make_command+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006032else
6033 llvm_cv_gnu_make_command=''
6034 for a in "$MAKE" make gmake gnumake ; do
6035 if test -z "$a" ; then continue ; fi ;
6036 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6037 then
6038 llvm_cv_gnu_make_command=$a ;
6039 break;
6040 fi
6041 done
6042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6044echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006045 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6046 ifGNUmake='' ;
6047 else
6048 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6050echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006051 fi
6052
6053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006054{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6055echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006056LN_S=$as_ln_s
6057if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006058 { echo "$as_me:$LINENO: result: yes" >&5
6059echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6062echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006063fi
6064
6065# Extract the first word of "cmp", so it can be a program name with args.
6066set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069if test "${ac_cv_path_CMP+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006071else
6072 case $CMP in
6073 [\\/]* | ?:[\\/]*)
6074 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6075 ;;
6076 *)
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 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 +00006084 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006086 break 2
6087 fi
6088done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006089done
Reid Spencera773bd52006-08-04 18:18:08 +00006090IFS=$as_save_IFS
6091
6092 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6093 ;;
6094esac
6095fi
6096CMP=$ac_cv_path_CMP
6097if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006098 { echo "$as_me:$LINENO: result: $CMP" >&5
6099echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101 { echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006103fi
6104
6105
6106# Extract the first word of "cp", so it can be a program name with args.
6107set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110if test "${ac_cv_path_CP+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006112else
6113 case $CP in
6114 [\\/]* | ?:[\\/]*)
6115 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6116 ;;
6117 *)
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 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 +00006125 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006127 break 2
6128 fi
6129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130done
Reid Spencera773bd52006-08-04 18:18:08 +00006131IFS=$as_save_IFS
6132
6133 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6134 ;;
6135esac
6136fi
6137CP=$ac_cv_path_CP
6138if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006139 { echo "$as_me:$LINENO: result: $CP" >&5
6140echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142 { echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006144fi
6145
6146
6147# Extract the first word of "date", so it can be a program name with args.
6148set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151if test "${ac_cv_path_DATE+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006153else
6154 case $DATE in
6155 [\\/]* | ?:[\\/]*)
6156 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6157 ;;
6158 *)
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006166 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006168 break 2
6169 fi
6170done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171done
Reid Spencera773bd52006-08-04 18:18:08 +00006172IFS=$as_save_IFS
6173
6174 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6175 ;;
6176esac
6177fi
6178DATE=$ac_cv_path_DATE
6179if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006180 { echo "$as_me:$LINENO: result: $DATE" >&5
6181echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006182else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006183 { echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006185fi
6186
6187
6188# Extract the first word of "find", so it can be a program name with args.
6189set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192if test "${ac_cv_path_FIND+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006194else
6195 case $FIND in
6196 [\\/]* | ?:[\\/]*)
6197 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6198 ;;
6199 *)
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 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 +00006207 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006209 break 2
6210 fi
6211done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212done
Reid Spencera773bd52006-08-04 18:18:08 +00006213IFS=$as_save_IFS
6214
6215 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6216 ;;
6217esac
6218fi
6219FIND=$ac_cv_path_FIND
6220if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006221 { echo "$as_me:$LINENO: result: $FIND" >&5
6222echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006223else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224 { echo "$as_me:$LINENO: result: no" >&5
6225echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006226fi
6227
6228
6229# Extract the first word of "grep", so it can be a program name with args.
6230set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233if test "${ac_cv_path_GREP+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006235else
6236 case $GREP in
6237 [\\/]* | ?:[\\/]*)
6238 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6239 ;;
6240 *)
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 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 +00006248 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006250 break 2
6251 fi
6252done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006253done
Reid Spencera773bd52006-08-04 18:18:08 +00006254IFS=$as_save_IFS
6255
6256 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6257 ;;
6258esac
6259fi
6260GREP=$ac_cv_path_GREP
6261if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262 { echo "$as_me:$LINENO: result: $GREP" >&5
6263echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265 { echo "$as_me:$LINENO: result: no" >&5
6266echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006267fi
6268
6269
6270# Extract the first word of "mkdir", so it can be a program name with args.
6271set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274if test "${ac_cv_path_MKDIR+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006276else
6277 case $MKDIR in
6278 [\\/]* | ?:[\\/]*)
6279 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6280 ;;
6281 *)
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 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 +00006289 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006291 break 2
6292 fi
6293done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294done
Reid Spencera773bd52006-08-04 18:18:08 +00006295IFS=$as_save_IFS
6296
6297 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6298 ;;
6299esac
6300fi
6301MKDIR=$ac_cv_path_MKDIR
6302if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6304echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006306 { echo "$as_me:$LINENO: result: no" >&5
6307echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006308fi
6309
6310
6311# Extract the first word of "mv", so it can be a program name with args.
6312set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315if test "${ac_cv_path_MV+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006317else
6318 case $MV in
6319 [\\/]* | ?:[\\/]*)
6320 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6321 ;;
6322 *)
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 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 +00006330 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006332 break 2
6333 fi
6334done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335done
Reid Spencera773bd52006-08-04 18:18:08 +00006336IFS=$as_save_IFS
6337
6338 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6339 ;;
6340esac
6341fi
6342MV=$ac_cv_path_MV
6343if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344 { echo "$as_me:$LINENO: result: $MV" >&5
6345echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347 { echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006349fi
6350
6351
6352if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006359else
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 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 +00006370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006372 break 2
6373 fi
6374done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375done
Reid Spencera773bd52006-08-04 18:18:08 +00006376IFS=$as_save_IFS
6377
6378fi
6379fi
6380RANLIB=$ac_cv_prog_RANLIB
6381if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385 { echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006387fi
6388
6389
6390fi
6391if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006399else
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 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 +00006410 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006412 break 2
6413 fi
6414done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415done
Reid Spencera773bd52006-08-04 18:18:08 +00006416IFS=$as_save_IFS
6417
6418fi
6419fi
6420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6421if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425 { echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006427fi
6428
6429 if test "x$ac_ct_RANLIB" = x; then
6430 RANLIB=":"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006434{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435whose name does not start with the host triplet. If you think this
6436configuration is useful to you, please write to autoconf@gnu.org." >&5
6437echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438whose name does not start with the host triplet. If you think this
6439configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006440ac_tool_warned=yes ;;
6441esac
6442 RANLIB=$ac_ct_RANLIB
6443 fi
6444else
6445 RANLIB="$ac_cv_prog_RANLIB"
6446fi
6447
Torok Edwin871384f2010-01-26 08:50:50 +00006448if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6450set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453if test "${ac_cv_prog_AR+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006455else
6456 if test -n "$AR"; then
6457 ac_cv_prog_AR="$AR" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 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 +00006466 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006468 break 2
6469 fi
6470done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471done
Torok Edwin871384f2010-01-26 08:50:50 +00006472IFS=$as_save_IFS
6473
6474fi
6475fi
6476AR=$ac_cv_prog_AR
6477if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 { echo "$as_me:$LINENO: result: $AR" >&5
6479echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 { echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006483fi
6484
6485
6486fi
6487if test -z "$ac_cv_prog_AR"; then
6488 ac_ct_AR=$AR
6489 # Extract the first word of "ar", so it can be a program name with args.
6490set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6493if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006495else
6496 if test -n "$ac_ct_AR"; then
6497 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
6501do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 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 +00006506 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006508 break 2
6509 fi
6510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511done
Torok Edwin871384f2010-01-26 08:50:50 +00006512IFS=$as_save_IFS
6513
6514fi
6515fi
6516ac_ct_AR=$ac_cv_prog_ac_ct_AR
6517if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6519echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521 { echo "$as_me:$LINENO: result: no" >&5
6522echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006523fi
6524
6525 if test "x$ac_ct_AR" = x; then
6526 AR="false"
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006530{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6531whose name does not start with the host triplet. If you think this
6532configuration is useful to you, please write to autoconf@gnu.org." >&5
6533echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6534whose name does not start with the host triplet. If you think this
6535configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006536ac_tool_warned=yes ;;
6537esac
6538 AR=$ac_ct_AR
6539 fi
6540else
6541 AR="$ac_cv_prog_AR"
6542fi
6543
Reid Spencera773bd52006-08-04 18:18:08 +00006544# Extract the first word of "rm", so it can be a program name with args.
6545set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548if test "${ac_cv_path_RM+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006550else
6551 case $RM in
6552 [\\/]* | ?:[\\/]*)
6553 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6554 ;;
6555 *)
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 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 +00006563 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006565 break 2
6566 fi
6567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568done
Reid Spencera773bd52006-08-04 18:18:08 +00006569IFS=$as_save_IFS
6570
6571 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6572 ;;
6573esac
6574fi
6575RM=$ac_cv_path_RM
6576if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006577 { echo "$as_me:$LINENO: result: $RM" >&5
6578echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006579else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580 { echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006582fi
6583
6584
6585# Extract the first word of "sed", so it can be a program name with args.
6586set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589if test "${ac_cv_path_SED+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006591else
6592 case $SED in
6593 [\\/]* | ?:[\\/]*)
6594 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6595 ;;
6596 *)
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 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 +00006604 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006606 break 2
6607 fi
6608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609done
Reid Spencera773bd52006-08-04 18:18:08 +00006610IFS=$as_save_IFS
6611
6612 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6613 ;;
6614esac
6615fi
6616SED=$ac_cv_path_SED
6617if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006618 { echo "$as_me:$LINENO: result: $SED" >&5
6619echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621 { echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006623fi
6624
6625
6626# Extract the first word of "tar", so it can be a program name with args.
6627set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630if test "${ac_cv_path_TAR+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006632else
6633 case $TAR in
6634 [\\/]* | ?:[\\/]*)
6635 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6636 ;;
6637 *)
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 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 +00006645 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006647 break 2
6648 fi
6649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006650done
Reid Spencera773bd52006-08-04 18:18:08 +00006651IFS=$as_save_IFS
6652
6653 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6654 ;;
6655esac
6656fi
6657TAR=$ac_cv_path_TAR
6658if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006659 { echo "$as_me:$LINENO: result: $TAR" >&5
6660echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662 { echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006664fi
6665
6666
6667# Extract the first word of "pwd", so it can be a program name with args.
6668set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_path_BINPWD+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006673else
6674 case $BINPWD in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6677 ;;
6678 *)
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 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 +00006686 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006688 break 2
6689 fi
6690done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691done
Reid Spencera773bd52006-08-04 18:18:08 +00006692IFS=$as_save_IFS
6693
6694 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6695 ;;
6696esac
6697fi
6698BINPWD=$ac_cv_path_BINPWD
6699if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006700 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6701echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006705fi
6706
6707
6708
6709# Extract the first word of "Graphviz", so it can be a program name with args.
6710set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006715else
6716 case $GRAPHVIZ in
6717 [\\/]* | ?:[\\/]*)
6718 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6719 ;;
6720 *)
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 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 +00006728 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006730 break 2
6731 fi
6732done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733done
Reid Spencera773bd52006-08-04 18:18:08 +00006734IFS=$as_save_IFS
6735
6736 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6737 ;;
6738esac
6739fi
6740GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6741if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6743echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745 { echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006747fi
6748
6749
6750if test "$GRAPHVIZ" != "echo Graphviz" ; then
6751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752cat >>confdefs.h <<\_ACEOF
6753#define HAVE_GRAPHVIZ 1
6754_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006755
Jeff Cohen28783c32007-01-12 18:22:38 +00006756 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006757 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6758 fi
6759
6760cat >>confdefs.h <<_ACEOF
6761#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6762_ACEOF
6763
6764fi
6765# Extract the first word of "dot", so it can be a program name with args.
6766set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769if test "${ac_cv_path_DOT+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006771else
6772 case $DOT in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6775 ;;
6776 *)
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 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 +00006784 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006786 break 2
6787 fi
6788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789done
Reid Spencera773bd52006-08-04 18:18:08 +00006790IFS=$as_save_IFS
6791
6792 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6793 ;;
6794esac
6795fi
6796DOT=$ac_cv_path_DOT
6797if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798 { echo "$as_me:$LINENO: result: $DOT" >&5
6799echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006803fi
6804
6805
6806if test "$DOT" != "echo dot" ; then
6807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808cat >>confdefs.h <<\_ACEOF
6809#define HAVE_DOT 1
6810_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006811
Jeff Cohen28783c32007-01-12 18:22:38 +00006812 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006813 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6814 fi
6815
6816cat >>confdefs.h <<_ACEOF
6817#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6818_ACEOF
6819
6820fi
David Greenef0b9eff2009-07-09 17:16:26 +00006821# Extract the first word of "fdp", so it can be a program name with args.
6822set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825if test "${ac_cv_path_FDP+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006827else
6828 case $FDP in
6829 [\\/]* | ?:[\\/]*)
6830 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6831 ;;
6832 *)
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 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 +00006840 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006842 break 2
6843 fi
6844done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845done
David Greenef0b9eff2009-07-09 17:16:26 +00006846IFS=$as_save_IFS
6847
6848 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6849 ;;
6850esac
6851fi
6852FDP=$ac_cv_path_FDP
6853if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006854 { echo "$as_me:$LINENO: result: $FDP" >&5
6855echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006857 { echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006859fi
6860
6861
6862if test "$FDP" != "echo fdp" ; then
6863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864cat >>confdefs.h <<\_ACEOF
6865#define HAVE_FDP 1
6866_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006867
6868 if test "$llvm_cv_os_type" = "MingW" ; then
6869 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6870 fi
6871
6872cat >>confdefs.h <<_ACEOF
6873#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6874_ACEOF
6875
6876fi
6877# Extract the first word of "neato", so it can be a program name with args.
6878set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881if test "${ac_cv_path_NEATO+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006883else
6884 case $NEATO in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 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 +00006896 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006898 break 2
6899 fi
6900done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006901done
David Greenef0b9eff2009-07-09 17:16:26 +00006902IFS=$as_save_IFS
6903
6904 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6905 ;;
6906esac
6907fi
6908NEATO=$ac_cv_path_NEATO
6909if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910 { echo "$as_me:$LINENO: result: $NEATO" >&5
6911echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913 { echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006915fi
6916
6917
6918if test "$NEATO" != "echo neato" ; then
6919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006920cat >>confdefs.h <<\_ACEOF
6921#define HAVE_NEATO 1
6922_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006923
6924 if test "$llvm_cv_os_type" = "MingW" ; then
6925 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6926 fi
6927
6928cat >>confdefs.h <<_ACEOF
6929#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6930_ACEOF
6931
6932fi
6933# Extract the first word of "twopi", so it can be a program name with args.
6934set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_TWOPI+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006939else
6940 case $TWOPI in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 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 +00006952 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006954 break 2
6955 fi
6956done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957done
David Greenef0b9eff2009-07-09 17:16:26 +00006958IFS=$as_save_IFS
6959
6960 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6961 ;;
6962esac
6963fi
6964TWOPI=$ac_cv_path_TWOPI
6965if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6967echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 { echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006971fi
6972
6973
6974if test "$TWOPI" != "echo twopi" ; then
6975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976cat >>confdefs.h <<\_ACEOF
6977#define HAVE_TWOPI 1
6978_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006979
6980 if test "$llvm_cv_os_type" = "MingW" ; then
6981 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6982 fi
6983
6984cat >>confdefs.h <<_ACEOF
6985#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6986_ACEOF
6987
6988fi
6989# Extract the first word of "circo", so it can be a program name with args.
6990set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993if test "${ac_cv_path_CIRCO+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006995else
6996 case $CIRCO in
6997 [\\/]* | ?:[\\/]*)
6998 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6999 ;;
7000 *)
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 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 +00007008 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007010 break 2
7011 fi
7012done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013done
David Greenef0b9eff2009-07-09 17:16:26 +00007014IFS=$as_save_IFS
7015
7016 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7017 ;;
7018esac
7019fi
7020CIRCO=$ac_cv_path_CIRCO
7021if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7023echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007024else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025 { echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007027fi
7028
7029
7030if test "$CIRCO" != "echo circo" ; then
7031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032cat >>confdefs.h <<\_ACEOF
7033#define HAVE_CIRCO 1
7034_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007035
7036 if test "$llvm_cv_os_type" = "MingW" ; then
7037 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7038 fi
7039
7040cat >>confdefs.h <<_ACEOF
7041#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7042_ACEOF
7043
7044fi
Reid Spencera773bd52006-08-04 18:18:08 +00007045for ac_prog in gv gsview32
7046do
7047 # Extract the first word of "$ac_prog", so it can be a program name with args.
7048set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051if test "${ac_cv_path_GV+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007053else
7054 case $GV in
7055 [\\/]* | ?:[\\/]*)
7056 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7057 ;;
7058 *)
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 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 +00007066 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007068 break 2
7069 fi
7070done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007071done
Reid Spencera773bd52006-08-04 18:18:08 +00007072IFS=$as_save_IFS
7073
7074 ;;
7075esac
7076fi
7077GV=$ac_cv_path_GV
7078if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 { echo "$as_me:$LINENO: result: $GV" >&5
7080echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007081else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082 { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007084fi
7085
7086
7087 test -n "$GV" && break
7088done
7089test -n "$GV" || GV="echo gv"
7090
7091if test "$GV" != "echo gv" ; then
7092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007093cat >>confdefs.h <<\_ACEOF
7094#define HAVE_GV 1
7095_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007096
Jeff Cohen28783c32007-01-12 18:22:38 +00007097 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007098 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7099 fi
7100
7101cat >>confdefs.h <<_ACEOF
7102#define LLVM_PATH_GV "$GV${EXEEXT}"
7103_ACEOF
7104
7105fi
7106# Extract the first word of "dotty", so it can be a program name with args.
7107set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110if test "${ac_cv_path_DOTTY+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007112else
7113 case $DOTTY in
7114 [\\/]* | ?:[\\/]*)
7115 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7116 ;;
7117 *)
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 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 +00007125 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007127 break 2
7128 fi
7129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130done
Reid Spencera773bd52006-08-04 18:18:08 +00007131IFS=$as_save_IFS
7132
7133 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7134 ;;
7135esac
7136fi
7137DOTTY=$ac_cv_path_DOTTY
7138if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7140echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 { echo "$as_me:$LINENO: result: no" >&5
7143echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007144fi
7145
7146
7147if test "$DOTTY" != "echo dotty" ; then
7148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149cat >>confdefs.h <<\_ACEOF
7150#define HAVE_DOTTY 1
7151_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007152
Jeff Cohen28783c32007-01-12 18:22:38 +00007153 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007154 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7155 fi
7156
7157cat >>confdefs.h <<_ACEOF
7158#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7159_ACEOF
7160
7161fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007162# Extract the first word of "xdot.py", so it can be a program name with args.
7163set dummy xdot.py; ac_word=$2
7164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166if test "${ac_cv_path_XDOT_PY+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169 case $XDOT_PY in
7170 [\\/]* | ?:[\\/]*)
7171 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7172 ;;
7173 *)
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185done
7186done
7187IFS=$as_save_IFS
7188
7189 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7190 ;;
7191esac
7192fi
7193XDOT_PY=$ac_cv_path_XDOT_PY
7194if test -n "$XDOT_PY"; then
7195 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7196echo "${ECHO_T}$XDOT_PY" >&6; }
7197else
7198 { echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6; }
7200fi
7201
7202
7203if test "$XDOT_PY" != "echo xdot.py" ; then
7204
7205cat >>confdefs.h <<\_ACEOF
7206#define HAVE_XDOT_PY 1
7207_ACEOF
7208
7209 if test "$llvm_cv_os_type" = "MingW" ; then
7210 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7211 fi
7212
7213cat >>confdefs.h <<_ACEOF
7214#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7215_ACEOF
7216
7217fi
Reid Spencera773bd52006-08-04 18:18:08 +00007218
Reid Spencera773bd52006-08-04 18:18:08 +00007219# Find a good install program. We prefer a C program (faster),
7220# so one script is as good as another. But avoid the broken or
7221# incompatible versions:
7222# SysV /etc/install, /usr/sbin/install
7223# SunOS /usr/etc/install
7224# IRIX /sbin/install
7225# AIX /bin/install
7226# AmigaOS /C/install, which installs bootblocks on floppy discs
7227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7228# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230# OS/2's system install, which has a completely different semantic
7231# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007232{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7233echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007234if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235if test "${ac_cv_path_install+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007237else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243 # Account for people who put trailing slashes in PATH elements.
7244case $as_dir/ in
7245 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007248 /usr/ucb/* ) ;;
7249 *)
7250 # OSF1 and SCO ODT 3.0 have their own names for install.
7251 # Don't use installbsd from OSF since it installs stuff as root
7252 # by default.
7253 for ac_prog in ginstall scoinst install; do
7254 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255 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 +00007256 if test $ac_prog = install &&
7257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7258 # AIX install. It has an incompatible calling convention.
7259 :
7260 elif test $ac_prog = install &&
7261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7262 # program-specific install script used by HP pwplus--don't use.
7263 :
7264 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7266 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007267 fi
7268 fi
7269 done
7270 done
7271 ;;
7272esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273done
Reid Spencera773bd52006-08-04 18:18:08 +00007274IFS=$as_save_IFS
7275
7276
7277fi
7278 if test "${ac_cv_path_install+set}" = set; then
7279 INSTALL=$ac_cv_path_install
7280 else
7281 # As a last resort, use the slow shell script. Don't cache a
7282 # value for INSTALL within a source directory, because that will
7283 # break other packages using the cache if that directory is
7284 # removed, or if the value is a relative name.
7285 INSTALL=$ac_install_sh
7286 fi
7287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7289echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007290
7291# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7292# It thinks the first close brace ends the variable substitution.
7293test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7294
7295test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7296
7297test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7298
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007299case "$INSTALL" in
7300 [\\/$]* | ?:[\\/]* ) ;;
7301 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7302esac
Reid Spencera773bd52006-08-04 18:18:08 +00007303
7304# Extract the first word of "bzip2", so it can be a program name with args.
7305set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308if test "${ac_cv_path_BZIP2+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007310else
7311 case $BZIP2 in
7312 [\\/]* | ?:[\\/]*)
7313 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7314 ;;
7315 *)
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 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 +00007323 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007325 break 2
7326 fi
7327done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328done
Reid Spencera773bd52006-08-04 18:18:08 +00007329IFS=$as_save_IFS
7330
Reid Spencera773bd52006-08-04 18:18:08 +00007331 ;;
7332esac
7333fi
7334BZIP2=$ac_cv_path_BZIP2
7335if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7337echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 { echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007341fi
7342
7343
mike-m68cb3192010-05-06 23:45:43 +00007344# Extract the first word of "cat", so it can be a program name with args.
7345set dummy cat; ac_word=$2
7346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348if test "${ac_cv_path_CAT+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 case $CAT in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368done
7369IFS=$as_save_IFS
7370
7371 ;;
7372esac
7373fi
7374CAT=$ac_cv_path_CAT
7375if test -n "$CAT"; then
7376 { echo "$as_me:$LINENO: result: $CAT" >&5
7377echo "${ECHO_T}$CAT" >&6; }
7378else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
7381fi
7382
7383
Reid Spencera773bd52006-08-04 18:18:08 +00007384# Extract the first word of "doxygen", so it can be a program name with args.
7385set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388if test "${ac_cv_path_DOXYGEN+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007390else
7391 case $DOXYGEN in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7394 ;;
7395 *)
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007403 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007405 break 2
7406 fi
7407done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408done
Reid Spencera773bd52006-08-04 18:18:08 +00007409IFS=$as_save_IFS
7410
Reid Spencera773bd52006-08-04 18:18:08 +00007411 ;;
7412esac
7413fi
7414DOXYGEN=$ac_cv_path_DOXYGEN
7415if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007416 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7417echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007419 { echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007421fi
7422
7423
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007424# Extract the first word of "groff", so it can be a program name with args.
7425set dummy groff; ac_word=$2
7426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_GROFF+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431 case $GROFF in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447done
7448done
7449IFS=$as_save_IFS
7450
7451 ;;
7452esac
7453fi
7454GROFF=$ac_cv_path_GROFF
7455if test -n "$GROFF"; then
7456 { echo "$as_me:$LINENO: result: $GROFF" >&5
7457echo "${ECHO_T}$GROFF" >&6; }
7458else
7459 { echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6; }
7461fi
7462
7463
Reid Spencera773bd52006-08-04 18:18:08 +00007464# Extract the first word of "gzip", so it can be a program name with args.
7465set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007468if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007470else
Eric Christopher031d3072010-12-10 01:31:51 +00007471 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007472 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007473 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007474 ;;
7475 *)
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 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 +00007483 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007485 break 2
7486 fi
7487done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007488done
Reid Spencera773bd52006-08-04 18:18:08 +00007489IFS=$as_save_IFS
7490
Reid Spencera773bd52006-08-04 18:18:08 +00007491 ;;
7492esac
7493fi
Eric Christopher031d3072010-12-10 01:31:51 +00007494GZIPBIN=$ac_cv_path_GZIPBIN
7495if test -n "$GZIPBIN"; then
7496 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7497echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007501fi
7502
7503
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007504# Extract the first word of "pdfroff", so it can be a program name with args.
7505set dummy pdfroff; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_PDFROFF+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 case $PDFROFF in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529IFS=$as_save_IFS
7530
7531 ;;
7532esac
7533fi
7534PDFROFF=$ac_cv_path_PDFROFF
7535if test -n "$PDFROFF"; then
7536 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7537echo "${ECHO_T}$PDFROFF" >&6; }
7538else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
Reid Spencera773bd52006-08-04 18:18:08 +00007544# Extract the first word of "zip", so it can be a program name with args.
7545set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_ZIP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007550else
7551 case $ZIP in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 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 +00007563 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007565 break 2
7566 fi
7567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568done
Reid Spencera773bd52006-08-04 18:18:08 +00007569IFS=$as_save_IFS
7570
Reid Spencera773bd52006-08-04 18:18:08 +00007571 ;;
7572esac
7573fi
7574ZIP=$ac_cv_path_ZIP
7575if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576 { echo "$as_me:$LINENO: result: $ZIP" >&5
7577echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007581fi
7582
7583
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007584for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007585do
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_OCAMLC+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007592else
7593 case $OCAMLC in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 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 +00007605 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007607 break 2
7608 fi
7609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007611IFS=$as_save_IFS
7612
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007613 ;;
7614esac
7615fi
7616OCAMLC=$ac_cv_path_OCAMLC
7617if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7619echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007623fi
7624
7625
Gordon Henriksene7072162008-03-07 18:20:01 +00007626 test -n "$OCAMLC" && break
7627done
7628
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007629for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007630do
7631 # Extract the first word of "$ac_prog", so it can be a program name with args.
7632set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007637else
7638 case $OCAMLOPT in
7639 [\\/]* | ?:[\\/]*)
7640 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7641 ;;
7642 *)
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 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 +00007650 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007652 break 2
7653 fi
7654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007655done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007656IFS=$as_save_IFS
7657
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007658 ;;
7659esac
7660fi
7661OCAMLOPT=$ac_cv_path_OCAMLOPT
7662if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7664echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666 { echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007668fi
7669
7670
Gordon Henriksene7072162008-03-07 18:20:01 +00007671 test -n "$OCAMLOPT" && break
7672done
7673
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007674for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007675do
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007682else
7683 case $OCAMLDEP in
7684 [\\/]* | ?:[\\/]*)
7685 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7686 ;;
7687 *)
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 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 +00007695 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007697 break 2
7698 fi
7699done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007701IFS=$as_save_IFS
7702
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007703 ;;
7704esac
7705fi
7706OCAMLDEP=$ac_cv_path_OCAMLDEP
7707if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7709echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007711 { echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007713fi
7714
7715
Gordon Henriksene7072162008-03-07 18:20:01 +00007716 test -n "$OCAMLDEP" && break
7717done
7718
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007719for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007720do
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007727else
7728 case $OCAMLDOC in
7729 [\\/]* | ?:[\\/]*)
7730 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7731 ;;
7732 *)
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 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 +00007740 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007742 break 2
7743 fi
7744done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007746IFS=$as_save_IFS
7747
7748 ;;
7749esac
7750fi
7751OCAMLDOC=$ac_cv_path_OCAMLDOC
7752if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7754echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756 { echo "$as_me:$LINENO: result: no" >&5
7757echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007758fi
7759
7760
7761 test -n "$OCAMLDOC" && break
7762done
7763
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007764for ac_prog in gas as
7765do
7766 # Extract the first word of "$ac_prog", so it can be a program name with args.
7767set dummy $ac_prog; ac_word=$2
7768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7770if test "${ac_cv_path_GAS+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772else
7773 case $GAS in
7774 [\\/]* | ?:[\\/]*)
7775 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7776 ;;
7777 *)
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790done
7791IFS=$as_save_IFS
7792
7793 ;;
7794esac
7795fi
7796GAS=$ac_cv_path_GAS
7797if test -n "$GAS"; then
7798 { echo "$as_me:$LINENO: result: $GAS" >&5
7799echo "${ECHO_T}$GAS" >&6; }
7800else
7801 { echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6; }
7803fi
7804
7805
7806 test -n "$GAS" && break
7807done
7808
Reid Spencera773bd52006-08-04 18:18:08 +00007809
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007810{ echo "$as_me:$LINENO: checking for linker version" >&5
7811echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7812if test "${llvm_cv_link_version+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815
7816 version_string="$(ld -v 2>&1 | head -1)"
7817
7818 # Check for ld64.
7819 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007820 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007821 else
7822 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7823 fi
7824
7825fi
7826{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7827echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7828
7829cat >>confdefs.h <<_ACEOF
7830#define HOST_LINK_VERSION "$llvm_cv_link_version"
7831_ACEOF
7832
7833
7834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7836echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7837if test "${llvm_cv_link_use_r+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007839else
7840 ac_ext=c
7841ac_cpp='$CPP $CPPFLAGS'
7842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845
7846 oldcflags="$CFLAGS"
7847 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007848 cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h. */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007853/* end confdefs.h. */
7854
7855int
7856main ()
7857{
Dan Gohman39ed6782010-04-25 00:12:20 +00007858
Reid Spencera773bd52006-08-04 18:18:08 +00007859 ;
7860 return 0;
7861}
7862_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863rm -f conftest.$ac_objext conftest$ac_exeext
7864if { (ac_try="$ac_link"
7865case "(($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_link") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881esac
7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891esac
7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_try") 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007897 llvm_cv_link_use_r=yes
7898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007899 echo "$as_me: failed program was:" >&5
7900sed 's/^/| /' conftest.$ac_ext >&5
7901
7902 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007904
Bill Wendlingebcceee2009-04-18 11:20:33 +00007905rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007907 CFLAGS="$oldcflags"
7908 ac_ext=c
7909ac_cpp='$CPP $CPPFLAGS'
7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914
7915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7917echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007918if test "$llvm_cv_link_use_r" = yes ; then
7919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920cat >>confdefs.h <<\_ACEOF
7921#define HAVE_LINK_R 1
7922_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007923
7924 fi
7925
7926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007927{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7928echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7929if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007931else
7932 ac_ext=c
7933ac_cpp='$CPP $CPPFLAGS'
7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938 oldcflags="$CFLAGS"
7939 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007940 cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007945/* end confdefs.h. */
7946
7947int
7948main ()
7949{
Dan Gohman39ed6782010-04-25 00:12:20 +00007950
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007951 ;
7952 return 0;
7953}
7954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007955rm -f conftest.$ac_objext conftest$ac_exeext
7956if { (ac_try="$ac_link"
7957case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960esac
7961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973esac
7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983esac
7984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_try") 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007989 llvm_cv_link_use_export_dynamic=yes
7990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007991 echo "$as_me: failed program was:" >&5
7992sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007996
Bill Wendlingebcceee2009-04-18 11:20:33 +00007997rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007999 CFLAGS="$oldcflags"
8000 ac_ext=c
8001ac_cpp='$CPP $CPPFLAGS'
8002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005
8006
8007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8009echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008010if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008012cat >>confdefs.h <<\_ACEOF
8013#define HAVE_LINK_EXPORT_DYNAMIC 1
8014_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008015
8016 fi
8017
8018
Dan Gohmanda612d62010-06-01 14:56:56 +00008019{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8020echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8021if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024 ac_ext=c
8025ac_cpp='$CPP $CPPFLAGS'
8026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
8030 oldcflags="$CFLAGS"
8031
8032 # The following code is from the autoconf manual,
8033 # "11.13: Limitations of Usual Tools".
8034 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8035 # Use mktemp if possible; otherwise fall back on mkdir,
8036 # with $RANDOM to make collisions less likely.
8037 : ${TMPDIR=/tmp}
8038 {
8039 tmp=`
8040 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8041 ` &&
8042 test -n "$tmp" && test -d "$tmp"
8043 } || {
8044 tmp=$TMPDIR/foo$$-$RANDOM
8045 (umask 077 && mkdir "$tmp")
8046 } || exit $?
8047
Dan Gohmanda612d62010-06-01 14:56:56 +00008048 echo "{" > "$tmp/export.map"
8049 echo " global: main;" >> "$tmp/export.map"
8050 echo " local: *;" >> "$tmp/export.map"
8051 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008052
Dan Gohmanda612d62010-06-01 14:56:56 +00008053 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008054 cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h. */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h. */
8060
8061int
8062main ()
8063{
Dan Gohman39ed6782010-04-25 00:12:20 +00008064
Dan Gohman391569c2010-04-16 22:59:06 +00008065 ;
8066 return 0;
8067}
8068_ACEOF
8069rm -f conftest.$ac_objext conftest$ac_exeext
8070if { (ac_try="$ac_link"
8071case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8074esac
8075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097esac
8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008103 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008104else
8105 echo "$as_me: failed program was:" >&5
8106sed 's/^/| /' conftest.$ac_ext >&5
8107
Dan Gohman943005e2010-06-01 16:22:27 +00008108 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008109fi
8110
8111rm -f core conftest.err conftest.$ac_objext \
8112 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008113 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008114 rmdir "$tmp"
8115 CFLAGS="$oldcflags"
8116 ac_ext=c
8117ac_cpp='$CPP $CPPFLAGS'
8118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
8122
8123fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008124{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8125echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8126if test "$llvm_cv_link_use_version_script" = yes ; then
8127 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008128
8129 fi
8130
8131
Reid Spencera773bd52006-08-04 18:18:08 +00008132
8133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8135echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8136if test "${ac_cv_c_const+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008139 cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h. */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008144/* end confdefs.h. */
8145
8146int
8147main ()
8148{
8149/* FIXME: Include the comments suggested by Paul. */
8150#ifndef __cplusplus
8151 /* Ultrix mips cc rejects this. */
8152 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008154 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155 char const *const *ccp;
8156 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008157 /* NEC SVR4.0.2 mips cc rejects this. */
8158 struct point {int x, y;};
8159 static struct point const zero = {0,0};
8160 /* AIX XL C 1.02.0.0 rejects this.
8161 It does not let you subtract one const X* pointer from another in
8162 an arm of an if-expression whose if-part is not a constant
8163 expression */
8164 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008166 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 ++ccp;
8168 p = (char**) ccp;
8169 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008170 { /* SCO 3.2v4 cc rejects this. */
8171 char *t;
8172 char const *s = 0 ? (char *) 0 : (char const *) 0;
8173
8174 *t++ = 0;
8175 if (s) return 0;
8176 }
8177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8178 int x[] = {25, 17};
8179 const int *foo = &x[0];
8180 ++foo;
8181 }
8182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8183 typedef const int *iptr;
8184 iptr p = 0;
8185 ++p;
8186 }
8187 { /* AIX XL C 1.02.0.0 rejects this saying
8188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8189 struct s { int j; const int *ap[3]; };
8190 struct s *b; b->j = 5;
8191 }
8192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8193 const int foo = 10;
8194 if (!foo) return 0;
8195 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008197#endif
8198
8199 ;
8200 return 0;
8201}
8202_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203rm -f conftest.$ac_objext
8204if { (ac_try="$ac_compile"
8205case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208esac
8209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_compile") 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest.$ac_objext'
8228 { (case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231esac
8232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_try") 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008237 ac_cv_c_const=yes
8238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239 echo "$as_me: failed program was:" >&5
8240sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008244
Reid Spencera773bd52006-08-04 18:18:08 +00008245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8248echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008249if test $ac_cv_c_const = no; then
8250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251cat >>confdefs.h <<\_ACEOF
8252#define const
8253_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008254
8255fi
8256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257
8258
8259
8260
8261
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008262ac_header_dirent=no
8263for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008264 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8265{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8266echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008269else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008270 cat >conftest.$ac_ext <<_ACEOF
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008275/* end confdefs.h. */
8276#include <sys/types.h>
8277#include <$ac_hdr>
8278
8279int
8280main ()
8281{
8282if ((DIR *) 0)
8283return 0;
8284 ;
8285 return 0;
8286}
8287_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008288rm -f conftest.$ac_objext
8289if { (ac_try="$ac_compile"
8290case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316esac
8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008322 eval "$as_ac_Header=yes"
8323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324 echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329
Reid Spencera773bd52006-08-04 18:18:08 +00008330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332ac_res=`eval echo '${'$as_ac_Header'}'`
8333 { echo "$as_me:$LINENO: result: $ac_res" >&5
8334echo "${ECHO_T}$ac_res" >&6; }
8335if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008336 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008338_ACEOF
8339
8340ac_header_dirent=$ac_hdr; break
8341fi
8342
8343done
8344# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8345if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008346 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8347echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8348if test "${ac_cv_search_opendir+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008350else
8351 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352cat >conftest.$ac_ext <<_ACEOF
8353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008357/* end confdefs.h. */
8358
Reid Spencera773bd52006-08-04 18:18:08 +00008359/* Override any GCC internal prototype to avoid an error.
8360 Use char because int might match the return type of a GCC
8361 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008362#ifdef __cplusplus
8363extern "C"
8364#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008365char opendir ();
8366int
8367main ()
8368{
Reid Spencera773bd52006-08-04 18:18:08 +00008369return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008370 ;
8371 return 0;
8372}
8373_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008374for ac_lib in '' dir; do
8375 if test -z "$ac_lib"; then
8376 ac_res="none required"
8377 else
8378 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008380 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008381 rm -f conftest.$ac_objext conftest$ac_exeext
8382if { (ac_try="$ac_link"
8383case "(($ac_try" in
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8386esac
8387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_link") 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8396 { (case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399esac
8400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_try") 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409esac
8410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_try") 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008415 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416else
8417 echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008422
Bill Wendlingebcceee2009-04-18 11:20:33 +00008423rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424 conftest$ac_exeext
8425 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008426 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008427fi
John Criswell7a73b802003-06-30 21:59:07 +00008428done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429if test "${ac_cv_search_opendir+set}" = set; then
8430 :
Reid Spencera773bd52006-08-04 18:18:08 +00008431else
8432 ac_cv_search_opendir=no
8433fi
8434rm conftest.$ac_ext
8435LIBS=$ac_func_search_save_LIBS
8436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8438echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008439ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008440if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008442
Reid Spencera773bd52006-08-04 18:18:08 +00008443fi
8444
8445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8447echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8448if test "${ac_cv_search_opendir+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008450else
8451 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008452cat >conftest.$ac_ext <<_ACEOF
8453/* confdefs.h. */
8454_ACEOF
8455cat confdefs.h >>conftest.$ac_ext
8456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008457/* end confdefs.h. */
8458
8459/* Override any GCC internal prototype to avoid an error.
8460 Use char because int might match the return type of a GCC
8461 builtin and then its argument prototype would still apply. */
8462#ifdef __cplusplus
8463extern "C"
8464#endif
8465char opendir ();
8466int
8467main ()
8468{
8469return opendir ();
8470 ;
8471 return 0;
8472}
8473_ACEOF
8474for ac_lib in '' x; do
8475 if test -z "$ac_lib"; then
8476 ac_res="none required"
8477 else
8478 ac_res=-l$ac_lib
8479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8480 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008481 rm -f conftest.$ac_objext conftest$ac_exeext
8482if { (ac_try="$ac_link"
8483case "(($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_link") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_try") 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509esac
8510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008515 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008516else
8517 echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520
Reid Spencera773bd52006-08-04 18:18:08 +00008521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008522
Bill Wendlingebcceee2009-04-18 11:20:33 +00008523rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524 conftest$ac_exeext
8525 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008526 break
8527fi
8528done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529if test "${ac_cv_search_opendir+set}" = set; then
8530 :
Reid Spencera773bd52006-08-04 18:18:08 +00008531else
8532 ac_cv_search_opendir=no
8533fi
8534rm conftest.$ac_ext
8535LIBS=$ac_func_search_save_LIBS
8536fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008537{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8538echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008539ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008540if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8542
8543fi
8544
8545fi
John Criswell7a73b802003-06-30 21:59:07 +00008546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008547
John Criswell7a73b802003-06-30 21:59:07 +00008548for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549do
8550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556fi
8557ac_res=`eval echo '${'$as_ac_Header'}'`
8558 { echo "$as_me:$LINENO: result: $ac_res" >&5
8559echo "${ECHO_T}$ac_res" >&6; }
8560else
8561 # Is the header compilable?
8562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8564cat >conftest.$ac_ext <<_ACEOF
8565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
8569/* end confdefs.h. */
8570$ac_includes_default
8571#include <$ac_header>
8572_ACEOF
8573rm -f conftest.$ac_objext
8574if { (ac_try="$ac_compile"
8575case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
8579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8588 { (case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591esac
8592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_try") 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601esac
8602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_try") 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_header_compiler=yes
8608else
8609 echo "$as_me: failed program was:" >&5
8610sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 ac_header_compiler=no
8613fi
8614
8615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617echo "${ECHO_T}$ac_header_compiler" >&6; }
8618
8619# Is the header present?
8620{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8622cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628#include <$ac_header>
8629_ACEOF
8630if { (ac_try="$ac_cpp conftest.$ac_ext"
8631case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } >/dev/null; then
8643 if test -s conftest.err; then
8644 ac_cpp_err=$ac_c_preproc_warn_flag
8645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8646 else
8647 ac_cpp_err=
8648 fi
8649else
8650 ac_cpp_err=yes
8651fi
8652if test -z "$ac_cpp_err"; then
8653 ac_header_preproc=yes
8654else
8655 echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 ac_header_preproc=no
8659fi
8660
8661rm -f conftest.err conftest.$ac_ext
8662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8663echo "${ECHO_T}$ac_header_preproc" >&6; }
8664
8665# So? What about this header?
8666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8667 yes:no: )
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8672 ac_header_preproc=yes
8673 ;;
8674 no:yes:* )
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8687 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008688## ------------------------------------ ##
8689## Report this to http://llvm.org/bugs/ ##
8690## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008691_ASBOX
8692 ) | sed "s/^/$as_me: WARNING: /" >&2
8693 ;;
8694esac
8695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699else
8700 eval "$as_ac_Header=\$ac_header_preproc"
8701fi
8702ac_res=`eval echo '${'$as_ac_Header'}'`
8703 { echo "$as_me:$LINENO: result: $ac_res" >&5
8704echo "${ECHO_T}$ac_res" >&6; }
8705
8706fi
8707if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008708 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008710_ACEOF
8711
8712fi
8713
8714done
8715
Reid Spencera773bd52006-08-04 18:18:08 +00008716# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008717if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008718 enableval=$enable_ltdl_install;
8719fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008720
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008721
Richard Smithd31bd242013-02-08 22:55:10 +00008722 if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008723 INSTALL_LTDL_TRUE=
8724 INSTALL_LTDL_FALSE='#'
8725else
8726 INSTALL_LTDL_TRUE='#'
8727 INSTALL_LTDL_FALSE=
8728fi
8729
Richard Smithd31bd242013-02-08 22:55:10 +00008730 if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008731 CONVENIENCE_LTDL_TRUE=
8732 CONVENIENCE_LTDL_FALSE='#'
8733else
8734 CONVENIENCE_LTDL_TRUE='#'
8735 CONVENIENCE_LTDL_FALSE=
8736fi
8737
8738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008739{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8740echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008741library_names_spec=
8742libname_spec='lib$name'
8743soname_spec=
8744shrext_cmds=".so"
8745postinstall_cmds=
8746postuninstall_cmds=
8747finish_cmds=
8748finish_eval=
8749shlibpath_var=
8750shlibpath_overrides_runpath=unknown
8751version_type=none
8752dynamic_linker="$host_os ld.so"
8753sys_lib_dlsearch_path_spec="/lib /usr/lib"
8754if test "$GCC" = yes; then
8755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8756 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8757 # if the path contains ";" then we assume it to be the separator
8758 # otherwise default to the standard path separator (i.e. ":") - it is
8759 # assumed that no part of a normal pathname contains ";" but that should
8760 # okay in the real world where ";" in dirpaths is itself problematic.
8761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8762 else
8763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8764 fi
8765else
8766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8767fi
8768need_lib_prefix=unknown
8769hardcode_into_libs=no
8770
8771# when you set need_version to no, make sure it does not cause -set_version
8772# flags to be left without arguments
8773need_version=unknown
8774
8775case $host_os in
8776aix3*)
8777 version_type=linux
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8779 shlibpath_var=LIBPATH
8780
8781 # AIX 3 has no versioning support, so we append a major version to the name.
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 ;;
8784
8785aix4* | aix5*)
8786 version_type=linux
8787 need_lib_prefix=no
8788 need_version=no
8789 hardcode_into_libs=yes
8790 if test "$host_cpu" = ia64; then
8791 # AIX 5 supports IA64
8792 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8793 shlibpath_var=LD_LIBRARY_PATH
8794 else
8795 # With GCC up to 2.95.x, collect2 would create an import file
8796 # for dependence libraries. The import file would start with
8797 # the line `#! .'. This would cause the generated library to
8798 # depend on `.', always an invalid library. This was fixed in
8799 # development snapshots of GCC prior to 3.0.
8800 case $host_os in
8801 aix4 | aix4.[01] | aix4.[01].*)
8802 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8803 echo ' yes '
8804 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8805 :
8806 else
8807 can_build_shared=no
8808 fi
8809 ;;
8810 esac
8811 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8812 # soname into executable. Probably we can add versioning support to
8813 # collect2, so additional links can be useful in future.
8814 if test "$aix_use_runtimelinking" = yes; then
8815 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8816 # instead of lib<name>.a to let people know that these are not
8817 # typical AIX shared libraries.
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819 else
8820 # We preserve .a as extension for shared libraries through AIX4.2
8821 # and later when we are not doing run time linking.
8822 library_names_spec='${libname}${release}.a $libname.a'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 fi
8825 shlibpath_var=LIBPATH
8826 fi
8827 ;;
8828
8829amigaos*)
8830 library_names_spec='$libname.ixlibrary $libname.a'
8831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8832 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'
8833 ;;
8834
8835beos*)
8836 library_names_spec='${libname}${shared_ext}'
8837 dynamic_linker="$host_os ld.so"
8838 shlibpath_var=LIBRARY_PATH
8839 ;;
8840
8841bsdi[45]*)
8842 version_type=linux
8843 need_version=no
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8847 shlibpath_var=LD_LIBRARY_PATH
8848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8850 # the default ld.so.conf also contains /usr/contrib/lib and
8851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8852 # libtool to hard-code these into programs
8853 ;;
8854
8855cygwin* | mingw* | pw32*)
8856 version_type=windows
8857 shrext_cmds=".dll"
8858 need_version=no
8859 need_lib_prefix=no
8860
8861 case $GCC,$host_os in
8862 yes,cygwin* | yes,mingw* | yes,pw32*)
8863 library_names_spec='$libname.dll.a'
8864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8865 postinstall_cmds='base_file=`basename \${file}`~
8866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8867 dldir=$destdir/`dirname \$dlpath`~
8868 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008869 $install_prog $dir/$dlname \$dldir/$dlname~
8870 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8872 dlpath=$dir/\$dldll~
8873 $rm \$dlpath'
8874 shlibpath_overrides_runpath=yes
8875
8876 case $host_os in
8877 cygwin*)
8878 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8879 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8881 ;;
8882 mingw*)
8883 # MinGW DLLs use traditional 'lib' prefix
8884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8886 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8887 # It is most probably a Windows format PATH printed by
8888 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8889 # path with ; separators, and with drive letters. We can handle the
8890 # drive letters (cygwin fileutils understands them), so leave them,
8891 # especially as we might pass files found there to a mingw objdump,
8892 # which wouldn't understand a cygwinified path. Ahh.
8893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8894 else
8895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8896 fi
8897 ;;
8898 pw32*)
8899 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008900 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 +00008901 ;;
8902 esac
8903 ;;
8904
8905 *)
8906 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8907 ;;
8908 esac
8909 dynamic_linker='Win32 ld.exe'
8910 # FIXME: first we should search . and the directory the executable is in
8911 shlibpath_var=PATH
8912 ;;
8913
8914darwin* | rhapsody*)
8915 dynamic_linker="$host_os dyld"
8916 version_type=darwin
8917 need_lib_prefix=no
8918 need_version=no
8919 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8920 soname_spec='${libname}${release}${major}$shared_ext'
8921 shlibpath_overrides_runpath=yes
8922 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008923 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008924 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8925 if test "$GCC" = yes; then
8926 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"`
8927 else
8928 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8929 fi
8930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8931 ;;
8932
8933dgux*)
8934 version_type=linux
8935 need_lib_prefix=no
8936 need_version=no
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 ;;
8941
Eric Christopher360fa9a2011-10-26 00:42:12 +00008942freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008943 dynamic_linker=no
8944 ;;
8945
8946kfreebsd*-gnu)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=no
8954 hardcode_into_libs=yes
8955 dynamic_linker='GNU ld.so'
8956 ;;
8957
Reid Spencera773bd52006-08-04 18:18:08 +00008958freebsd* | dragonfly*)
8959 # DragonFly does not have aout. When/if they implement a new
8960 # versioning mechanism, adjust this.
8961 if test -x /usr/bin/objformat; then
8962 objformat=`/usr/bin/objformat`
8963 else
8964 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008965 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008966 *) objformat=elf ;;
8967 esac
8968 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008969 version_type=freebsd-$objformat
8970 case $version_type in
8971 freebsd-elf*)
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8973 need_version=no
8974 need_lib_prefix=no
8975 ;;
8976 freebsd-*)
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8978 need_version=yes
8979 ;;
8980 esac
8981 shlibpath_var=LD_LIBRARY_PATH
8982 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008983 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008984 shlibpath_overrides_runpath=yes
8985 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008986 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008987 shlibpath_overrides_runpath=yes
8988 hardcode_into_libs=yes
8989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008992 shlibpath_overrides_runpath=no
8993 hardcode_into_libs=yes
8994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008995 freebsd*) # from 4.6 on
8996 shlibpath_overrides_runpath=yes
8997 hardcode_into_libs=yes
8998 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008999 esac
9000 ;;
9001
9002gnu*)
9003 version_type=linux
9004 need_lib_prefix=no
9005 need_version=no
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 hardcode_into_libs=yes
9010 ;;
9011
9012hpux9* | hpux10* | hpux11*)
9013 # Give a soname corresponding to the major version so that dld.sl refuses to
9014 # link against other versions.
9015 version_type=sunos
9016 need_lib_prefix=no
9017 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009018 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009019 ia64*)
9020 shrext_cmds='.so'
9021 hardcode_into_libs=yes
9022 dynamic_linker="$host_os dld.so"
9023 shlibpath_var=LD_LIBRARY_PATH
9024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 if test "X$HPUX_IA64_MODE" = X32; then
9028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9029 else
9030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9031 fi
9032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9033 ;;
9034 hppa*64*)
9035 shrext_cmds='.sl'
9036 hardcode_into_libs=yes
9037 dynamic_linker="$host_os dld.sl"
9038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9044 ;;
9045 *)
9046 shrext_cmds='.sl'
9047 dynamic_linker="$host_os dld.sl"
9048 shlibpath_var=SHLIB_PATH
9049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 ;;
9053 esac
9054 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9055 postinstall_cmds='chmod 555 $lib'
9056 ;;
9057
Reid Spencera773bd52006-08-04 18:18:08 +00009058interix3*)
9059 version_type=linux
9060 need_lib_prefix=no
9061 need_version=no
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='Interix 3.x ld.so.1 (PE, like ELF)'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=no
9067 hardcode_into_libs=yes
9068 ;;
9069
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009070irix5* | irix6* | nonstopux*)
9071 case $host_os in
9072 nonstopux*) version_type=nonstopux ;;
9073 *)
9074 if test "$lt_cv_prog_gnu_ld" = yes; then
9075 version_type=linux
9076 else
9077 version_type=irix
9078 fi ;;
9079 esac
9080 need_lib_prefix=no
9081 need_version=no
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9084 case $host_os in
9085 irix5* | nonstopux*)
9086 libsuff= shlibsuff=
9087 ;;
9088 *)
9089 case $LD in # libtool.m4 will add one of these switches to LD
9090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9091 libsuff= shlibsuff= libmagic=32-bit;;
9092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9093 libsuff=32 shlibsuff=N32 libmagic=N32;;
9094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9096 *) libsuff= shlibsuff= libmagic=never-match;;
9097 esac
9098 ;;
9099 esac
9100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9101 shlibpath_overrides_runpath=no
9102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9104 hardcode_into_libs=yes
9105 ;;
9106
9107# No shared lib support for Linux oldld, aout, or coff.
9108linux*oldld* | linux*aout* | linux*coff*)
9109 dynamic_linker=no
9110 ;;
9111
9112# This must be Linux ELF.
9113linux*)
9114 version_type=linux
9115 need_lib_prefix=no
9116 need_version=no
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=no
9122 # This implies no fast_install, which is unacceptable.
9123 # Some rework will be needed to allow for fast_install
9124 # before this can be enabled.
9125 hardcode_into_libs=yes
9126
9127 # Append ld.so.conf contents to the search path
9128 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009129 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 +00009130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9131 fi
9132
9133 # We used to test for /lib/ld.so.1 and disable shared libraries on
9134 # powerpc, because MkLinux only supported shared libraries with the
9135 # GNU dynamic linker. Since this was broken with cross compilers,
9136 # most powerpc-linux boxes support dynamic linking these days and
9137 # people can always --disable-shared, the test was removed, and we
9138 # assume the GNU/Linux dynamic linker is in use.
9139 dynamic_linker='GNU/Linux ld.so'
9140 ;;
9141
9142knetbsd*-gnu)
9143 version_type=linux
9144 need_lib_prefix=no
9145 need_version=no
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=no
9150 hardcode_into_libs=yes
9151 dynamic_linker='GNU ld.so'
9152 ;;
9153
9154netbsd*)
9155 version_type=sunos
9156 need_lib_prefix=no
9157 need_version=no
9158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9161 dynamic_linker='NetBSD (a.out) ld.so'
9162 else
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 dynamic_linker='NetBSD ld.elf_so'
9166 fi
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9169 hardcode_into_libs=yes
9170 ;;
9171
9172newsos6)
9173 version_type=linux
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=yes
9177 ;;
9178
9179nto-qnx*)
9180 version_type=linux
9181 need_lib_prefix=no
9182 need_version=no
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=yes
9187 ;;
9188
Eric Christopherb0f67592012-08-06 20:52:18 +00009189openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009191 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009192 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9194 case $host_os in
9195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9196 *) need_version=no ;;
9197 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202 case $host_os in
9203 openbsd2.[89] | openbsd2.[89].*)
9204 shlibpath_overrides_runpath=no
9205 ;;
9206 *)
9207 shlibpath_overrides_runpath=yes
9208 ;;
9209 esac
9210 else
9211 shlibpath_overrides_runpath=yes
9212 fi
9213 ;;
9214
9215os2*)
9216 libname_spec='$name'
9217 shrext_cmds=".dll"
9218 need_lib_prefix=no
9219 library_names_spec='$libname${shared_ext} $libname.a'
9220 dynamic_linker='OS/2 ld.exe'
9221 shlibpath_var=LIBPATH
9222 ;;
9223
9224osf3* | osf4* | osf5*)
9225 version_type=osf
9226 need_lib_prefix=no
9227 need_version=no
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9233 ;;
9234
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009235solaris*)
9236 version_type=linux
9237 need_lib_prefix=no
9238 need_version=no
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 shlibpath_overrides_runpath=yes
9243 hardcode_into_libs=yes
9244 # ldd complains unless libraries are executable
9245 postinstall_cmds='chmod +x $lib'
9246 ;;
9247
9248sunos4*)
9249 version_type=sunos
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=yes
9254 if test "$with_gnu_ld" = yes; then
9255 need_lib_prefix=no
9256 fi
9257 need_version=yes
9258 ;;
9259
Reid Spencera773bd52006-08-04 18:18:08 +00009260sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261 version_type=linux
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263 soname_spec='${libname}${release}${shared_ext}$major'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 case $host_vendor in
9266 sni)
9267 shlibpath_overrides_runpath=no
9268 need_lib_prefix=no
9269 export_dynamic_flag_spec='${wl}-Blargedynsym'
9270 runpath_var=LD_RUN_PATH
9271 ;;
9272 siemens)
9273 need_lib_prefix=no
9274 ;;
9275 motorola)
9276 need_lib_prefix=no
9277 need_version=no
9278 shlibpath_overrides_runpath=no
9279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9280 ;;
9281 esac
9282 ;;
9283
9284sysv4*MP*)
9285 if test -d /usr/nec ;then
9286 version_type=linux
9287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9288 soname_spec='$libname${shared_ext}.$major'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 fi
9291 ;;
9292
Reid Spencera773bd52006-08-04 18:18:08 +00009293sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9294 version_type=freebsd-elf
9295 need_lib_prefix=no
9296 need_version=no
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 hardcode_into_libs=yes
9301 if test "$with_gnu_ld" = yes; then
9302 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9303 shlibpath_overrides_runpath=no
9304 else
9305 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9306 shlibpath_overrides_runpath=yes
9307 case $host_os in
9308 sco3.2v5*)
9309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9310 ;;
9311 esac
9312 fi
9313 sys_lib_dlsearch_path_spec='/usr/lib'
9314 ;;
9315
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316uts4*)
9317 version_type=linux
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 ;;
9322
9323*)
9324 dynamic_linker=no
9325 ;;
9326esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009327{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9328echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009329test "$dynamic_linker" = no && can_build_shared=no
9330
Reid Spencera773bd52006-08-04 18:18:08 +00009331variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9332if test "$GCC" = yes; then
9333 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9334fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009335
Reid Spencera773bd52006-08-04 18:18:08 +00009336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009337{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9338echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9339if test "${libltdl_cv_shlibext+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341else
9342
9343module=yes
9344eval libltdl_cv_shlibext=$shrext_cmds
9345
9346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009347{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9348echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009349if test -n "$libltdl_cv_shlibext"; then
9350
9351cat >>confdefs.h <<_ACEOF
9352#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9353_ACEOF
9354
9355fi
9356
9357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009358{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9359echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9360if test "${libltdl_cv_shlibpath_var+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362else
9363 libltdl_cv_shlibpath_var="$shlibpath_var"
9364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009365{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9366echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367if test -n "$libltdl_cv_shlibpath_var"; then
9368
9369cat >>confdefs.h <<_ACEOF
9370#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9371_ACEOF
9372
9373fi
9374
9375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009376{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9377echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9378if test "${libltdl_cv_sys_search_path+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009380else
9381 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9382fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009383{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9384echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385if test -n "$libltdl_cv_sys_search_path"; then
9386 sys_search_path=
9387 for dir in $libltdl_cv_sys_search_path; do
9388 if test -z "$sys_search_path"; then
9389 sys_search_path="$dir"
9390 else
9391 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9392 fi
9393 done
9394
9395cat >>confdefs.h <<_ACEOF
9396#define LTDL_SYSSEARCHPATH "$sys_search_path"
9397_ACEOF
9398
9399fi
9400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009401{ echo "$as_me:$LINENO: checking for objdir" >&5
9402echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9403if test "${libltdl_cv_objdir+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009405else
9406 libltdl_cv_objdir="$objdir"
9407 if test -n "$objdir"; then
9408 :
9409 else
9410 rm -f .libs 2>/dev/null
9411 mkdir .libs 2>/dev/null
9412 if test -d .libs; then
9413 libltdl_cv_objdir=.libs
9414 else
9415 # MS-DOS does not allow filenames that begin with a dot.
9416 libltdl_cv_objdir=_libs
9417 fi
9418 rmdir .libs 2>/dev/null
9419 fi
9420
9421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009422{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9423echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009424
9425cat >>confdefs.h <<_ACEOF
9426#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9427_ACEOF
9428
9429
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430
9431
9432
9433
9434# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009435{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9436echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9437if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009439else
9440
9441# These are sane defaults that work on at least a few old systems.
9442# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9443
9444# Character class describing NM global symbol codes.
9445symcode='[BCDEGRST]'
9446
9447# Regexp to match symbols that can be accessed directly from C.
9448sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9449
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450# Transform an extracted symbol line into a proper C declaration
9451lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9452
9453# Transform an extracted symbol line into symbol name and symbol address
9454lt_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'"
9455
9456# Define system-specific variables.
9457case $host_os in
9458aix*)
9459 symcode='[BCDT]'
9460 ;;
9461cygwin* | mingw* | pw32*)
9462 symcode='[ABCDGISTW]'
9463 ;;
9464hpux*) # Its linker distinguishes data from code symbols
9465 if test "$host_cpu" = ia64; then
9466 symcode='[ABCDEGRST]'
9467 fi
9468 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9469 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'"
9470 ;;
9471linux*)
9472 if test "$host_cpu" = ia64; then
9473 symcode='[ABCDGIRSTW]'
9474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9475 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'"
9476 fi
9477 ;;
9478irix* | nonstopux*)
9479 symcode='[BCDEGRST]'
9480 ;;
9481osf*)
9482 symcode='[BCDEGQRST]'
9483 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009484solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485 symcode='[BDRT]'
9486 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009487sco3.2v5*)
9488 symcode='[DT]'
9489 ;;
9490sysv4.2uw2*)
9491 symcode='[DT]'
9492 ;;
9493sysv5* | sco5v6* | unixware* | OpenUNIX*)
9494 symcode='[ABDT]'
9495 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009496sysv4)
9497 symcode='[DFNSTU]'
9498 ;;
9499esac
9500
9501# Handle CRLF in mingw tool chain
9502opt_cr=
9503case $build_os in
9504mingw*)
9505 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9506 ;;
9507esac
9508
9509# If we're using GNU nm, then use its standard symbol codes.
9510case `$NM -V 2>&1` in
9511*GNU* | *'with BFD'*)
9512 symcode='[ABCDGIRSTW]' ;;
9513esac
9514
9515# Try without a prefix undercore, then with it.
9516for ac_symprfx in "" "_"; do
9517
Reid Spencera773bd52006-08-04 18:18:08 +00009518 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9519 symxfrm="\\1 $ac_symprfx\\2 \\2"
9520
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009521 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009522 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 +00009523
9524 # Check to see that the pipe works correctly.
9525 pipe_works=no
9526
9527 rm -f conftest*
9528 cat > conftest.$ac_ext <<EOF
9529#ifdef __cplusplus
9530extern "C" {
9531#endif
9532char nm_test_var;
9533void nm_test_func(){}
9534#ifdef __cplusplus
9535}
9536#endif
9537int main(){nm_test_var='a';nm_test_func();return(0);}
9538EOF
9539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541 (eval $ac_compile) 2>&5
9542 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545 # Now try to grab the symbols.
9546 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009547 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 +00009548 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9549 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009552 # Try sorting and uniquifying the output.
9553 if sort "$nlist" | uniq > "$nlist"T; then
9554 mv -f "$nlist"T "$nlist"
9555 else
9556 rm -f "$nlist"T
9557 fi
9558
9559 # Make sure that we snagged all the symbols we need.
9560 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9561 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9562 cat <<EOF > conftest.$ac_ext
9563#ifdef __cplusplus
9564extern "C" {
9565#endif
9566
9567EOF
9568 # Now generate the symbol file.
9569 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9570
9571 cat <<EOF >> conftest.$ac_ext
9572#if defined (__STDC__) && __STDC__
9573# define lt_ptr_t void *
9574#else
9575# define lt_ptr_t char *
9576# define const
9577#endif
9578
9579/* The mapping between symbol names and symbols. */
9580const struct {
9581 const char *name;
9582 lt_ptr_t address;
9583}
9584lt_preloaded_symbols[] =
9585{
9586EOF
9587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9588 cat <<\EOF >> conftest.$ac_ext
9589 {0, (lt_ptr_t) 0}
9590};
9591
9592#ifdef __cplusplus
9593}
9594#endif
9595EOF
9596 # Now try linking the two files.
9597 mv conftest.$ac_objext conftstm.$ac_objext
9598 lt_save_LIBS="$LIBS"
9599 lt_save_CFLAGS="$CFLAGS"
9600 LIBS="conftstm.$ac_objext"
9601 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603 (eval $ac_link) 2>&5
9604 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607 pipe_works=yes
9608 fi
9609 LIBS="$lt_save_LIBS"
9610 CFLAGS="$lt_save_CFLAGS"
9611 else
9612 echo "cannot find nm_test_func in $nlist" >&5
9613 fi
9614 else
9615 echo "cannot find nm_test_var in $nlist" >&5
9616 fi
9617 else
9618 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9619 fi
9620 else
9621 echo "$progname: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 fi
9624 rm -f conftest* conftst*
9625
9626 # Do not use the global_symbol_pipe unless it works.
9627 if test "$pipe_works" = yes; then
9628 break
9629 else
9630 lt_cv_sys_global_symbol_pipe=
9631 fi
9632done
9633
9634fi
9635
9636if test -z "$lt_cv_sys_global_symbol_pipe"; then
9637 lt_cv_sys_global_symbol_to_cdecl=
9638fi
9639if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009640 { echo "$as_me:$LINENO: result: failed" >&5
9641echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009643 { echo "$as_me:$LINENO: result: ok" >&5
9644echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009645fi
9646
9647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009648{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9649echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9650if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009652else
9653 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9654 libltdl_cv_preloaded_symbols=yes
9655 else
9656 libltdl_cv_preloaded_symbols=no
9657 fi
9658
9659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009660{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9661echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009662if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009664cat >>confdefs.h <<\_ACEOF
9665#define HAVE_PRELOADED_SYMBOLS 1
9666_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667
9668fi
9669
9670LIBADD_DL=
9671
9672ac_ext=c
9673ac_cpp='$CPP $CPPFLAGS'
9674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676ac_compiler_gnu=$ac_cv_c_compiler_gnu
9677
9678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009679{ echo "$as_me:$LINENO: checking for shl_load" >&5
9680echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9681if test "${ac_cv_func_shl_load+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683else
9684 cat >conftest.$ac_ext <<_ACEOF
9685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
9690/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9692#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009694/* System header to define __stub macros and hopefully few prototypes,
9695 which can conflict with char shl_load (); below.
9696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697 <limits.h> exists even on freestanding compilers. */
9698
9699#ifdef __STDC__
9700# include <limits.h>
9701#else
9702# include <assert.h>
9703#endif
9704
9705#undef shl_load
9706
9707/* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710#ifdef __cplusplus
9711extern "C"
9712#endif
9713char shl_load ();
9714/* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717#if defined __stub_shl_load || defined __stub___shl_load
9718choke me
9719#endif
9720
9721int
9722main ()
9723{
9724return shl_load ();
9725 ;
9726 return 0;
9727}
9728_ACEOF
9729rm -f conftest.$ac_objext conftest$ac_exeext
9730if { (ac_try="$ac_link"
9731case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9734esac
9735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_try") 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest$ac_exeext'
9754 { (case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757esac
9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_try") 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_func_shl_load=yes
9764else
9765 echo "$as_me: failed program was:" >&5
9766sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 ac_cv_func_shl_load=no
9769fi
9770
9771rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773fi
9774{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9775echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9776if test $ac_cv_func_shl_load = yes; then
9777
9778cat >>confdefs.h <<\_ACEOF
9779#define HAVE_SHL_LOAD 1
9780_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009781
9782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009783 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9784echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9785if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787else
9788 ac_check_lib_save_LIBS=$LIBS
9789LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009790cat >conftest.$ac_ext <<_ACEOF
9791/* confdefs.h. */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795/* end confdefs.h. */
9796
Reid Spencera773bd52006-08-04 18:18:08 +00009797/* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800#ifdef __cplusplus
9801extern "C"
9802#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803char shl_load ();
9804int
9805main ()
9806{
Reid Spencera773bd52006-08-04 18:18:08 +00009807return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808 ;
9809 return 0;
9810}
9811_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009812rm -f conftest.$ac_objext conftest$ac_exeext
9813if { (ac_try="$ac_link"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009846 ac_cv_lib_dld_shl_load=yes
9847else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009853
Bill Wendlingebcceee2009-04-18 11:20:33 +00009854rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009855 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856LIBS=$ac_check_lib_save_LIBS
9857fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009858{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9859echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9860if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009862cat >>confdefs.h <<\_ACEOF
9863#define HAVE_SHL_LOAD 1
9864_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009865
9866 LIBADD_DL="$LIBADD_DL -ldld"
9867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009868 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9869echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9870if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872else
9873 ac_check_lib_save_LIBS=$LIBS
9874LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009875cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880/* end confdefs.h. */
9881
Reid Spencera773bd52006-08-04 18:18:08 +00009882/* Override any GCC internal prototype to avoid an error.
9883 Use char because int might match the return type of a GCC
9884 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885#ifdef __cplusplus
9886extern "C"
9887#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888char dlopen ();
9889int
9890main ()
9891{
Reid Spencera773bd52006-08-04 18:18:08 +00009892return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893 ;
9894 return 0;
9895}
9896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009897rm -f conftest.$ac_objext conftest$ac_exeext
9898if { (ac_try="$ac_link"
9899case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902esac
9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925esac
9926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_try") 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931 ac_cv_lib_dl_dlopen=yes
9932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009933 echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009938
Bill Wendlingebcceee2009-04-18 11:20:33 +00009939rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009940 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941LIBS=$ac_check_lib_save_LIBS
9942fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009943{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9944echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9945if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009947cat >>confdefs.h <<\_ACEOF
9948#define HAVE_LIBDL 1
9949_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950
9951 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009953 cat >conftest.$ac_ext <<_ACEOF
9954/* confdefs.h. */
9955_ACEOF
9956cat confdefs.h >>conftest.$ac_ext
9957cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958/* end confdefs.h. */
9959#if HAVE_DLFCN_H
9960# include <dlfcn.h>
9961#endif
9962
9963int
9964main ()
9965{
9966dlopen(0, 0);
9967 ;
9968 return 0;
9969}
9970_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009971rm -f conftest.$ac_objext conftest$ac_exeext
9972if { (ac_try="$ac_link"
9973case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_link") 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989esac
9990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest$ac_exeext'
9996 { (case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999esac
10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_try") 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010006cat >>confdefs.h <<\_ACEOF
10007#define HAVE_LIBDL 1
10008_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009 libltdl_cv_func_dlopen="yes"
10010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010011 echo "$as_me: failed program was:" >&5
10012sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10015echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10016if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018else
10019 ac_check_lib_save_LIBS=$LIBS
10020LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010021cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026/* end confdefs.h. */
10027
Reid Spencera773bd52006-08-04 18:18:08 +000010028/* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010031#ifdef __cplusplus
10032extern "C"
10033#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034char dlopen ();
10035int
10036main ()
10037{
Reid Spencera773bd52006-08-04 18:18:08 +000010038return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010039 ;
10040 return 0;
10041}
10042_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010043rm -f conftest.$ac_objext conftest$ac_exeext
10044if { (ac_try="$ac_link"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061esac
10062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077 ac_cv_lib_svld_dlopen=yes
10078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010079 echo "$as_me: failed program was:" >&5
10080sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010084
Bill Wendlingebcceee2009-04-18 11:20:33 +000010085rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010086 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087LIBS=$ac_check_lib_save_LIBS
10088fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010089{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10090echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10091if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010093cat >>confdefs.h <<\_ACEOF
10094#define HAVE_LIBDL 1
10095_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096
10097 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10098else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010099 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10100echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10101if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010103else
10104 ac_check_lib_save_LIBS=$LIBS
10105LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010106cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h. */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010111/* end confdefs.h. */
10112
Reid Spencera773bd52006-08-04 18:18:08 +000010113/* Override any GCC internal prototype to avoid an error.
10114 Use char because int might match the return type of a GCC
10115 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010116#ifdef __cplusplus
10117extern "C"
10118#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119char dld_link ();
10120int
10121main ()
10122{
Reid Spencera773bd52006-08-04 18:18:08 +000010123return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124 ;
10125 return 0;
10126}
10127_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010128rm -f conftest.$ac_objext conftest$ac_exeext
10129if { (ac_try="$ac_link"
10130case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133esac
10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_link") 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10143 { (case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146esac
10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_try") 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10156esac
10157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_try") 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162 ac_cv_lib_dld_dld_link=yes
10163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010164 echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010169
Bill Wendlingebcceee2009-04-18 11:20:33 +000010170rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010171 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172LIBS=$ac_check_lib_save_LIBS
10173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010174{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10175echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10176if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010178cat >>confdefs.h <<\_ACEOF
10179#define HAVE_DLD 1
10180_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181
10182 LIBADD_DL="$LIBADD_DL -ldld"
10183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010184 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10185echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10186if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188else
10189 cat >conftest.$ac_ext <<_ACEOF
10190/* confdefs.h. */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h. */
10195/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10197#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010199/* System header to define __stub macros and hopefully few prototypes,
10200 which can conflict with char _dyld_func_lookup (); below.
10201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10202 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010204#ifdef __STDC__
10205# include <limits.h>
10206#else
10207# include <assert.h>
10208#endif
10209
10210#undef _dyld_func_lookup
10211
10212/* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10215#ifdef __cplusplus
10216extern "C"
10217#endif
10218char _dyld_func_lookup ();
10219/* The GNU C library defines this for functions which it implements
10220 to always fail with ENOSYS. Some functions are actually named
10221 something starting with __ and the normal name is an alias. */
10222#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10223choke me
10224#endif
10225
10226int
10227main ()
10228{
10229return _dyld_func_lookup ();
10230 ;
10231 return 0;
10232}
10233_ACEOF
10234rm -f conftest.$ac_objext conftest$ac_exeext
10235if { (ac_try="$ac_link"
10236case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_link") 2>conftest.er1
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10249 { (case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_try") 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; } &&
10258 { ac_try='test -s conftest$ac_exeext'
10259 { (case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262esac
10263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_try") 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 ac_cv_func__dyld_func_lookup=yes
10269else
10270 echo "$as_me: failed program was:" >&5
10271sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274fi
Reid Spencera773bd52006-08-04 18:18:08 +000010275
Bill Wendlingebcceee2009-04-18 11:20:33 +000010276rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010277 conftest$ac_exeext conftest.$ac_ext
10278fi
10279{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10280echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10281if test $ac_cv_func__dyld_func_lookup = yes; then
10282
10283cat >>confdefs.h <<\_ACEOF
10284#define HAVE_DYLD 1
10285_ACEOF
10286
10287fi
10288
10289
10290fi
10291
10292
10293fi
10294
10295
10296fi
10297
10298rm -f core conftest.err conftest.$ac_objext \
10299 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300
10301fi
10302
10303
10304fi
10305
10306
10307fi
10308
10309
10310if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10311then
10312 lt_save_LIBS="$LIBS"
10313 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010314
10315for ac_func in dlerror
10316do
10317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10318{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10320if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322else
10323 cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h. */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h. */
10329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331#define $ac_func innocuous_$ac_func
10332
10333/* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char $ac_func (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10337
10338#ifdef __STDC__
10339# include <limits.h>
10340#else
10341# include <assert.h>
10342#endif
10343
10344#undef $ac_func
10345
10346/* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10349#ifdef __cplusplus
10350extern "C"
10351#endif
10352char $ac_func ();
10353/* The GNU C library defines this for functions which it implements
10354 to always fail with ENOSYS. Some functions are actually named
10355 something starting with __ and the normal name is an alias. */
10356#if defined __stub_$ac_func || defined __stub___$ac_func
10357choke me
10358#endif
10359
10360int
10361main ()
10362{
10363return $ac_func ();
10364 ;
10365 return 0;
10366}
10367_ACEOF
10368rm -f conftest.$ac_objext conftest$ac_exeext
10369if { (ac_try="$ac_link"
10370case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373esac
10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_link") 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386esac
10387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; } &&
10392 { ac_try='test -s conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_try") 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 eval "$as_ac_var=yes"
10403else
10404 echo "$as_me: failed program was:" >&5
10405sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 eval "$as_ac_var=no"
10408fi
10409
10410rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412fi
10413ac_res=`eval echo '${'$as_ac_var'}'`
10414 { echo "$as_me:$LINENO: result: $ac_res" >&5
10415echo "${ECHO_T}$ac_res" >&6; }
10416if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419_ACEOF
10420
10421fi
10422done
10423
10424 LIBS="$lt_save_LIBS"
10425fi
10426ac_ext=c
10427ac_cpp='$CPP $CPPFLAGS'
10428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10430ac_compiler_gnu=$ac_cv_c_compiler_gnu
10431
10432
10433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010434{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10435echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10436if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438else
10439 ac_cv_sys_symbol_underscore=no
10440 cat > conftest.$ac_ext <<EOF
10441void nm_test_func(){}
10442int main(){nm_test_func;return 0;}
10443EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 (eval $ac_compile) 2>&5
10446 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449 # Now try to grab the symbols.
10450 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010451 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 +000010452 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10453 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456 # See whether the symbols have a leading underscore.
10457 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10458 ac_cv_sys_symbol_underscore=yes
10459 else
10460 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10461 :
10462 else
10463 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10464 fi
10465 fi
10466 else
10467 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10468 fi
10469 else
10470 echo "configure: failed program was:" >&5
10471 cat conftest.c >&5
10472 fi
10473 rm -rf conftest*
10474
10475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010476{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10477echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478
10479
10480if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10481 if test x"$libltdl_cv_func_dlopen" = xyes ||
10482 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010483 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10484echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10485if test "${libltdl_cv_need_uscore+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487else
10488 libltdl_cv_need_uscore=unknown
10489 save_LIBS="$LIBS"
10490 LIBS="$LIBS $LIBADD_DL"
10491 if test "$cross_compiling" = yes; then :
10492 libltdl_cv_need_uscore=cross
10493else
10494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10495 lt_status=$lt_dlunknown
10496 cat > conftest.$ac_ext <<EOF
Richard Smithd31bd242013-02-08 22:55:10 +000010497#line 10497 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498#include "confdefs.h"
10499
10500#if HAVE_DLFCN_H
10501#include <dlfcn.h>
10502#endif
10503
10504#include <stdio.h>
10505
10506#ifdef RTLD_GLOBAL
10507# define LT_DLGLOBAL RTLD_GLOBAL
10508#else
10509# ifdef DL_GLOBAL
10510# define LT_DLGLOBAL DL_GLOBAL
10511# else
10512# define LT_DLGLOBAL 0
10513# endif
10514#endif
10515
10516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10517 find out it does not work in some platform. */
10518#ifndef LT_DLLAZY_OR_NOW
10519# ifdef RTLD_LAZY
10520# define LT_DLLAZY_OR_NOW RTLD_LAZY
10521# else
10522# ifdef DL_LAZY
10523# define LT_DLLAZY_OR_NOW DL_LAZY
10524# else
10525# ifdef RTLD_NOW
10526# define LT_DLLAZY_OR_NOW RTLD_NOW
10527# else
10528# ifdef DL_NOW
10529# define LT_DLLAZY_OR_NOW DL_NOW
10530# else
10531# define LT_DLLAZY_OR_NOW 0
10532# endif
10533# endif
10534# endif
10535# endif
10536#endif
10537
10538#ifdef __cplusplus
10539extern "C" void exit (int);
10540#endif
10541
10542void fnord() { int i=42;}
10543int main ()
10544{
10545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10546 int status = $lt_dlunknown;
10547
10548 if (self)
10549 {
10550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10551 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10552 /* dlclose (self); */
10553 }
Reid Spencera773bd52006-08-04 18:18:08 +000010554 else
10555 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556
10557 exit (status);
10558}
10559EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561 (eval $ac_link) 2>&5
10562 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010565 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 lt_status=$?
10567 case x$lt_status in
10568 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10569 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010570 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010571 esac
10572 else :
10573 # compilation failed
10574
10575 fi
10576fi
10577rm -fr conftest*
10578
10579 LIBS="$save_LIBS"
10580
10581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010582{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10583echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584 fi
10585fi
10586
10587if test x"$libltdl_cv_need_uscore" = xyes; then
10588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010589cat >>confdefs.h <<\_ACEOF
10590#define NEED_USCORE 1
10591_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010592
10593fi
10594
10595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010596{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10597echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10598if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600else
10601 # PORTME does your system automatically load deplibs for dlopen?
10602 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10603 # For now, we just catch OSes we know something about -- in the
10604 # future, we'll try test this programmatically.
10605 libltdl_cv_sys_dlopen_deplibs=unknown
10606 case "$host_os" in
10607 aix3*|aix4.1.*|aix4.2.*)
10608 # Unknown whether this is true for these versions of AIX, but
10609 # we want this `case' here to explicitly catch those versions.
10610 libltdl_cv_sys_dlopen_deplibs=unknown
10611 ;;
10612 aix[45]*)
10613 libltdl_cv_sys_dlopen_deplibs=yes
10614 ;;
10615 darwin*)
10616 # Assuming the user has installed a libdl from somewhere, this is true
10617 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10618 libltdl_cv_sys_dlopen_deplibs=yes
10619 ;;
10620 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10621 # GNU and its variants, using gnu ld.so (Glibc)
10622 libltdl_cv_sys_dlopen_deplibs=yes
10623 ;;
10624 hpux10*|hpux11*)
10625 libltdl_cv_sys_dlopen_deplibs=yes
10626 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010627 interix*)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10629 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630 irix[12345]*|irix6.[01]*)
10631 # Catch all versions of IRIX before 6.2, and indicate that we don't
10632 # know how it worked for any of those versions.
10633 libltdl_cv_sys_dlopen_deplibs=unknown
10634 ;;
10635 irix*)
10636 # The case above catches anything before 6.2, and it's known that
10637 # at 6.2 and later dlopen does load deplibs.
10638 libltdl_cv_sys_dlopen_deplibs=yes
10639 ;;
10640 netbsd*)
10641 libltdl_cv_sys_dlopen_deplibs=yes
10642 ;;
10643 openbsd*)
10644 libltdl_cv_sys_dlopen_deplibs=yes
10645 ;;
10646 osf[1234]*)
10647 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10648 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010649 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650 libltdl_cv_sys_dlopen_deplibs=no
10651 ;;
10652 osf5.0|osf5.0a|osf5.1)
10653 # dlopen *does* load deplibs and with the right loader patch applied
10654 # it even uses RPATH in a shared library to search for shared objects
10655 # that the library depends on, but there's no easy way to know if that
10656 # patch is installed. Since this is the case, all we can really
10657 # say is unknown -- it depends on the patch being installed. If
10658 # it is, this changes to `yes'. Without it, it would be `no'.
10659 libltdl_cv_sys_dlopen_deplibs=unknown
10660 ;;
10661 osf*)
10662 # the two cases above should catch all versions of osf <= 5.1. Read
10663 # the comments above for what we know about them.
10664 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10665 # is used to find them so we can finally say `yes'.
10666 libltdl_cv_sys_dlopen_deplibs=yes
10667 ;;
10668 solaris*)
10669 libltdl_cv_sys_dlopen_deplibs=yes
10670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10672 libltdl_cv_sys_dlopen_deplibs=yes
10673 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674 esac
10675
10676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010677{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10678echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010681cat >>confdefs.h <<\_ACEOF
10682#define LTDL_DLOPEN_DEPLIBS 1
10683_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684
10685fi
10686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010687
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010689do
10690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696fi
10697ac_res=`eval echo '${'$as_ac_Header'}'`
10698 { echo "$as_me:$LINENO: result: $ac_res" >&5
10699echo "${ECHO_T}$ac_res" >&6; }
10700else
10701 # Is the header compilable?
10702{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10704cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h. */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h. */
10710$ac_includes_default
10711#include <$ac_header>
10712_ACEOF
10713rm -f conftest.$ac_objext
10714if { (ac_try="$ac_compile"
10715case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718esac
10719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_compile") 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731esac
10732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest.$ac_objext'
10738 { (case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741esac
10742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_try") 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 ac_header_compiler=yes
10748else
10749 echo "$as_me: failed program was:" >&5
10750sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 ac_header_compiler=no
10753fi
10754
10755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10757echo "${ECHO_T}$ac_header_compiler" >&6; }
10758
10759# Is the header present?
10760{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10762cat >conftest.$ac_ext <<_ACEOF
10763/* confdefs.h. */
10764_ACEOF
10765cat confdefs.h >>conftest.$ac_ext
10766cat >>conftest.$ac_ext <<_ACEOF
10767/* end confdefs.h. */
10768#include <$ac_header>
10769_ACEOF
10770if { (ac_try="$ac_cpp conftest.$ac_ext"
10771case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774esac
10775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } >/dev/null; then
10783 if test -s conftest.err; then
10784 ac_cpp_err=$ac_c_preproc_warn_flag
10785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10786 else
10787 ac_cpp_err=
10788 fi
10789else
10790 ac_cpp_err=yes
10791fi
10792if test -z "$ac_cpp_err"; then
10793 ac_header_preproc=yes
10794else
10795 echo "$as_me: failed program was:" >&5
10796sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 ac_header_preproc=no
10799fi
10800
10801rm -f conftest.err conftest.$ac_ext
10802{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10803echo "${ECHO_T}$ac_header_preproc" >&6; }
10804
10805# So? What about this header?
10806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10807 yes:no: )
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10811echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10812 ac_header_preproc=yes
10813 ;;
10814 no:yes:* )
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10816echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10818echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10820echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10822echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10826echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10827 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010828## ------------------------------------ ##
10829## Report this to http://llvm.org/bugs/ ##
10830## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831_ASBOX
10832 ) | sed "s/^/$as_me: WARNING: /" >&2
10833 ;;
10834esac
10835{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839else
10840 eval "$as_ac_Header=\$ac_header_preproc"
10841fi
10842ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844echo "${ECHO_T}$ac_res" >&6; }
10845
10846fi
10847if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850_ACEOF
10851
10852fi
10853
10854done
10855
10856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010857{ echo "$as_me:$LINENO: checking for error_t" >&5
10858echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10859if test "${ac_cv_type_error_t+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861else
10862 cat >conftest.$ac_ext <<_ACEOF
10863/* confdefs.h. */
10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
10868#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010869# include <argz.h>
10870#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010871
10872typedef error_t ac__type_new_;
10873int
10874main ()
10875{
10876if ((ac__type_new_ *) 0)
10877 return 0;
10878if (sizeof (ac__type_new_))
10879 return 0;
10880 ;
10881 return 0;
10882}
10883_ACEOF
10884rm -f conftest.$ac_objext
10885if { (ac_try="$ac_compile"
10886case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_compile") 2>conftest.er1
10892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902esac
10903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest.$ac_objext'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912esac
10913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 ac_cv_type_error_t=yes
10919else
10920 echo "$as_me: failed program was:" >&5
10921sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 ac_cv_type_error_t=no
10924fi
10925
10926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927fi
10928{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10929echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10930if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010931
10932cat >>confdefs.h <<_ACEOF
10933#define HAVE_ERROR_T 1
10934_ACEOF
10935
10936
10937else
10938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010939cat >>confdefs.h <<\_ACEOF
10940#define error_t int
10941_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942
10943fi
10944
10945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010946
10947
10948
10949
10950
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010951for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010952do
10953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10954{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10956if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10958else
10959 cat >conftest.$ac_ext <<_ACEOF
10960/* confdefs.h. */
10961_ACEOF
10962cat confdefs.h >>conftest.$ac_ext
10963cat >>conftest.$ac_ext <<_ACEOF
10964/* end confdefs.h. */
10965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10967#define $ac_func innocuous_$ac_func
10968
10969/* System header to define __stub macros and hopefully few prototypes,
10970 which can conflict with char $ac_func (); below.
10971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10972 <limits.h> exists even on freestanding compilers. */
10973
10974#ifdef __STDC__
10975# include <limits.h>
10976#else
10977# include <assert.h>
10978#endif
10979
10980#undef $ac_func
10981
10982/* Override any GCC internal prototype to avoid an error.
10983 Use char because int might match the return type of a GCC
10984 builtin and then its argument prototype would still apply. */
10985#ifdef __cplusplus
10986extern "C"
10987#endif
10988char $ac_func ();
10989/* The GNU C library defines this for functions which it implements
10990 to always fail with ENOSYS. Some functions are actually named
10991 something starting with __ and the normal name is an alias. */
10992#if defined __stub_$ac_func || defined __stub___$ac_func
10993choke me
10994#endif
10995
10996int
10997main ()
10998{
10999return $ac_func ();
11000 ;
11001 return 0;
11002}
11003_ACEOF
11004rm -f conftest.$ac_objext conftest$ac_exeext
11005if { (ac_try="$ac_link"
11006case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_link") 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11019 { (case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11022esac
11023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_try") 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest$ac_exeext'
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032esac
11033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 eval "$as_ac_var=yes"
11039else
11040 echo "$as_me: failed program was:" >&5
11041sed 's/^/| /' conftest.$ac_ext >&5
11042
11043 eval "$as_ac_var=no"
11044fi
11045
11046rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048fi
11049ac_res=`eval echo '${'$as_ac_var'}'`
11050 { echo "$as_me:$LINENO: result: $ac_res" >&5
11051echo "${ECHO_T}$ac_res" >&6; }
11052if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055_ACEOF
11056
11057fi
11058done
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011079
11080
11081
11082
11083
11084
11085
11086
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11088 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011089do
11090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096fi
11097ac_res=`eval echo '${'$as_ac_Header'}'`
11098 { echo "$as_me:$LINENO: result: $ac_res" >&5
11099echo "${ECHO_T}$ac_res" >&6; }
11100else
11101 # Is the header compilable?
11102{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11104cat >conftest.$ac_ext <<_ACEOF
11105/* confdefs.h. */
11106_ACEOF
11107cat confdefs.h >>conftest.$ac_ext
11108cat >>conftest.$ac_ext <<_ACEOF
11109/* end confdefs.h. */
11110$ac_includes_default
11111#include <$ac_header>
11112_ACEOF
11113rm -f conftest.$ac_objext
11114if { (ac_try="$ac_compile"
11115case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118esac
11119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_compile") 2>conftest.er1
11121 ac_status=$?
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
11127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11128 { (case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11131esac
11132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_try") 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141esac
11142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_try") 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_header_compiler=yes
11148else
11149 echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 ac_header_compiler=no
11153fi
11154
11155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11157echo "${ECHO_T}$ac_header_compiler" >&6; }
11158
11159# Is the header present?
11160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11162cat >conftest.$ac_ext <<_ACEOF
11163/* confdefs.h. */
11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
11168#include <$ac_header>
11169_ACEOF
11170if { (ac_try="$ac_cpp conftest.$ac_ext"
11171case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174esac
11175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } >/dev/null; then
11183 if test -s conftest.err; then
11184 ac_cpp_err=$ac_c_preproc_warn_flag
11185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11186 else
11187 ac_cpp_err=
11188 fi
11189else
11190 ac_cpp_err=yes
11191fi
11192if test -z "$ac_cpp_err"; then
11193 ac_header_preproc=yes
11194else
11195 echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
11198 ac_header_preproc=no
11199fi
11200
11201rm -f conftest.err conftest.$ac_ext
11202{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11203echo "${ECHO_T}$ac_header_preproc" >&6; }
11204
11205# So? What about this header?
11206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11207 yes:no: )
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11212 ac_header_preproc=yes
11213 ;;
11214 no:yes:* )
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11218echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11222echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11227 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011228## ------------------------------------ ##
11229## Report this to http://llvm.org/bugs/ ##
11230## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011231_ASBOX
11232 ) | sed "s/^/$as_me: WARNING: /" >&2
11233 ;;
11234esac
11235{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11239else
11240 eval "$as_ac_Header=\$ac_header_preproc"
11241fi
11242ac_res=`eval echo '${'$as_ac_Header'}'`
11243 { echo "$as_me:$LINENO: result: $ac_res" >&5
11244echo "${ECHO_T}$ac_res" >&6; }
11245
11246fi
11247if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250_ACEOF
11251
11252fi
11253
11254done
11255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011256
11257
11258
11259
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011261do
11262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268fi
11269ac_res=`eval echo '${'$as_ac_Header'}'`
11270 { echo "$as_me:$LINENO: result: $ac_res" >&5
11271echo "${ECHO_T}$ac_res" >&6; }
11272else
11273 # Is the header compilable?
11274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11276cat >conftest.$ac_ext <<_ACEOF
11277/* confdefs.h. */
11278_ACEOF
11279cat confdefs.h >>conftest.$ac_ext
11280cat >>conftest.$ac_ext <<_ACEOF
11281/* end confdefs.h. */
11282$ac_includes_default
11283#include <$ac_header>
11284_ACEOF
11285rm -f conftest.$ac_objext
11286if { (ac_try="$ac_compile"
11287case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11300 { (case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_try") 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_try") 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_header_compiler=yes
11320else
11321 echo "$as_me: failed program was:" >&5
11322sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 ac_header_compiler=no
11325fi
11326
11327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329echo "${ECHO_T}$ac_header_compiler" >&6; }
11330
11331# Is the header present?
11332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334cat >conftest.$ac_ext <<_ACEOF
11335/* confdefs.h. */
11336_ACEOF
11337cat confdefs.h >>conftest.$ac_ext
11338cat >>conftest.$ac_ext <<_ACEOF
11339/* end confdefs.h. */
11340#include <$ac_header>
11341_ACEOF
11342if { (ac_try="$ac_cpp conftest.$ac_ext"
11343case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346esac
11347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } >/dev/null; then
11355 if test -s conftest.err; then
11356 ac_cpp_err=$ac_c_preproc_warn_flag
11357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11358 else
11359 ac_cpp_err=
11360 fi
11361else
11362 ac_cpp_err=yes
11363fi
11364if test -z "$ac_cpp_err"; then
11365 ac_header_preproc=yes
11366else
11367 echo "$as_me: failed program was:" >&5
11368sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 ac_header_preproc=no
11371fi
11372
11373rm -f conftest.err conftest.$ac_ext
11374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11375echo "${ECHO_T}$ac_header_preproc" >&6; }
11376
11377# So? What about this header?
11378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11379 yes:no: )
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11384 ac_header_preproc=yes
11385 ;;
11386 no:yes:* )
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11399 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011400## ------------------------------------ ##
11401## Report this to http://llvm.org/bugs/ ##
11402## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011403_ASBOX
11404 ) | sed "s/^/$as_me: WARNING: /" >&2
11405 ;;
11406esac
11407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 eval "$as_ac_Header=\$ac_header_preproc"
11413fi
11414ac_res=`eval echo '${'$as_ac_Header'}'`
11415 { echo "$as_me:$LINENO: result: $ac_res" >&5
11416echo "${ECHO_T}$ac_res" >&6; }
11417
11418fi
11419if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422_ACEOF
11423
11424fi
11425
11426done
11427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011428
11429
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011431do
11432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438fi
11439ac_res=`eval echo '${'$as_ac_Header'}'`
11440 { echo "$as_me:$LINENO: result: $ac_res" >&5
11441echo "${ECHO_T}$ac_res" >&6; }
11442else
11443 # Is the header compilable?
11444{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11446cat >conftest.$ac_ext <<_ACEOF
11447/* confdefs.h. */
11448_ACEOF
11449cat confdefs.h >>conftest.$ac_ext
11450cat >>conftest.$ac_ext <<_ACEOF
11451/* end confdefs.h. */
11452$ac_includes_default
11453#include <$ac_header>
11454_ACEOF
11455rm -f conftest.$ac_objext
11456if { (ac_try="$ac_compile"
11457case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460esac
11461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_compile") 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11470 { (case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473esac
11474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_try") 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11483esac
11484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_try") 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 ac_header_compiler=yes
11490else
11491 echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494 ac_header_compiler=no
11495fi
11496
11497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11499echo "${ECHO_T}$ac_header_compiler" >&6; }
11500
11501# Is the header present?
11502{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11503echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11504cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h. */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h. */
11510#include <$ac_header>
11511_ACEOF
11512if { (ac_try="$ac_cpp conftest.$ac_ext"
11513case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516esac
11517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } >/dev/null; then
11525 if test -s conftest.err; then
11526 ac_cpp_err=$ac_c_preproc_warn_flag
11527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11528 else
11529 ac_cpp_err=
11530 fi
11531else
11532 ac_cpp_err=yes
11533fi
11534if test -z "$ac_cpp_err"; then
11535 ac_header_preproc=yes
11536else
11537 echo "$as_me: failed program was:" >&5
11538sed 's/^/| /' conftest.$ac_ext >&5
11539
11540 ac_header_preproc=no
11541fi
11542
11543rm -f conftest.err conftest.$ac_ext
11544{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11545echo "${ECHO_T}$ac_header_preproc" >&6; }
11546
11547# So? What about this header?
11548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11549 yes:no: )
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11551echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11553echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11554 ac_header_preproc=yes
11555 ;;
11556 no:yes:* )
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11562echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11564echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11568echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11569 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011570## ------------------------------------ ##
11571## Report this to http://llvm.org/bugs/ ##
11572## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011573_ASBOX
11574 ) | sed "s/^/$as_me: WARNING: /" >&2
11575 ;;
11576esac
11577{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11581else
11582 eval "$as_ac_Header=\$ac_header_preproc"
11583fi
11584ac_res=`eval echo '${'$as_ac_Header'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586echo "${ECHO_T}$ac_res" >&6; }
11587
11588fi
11589if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592_ACEOF
11593 break
11594fi
11595
11596done
11597
11598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011599
11600
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011602do
11603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608else
11609 cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11617#define $ac_func innocuous_$ac_func
11618
11619/* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11623
11624#ifdef __STDC__
11625# include <limits.h>
11626#else
11627# include <assert.h>
11628#endif
11629
11630#undef $ac_func
11631
11632/* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635#ifdef __cplusplus
11636extern "C"
11637#endif
11638char $ac_func ();
11639/* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642#if defined __stub_$ac_func || defined __stub___$ac_func
11643choke me
11644#endif
11645
11646int
11647main ()
11648{
11649return $ac_func ();
11650 ;
11651 return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext conftest$ac_exeext
11655if { (ac_try="$ac_link"
11656case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659esac
11660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_link") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11672esac
11673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11688 eval "$as_ac_var=yes"
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 eval "$as_ac_var=no"
11694fi
11695
11696rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698fi
11699ac_res=`eval echo '${'$as_ac_var'}'`
11700 { echo "$as_me:$LINENO: result: $ac_res" >&5
11701echo "${ECHO_T}$ac_res" >&6; }
11702if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705_ACEOF
11706 break
11707fi
11708done
11709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011710
11711
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011713do
11714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11715{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719else
11720 cat >conftest.$ac_ext <<_ACEOF
11721/* confdefs.h. */
11722_ACEOF
11723cat confdefs.h >>conftest.$ac_ext
11724cat >>conftest.$ac_ext <<_ACEOF
11725/* end confdefs.h. */
11726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11728#define $ac_func innocuous_$ac_func
11729
11730/* System header to define __stub macros and hopefully few prototypes,
11731 which can conflict with char $ac_func (); below.
11732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11733 <limits.h> exists even on freestanding compilers. */
11734
11735#ifdef __STDC__
11736# include <limits.h>
11737#else
11738# include <assert.h>
11739#endif
11740
11741#undef $ac_func
11742
11743/* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746#ifdef __cplusplus
11747extern "C"
11748#endif
11749char $ac_func ();
11750/* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753#if defined __stub_$ac_func || defined __stub___$ac_func
11754choke me
11755#endif
11756
11757int
11758main ()
11759{
11760return $ac_func ();
11761 ;
11762 return 0;
11763}
11764_ACEOF
11765rm -f conftest.$ac_objext conftest$ac_exeext
11766if { (ac_try="$ac_link"
11767case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770esac
11771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_link") 2>conftest.er1
11773 ac_status=$?
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783esac
11784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11799 eval "$as_ac_var=yes"
11800else
11801 echo "$as_me: failed program was:" >&5
11802sed 's/^/| /' conftest.$ac_ext >&5
11803
11804 eval "$as_ac_var=no"
11805fi
11806
11807rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11809fi
11810ac_res=`eval echo '${'$as_ac_var'}'`
11811 { echo "$as_me:$LINENO: result: $ac_res" >&5
11812echo "${ECHO_T}$ac_res" >&6; }
11813if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816_ACEOF
11817 break
11818fi
11819done
11820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011821
11822
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011824do
11825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11826{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11828if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830else
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11839#define $ac_func innocuous_$ac_func
11840
11841/* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char $ac_func (); below.
11843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844 <limits.h> exists even on freestanding compilers. */
11845
11846#ifdef __STDC__
11847# include <limits.h>
11848#else
11849# include <assert.h>
11850#endif
11851
11852#undef $ac_func
11853
11854/* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11857#ifdef __cplusplus
11858extern "C"
11859#endif
11860char $ac_func ();
11861/* The GNU C library defines this for functions which it implements
11862 to always fail with ENOSYS. Some functions are actually named
11863 something starting with __ and the normal name is an alias. */
11864#if defined __stub_$ac_func || defined __stub___$ac_func
11865choke me
11866#endif
11867
11868int
11869main ()
11870{
11871return $ac_func ();
11872 ;
11873 return 0;
11874}
11875_ACEOF
11876rm -f conftest.$ac_objext conftest$ac_exeext
11877if { (ac_try="$ac_link"
11878case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11881esac
11882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_link") 2>conftest.er1
11884 ac_status=$?
11885 grep -v '^ *+' conftest.er1 >conftest.err
11886 rm -f conftest.er1
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11891 { (case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11894esac
11895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_try") 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11910 eval "$as_ac_var=yes"
11911else
11912 echo "$as_me: failed program was:" >&5
11913sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 eval "$as_ac_var=no"
11916fi
11917
11918rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11920fi
11921ac_res=`eval echo '${'$as_ac_var'}'`
11922 { echo "$as_me:$LINENO: result: $ac_res" >&5
11923echo "${ECHO_T}$ac_res" >&6; }
11924if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927_ACEOF
11928 break
11929fi
11930done
11931
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011932
11933
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011935do
11936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
11948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950#define $ac_func innocuous_$ac_func
11951
11952/* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11956
11957#ifdef __STDC__
11958# include <limits.h>
11959#else
11960# include <assert.h>
11961#endif
11962
11963#undef $ac_func
11964
11965/* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968#ifdef __cplusplus
11969extern "C"
11970#endif
11971char $ac_func ();
11972/* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975#if defined __stub_$ac_func || defined __stub___$ac_func
11976choke me
11977#endif
11978
11979int
11980main ()
11981{
11982return $ac_func ();
11983 ;
11984 return 0;
11985}
11986_ACEOF
11987rm -f conftest.$ac_objext conftest$ac_exeext
11988if { (ac_try="$ac_link"
11989case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992esac
11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005esac
12006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest$ac_exeext'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12022else
12023 echo "$as_me: failed program was:" >&5
12024sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 eval "$as_ac_var=no"
12027fi
12028
12029rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12031fi
12032ac_res=`eval echo '${'$as_ac_var'}'`
12033 { echo "$as_me:$LINENO: result: $ac_res" >&5
12034echo "${ECHO_T}$ac_res" >&6; }
12035if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012038_ACEOF
12039
12040fi
12041done
12042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012043
12044
12045
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012047do
12048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12049{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12062#define $ac_func innocuous_$ac_func
12063
12064/* System header to define __stub macros and hopefully few prototypes,
12065 which can conflict with char $ac_func (); below.
12066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12067 <limits.h> exists even on freestanding compilers. */
12068
12069#ifdef __STDC__
12070# include <limits.h>
12071#else
12072# include <assert.h>
12073#endif
12074
12075#undef $ac_func
12076
12077/* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12080#ifdef __cplusplus
12081extern "C"
12082#endif
12083char $ac_func ();
12084/* The GNU C library defines this for functions which it implements
12085 to always fail with ENOSYS. Some functions are actually named
12086 something starting with __ and the normal name is an alias. */
12087#if defined __stub_$ac_func || defined __stub___$ac_func
12088choke me
12089#endif
12090
12091int
12092main ()
12093{
12094return $ac_func ();
12095 ;
12096 return 0;
12097}
12098_ACEOF
12099rm -f conftest.$ac_objext conftest$ac_exeext
12100if { (ac_try="$ac_link"
12101case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104esac
12105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_link") 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12114 { (case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_try") 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; } &&
12123 { ac_try='test -s conftest$ac_exeext'
12124 { (case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127esac
12128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_try") 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 eval "$as_ac_var=yes"
12134else
12135 echo "$as_me: failed program was:" >&5
12136sed 's/^/| /' conftest.$ac_ext >&5
12137
12138 eval "$as_ac_var=no"
12139fi
12140
12141rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12143fi
12144ac_res=`eval echo '${'$as_ac_var'}'`
12145 { echo "$as_me:$LINENO: result: $ac_res" >&5
12146echo "${ECHO_T}$ac_res" >&6; }
12147if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012150_ACEOF
12151
12152fi
12153done
12154
12155
Douglas Gregor01746742009-05-11 18:05:52 +000012156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012157{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12158echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012159
Reid Spencer86901802004-12-08 23:07:27 +000012160ICC=no
12161IXX=no
12162case $CC in
12163 icc*|icpc*)
12164 ICC=yes
12165 IXX=yes
12166 ;;
12167 *)
12168 ;;
12169esac
12170
Duraid Madina937c60a2006-02-15 07:57:42 +000012171if test "$GCC" != "yes" && test "$ICC" != "yes"
12172then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012173 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12174echo "$as_me: error: gcc|icc required but not found" >&2;}
12175 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012176fi
12177
12178if test "$GXX" != "yes" && test "$IXX" != "yes"
12179then
Eric Christopher73e36da2010-12-08 02:02:14 +000012180 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12181echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012182 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012183fi
12184
Reid Spencer86901802004-12-08 23:07:27 +000012185if test "$GCC" = "yes"
12186then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012187 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000012188
12189 /* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h. */
12194
12195 #if !defined(__GNUC__) || __GNUC__ < 3
12196 #error Unsupported GCC version
12197 #endif
12198
Chris Lattner399c7c72008-02-05 19:43:53 +000012199
12200_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012201rm -f conftest.$ac_objext
12202if { (ac_try="$ac_compile"
12203case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206esac
12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_compile") 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12241echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12242 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012244
Chris Lattner399c7c72008-02-05 19:43:53 +000012245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012246fi
12247
12248if test -z "$llvm_cv_gnu_make_command"
12249then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12251echo "$as_me: error: GNU Make required but not found" >&2;}
12252 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012253fi
12254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012255{ echo "$as_me:$LINENO: result: ok" >&5
12256echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012258{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12259echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithd31bd242013-02-08 22:55:10 +000012260NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012261
Richard Smithd31bd242013-02-08 22:55:10 +000012262NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012263
Richard Smithd31bd242013-02-08 22:55:10 +000012264NO_NESTED_ANON_TYPES=`$CXX -Werror -Wnested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types`
Richard Smith1983f542013-01-31 22:19:12 +000012265
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012266COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12267
David Greened2f82162013-01-09 22:11:13 +000012268if test "$GXX" = "yes"
12269then
Richard Smithd31bd242013-02-08 22:55:10 +000012270 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
David Greened2f82162013-01-09 22:11:13 +000012271
12272 if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12273 then
Richard Smithd31bd242013-02-08 22:55:10 +000012274 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greened2f82162013-01-09 22:11:13 +000012275
12276 else
David Greene0b198ca2013-01-15 18:21:15 +000012277 gxx_version=`$CXX -dumpversion`
12278 gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12279 gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12280 gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12281
12282 if test "$gxx_version_major" -ge "4" \
12283 && test "$gxx_version_minor" -ge "7"; then
12284 NO_UNINITIALIZED=
12285 else
12286 NO_MAYBE_UNINITIALIZED=
Richard Smithd31bd242013-02-08 22:55:10 +000012287 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene0b198ca2013-01-15 18:21:15 +000012288
12289 fi
David Greened2f82162013-01-09 22:11:13 +000012290 fi
12291else
12292 NO_UNINITIALIZED=
12293 NO_MAYBE_UNINITIALIZED=
12294fi
Richard Smith1983f542013-01-31 22:19:12 +000012295{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12296echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
David Greened2f82162013-01-09 22:11:13 +000012297
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012298
Saleem Abdulrasool581126e2013-01-30 04:44:17 +000012299# Check whether --with-python was given.
12300if test "${with_python+set}" = set; then
12301 withval=$with_python; PYTHON="$withval"
12302fi
12303
12304
12305if test -n "$PYTHON" && test -x "$PYTHON" ; then
12306 { echo "$as_me:$LINENO: checking for python" >&5
12307echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12308 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12309echo "${ECHO_T}user defined: $with_python" >&6; }
12310else
12311 if test -n "$PYTHON" ; then
12312 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12313echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12314 fi
12315
12316 # Extract the first word of "python python2 python26", so it can be a program name with args.
12317set dummy python python2 python26; ac_word=$2
12318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12320if test "${ac_cv_path_PYTHON+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323 case $PYTHON in
12324 [\\/]* | ?:[\\/]*)
12325 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12326 ;;
12327 *)
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329for as_dir in $PATH
12330do
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12338 fi
12339done
12340done
12341IFS=$as_save_IFS
12342
12343 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12344echo "${ECHO_T}not found" >&6; }
12345 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12346echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12347 { (exit 1); exit 1; }; }"
12348 ;;
12349esac
12350fi
12351PYTHON=$ac_cv_path_PYTHON
12352if test -n "$PYTHON"; then
12353 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12354echo "${ECHO_T}$PYTHON" >&6; }
12355else
12356 { echo "$as_me:$LINENO: result: no" >&5
12357echo "${ECHO_T}no" >&6; }
12358fi
12359
12360
12361fi
12362
12363{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12364echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12365ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12366ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12367ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12368ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12369if test "$ac_python_version_major" -eq "2" \
12370 && test "$ac_python_version_minor" -ge "5" ; then
12371 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12372echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12373else
12374 { echo "$as_me:$LINENO: result: not found" >&5
12375echo "${ECHO_T}not found" >&6; }
12376 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12377See \`config.log' for more details." >&5
12378echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12379See \`config.log' for more details." >&2;}
12380 { (exit 1); exit 1; }; }
12381fi
12382
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012384
12385{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12386echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12387if test "${ac_cv_lib_m_sin+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012389else
12390 ac_check_lib_save_LIBS=$LIBS
12391LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012392cat >conftest.$ac_ext <<_ACEOF
12393/* confdefs.h. */
12394_ACEOF
12395cat confdefs.h >>conftest.$ac_ext
12396cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012397/* end confdefs.h. */
12398
Reid Spencera773bd52006-08-04 18:18:08 +000012399/* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012402#ifdef __cplusplus
12403extern "C"
12404#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012405char sin ();
12406int
12407main ()
12408{
Reid Spencera773bd52006-08-04 18:18:08 +000012409return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012410 ;
12411 return 0;
12412}
12413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414rm -f conftest.$ac_objext conftest$ac_exeext
12415if { (ac_try="$ac_link"
12416case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_link") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442esac
12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_try") 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012448 ac_cv_lib_m_sin=yes
12449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012450 echo "$as_me: failed program was:" >&5
12451sed 's/^/| /' conftest.$ac_ext >&5
12452
12453 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012455
Bill Wendlingebcceee2009-04-18 11:20:33 +000012456rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012457 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012458LIBS=$ac_check_lib_save_LIBS
12459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012460{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12461echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12462if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012463 cat >>confdefs.h <<_ACEOF
12464#define HAVE_LIBM 1
12465_ACEOF
12466
12467 LIBS="-lm $LIBS"
12468
12469fi
12470
Jeff Cohen28783c32007-01-12 18:22:38 +000012471if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012472
12473{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12474echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12475if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012477else
12478 ac_check_lib_save_LIBS=$LIBS
12479LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012480cat >conftest.$ac_ext <<_ACEOF
12481/* confdefs.h. */
12482_ACEOF
12483cat confdefs.h >>conftest.$ac_ext
12484cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012485/* end confdefs.h. */
12486
Reid Spencer48fdf912006-06-01 19:03:21 +000012487
Reid Spencer484fc8e2006-06-01 16:55:59 +000012488int
12489main ()
12490{
Reid Spencera773bd52006-08-04 18:18:08 +000012491return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012492 ;
12493 return 0;
12494}
12495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012496rm -f conftest.$ac_objext conftest$ac_exeext
12497if { (ac_try="$ac_link"
12498case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
12502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_link") 2>conftest.er1
12504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } &&
12510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12511 { (case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12514esac
12515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_try") 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest$ac_exeext'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012530 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012532 echo "$as_me: failed program was:" >&5
12533sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012536fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012537
Bill Wendlingebcceee2009-04-18 11:20:33 +000012538rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012539 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012540LIBS=$ac_check_lib_save_LIBS
12541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012542{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12543echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12544if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012545 cat >>confdefs.h <<_ACEOF
12546#define HAVE_LIBIMAGEHLP 1
12547_ACEOF
12548
12549 LIBS="-limagehlp $LIBS"
12550
12551fi
12552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012553
12554{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12555echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12556if test "${ac_cv_lib_psapi_main+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012558else
12559 ac_check_lib_save_LIBS=$LIBS
12560LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012561cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h. */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012566/* end confdefs.h. */
12567
Reid Spencer48fdf912006-06-01 19:03:21 +000012568
Reid Spencer484fc8e2006-06-01 16:55:59 +000012569int
12570main ()
12571{
Reid Spencera773bd52006-08-04 18:18:08 +000012572return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012573 ;
12574 return 0;
12575}
12576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012577rm -f conftest.$ac_objext conftest$ac_exeext
12578if { (ac_try="$ac_link"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_link") 2>conftest.er1
12585 ac_status=$?
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12592 { (case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595esac
12596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_try") 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12605esac
12606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012611 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012613 echo "$as_me: failed program was:" >&5
12614sed 's/^/| /' conftest.$ac_ext >&5
12615
12616 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012618
Bill Wendlingebcceee2009-04-18 11:20:33 +000012619rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012620 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012621LIBS=$ac_check_lib_save_LIBS
12622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012623{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12624echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12625if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012626 cat >>confdefs.h <<_ACEOF
12627#define HAVE_LIBPSAPI 1
12628_ACEOF
12629
12630 LIBS="-lpsapi $LIBS"
12631
12632fi
12633
12634fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012636{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12637echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12638if test "${ac_cv_search_dlopen+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012640else
12641 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012642cat >conftest.$ac_ext <<_ACEOF
12643/* confdefs.h. */
12644_ACEOF
12645cat confdefs.h >>conftest.$ac_ext
12646cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012648
Reid Spencera773bd52006-08-04 18:18:08 +000012649/* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012652#ifdef __cplusplus
12653extern "C"
12654#endif
John Criswell7a73b802003-06-30 21:59:07 +000012655char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012656int
12657main ()
12658{
Reid Spencera773bd52006-08-04 18:18:08 +000012659return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012660 ;
12661 return 0;
12662}
12663_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012664for ac_lib in '' dl; do
12665 if test -z "$ac_lib"; then
12666 ac_res="none required"
12667 else
12668 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012670 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012671 rm -f conftest.$ac_objext conftest$ac_exeext
12672if { (ac_try="$ac_link"
12673case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_link") 2>conftest.er1
12679 ac_status=$?
12680 grep -v '^ *+' conftest.er1 >conftest.err
12681 rm -f conftest.er1
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
12685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12689esac
12690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest$ac_exeext'
12696 { (case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12699esac
12700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_try") 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012705 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706else
12707 echo "$as_me: failed program was:" >&5
12708sed 's/^/| /' conftest.$ac_ext >&5
12709
12710
John Criswell7a73b802003-06-30 21:59:07 +000012711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012712
Bill Wendlingebcceee2009-04-18 11:20:33 +000012713rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012714 conftest$ac_exeext
12715 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012716 break
John Criswell7a73b802003-06-30 21:59:07 +000012717fi
Reid Spencera773bd52006-08-04 18:18:08 +000012718done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012719if test "${ac_cv_search_dlopen+set}" = set; then
12720 :
Reid Spencera773bd52006-08-04 18:18:08 +000012721else
12722 ac_cv_search_dlopen=no
12723fi
12724rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012725LIBS=$ac_func_search_save_LIBS
12726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012727{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12728echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012729ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012733cat >>confdefs.h <<\_ACEOF
12734#define HAVE_DLOPEN 1
12735_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012736
12737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012738 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12739echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012740fi
12741
12742
Chandler Carruth73c35d82013-01-04 23:19:55 +000012743{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12744echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12745if test "${ac_cv_search_clock_gettime+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
12748 ac_func_search_save_LIBS=$LIBS
12749cat >conftest.$ac_ext <<_ACEOF
12750/* confdefs.h. */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
12754/* end confdefs.h. */
12755
12756/* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759#ifdef __cplusplus
12760extern "C"
12761#endif
12762char clock_gettime ();
12763int
12764main ()
12765{
12766return clock_gettime ();
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771for ac_lib in '' rt; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12774 else
12775 ac_res=-l$ac_lib
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12777 fi
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (ac_try="$ac_link"
12780case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783esac
12784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_search_clock_gettime=$ac_res
12813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817
12818fi
12819
12820rm -f core conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext
12822 if test "${ac_cv_search_clock_gettime+set}" = set; then
12823 break
12824fi
12825done
12826if test "${ac_cv_search_clock_gettime+set}" = set; then
12827 :
12828else
12829 ac_cv_search_clock_gettime=no
12830fi
12831rm conftest.$ac_ext
12832LIBS=$ac_func_search_save_LIBS
12833fi
12834{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12835echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12836ac_res=$ac_cv_search_clock_gettime
12837if test "$ac_res" != no; then
12838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839
Chandler Carruth73c35d82013-01-04 23:19:55 +000012840fi
12841
12842
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012843if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012844 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12845echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12846if test "${ac_cv_search_ffi_call+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012848else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012849 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012850cat >conftest.$ac_ext <<_ACEOF
12851/* confdefs.h. */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012855/* end confdefs.h. */
12856
12857/* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char ffi_call ();
12864int
12865main ()
12866{
12867return ffi_call ();
12868 ;
12869 return 0;
12870}
12871_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012872for ac_lib in '' ffi; do
12873 if test -z "$ac_lib"; then
12874 ac_res="none required"
12875 else
12876 ac_res=-l$ac_lib
12877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12878 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012879 rm -f conftest.$ac_objext conftest$ac_exeext
12880if { (ac_try="$ac_link"
12881case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_link") 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907esac
12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012913 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012920
Bill Wendlingebcceee2009-04-18 11:20:33 +000012921rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922 conftest$ac_exeext
12923 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012924 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012925fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012926done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927if test "${ac_cv_search_ffi_call+set}" = set; then
12928 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012929else
12930 ac_cv_search_ffi_call=no
12931fi
12932rm conftest.$ac_ext
12933LIBS=$ac_func_search_save_LIBS
12934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012935{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12936echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012937ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012938if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012941cat >>confdefs.h <<\_ACEOF
12942#define HAVE_FFI_CALL 1
12943_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012944
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012945else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012946 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12947echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12948 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012949fi
12950
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012951fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012953{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12954echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12955if test "${ac_cv_search_mallinfo+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012957else
12958 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959cat >conftest.$ac_ext <<_ACEOF
12960/* confdefs.h. */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012964/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012965
Reid Spencera773bd52006-08-04 18:18:08 +000012966/* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012969#ifdef __cplusplus
12970extern "C"
12971#endif
John Criswell7a73b802003-06-30 21:59:07 +000012972char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012973int
12974main ()
12975{
Reid Spencera773bd52006-08-04 18:18:08 +000012976return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012977 ;
12978 return 0;
12979}
12980_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012981for ac_lib in '' malloc; do
12982 if test -z "$ac_lib"; then
12983 ac_res="none required"
12984 else
12985 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012987 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012988 rm -f conftest.$ac_objext conftest$ac_exeext
12989if { (ac_try="$ac_link"
12990case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993esac
12994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_link") 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006esac
13007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016esac
13017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_try") 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013022 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013023else
13024 echo "$as_me: failed program was:" >&5
13025sed 's/^/| /' conftest.$ac_ext >&5
13026
13027
John Criswell7a73b802003-06-30 21:59:07 +000013028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029
Bill Wendlingebcceee2009-04-18 11:20:33 +000013030rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031 conftest$ac_exeext
13032 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013033 break
John Criswell7a73b802003-06-30 21:59:07 +000013034fi
Reid Spencera773bd52006-08-04 18:18:08 +000013035done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013036if test "${ac_cv_search_mallinfo+set}" = set; then
13037 :
Reid Spencera773bd52006-08-04 18:18:08 +000013038else
13039 ac_cv_search_mallinfo=no
13040fi
13041rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013042LIBS=$ac_func_search_save_LIBS
13043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13045echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013046ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050cat >>confdefs.h <<\_ACEOF
13051#define HAVE_MALLINFO 1
13052_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013053
13054fi
13055
13056
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000013057if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013058
13059{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13060echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13061if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013063else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013064 ac_check_lib_save_LIBS=$LIBS
13065LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066cat >conftest.$ac_ext <<_ACEOF
13067/* confdefs.h. */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013071/* end confdefs.h. */
13072
Reid Spencera773bd52006-08-04 18:18:08 +000013073/* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013076#ifdef __cplusplus
13077extern "C"
13078#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013079char pthread_mutex_init ();
13080int
13081main ()
13082{
Reid Spencera773bd52006-08-04 18:18:08 +000013083return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013084 ;
13085 return 0;
13086}
13087_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088rm -f conftest.$ac_objext conftest$ac_exeext
13089if { (ac_try="$ac_link"
13090case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest$ac_exeext'
13113 { (case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13116esac
13117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_try") 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013122 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124 echo "$as_me: failed program was:" >&5
13125sed 's/^/| /' conftest.$ac_ext >&5
13126
13127 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013128fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013129
Bill Wendlingebcceee2009-04-18 11:20:33 +000013130rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013131 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013132LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013133fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013134{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13135echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13136if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013137 cat >>confdefs.h <<_ACEOF
13138#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013139_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013140
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013141 LIBS="-lpthread $LIBS"
13142
Reid Spencer22177fe2005-07-12 15:24:20 +000013143fi
13144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13146echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13147if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013149else
13150 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013151cat >conftest.$ac_ext <<_ACEOF
13152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013156/* end confdefs.h. */
13157
Reid Spencera773bd52006-08-04 18:18:08 +000013158/* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013161#ifdef __cplusplus
13162extern "C"
13163#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013164char pthread_mutex_lock ();
13165int
13166main ()
13167{
Reid Spencera773bd52006-08-04 18:18:08 +000013168return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013169 ;
13170 return 0;
13171}
13172_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013173for ac_lib in '' pthread; do
13174 if test -z "$ac_lib"; then
13175 ac_res="none required"
13176 else
13177 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013179 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013180 rm -f conftest.$ac_objext conftest$ac_exeext
13181if { (ac_try="$ac_link"
13182case "(($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_link") 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13195 { (case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_try") 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; } &&
13204 { ac_try='test -s conftest$ac_exeext'
13205 { (case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13208esac
13209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_try") 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013214 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013215else
13216 echo "$as_me: failed program was:" >&5
13217sed 's/^/| /' conftest.$ac_ext >&5
13218
13219
Brian Gaeke5f268f72003-12-05 19:29:01 +000013220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013221
Bill Wendlingebcceee2009-04-18 11:20:33 +000013222rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013223 conftest$ac_exeext
13224 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013225 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013226fi
Reid Spencera773bd52006-08-04 18:18:08 +000013227done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013228if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13229 :
Reid Spencera773bd52006-08-04 18:18:08 +000013230else
13231 ac_cv_search_pthread_mutex_lock=no
13232fi
13233rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013234LIBS=$ac_func_search_save_LIBS
13235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013236{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13237echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013238ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013242cat >>confdefs.h <<\_ACEOF
13243#define HAVE_PTHREAD_MUTEX_LOCK 1
13244_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013245
13246fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013248 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13249echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13250if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013252else
13253 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254cat >conftest.$ac_ext <<_ACEOF
13255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013259/* end confdefs.h. */
13260
13261/* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13264#ifdef __cplusplus
13265extern "C"
13266#endif
13267char pthread_rwlock_init ();
13268int
13269main ()
13270{
13271return pthread_rwlock_init ();
13272 ;
13273 return 0;
13274}
13275_ACEOF
13276for ac_lib in '' pthread; do
13277 if test -z "$ac_lib"; then
13278 ac_res="none required"
13279 else
13280 ac_res=-l$ac_lib
13281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13282 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013283 rm -f conftest.$ac_objext conftest$ac_exeext
13284if { (ac_try="$ac_link"
13285case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13288esac
13289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_link") 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
13297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301esac
13302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; } &&
13307 { ac_try='test -s conftest$ac_exeext'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013317 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013318else
13319 echo "$as_me: failed program was:" >&5
13320sed 's/^/| /' conftest.$ac_ext >&5
13321
13322
Owen Andersonde8aed22009-06-16 18:20:20 +000013323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013324
Owen Andersonde8aed22009-06-16 18:20:20 +000013325rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326 conftest$ac_exeext
13327 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013328 break
13329fi
13330done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013331if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13332 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013333else
13334 ac_cv_search_pthread_rwlock_init=no
13335fi
13336rm conftest.$ac_ext
13337LIBS=$ac_func_search_save_LIBS
13338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013339{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13340echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013341ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013342if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013345cat >>confdefs.h <<\_ACEOF
13346#define HAVE_PTHREAD_RWLOCK_INIT 1
13347_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013348
13349fi
13350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013351 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13352echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13353if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013355else
13356 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357cat >conftest.$ac_ext <<_ACEOF
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013362/* end confdefs.h. */
13363
13364/* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13367#ifdef __cplusplus
13368extern "C"
13369#endif
13370char pthread_getspecific ();
13371int
13372main ()
13373{
13374return pthread_getspecific ();
13375 ;
13376 return 0;
13377}
13378_ACEOF
13379for ac_lib in '' pthread; do
13380 if test -z "$ac_lib"; then
13381 ac_res="none required"
13382 else
13383 ac_res=-l$ac_lib
13384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13385 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013386 rm -f conftest.$ac_objext conftest$ac_exeext
13387if { (ac_try="$ac_link"
13388case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_link") 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13401 { (case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404esac
13405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_try") 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013420 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013421else
13422 echo "$as_me: failed program was:" >&5
13423sed 's/^/| /' conftest.$ac_ext >&5
13424
13425
Owen Anderson27fcfe12009-06-25 23:10:26 +000013426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427
Owen Anderson27fcfe12009-06-25 23:10:26 +000013428rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013429 conftest$ac_exeext
13430 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013431 break
13432fi
13433done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013434if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13435 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013436else
13437 ac_cv_search_pthread_getspecific=no
13438fi
13439rm conftest.$ac_ext
13440LIBS=$ac_func_search_save_LIBS
13441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013442{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13443echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013444ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013445if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448cat >>confdefs.h <<\_ACEOF
13449#define HAVE_PTHREAD_GETSPECIFIC 1
13450_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013451
13452fi
13453
Reid Spencer0a262ba2005-08-24 10:07:20 +000013454fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013455
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013456
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013457# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013458if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013459 withval=$with_udis86;
13460 USE_UDIS86=1
13461
13462 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013463 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013464 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13465 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013466
13467{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13468echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13469if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013471else
13472 ac_check_lib_save_LIBS=$LIBS
13473LIBS="-ludis86 $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
Reid Spencerb6a7aa72007-01-19 17:41:47 +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 ud_init ();
13488int
13489main ()
13490{
13491return ud_init ();
13492 ;
13493 return 0;
13494}
13495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013496rm -f conftest.$ac_objext conftest$ac_exeext
13497if { (ac_try="$ac_link"
13498case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501esac
13502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_link") 2>conftest.er1
13504 ac_status=$?
13505 grep -v '^ *+' conftest.er1 >conftest.err
13506 rm -f conftest.er1
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13511 { (case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514esac
13515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_try") 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest$ac_exeext'
13521 { (case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13524esac
13525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_try") 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013530 ac_cv_lib_udis86_ud_init=yes
13531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013532 echo "$as_me: failed program was:" >&5
13533sed 's/^/| /' conftest.$ac_ext >&5
13534
13535 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013536fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013537
Bill Wendlingebcceee2009-04-18 11:20:33 +000013538rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013539 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013540LIBS=$ac_check_lib_save_LIBS
13541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013542{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13543echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13544if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013545 cat >>confdefs.h <<_ACEOF
13546#define HAVE_LIBUDIS86 1
13547_ACEOF
13548
13549 LIBS="-ludis86 $LIBS"
13550
13551else
13552
13553 echo "Error! You need to have libudis86 around."
13554 exit -1
13555
13556fi
13557
13558
13559else
13560 USE_UDIS86=0
13561
13562fi
13563
13564
13565cat >>confdefs.h <<_ACEOF
13566#define USE_UDIS86 $USE_UDIS86
13567_ACEOF
13568
13569
13570
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013571# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013572if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013573 withval=$with_oprofile;
13574 USE_OPROFILE=1
13575
13576 case "$withval" in
13577 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013578 no) llvm_cv_oppath=
13579 USE_OPROFILE=0
13580 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013581 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013582 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013583 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013584 case $llvm_cv_os_type in
13585 Linux)
13586 if test -n "$llvm_cv_oppath" ; then
13587 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13588 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013589echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13590if test "${ac_cv_search_bfd_init+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013592else
13593 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013594cat >conftest.$ac_ext <<_ACEOF
13595/* confdefs.h. */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013599/* end confdefs.h. */
13600
13601/* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13604#ifdef __cplusplus
13605extern "C"
13606#endif
13607char bfd_init ();
13608int
13609main ()
13610{
13611return bfd_init ();
13612 ;
13613 return 0;
13614}
13615_ACEOF
13616for ac_lib in '' bfd; do
13617 if test -z "$ac_lib"; then
13618 ac_res="none required"
13619 else
13620 ac_res=-l$ac_lib
13621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13622 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013623 rm -f conftest.$ac_objext conftest$ac_exeext
13624if { (ac_try="$ac_link"
13625case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628esac
13629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641esac
13642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } &&
13647 { ac_try='test -s conftest$ac_exeext'
13648 { (case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_try") 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013657 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013658else
13659 echo "$as_me: failed program was:" >&5
13660sed 's/^/| /' conftest.$ac_ext >&5
13661
13662
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013664
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013665rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666 conftest$ac_exeext
13667 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013668 break
13669fi
13670done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013671if test "${ac_cv_search_bfd_init+set}" = set; then
13672 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013673else
13674 ac_cv_search_bfd_init=no
13675fi
13676rm conftest.$ac_ext
13677LIBS=$ac_func_search_save_LIBS
13678fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13680echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013681ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013682if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13684
13685fi
13686
Eli Bendersky61b18512012-03-13 08:33:15 +000013687 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013688echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13689if test "${ac_cv_search_op_open_agent+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013691else
13692 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013693cat >conftest.$ac_ext <<_ACEOF
13694/* confdefs.h. */
13695_ACEOF
13696cat confdefs.h >>conftest.$ac_ext
13697cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013698/* end confdefs.h. */
13699
13700/* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13703#ifdef __cplusplus
13704extern "C"
13705#endif
13706char op_open_agent ();
13707int
13708main ()
13709{
13710return op_open_agent ();
13711 ;
13712 return 0;
13713}
13714_ACEOF
13715for ac_lib in '' opagent; do
13716 if test -z "$ac_lib"; then
13717 ac_res="none required"
13718 else
13719 ac_res=-l$ac_lib
13720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13721 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013722 rm -f conftest.$ac_objext conftest$ac_exeext
13723if { (ac_try="$ac_link"
13724case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13727esac
13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_link") 2>conftest.er1
13730 ac_status=$?
13731 grep -v '^ *+' conftest.er1 >conftest.err
13732 rm -f conftest.er1
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest$ac_exeext'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013756 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013757else
13758 echo "$as_me: failed program was:" >&5
13759sed 's/^/| /' conftest.$ac_ext >&5
13760
13761
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013763
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013764rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013765 conftest$ac_exeext
13766 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013767 break
13768fi
13769done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013770if test "${ac_cv_search_op_open_agent+set}" = set; then
13771 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013772else
13773 ac_cv_search_op_open_agent=no
13774fi
13775rm conftest.$ac_ext
13776LIBS=$ac_func_search_save_LIBS
13777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013778{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13779echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013780ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013781if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13783
13784else
13785
Eli Bendersky61b18512012-03-13 08:33:15 +000013786 echo "Error! You need to have libopagent around."
13787 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013788
13789fi
13790
Eli Bendersky61b18512012-03-13 08:33:15 +000013791 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013792 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13793echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13794if test "${ac_cv_header_opagent_h+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796fi
13797{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13798echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13799else
13800 # Is the header compilable?
13801{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13802echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13803cat >conftest.$ac_ext <<_ACEOF
13804/* confdefs.h. */
13805_ACEOF
13806cat confdefs.h >>conftest.$ac_ext
13807cat >>conftest.$ac_ext <<_ACEOF
13808/* end confdefs.h. */
13809$ac_includes_default
13810#include <opagent.h>
13811_ACEOF
13812rm -f conftest.$ac_objext
13813if { (ac_try="$ac_compile"
13814case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817esac
13818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_compile") 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_try") 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846 ac_header_compiler=yes
13847else
13848 echo "$as_me: failed program was:" >&5
13849sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013851 ac_header_compiler=no
13852fi
13853
13854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13856echo "${ECHO_T}$ac_header_compiler" >&6; }
13857
13858# Is the header present?
13859{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13860echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13861cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867#include <opagent.h>
13868_ACEOF
13869if { (ac_try="$ac_cpp conftest.$ac_ext"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } >/dev/null; then
13882 if test -s conftest.err; then
13883 ac_cpp_err=$ac_c_preproc_warn_flag
13884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13885 else
13886 ac_cpp_err=
13887 fi
13888else
13889 ac_cpp_err=yes
13890fi
13891if test -z "$ac_cpp_err"; then
13892 ac_header_preproc=yes
13893else
13894 echo "$as_me: failed program was:" >&5
13895sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 ac_header_preproc=no
13898fi
13899
13900rm -f conftest.err conftest.$ac_ext
13901{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13902echo "${ECHO_T}$ac_header_preproc" >&6; }
13903
13904# So? What about this header?
13905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13906 yes:no: )
13907 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13908echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13910echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13911 ac_header_preproc=yes
13912 ;;
13913 no:yes:* )
13914 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13915echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13917echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13919echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13921echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13923echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13925echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13926 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013927## ------------------------------------ ##
13928## Report this to http://llvm.org/bugs/ ##
13929## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930_ASBOX
13931 ) | sed "s/^/$as_me: WARNING: /" >&2
13932 ;;
13933esac
13934{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13935echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13936if test "${ac_cv_header_opagent_h+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938else
13939 ac_cv_header_opagent_h=$ac_header_preproc
13940fi
13941{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13942echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13943
13944fi
13945if test $ac_cv_header_opagent_h = yes; then
13946 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013947else
13948
Eli Bendersky61b18512012-03-13 08:33:15 +000013949 echo "Error! You need to have opagent.h around."
13950 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013951
13952fi
13953
13954
Eli Bendersky61b18512012-03-13 08:33:15 +000013955 fi ;;
13956 *)
13957 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13958echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13959 { (exit 1); exit 1; }; } ;;
13960 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013961
13962else
13963
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013964 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013965
13966
13967fi
13968
13969
13970cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013971#define LLVM_USE_OPROFILE $USE_OPROFILE
13972_ACEOF
13973
13974
13975
13976# Check whether --with-intel-jitevents was given.
13977if test "${with_intel_jitevents+set}" = set; then
13978 withval=$with_intel_jitevents;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013979 case "$withval" in
13980 yes) USE_INTEL_JITEVENTS=1
13981;;
13982 no) USE_INTEL_JITEVENTS=0
13983;;
13984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13985echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13986 { (exit 1); exit 1; }; };;
13987 esac
13988
Eli Bendersky61b18512012-03-13 08:33:15 +000013989 case $llvm_cv_os_type in
13990 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013991 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13992echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13993 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013994 esac
13995
Eli Bendersky61b18512012-03-13 08:33:15 +000013996 case "$llvm_cv_target_arch" in
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013997 x86|x86_64) ;;
13998 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13999echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14000 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000014001 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000014002
14003else
14004
14005 USE_INTEL_JITEVENTS=0
14006
14007
14008fi
14009
14010
14011cat >>confdefs.h <<_ACEOF
14012#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014013_ACEOF
14014
14015
Eric Christopher46e6bcf2012-08-03 19:47:19 +000014016for ac_prog in xml2-config
14017do
14018 # Extract the first word of "$ac_prog", so it can be a program name with args.
14019set dummy $ac_prog; ac_word=$2
14020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14022if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024else
14025 if test -n "$XML2CONFIG"; then
14026 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14027else
14028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029for as_dir in $PATH
14030do
14031 IFS=$as_save_IFS
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14035 ac_cv_prog_XML2CONFIG="$ac_prog"
14036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 break 2
14038 fi
14039done
14040done
14041IFS=$as_save_IFS
14042
14043fi
14044fi
14045XML2CONFIG=$ac_cv_prog_XML2CONFIG
14046if test -n "$XML2CONFIG"; then
14047 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14048echo "${ECHO_T}$XML2CONFIG" >&6; }
14049else
14050 { echo "$as_me:$LINENO: result: no" >&5
14051echo "${ECHO_T}no" >&6; }
14052fi
14053
14054
14055 test -n "$XML2CONFIG" && break
14056done
14057
14058
14059{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14060echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14061if test "x$XML2CONFIG" = "x"; then
14062 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14063echo "${ECHO_T}xml2-config not found" >&6; }
14064else
14065 LIBXML2_INC=`$XML2CONFIG --cflags`
14066 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14067echo "${ECHO_T}$LIBXML2_INC" >&6; }
14068 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14069echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14070if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072else
14073 ac_check_lib_save_LIBS=$LIBS
14074LIBS="-lxml2 $LIBS"
14075cat >conftest.$ac_ext <<_ACEOF
14076/* confdefs.h. */
14077_ACEOF
14078cat confdefs.h >>conftest.$ac_ext
14079cat >>conftest.$ac_ext <<_ACEOF
14080/* end confdefs.h. */
14081
14082/* Override any GCC internal prototype to avoid an error.
14083 Use char because int might match the return type of a GCC
14084 builtin and then its argument prototype would still apply. */
14085#ifdef __cplusplus
14086extern "C"
14087#endif
14088char xmlReadFile ();
14089int
14090main ()
14091{
14092return xmlReadFile ();
14093 ;
14094 return 0;
14095}
14096_ACEOF
14097rm -f conftest.$ac_objext conftest$ac_exeext
14098if { (ac_try="$ac_link"
14099case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102esac
14103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_link") 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14112 { (case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14115esac
14116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_try") 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest$ac_exeext'
14122 { (case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14125esac
14126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_try") 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_cv_lib_xml2_xmlReadFile=yes
14132else
14133 echo "$as_me: failed program was:" >&5
14134sed 's/^/| /' conftest.$ac_ext >&5
14135
14136 ac_cv_lib_xml2_xmlReadFile=no
14137fi
14138
14139rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141LIBS=$ac_check_lib_save_LIBS
14142fi
14143{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14144echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14145if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14146
14147cat >>confdefs.h <<\_ACEOF
14148#define CLANG_HAVE_LIBXML 1
14149_ACEOF
14150
14151 LIBXML2_LIBS="-lxml2"
14152fi
14153
14154fi
14155
14156
14157
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159
14160
14161
14162
14163
Reid Spencer59473af2004-12-25 07:31:29 +000014164ac_header_dirent=no
14165for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014166 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14167{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14168echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014172 cat >conftest.$ac_ext <<_ACEOF
14173/* confdefs.h. */
14174_ACEOF
14175cat confdefs.h >>conftest.$ac_ext
14176cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014177/* end confdefs.h. */
14178#include <sys/types.h>
14179#include <$ac_hdr>
14180
14181int
14182main ()
14183{
14184if ((DIR *) 0)
14185return 0;
14186 ;
14187 return 0;
14188}
14189_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014190rm -f conftest.$ac_objext
14191if { (ac_try="$ac_compile"
14192case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14195esac
14196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_compile") 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14205 { (case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208esac
14209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_try") 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; } &&
14214 { ac_try='test -s conftest.$ac_objext'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218esac
14219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014224 eval "$as_ac_Header=yes"
14225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014226 echo "$as_me: failed program was:" >&5
14227sed 's/^/| /' conftest.$ac_ext >&5
14228
14229 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231
Reid Spencera773bd52006-08-04 18:18:08 +000014232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234ac_res=`eval echo '${'$as_ac_Header'}'`
14235 { echo "$as_me:$LINENO: result: $ac_res" >&5
14236echo "${ECHO_T}$ac_res" >&6; }
14237if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014238 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014239#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014240_ACEOF
14241
14242ac_header_dirent=$ac_hdr; break
14243fi
14244
14245done
14246# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14247if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14249echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14250if test "${ac_cv_search_opendir+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014252else
14253 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254cat >conftest.$ac_ext <<_ACEOF
14255/* confdefs.h. */
14256_ACEOF
14257cat confdefs.h >>conftest.$ac_ext
14258cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014259/* end confdefs.h. */
14260
Reid Spencera773bd52006-08-04 18:18:08 +000014261/* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014264#ifdef __cplusplus
14265extern "C"
14266#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014267char opendir ();
14268int
14269main ()
14270{
Reid Spencera773bd52006-08-04 18:18:08 +000014271return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014272 ;
14273 return 0;
14274}
14275_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014276for ac_lib in '' dir; do
14277 if test -z "$ac_lib"; then
14278 ac_res="none required"
14279 else
14280 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014282 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014283 rm -f conftest.$ac_objext conftest$ac_exeext
14284if { (ac_try="$ac_link"
14285case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14288esac
14289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_link") 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301esac
14302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest$ac_exeext'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014317 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318else
14319 echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
14322
Reid Spencer59473af2004-12-25 07:31:29 +000014323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014324
Bill Wendlingebcceee2009-04-18 11:20:33 +000014325rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014326 conftest$ac_exeext
14327 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014328 break
Reid Spencer59473af2004-12-25 07:31:29 +000014329fi
Reid Spencera773bd52006-08-04 18:18:08 +000014330done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331if test "${ac_cv_search_opendir+set}" = set; then
14332 :
Reid Spencera773bd52006-08-04 18:18:08 +000014333else
14334 ac_cv_search_opendir=no
14335fi
14336rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014337LIBS=$ac_func_search_save_LIBS
14338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14340echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014341ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014342if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014344
14345fi
14346
14347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14349echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14350if test "${ac_cv_search_opendir+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014352else
14353 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014354cat >conftest.$ac_ext <<_ACEOF
14355/* confdefs.h. */
14356_ACEOF
14357cat confdefs.h >>conftest.$ac_ext
14358cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014359/* end confdefs.h. */
14360
Reid Spencera773bd52006-08-04 18:18:08 +000014361/* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014364#ifdef __cplusplus
14365extern "C"
14366#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014367char opendir ();
14368int
14369main ()
14370{
Reid Spencera773bd52006-08-04 18:18:08 +000014371return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014372 ;
14373 return 0;
14374}
14375_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014376for ac_lib in '' x; do
14377 if test -z "$ac_lib"; then
14378 ac_res="none required"
14379 else
14380 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014382 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014383 rm -f conftest.$ac_objext conftest$ac_exeext
14384if { (ac_try="$ac_link"
14385case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388esac
14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_link") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411esac
14412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014417 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014418else
14419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
14421
14422
Reid Spencer59473af2004-12-25 07:31:29 +000014423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014424
Bill Wendlingebcceee2009-04-18 11:20:33 +000014425rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014426 conftest$ac_exeext
14427 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014428 break
Reid Spencer59473af2004-12-25 07:31:29 +000014429fi
Reid Spencera773bd52006-08-04 18:18:08 +000014430done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431if test "${ac_cv_search_opendir+set}" = set; then
14432 :
Reid Spencera773bd52006-08-04 18:18:08 +000014433else
14434 ac_cv_search_opendir=no
14435fi
14436rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014437LIBS=$ac_func_search_save_LIBS
14438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014439{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14440echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014441ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014442if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014444
14445fi
14446
14447fi
14448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014449{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14450echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14451if test "${ac_cv_header_mmap_anon+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014453else
14454 ac_ext=c
14455ac_cpp='$CPP $CPPFLAGS'
14456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14458ac_compiler_gnu=$ac_cv_c_compiler_gnu
14459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014460 cat >conftest.$ac_ext <<_ACEOF
14461/* confdefs.h. */
14462_ACEOF
14463cat confdefs.h >>conftest.$ac_ext
14464cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014465/* end confdefs.h. */
14466#include <sys/mman.h>
14467#include <unistd.h>
14468#include <fcntl.h>
14469int
14470main ()
14471{
14472mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14473 ;
14474 return 0;
14475}
14476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014477rm -f conftest.$ac_objext
14478if { (ac_try="$ac_compile"
14479case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482esac
14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest.$ac_objext'
14502 { (case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505esac
14506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_try") 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014511 ac_cv_header_mmap_anon=yes
14512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014513 echo "$as_me: failed program was:" >&5
14514sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014518
Reid Spencera773bd52006-08-04 18:18:08 +000014519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014520 ac_ext=c
14521ac_cpp='$CPP $CPPFLAGS'
14522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14524ac_compiler_gnu=$ac_cv_c_compiler_gnu
14525
14526
14527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014528{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14529echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014530if test "$ac_cv_header_mmap_anon" = yes; then
14531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014532cat >>confdefs.h <<\_ACEOF
14533#define HAVE_MMAP_ANONYMOUS 1
14534_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014535
14536fi
14537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014538{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14539echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14540if test "${ac_cv_header_stat_broken+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014543 cat >conftest.$ac_ext <<_ACEOF
14544/* confdefs.h. */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014548/* end confdefs.h. */
14549#include <sys/types.h>
14550#include <sys/stat.h>
14551
Reid Spencera773bd52006-08-04 18:18:08 +000014552#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014553# if S_ISBLK (S_IFDIR)
14554You lose.
14555# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014556#endif
14557
Reid Spencera773bd52006-08-04 18:18:08 +000014558#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014559# if S_ISBLK (S_IFCHR)
14560You lose.
14561# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014562#endif
14563
Reid Spencera773bd52006-08-04 18:18:08 +000014564#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014565# if S_ISLNK (S_IFREG)
14566You lose.
14567# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014568#endif
14569
Reid Spencera773bd52006-08-04 18:18:08 +000014570#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014571# if S_ISSOCK (S_IFREG)
14572You lose.
14573# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014574#endif
14575
14576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14578 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014579 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014580else
14581 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014583rm -f conftest*
14584
Reid Spencer59473af2004-12-25 07:31:29 +000014585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014586{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14587echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014588if test $ac_cv_header_stat_broken = yes; then
14589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014590cat >>confdefs.h <<\_ACEOF
14591#define STAT_MACROS_BROKEN 1
14592_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014593
14594fi
14595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014596{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14597echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14598if test "${ac_cv_header_sys_wait_h+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014601 cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014607#include <sys/types.h>
14608#include <sys/wait.h>
14609#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014610# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014611#endif
14612#ifndef WIFEXITED
14613# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14614#endif
14615
John Criswell7a73b802003-06-30 21:59:07 +000014616int
14617main ()
14618{
14619 int s;
14620 wait (&s);
14621 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14622 ;
14623 return 0;
14624}
14625_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014626rm -f conftest.$ac_objext
14627if { (ac_try="$ac_compile"
14628case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
14645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654esac
14655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014660 ac_cv_header_sys_wait_h=yes
14661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014667
Reid Spencera773bd52006-08-04 18:18:08 +000014668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014669fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014670{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14671echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014672if test $ac_cv_header_sys_wait_h = yes; then
14673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014674cat >>confdefs.h <<\_ACEOF
14675#define HAVE_SYS_WAIT_H 1
14676_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014677
14678fi
14679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014680{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14681echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14682if test "${ac_cv_header_time+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014685 cat >conftest.$ac_ext <<_ACEOF
14686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014690/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014691#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014692#include <sys/time.h>
14693#include <time.h>
14694
14695int
14696main ()
14697{
14698if ((struct tm *) 0)
14699return 0;
14700 ;
14701 return 0;
14702}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014703_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014704rm -f conftest.$ac_objext
14705if { (ac_try="$ac_compile"
14706case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14709esac
14710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_compile") 2>conftest.er1
14712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
14714 rm -f conftest.er1
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14719 { (case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14722esac
14723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724 (eval "$ac_try") 2>&5
14725 ac_status=$?
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try='test -s conftest.$ac_objext'
14729 { (case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14732esac
14733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_try") 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014738 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014740 echo "$as_me: failed program was:" >&5
14741sed 's/^/| /' conftest.$ac_ext >&5
14742
14743 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014745
Reid Spencera773bd52006-08-04 18:18:08 +000014746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014748{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14749echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014750if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014752cat >>confdefs.h <<\_ACEOF
14753#define TIME_WITH_SYS_TIME 1
14754_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014755
14756fi
14757
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014759
14760
14761
14762
14763
14764
Reid Spencer59473af2004-12-25 07:31:29 +000014765for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014766do
14767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773fi
14774ac_res=`eval echo '${'$as_ac_Header'}'`
14775 { echo "$as_me:$LINENO: result: $ac_res" >&5
14776echo "${ECHO_T}$ac_res" >&6; }
14777else
14778 # Is the header compilable?
14779{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14780echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14781cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
14787$ac_includes_default
14788#include <$ac_header>
14789_ACEOF
14790rm -f conftest.$ac_objext
14791if { (ac_try="$ac_compile"
14792case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14795esac
14796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_compile") 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805 { (case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808esac
14809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_try") 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818esac
14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_try") 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_header_compiler=yes
14825else
14826 echo "$as_me: failed program was:" >&5
14827sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 ac_header_compiler=no
14830fi
14831
14832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14834echo "${ECHO_T}$ac_header_compiler" >&6; }
14835
14836# Is the header present?
14837{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14839cat >conftest.$ac_ext <<_ACEOF
14840/* confdefs.h. */
14841_ACEOF
14842cat confdefs.h >>conftest.$ac_ext
14843cat >>conftest.$ac_ext <<_ACEOF
14844/* end confdefs.h. */
14845#include <$ac_header>
14846_ACEOF
14847if { (ac_try="$ac_cpp conftest.$ac_ext"
14848case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851esac
14852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } >/dev/null; then
14860 if test -s conftest.err; then
14861 ac_cpp_err=$ac_c_preproc_warn_flag
14862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14863 else
14864 ac_cpp_err=
14865 fi
14866else
14867 ac_cpp_err=yes
14868fi
14869if test -z "$ac_cpp_err"; then
14870 ac_header_preproc=yes
14871else
14872 echo "$as_me: failed program was:" >&5
14873sed 's/^/| /' conftest.$ac_ext >&5
14874
14875 ac_header_preproc=no
14876fi
14877
14878rm -f conftest.err conftest.$ac_ext
14879{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880echo "${ECHO_T}$ac_header_preproc" >&6; }
14881
14882# So? What about this header?
14883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884 yes:no: )
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
14890 ;;
14891 no:yes:* )
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14904 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014905## ------------------------------------ ##
14906## Report this to http://llvm.org/bugs/ ##
14907## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014908_ASBOX
14909 ) | sed "s/^/$as_me: WARNING: /" >&2
14910 ;;
14911esac
14912{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14916else
14917 eval "$as_ac_Header=\$ac_header_preproc"
14918fi
14919ac_res=`eval echo '${'$as_ac_Header'}'`
14920 { echo "$as_me:$LINENO: result: $ac_res" >&5
14921echo "${ECHO_T}$ac_res" >&6; }
14922
14923fi
14924if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014925 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014926#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014927_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014928
14929fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014930
Reid Spencer59473af2004-12-25 07:31:29 +000014931done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933
14934
14935
14936
14937
14938
Douglas Gregor071d73d2009-05-18 17:21:34 +000014939for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014940do
14941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947fi
14948ac_res=`eval echo '${'$as_ac_Header'}'`
14949 { echo "$as_me:$LINENO: result: $ac_res" >&5
14950echo "${ECHO_T}$ac_res" >&6; }
14951else
14952 # Is the header compilable?
14953{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14955cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961$ac_includes_default
14962#include <$ac_header>
14963_ACEOF
14964rm -f conftest.$ac_objext
14965if { (ac_try="$ac_compile"
14966case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14969esac
14970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_compile") 2>conftest.er1
14972 ac_status=$?
14973 grep -v '^ *+' conftest.er1 >conftest.err
14974 rm -f conftest.er1
14975 cat conftest.err >&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14979 { (case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982esac
14983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_try") 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; } &&
14988 { ac_try='test -s conftest.$ac_objext'
14989 { (case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14992esac
14993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_try") 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_header_compiler=yes
14999else
15000 echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_header_compiler=no
15004fi
15005
15006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15008echo "${ECHO_T}$ac_header_compiler" >&6; }
15009
15010# Is the header present?
15011{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15013cat >conftest.$ac_ext <<_ACEOF
15014/* confdefs.h. */
15015_ACEOF
15016cat confdefs.h >>conftest.$ac_ext
15017cat >>conftest.$ac_ext <<_ACEOF
15018/* end confdefs.h. */
15019#include <$ac_header>
15020_ACEOF
15021if { (ac_try="$ac_cpp conftest.$ac_ext"
15022case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025esac
15026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15028 ac_status=$?
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } >/dev/null; then
15034 if test -s conftest.err; then
15035 ac_cpp_err=$ac_c_preproc_warn_flag
15036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15037 else
15038 ac_cpp_err=
15039 fi
15040else
15041 ac_cpp_err=yes
15042fi
15043if test -z "$ac_cpp_err"; then
15044 ac_header_preproc=yes
15045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 ac_header_preproc=no
15050fi
15051
15052rm -f conftest.err conftest.$ac_ext
15053{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15054echo "${ECHO_T}$ac_header_preproc" >&6; }
15055
15056# So? What about this header?
15057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15058 yes:no: )
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15063 ac_header_preproc=yes
15064 ;;
15065 no:yes:* )
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15069echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15073echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15078 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015079## ------------------------------------ ##
15080## Report this to http://llvm.org/bugs/ ##
15081## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015082_ASBOX
15083 ) | sed "s/^/$as_me: WARNING: /" >&2
15084 ;;
15085esac
15086{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090else
15091 eval "$as_ac_Header=\$ac_header_preproc"
15092fi
15093ac_res=`eval echo '${'$as_ac_Header'}'`
15094 { echo "$as_me:$LINENO: result: $ac_res" >&5
15095echo "${ECHO_T}$ac_res" >&6; }
15096
15097fi
15098if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015099 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015101_ACEOF
15102
15103fi
15104
15105done
15106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015107
15108
Douglas Gregor071d73d2009-05-18 17:21:34 +000015109for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015110do
15111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117fi
15118ac_res=`eval echo '${'$as_ac_Header'}'`
15119 { echo "$as_me:$LINENO: result: $ac_res" >&5
15120echo "${ECHO_T}$ac_res" >&6; }
15121else
15122 # Is the header compilable?
15123{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15125cat >conftest.$ac_ext <<_ACEOF
15126/* confdefs.h. */
15127_ACEOF
15128cat confdefs.h >>conftest.$ac_ext
15129cat >>conftest.$ac_ext <<_ACEOF
15130/* end confdefs.h. */
15131$ac_includes_default
15132#include <$ac_header>
15133_ACEOF
15134rm -f conftest.$ac_objext
15135if { (ac_try="$ac_compile"
15136case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139esac
15140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_compile") 2>conftest.er1
15142 ac_status=$?
15143 grep -v '^ *+' conftest.er1 >conftest.err
15144 rm -f conftest.er1
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152esac
15153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162esac
15163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_try") 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_header_compiler=yes
15169else
15170 echo "$as_me: failed program was:" >&5
15171sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_header_compiler=no
15174fi
15175
15176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15178echo "${ECHO_T}$ac_header_compiler" >&6; }
15179
15180# Is the header present?
15181{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15183cat >conftest.$ac_ext <<_ACEOF
15184/* confdefs.h. */
15185_ACEOF
15186cat confdefs.h >>conftest.$ac_ext
15187cat >>conftest.$ac_ext <<_ACEOF
15188/* end confdefs.h. */
15189#include <$ac_header>
15190_ACEOF
15191if { (ac_try="$ac_cpp conftest.$ac_ext"
15192case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15195esac
15196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } >/dev/null; then
15204 if test -s conftest.err; then
15205 ac_cpp_err=$ac_c_preproc_warn_flag
15206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15207 else
15208 ac_cpp_err=
15209 fi
15210else
15211 ac_cpp_err=yes
15212fi
15213if test -z "$ac_cpp_err"; then
15214 ac_header_preproc=yes
15215else
15216 echo "$as_me: failed program was:" >&5
15217sed 's/^/| /' conftest.$ac_ext >&5
15218
15219 ac_header_preproc=no
15220fi
15221
15222rm -f conftest.err conftest.$ac_ext
15223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15224echo "${ECHO_T}$ac_header_preproc" >&6; }
15225
15226# So? What about this header?
15227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15228 yes:no: )
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15233 ac_header_preproc=yes
15234 ;;
15235 no:yes:* )
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15248 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015249## ------------------------------------ ##
15250## Report this to http://llvm.org/bugs/ ##
15251## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015252_ASBOX
15253 ) | sed "s/^/$as_me: WARNING: /" >&2
15254 ;;
15255esac
15256{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15260else
15261 eval "$as_ac_Header=\$ac_header_preproc"
15262fi
15263ac_res=`eval echo '${'$as_ac_Header'}'`
15264 { echo "$as_me:$LINENO: result: $ac_res" >&5
15265echo "${ECHO_T}$ac_res" >&6; }
15266
15267fi
15268if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015269 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015271_ACEOF
15272
15273fi
15274
15275done
Reid Spencer59473af2004-12-25 07:31:29 +000015276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015277
15278
15279
15280
Daniel Dunbar3e462932011-02-03 02:40:02 +000015281
15282for 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 +000015283do
15284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290fi
15291ac_res=`eval echo '${'$as_ac_Header'}'`
15292 { echo "$as_me:$LINENO: result: $ac_res" >&5
15293echo "${ECHO_T}$ac_res" >&6; }
15294else
15295 # Is the header compilable?
15296{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15298cat >conftest.$ac_ext <<_ACEOF
15299/* confdefs.h. */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h. */
15304$ac_includes_default
15305#include <$ac_header>
15306_ACEOF
15307rm -f conftest.$ac_objext
15308if { (ac_try="$ac_compile"
15309case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15312esac
15313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_compile") 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; } &&
15331 { ac_try='test -s conftest.$ac_objext'
15332 { (case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335esac
15336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_try") 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_header_compiler=yes
15342else
15343 echo "$as_me: failed program was:" >&5
15344sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 ac_header_compiler=no
15347fi
15348
15349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15351echo "${ECHO_T}$ac_header_compiler" >&6; }
15352
15353# Is the header present?
15354{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15355echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15356cat >conftest.$ac_ext <<_ACEOF
15357/* confdefs.h. */
15358_ACEOF
15359cat confdefs.h >>conftest.$ac_ext
15360cat >>conftest.$ac_ext <<_ACEOF
15361/* end confdefs.h. */
15362#include <$ac_header>
15363_ACEOF
15364if { (ac_try="$ac_cpp conftest.$ac_ext"
15365case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368esac
15369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } >/dev/null; then
15377 if test -s conftest.err; then
15378 ac_cpp_err=$ac_c_preproc_warn_flag
15379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15380 else
15381 ac_cpp_err=
15382 fi
15383else
15384 ac_cpp_err=yes
15385fi
15386if test -z "$ac_cpp_err"; then
15387 ac_header_preproc=yes
15388else
15389 echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_header_preproc=no
15393fi
15394
15395rm -f conftest.err conftest.$ac_ext
15396{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397echo "${ECHO_T}$ac_header_preproc" >&6; }
15398
15399# So? What about this header?
15400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15401 yes:no: )
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15403echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15405echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15406 ac_header_preproc=yes
15407 ;;
15408 no:yes:* )
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15414echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15416echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15420echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15421 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015422## ------------------------------------ ##
15423## Report this to http://llvm.org/bugs/ ##
15424## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015425_ASBOX
15426 ) | sed "s/^/$as_me: WARNING: /" >&2
15427 ;;
15428esac
15429{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15433else
15434 eval "$as_ac_Header=\$ac_header_preproc"
15435fi
15436ac_res=`eval echo '${'$as_ac_Header'}'`
15437 { echo "$as_me:$LINENO: result: $ac_res" >&5
15438echo "${ECHO_T}$ac_res" >&6; }
15439
15440fi
15441if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015442 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015444_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015445
15446fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015447
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015448done
15449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015450
15451
15452
15453
Douglas Gregor01746742009-05-11 18:05:52 +000015454for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015455do
15456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462fi
15463ac_res=`eval echo '${'$as_ac_Header'}'`
15464 { echo "$as_me:$LINENO: result: $ac_res" >&5
15465echo "${ECHO_T}$ac_res" >&6; }
15466else
15467 # Is the header compilable?
15468{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15470cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476$ac_includes_default
15477#include <$ac_header>
15478_ACEOF
15479rm -f conftest.$ac_objext
15480if { (ac_try="$ac_compile"
15481case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15484esac
15485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_compile") 2>conftest.er1
15487 ac_status=$?
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
15504 { (case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15507esac
15508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_try") 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_header_compiler=yes
15514else
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 ac_header_compiler=no
15519fi
15520
15521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15523echo "${ECHO_T}$ac_header_compiler" >&6; }
15524
15525# Is the header present?
15526{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15528cat >conftest.$ac_ext <<_ACEOF
15529/* confdefs.h. */
15530_ACEOF
15531cat confdefs.h >>conftest.$ac_ext
15532cat >>conftest.$ac_ext <<_ACEOF
15533/* end confdefs.h. */
15534#include <$ac_header>
15535_ACEOF
15536if { (ac_try="$ac_cpp conftest.$ac_ext"
15537case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15540esac
15541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15543 ac_status=$?
15544 grep -v '^ *+' conftest.er1 >conftest.err
15545 rm -f conftest.er1
15546 cat conftest.err >&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } >/dev/null; then
15549 if test -s conftest.err; then
15550 ac_cpp_err=$ac_c_preproc_warn_flag
15551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15552 else
15553 ac_cpp_err=
15554 fi
15555else
15556 ac_cpp_err=yes
15557fi
15558if test -z "$ac_cpp_err"; then
15559 ac_header_preproc=yes
15560else
15561 echo "$as_me: failed program was:" >&5
15562sed 's/^/| /' conftest.$ac_ext >&5
15563
15564 ac_header_preproc=no
15565fi
15566
15567rm -f conftest.err conftest.$ac_ext
15568{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15569echo "${ECHO_T}$ac_header_preproc" >&6; }
15570
15571# So? What about this header?
15572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15573 yes:no: )
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15578 ac_header_preproc=yes
15579 ;;
15580 no:yes:* )
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15584echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15588echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15593 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015594## ------------------------------------ ##
15595## Report this to http://llvm.org/bugs/ ##
15596## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015597_ASBOX
15598 ) | sed "s/^/$as_me: WARNING: /" >&2
15599 ;;
15600esac
15601{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605else
15606 eval "$as_ac_Header=\$ac_header_preproc"
15607fi
15608ac_res=`eval echo '${'$as_ac_Header'}'`
15609 { echo "$as_me:$LINENO: result: $ac_res" >&5
15610echo "${ECHO_T}$ac_res" >&6; }
15611
15612fi
15613if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015614 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015616_ACEOF
15617
15618fi
15619
15620done
15621
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015622
15623for ac_header in valgrind/valgrind.h
15624do
15625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15631fi
15632ac_res=`eval echo '${'$as_ac_Header'}'`
15633 { echo "$as_me:$LINENO: result: $ac_res" >&5
15634echo "${ECHO_T}$ac_res" >&6; }
15635else
15636 # Is the header compilable?
15637{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15639cat >conftest.$ac_ext <<_ACEOF
15640/* confdefs.h. */
15641_ACEOF
15642cat confdefs.h >>conftest.$ac_ext
15643cat >>conftest.$ac_ext <<_ACEOF
15644/* end confdefs.h. */
15645$ac_includes_default
15646#include <$ac_header>
15647_ACEOF
15648rm -f conftest.$ac_objext
15649if { (ac_try="$ac_compile"
15650case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15653esac
15654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_compile") 2>conftest.er1
15656 ac_status=$?
15657 grep -v '^ *+' conftest.er1 >conftest.err
15658 rm -f conftest.er1
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15663 { (case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666esac
15667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_try") 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try='test -s conftest.$ac_objext'
15673 { (case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15676esac
15677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_try") 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_header_compiler=yes
15683else
15684 echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687 ac_header_compiler=no
15688fi
15689
15690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15691{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15692echo "${ECHO_T}$ac_header_compiler" >&6; }
15693
15694# Is the header present?
15695{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15697cat >conftest.$ac_ext <<_ACEOF
15698/* confdefs.h. */
15699_ACEOF
15700cat confdefs.h >>conftest.$ac_ext
15701cat >>conftest.$ac_ext <<_ACEOF
15702/* end confdefs.h. */
15703#include <$ac_header>
15704_ACEOF
15705if { (ac_try="$ac_cpp conftest.$ac_ext"
15706case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15709esac
15710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } >/dev/null; then
15718 if test -s conftest.err; then
15719 ac_cpp_err=$ac_c_preproc_warn_flag
15720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15721 else
15722 ac_cpp_err=
15723 fi
15724else
15725 ac_cpp_err=yes
15726fi
15727if test -z "$ac_cpp_err"; then
15728 ac_header_preproc=yes
15729else
15730 echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733 ac_header_preproc=no
15734fi
15735
15736rm -f conftest.err conftest.$ac_ext
15737{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15738echo "${ECHO_T}$ac_header_preproc" >&6; }
15739
15740# So? What about this header?
15741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15742 yes:no: )
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15747 ac_header_preproc=yes
15748 ;;
15749 no:yes:* )
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15762 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015763## ------------------------------------ ##
15764## Report this to http://llvm.org/bugs/ ##
15765## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015766_ASBOX
15767 ) | sed "s/^/$as_me: WARNING: /" >&2
15768 ;;
15769esac
15770{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774else
15775 eval "$as_ac_Header=\$ac_header_preproc"
15776fi
15777ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result: $ac_res" >&5
15779echo "${ECHO_T}$ac_res" >&6; }
15780
15781fi
15782if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15785_ACEOF
15786
15787fi
15788
15789done
15790
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015791
15792for ac_header in fenv.h
15793do
15794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15800fi
15801ac_res=`eval echo '${'$as_ac_Header'}'`
15802 { echo "$as_me:$LINENO: result: $ac_res" >&5
15803echo "${ECHO_T}$ac_res" >&6; }
15804else
15805 # Is the header compilable?
15806{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15808cat >conftest.$ac_ext <<_ACEOF
15809/* confdefs.h. */
15810_ACEOF
15811cat confdefs.h >>conftest.$ac_ext
15812cat >>conftest.$ac_ext <<_ACEOF
15813/* end confdefs.h. */
15814$ac_includes_default
15815#include <$ac_header>
15816_ACEOF
15817rm -f conftest.$ac_objext
15818if { (ac_try="$ac_compile"
15819case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15822esac
15823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_compile") 2>conftest.er1
15825 ac_status=$?
15826 grep -v '^ *+' conftest.er1 >conftest.err
15827 rm -f conftest.er1
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15832 { (case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15835esac
15836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_try") 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845esac
15846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_try") 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851 ac_header_compiler=yes
15852else
15853 echo "$as_me: failed program was:" >&5
15854sed 's/^/| /' conftest.$ac_ext >&5
15855
15856 ac_header_compiler=no
15857fi
15858
15859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15861echo "${ECHO_T}$ac_header_compiler" >&6; }
15862
15863# Is the header present?
15864{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15866cat >conftest.$ac_ext <<_ACEOF
15867/* confdefs.h. */
15868_ACEOF
15869cat confdefs.h >>conftest.$ac_ext
15870cat >>conftest.$ac_ext <<_ACEOF
15871/* end confdefs.h. */
15872#include <$ac_header>
15873_ACEOF
15874if { (ac_try="$ac_cpp conftest.$ac_ext"
15875case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15878esac
15879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } >/dev/null; then
15887 if test -s conftest.err; then
15888 ac_cpp_err=$ac_c_preproc_warn_flag
15889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15890 else
15891 ac_cpp_err=
15892 fi
15893else
15894 ac_cpp_err=yes
15895fi
15896if test -z "$ac_cpp_err"; then
15897 ac_header_preproc=yes
15898else
15899 echo "$as_me: failed program was:" >&5
15900sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 ac_header_preproc=no
15903fi
15904
15905rm -f conftest.err conftest.$ac_ext
15906{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15907echo "${ECHO_T}$ac_header_preproc" >&6; }
15908
15909# So? What about this header?
15910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15911 yes:no: )
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15916 ac_header_preproc=yes
15917 ;;
15918 no:yes:* )
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15931 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015932## ------------------------------------ ##
15933## Report this to http://llvm.org/bugs/ ##
15934## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015935_ASBOX
15936 ) | sed "s/^/$as_me: WARNING: /" >&2
15937 ;;
15938esac
15939{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15943else
15944 eval "$as_ac_Header=\$ac_header_preproc"
15945fi
15946ac_res=`eval echo '${'$as_ac_Header'}'`
15947 { echo "$as_me:$LINENO: result: $ac_res" >&5
15948echo "${ECHO_T}$ac_res" >&6; }
15949
15950fi
15951if test `eval echo '${'$as_ac_Header'}'` = yes; then
15952 cat >>confdefs.h <<_ACEOF
15953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15954_ACEOF
15955
15956fi
15957
15958done
15959
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015960if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015961
15962for ac_header in pthread.h
15963do
15964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15970fi
15971ac_res=`eval echo '${'$as_ac_Header'}'`
15972 { echo "$as_me:$LINENO: result: $ac_res" >&5
15973echo "${ECHO_T}$ac_res" >&6; }
15974else
15975 # Is the header compilable?
15976{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15977echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15978cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984$ac_includes_default
15985#include <$ac_header>
15986_ACEOF
15987rm -f conftest.$ac_objext
15988if { (ac_try="$ac_compile"
15989case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15992esac
15993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15994 (eval "$ac_compile") 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005esac
16006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest.$ac_objext'
16012 { (case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16015esac
16016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_try") 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_header_compiler=yes
16022else
16023 echo "$as_me: failed program was:" >&5
16024sed 's/^/| /' conftest.$ac_ext >&5
16025
16026 ac_header_compiler=no
16027fi
16028
16029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031echo "${ECHO_T}$ac_header_compiler" >&6; }
16032
16033# Is the header present?
16034{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16035echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16036cat >conftest.$ac_ext <<_ACEOF
16037/* confdefs.h. */
16038_ACEOF
16039cat confdefs.h >>conftest.$ac_ext
16040cat >>conftest.$ac_ext <<_ACEOF
16041/* end confdefs.h. */
16042#include <$ac_header>
16043_ACEOF
16044if { (ac_try="$ac_cpp conftest.$ac_ext"
16045case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16048esac
16049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } >/dev/null; then
16057 if test -s conftest.err; then
16058 ac_cpp_err=$ac_c_preproc_warn_flag
16059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16060 else
16061 ac_cpp_err=
16062 fi
16063else
16064 ac_cpp_err=yes
16065fi
16066if test -z "$ac_cpp_err"; then
16067 ac_header_preproc=yes
16068else
16069 echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ac_header_preproc=no
16073fi
16074
16075rm -f conftest.err conftest.$ac_ext
16076{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16077echo "${ECHO_T}$ac_header_preproc" >&6; }
16078
16079# So? What about this header?
16080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16081 yes:no: )
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16086 ac_header_preproc=yes
16087 ;;
16088 no:yes:* )
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16101 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016102## ------------------------------------ ##
16103## Report this to http://llvm.org/bugs/ ##
16104## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016105_ASBOX
16106 ) | sed "s/^/$as_me: WARNING: /" >&2
16107 ;;
16108esac
16109{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113else
16114 eval "$as_ac_Header=\$ac_header_preproc"
16115fi
16116ac_res=`eval echo '${'$as_ac_Header'}'`
16117 { echo "$as_me:$LINENO: result: $ac_res" >&5
16118echo "${ECHO_T}$ac_res" >&6; }
16119
16120fi
16121if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016122 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016124_ACEOF
16125 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016126
16127else
16128 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016129
16130fi
16131
Reid Spencerbe3e4192007-08-17 05:45:26 +000016132done
Reid Spencer1000b732006-12-01 00:37:14 +000016133
16134else
16135 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016136
16137fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016138
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016139if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016140
16141
16142for ac_header in ffi.h ffi/ffi.h
16143do
16144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150fi
16151ac_res=`eval echo '${'$as_ac_Header'}'`
16152 { echo "$as_me:$LINENO: result: $ac_res" >&5
16153echo "${ECHO_T}$ac_res" >&6; }
16154else
16155 # Is the header compilable?
16156{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16158cat >conftest.$ac_ext <<_ACEOF
16159/* confdefs.h. */
16160_ACEOF
16161cat confdefs.h >>conftest.$ac_ext
16162cat >>conftest.$ac_ext <<_ACEOF
16163/* end confdefs.h. */
16164$ac_includes_default
16165#include <$ac_header>
16166_ACEOF
16167rm -f conftest.$ac_objext
16168if { (ac_try="$ac_compile"
16169case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16172esac
16173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_compile") 2>conftest.er1
16175 ac_status=$?
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest.$ac_objext'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16195esac
16196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_header_compiler=yes
16202else
16203 echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 ac_header_compiler=no
16207fi
16208
16209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16211echo "${ECHO_T}$ac_header_compiler" >&6; }
16212
16213# Is the header present?
16214{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16215echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16216cat >conftest.$ac_ext <<_ACEOF
16217/* confdefs.h. */
16218_ACEOF
16219cat confdefs.h >>conftest.$ac_ext
16220cat >>conftest.$ac_ext <<_ACEOF
16221/* end confdefs.h. */
16222#include <$ac_header>
16223_ACEOF
16224if { (ac_try="$ac_cpp conftest.$ac_ext"
16225case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16228esac
16229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16231 ac_status=$?
16232 grep -v '^ *+' conftest.er1 >conftest.err
16233 rm -f conftest.er1
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } >/dev/null; then
16237 if test -s conftest.err; then
16238 ac_cpp_err=$ac_c_preproc_warn_flag
16239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16240 else
16241 ac_cpp_err=
16242 fi
16243else
16244 ac_cpp_err=yes
16245fi
16246if test -z "$ac_cpp_err"; then
16247 ac_header_preproc=yes
16248else
16249 echo "$as_me: failed program was:" >&5
16250sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 ac_header_preproc=no
16253fi
16254
16255rm -f conftest.err conftest.$ac_ext
16256{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16257echo "${ECHO_T}$ac_header_preproc" >&6; }
16258
16259# So? What about this header?
16260case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16261 yes:no: )
16262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16263echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16265echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16266 ac_header_preproc=yes
16267 ;;
16268 no:yes:* )
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16270echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16272echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16274echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16276echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16278echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16280echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16281 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016282## ------------------------------------ ##
16283## Report this to http://llvm.org/bugs/ ##
16284## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016285_ASBOX
16286 ) | sed "s/^/$as_me: WARNING: /" >&2
16287 ;;
16288esac
16289{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16293else
16294 eval "$as_ac_Header=\$ac_header_preproc"
16295fi
16296ac_res=`eval echo '${'$as_ac_Header'}'`
16297 { echo "$as_me:$LINENO: result: $ac_res" >&5
16298echo "${ECHO_T}$ac_res" >&6; }
16299
16300fi
16301if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016302 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016304_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016305
16306fi
16307
16308done
16309
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016310fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016311
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016312
Eric Christopher654dee42010-06-22 21:01:04 +000016313for ac_header in CrashReporterClient.h
16314do
16315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321fi
16322ac_res=`eval echo '${'$as_ac_Header'}'`
16323 { echo "$as_me:$LINENO: result: $ac_res" >&5
16324echo "${ECHO_T}$ac_res" >&6; }
16325else
16326 # Is the header compilable?
16327{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16329cat >conftest.$ac_ext <<_ACEOF
16330/* confdefs.h. */
16331_ACEOF
16332cat confdefs.h >>conftest.$ac_ext
16333cat >>conftest.$ac_ext <<_ACEOF
16334/* end confdefs.h. */
16335$ac_includes_default
16336#include <$ac_header>
16337_ACEOF
16338rm -f conftest.$ac_objext
16339if { (ac_try="$ac_compile"
16340case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16343esac
16344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_compile") 2>conftest.er1
16346 ac_status=$?
16347 grep -v '^ *+' conftest.er1 >conftest.err
16348 rm -f conftest.er1
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353 { (case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356esac
16357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_try") 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366esac
16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_header_compiler=yes
16373else
16374 echo "$as_me: failed program was:" >&5
16375sed 's/^/| /' conftest.$ac_ext >&5
16376
16377 ac_header_compiler=no
16378fi
16379
16380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16382echo "${ECHO_T}$ac_header_compiler" >&6; }
16383
16384# Is the header present?
16385{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16387cat >conftest.$ac_ext <<_ACEOF
16388/* confdefs.h. */
16389_ACEOF
16390cat confdefs.h >>conftest.$ac_ext
16391cat >>conftest.$ac_ext <<_ACEOF
16392/* end confdefs.h. */
16393#include <$ac_header>
16394_ACEOF
16395if { (ac_try="$ac_cpp conftest.$ac_ext"
16396case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16402 ac_status=$?
16403 grep -v '^ *+' conftest.er1 >conftest.err
16404 rm -f conftest.er1
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } >/dev/null; then
16408 if test -s conftest.err; then
16409 ac_cpp_err=$ac_c_preproc_warn_flag
16410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16411 else
16412 ac_cpp_err=
16413 fi
16414else
16415 ac_cpp_err=yes
16416fi
16417if test -z "$ac_cpp_err"; then
16418 ac_header_preproc=yes
16419else
16420 echo "$as_me: failed program was:" >&5
16421sed 's/^/| /' conftest.$ac_ext >&5
16422
16423 ac_header_preproc=no
16424fi
16425
16426rm -f conftest.err conftest.$ac_ext
16427{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16428echo "${ECHO_T}$ac_header_preproc" >&6; }
16429
16430# So? What about this header?
16431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16432 yes:no: )
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16434echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16436echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16437 ac_header_preproc=yes
16438 ;;
16439 no:yes:* )
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16441echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16443echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16445echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16447echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16451echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16452 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016453## ------------------------------------ ##
16454## Report this to http://llvm.org/bugs/ ##
16455## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016456_ASBOX
16457 ) | sed "s/^/$as_me: WARNING: /" >&2
16458 ;;
16459esac
16460{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464else
16465 eval "$as_ac_Header=\$ac_header_preproc"
16466fi
16467ac_res=`eval echo '${'$as_ac_Header'}'`
16468 { echo "$as_me:$LINENO: result: $ac_res" >&5
16469echo "${ECHO_T}$ac_res" >&6; }
16470
16471fi
16472if test `eval echo '${'$as_ac_Header'}'` = yes; then
16473 cat >>confdefs.h <<_ACEOF
16474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16475_ACEOF
16476
16477fi
16478
16479done
16480
16481
Eric Christopher51e57132010-12-07 02:05:42 +000016482{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16483echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016484cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000016485
16486 /* confdefs.h. */
Eric Christopher481d4022010-12-03 07:45:22 +000016487_ACEOF
16488cat confdefs.h >>conftest.$ac_ext
16489cat >>conftest.$ac_ext <<_ACEOF
16490/* end confdefs.h. */
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000016491
16492 extern const char *__crashreporter_info__;
16493 int main() {
16494 __crashreporter_info__ = "test";
16495 return 0;
16496 }
16497
Eric Christopher481d4022010-12-03 07:45:22 +000016498
Eric Christopher481d4022010-12-03 07:45:22 +000016499_ACEOF
16500rm -f conftest.$ac_objext conftest$ac_exeext
16501if { (ac_try="$ac_link"
16502case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505esac
16506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518esac
16519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16528esac
16529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000016534
Eric Christopher51e57132010-12-07 02:05:42 +000016535 { echo "$as_me:$LINENO: result: yes" >&5
16536echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016537
16538cat >>confdefs.h <<\_ACEOF
16539#define HAVE_CRASHREPORTER_INFO 1
16540_ACEOF
16541
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000016542
Eric Christopher51e57132010-12-07 02:05:42 +000016543else
16544 echo "$as_me: failed program was:" >&5
16545sed 's/^/| /' conftest.$ac_ext >&5
16546
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000016547
16548 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopher51e57132010-12-07 02:05:42 +000016549echo "${ECHO_T}no" >&6; }
16550
16551cat >>confdefs.h <<\_ACEOF
16552#define HAVE_CRASHREPORTER_INFO 0
16553_ACEOF
16554
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000016555
Eric Christopher481d4022010-12-03 07:45:22 +000016556fi
Eric Christopher654dee42010-06-22 21:01:04 +000016557
Eric Christopher51e57132010-12-07 02:05:42 +000016558rm -f core conftest.err conftest.$ac_objext \
16559 conftest$ac_exeext conftest.$ac_ext
16560
16561
Reid Spencer8085cff2005-01-16 02:58:39 +000016562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016563 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16564echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16565if test "${ac_cv_huge_val_sanity+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016567else
16568
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016569 ac_ext=cpp
16570ac_cpp='$CXXCPP $CPPFLAGS'
16571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016574
Eric Christopherc7718502010-03-02 05:06:54 +000016575 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016576 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016577 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016578 ac_cv_huge_val_sanity=yes
16579else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016580 cat >conftest.$ac_ext <<_ACEOF
16581/* confdefs.h. */
16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016585/* end confdefs.h. */
16586#include <math.h>
16587int
16588main ()
16589{
16590double x = HUGE_VAL; return x != x;
16591 ;
16592 return 0;
16593}
16594_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016595rm -f conftest$ac_exeext
16596if { (ac_try="$ac_link"
16597case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16600esac
16601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_link") 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16606 { (case "(($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_try") 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016615 ac_cv_huge_val_sanity=yes
16616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016617 echo "$as_me: program exited with status $ac_status" >&5
16618echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
16621( exit $ac_status )
16622ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016624rm -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 +000016625fi
16626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016627
Eric Christopherc7718502010-03-02 05:06:54 +000016628 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016629 ac_ext=c
16630ac_cpp='$CPP $CPPFLAGS'
16631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634
16635
16636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016637{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16638echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016639 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16640
16641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016642{ echo "$as_me:$LINENO: checking for pid_t" >&5
16643echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16644if test "${ac_cv_type_pid_t+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647 cat >conftest.$ac_ext <<_ACEOF
16648/* confdefs.h. */
16649_ACEOF
16650cat confdefs.h >>conftest.$ac_ext
16651cat >>conftest.$ac_ext <<_ACEOF
16652/* end confdefs.h. */
16653$ac_includes_default
16654typedef pid_t ac__type_new_;
16655int
16656main ()
16657{
16658if ((ac__type_new_ *) 0)
16659 return 0;
16660if (sizeof (ac__type_new_))
16661 return 0;
16662 ;
16663 return 0;
16664}
16665_ACEOF
16666rm -f conftest.$ac_objext
16667if { (ac_try="$ac_compile"
16668case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16671esac
16672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_compile") 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684esac
16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
16691 { (case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694esac
16695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_try") 2>&5
16697 ac_status=$?
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ac_cv_type_pid_t=yes
16701else
16702 echo "$as_me: failed program was:" >&5
16703sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016705 ac_cv_type_pid_t=no
16706fi
16707
16708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709fi
16710{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16711echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16712if test $ac_cv_type_pid_t = yes; then
16713 :
John Criswell7a73b802003-06-30 21:59:07 +000016714else
16715
16716cat >>confdefs.h <<_ACEOF
16717#define pid_t int
16718_ACEOF
16719
16720fi
16721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016722{ echo "$as_me:$LINENO: checking for size_t" >&5
16723echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16724if test "${ac_cv_type_size_t+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16726else
16727 cat >conftest.$ac_ext <<_ACEOF
16728/* confdefs.h. */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
16732/* end confdefs.h. */
16733$ac_includes_default
16734typedef size_t ac__type_new_;
16735int
16736main ()
16737{
16738if ((ac__type_new_ *) 0)
16739 return 0;
16740if (sizeof (ac__type_new_))
16741 return 0;
16742 ;
16743 return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext
16747if { (ac_try="$ac_compile"
16748case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751esac
16752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16764esac
16765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774esac
16775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_type_size_t=yes
16781else
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016785 ac_cv_type_size_t=no
16786fi
16787
16788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789fi
16790{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16791echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16792if test $ac_cv_type_size_t = yes; then
16793 :
John Criswell7a73b802003-06-30 21:59:07 +000016794else
16795
16796cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016797#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016798_ACEOF
16799
16800fi
16801
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016802
16803cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016804#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016805_ACEOF
16806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016807{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16808echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16809if test "${ac_cv_struct_tm+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016812 cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h. */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016817/* end confdefs.h. */
16818#include <sys/types.h>
16819#include <time.h>
16820
16821int
16822main ()
16823{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016824struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016825 ;
16826 return 0;
16827}
16828_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016829rm -f conftest.$ac_objext
16830if { (ac_try="$ac_compile"
16831case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834esac
16835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_compile") 2>conftest.er1
16837 ac_status=$?
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
16843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16857esac
16858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_try") 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016863 ac_cv_struct_tm=time.h
16864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016865 echo "$as_me: failed program was:" >&5
16866sed 's/^/| /' conftest.$ac_ext >&5
16867
16868 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016870
Reid Spencera773bd52006-08-04 18:18:08 +000016871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016873{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16874echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016875if test $ac_cv_struct_tm = sys/time.h; then
16876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016877cat >>confdefs.h <<\_ACEOF
16878#define TM_IN_SYS_TIME 1
16879_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016880
16881fi
16882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016883{ echo "$as_me:$LINENO: checking for int64_t" >&5
16884echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16885if test "${ac_cv_type_int64_t+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887else
16888 cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895typedef int64_t ac__type_new_;
16896int
16897main ()
16898{
16899if ((ac__type_new_ *) 0)
16900 return 0;
16901if (sizeof (ac__type_new_))
16902 return 0;
16903 ;
16904 return 0;
16905}
16906_ACEOF
16907rm -f conftest.$ac_objext
16908if { (ac_try="$ac_compile"
16909case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16915 ac_status=$?
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935esac
16936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_type_int64_t=yes
16942else
16943 echo "$as_me: failed program was:" >&5
16944sed 's/^/| /' conftest.$ac_ext >&5
16945
16946 ac_cv_type_int64_t=no
16947fi
16948
16949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950fi
16951{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16952echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16953if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016954
16955cat >>confdefs.h <<_ACEOF
16956#define HAVE_INT64_T 1
16957_ACEOF
16958
16959
16960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016961 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16962echo "$as_me: error: Type int64_t required but not found" >&2;}
16963 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016964fi
16965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016966{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16967echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16968if test "${ac_cv_type_uint64_t+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16970else
16971 cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h. */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h. */
16977$ac_includes_default
16978typedef uint64_t ac__type_new_;
16979int
16980main ()
16981{
16982if ((ac__type_new_ *) 0)
16983 return 0;
16984if (sizeof (ac__type_new_))
16985 return 0;
16986 ;
16987 return 0;
16988}
16989_ACEOF
16990rm -f conftest.$ac_objext
16991if { (ac_try="$ac_compile"
16992case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16995esac
16996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_compile") 2>conftest.er1
16998 ac_status=$?
16999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008esac
17009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest.$ac_objext'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018esac
17019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; }; then
17024 ac_cv_type_uint64_t=yes
17025else
17026 echo "$as_me: failed program was:" >&5
17027sed 's/^/| /' conftest.$ac_ext >&5
17028
17029 ac_cv_type_uint64_t=no
17030fi
17031
17032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033fi
17034{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17035echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17036if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017037
17038cat >>confdefs.h <<_ACEOF
17039#define HAVE_UINT64_T 1
17040_ACEOF
17041
17042
17043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017044 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17045echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17046if test "${ac_cv_type_u_int64_t+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048else
17049 cat >conftest.$ac_ext <<_ACEOF
17050/* confdefs.h. */
17051_ACEOF
17052cat confdefs.h >>conftest.$ac_ext
17053cat >>conftest.$ac_ext <<_ACEOF
17054/* end confdefs.h. */
17055$ac_includes_default
17056typedef u_int64_t ac__type_new_;
17057int
17058main ()
17059{
17060if ((ac__type_new_ *) 0)
17061 return 0;
17062if (sizeof (ac__type_new_))
17063 return 0;
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest.$ac_objext
17069if { (ac_try="$ac_compile"
17070case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_compile") 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17083 { (case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086esac
17087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_try") 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest.$ac_objext'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096esac
17097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_type_u_int64_t=yes
17103else
17104 echo "$as_me: failed program was:" >&5
17105sed 's/^/| /' conftest.$ac_ext >&5
17106
17107 ac_cv_type_u_int64_t=no
17108fi
17109
17110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111fi
17112{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17113echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17114if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017115
17116cat >>confdefs.h <<_ACEOF
17117#define HAVE_U_INT64_T 1
17118_ACEOF
17119
17120
Misha Brukmanceca9042004-09-02 23:02:30 +000017121else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017122 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17123echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17124 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017125fi
17126
John Criswell679ff312004-09-02 18:44:44 +000017127fi
17128
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017129
17130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017131
17132
17133
17134
17135
17136
17137
Reid Spencerdf3be822006-01-23 08:15:53 +000017138for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017139do
17140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145else
17146 cat >conftest.$ac_ext <<_ACEOF
17147/* confdefs.h. */
17148_ACEOF
17149cat confdefs.h >>conftest.$ac_ext
17150cat >>conftest.$ac_ext <<_ACEOF
17151/* end confdefs.h. */
17152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154#define $ac_func innocuous_$ac_func
17155
17156/* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17160
17161#ifdef __STDC__
17162# include <limits.h>
17163#else
17164# include <assert.h>
17165#endif
17166
17167#undef $ac_func
17168
17169/* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172#ifdef __cplusplus
17173extern "C"
17174#endif
17175char $ac_func ();
17176/* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179#if defined __stub_$ac_func || defined __stub___$ac_func
17180choke me
17181#endif
17182
17183int
17184main ()
17185{
17186return $ac_func ();
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191rm -f conftest.$ac_objext conftest$ac_exeext
17192if { (ac_try="$ac_link"
17193case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196esac
17197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17219esac
17220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 eval "$as_ac_var=yes"
17226else
17227 echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230 eval "$as_ac_var=no"
17231fi
17232
17233rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17235fi
17236ac_res=`eval echo '${'$as_ac_var'}'`
17237 { echo "$as_me:$LINENO: result: $ac_res" >&5
17238echo "${ECHO_T}$ac_res" >&6; }
17239if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017240 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017242_ACEOF
17243
17244fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017245done
John Criswell7a73b802003-06-30 21:59:07 +000017246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017247
17248
17249
17250
Reid Spencer96cf5872007-07-13 10:05:30 +000017251for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017252do
17253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17254{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17256if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17258else
17259 cat >conftest.$ac_ext <<_ACEOF
17260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
17265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17267#define $ac_func innocuous_$ac_func
17268
17269/* System header to define __stub macros and hopefully few prototypes,
17270 which can conflict with char $ac_func (); below.
17271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272 <limits.h> exists even on freestanding compilers. */
17273
17274#ifdef __STDC__
17275# include <limits.h>
17276#else
17277# include <assert.h>
17278#endif
17279
17280#undef $ac_func
17281
17282/* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17285#ifdef __cplusplus
17286extern "C"
17287#endif
17288char $ac_func ();
17289/* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292#if defined __stub_$ac_func || defined __stub___$ac_func
17293choke me
17294#endif
17295
17296int
17297main ()
17298{
17299return $ac_func ();
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304rm -f conftest.$ac_objext conftest$ac_exeext
17305if { (ac_try="$ac_link"
17306case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309esac
17310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17319 { (case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17322esac
17323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_try") 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332esac
17333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 eval "$as_ac_var=yes"
17339else
17340 echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 eval "$as_ac_var=no"
17344fi
17345
17346rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17348fi
17349ac_res=`eval echo '${'$as_ac_var'}'`
17350 { echo "$as_me:$LINENO: result: $ac_res" >&5
17351echo "${ECHO_T}$ac_res" >&6; }
17352if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017353 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017355_ACEOF
17356
17357fi
17358done
17359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017360
17361
17362
17363
17364
Owen Andersonec643ab2013-02-07 00:21:34 +000017365for ac_func in log log2 log10 exp exp2
17366do
17367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17368{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372else
17373 cat >conftest.$ac_ext <<_ACEOF
17374/* confdefs.h. */
17375_ACEOF
17376cat confdefs.h >>conftest.$ac_ext
17377cat >>conftest.$ac_ext <<_ACEOF
17378/* end confdefs.h. */
17379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17381#define $ac_func innocuous_$ac_func
17382
17383/* System header to define __stub macros and hopefully few prototypes,
17384 which can conflict with char $ac_func (); below.
17385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17386 <limits.h> exists even on freestanding compilers. */
17387
17388#ifdef __STDC__
17389# include <limits.h>
17390#else
17391# include <assert.h>
17392#endif
17393
17394#undef $ac_func
17395
17396/* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17399#ifdef __cplusplus
17400extern "C"
17401#endif
17402char $ac_func ();
17403/* The GNU C library defines this for functions which it implements
17404 to always fail with ENOSYS. Some functions are actually named
17405 something starting with __ and the normal name is an alias. */
17406#if defined __stub_$ac_func || defined __stub___$ac_func
17407choke me
17408#endif
17409
17410int
17411main ()
17412{
17413return $ac_func ();
17414 ;
17415 return 0;
17416}
17417_ACEOF
17418rm -f conftest.$ac_objext conftest$ac_exeext
17419if { (ac_try="$ac_link"
17420case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423esac
17424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
17426 ac_status=$?
17427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436esac
17437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest$ac_exeext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446esac
17447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 eval "$as_ac_var=yes"
17453else
17454 echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 eval "$as_ac_var=no"
17458fi
17459
17460rm -f core conftest.err conftest.$ac_objext \
17461 conftest$ac_exeext conftest.$ac_ext
17462fi
17463ac_res=`eval echo '${'$as_ac_var'}'`
17464 { echo "$as_me:$LINENO: result: $ac_res" >&5
17465echo "${ECHO_T}$ac_res" >&6; }
17466if test `eval echo '${'$as_ac_var'}'` = yes; then
17467 cat >>confdefs.h <<_ACEOF
17468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17469_ACEOF
17470
17471fi
17472done
17473
17474
17475
17476
17477
17478
Reid Spencerb90645c2007-02-16 19:17:20 +000017479for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017480do
17481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17482{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17484if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17485 echo $ECHO_N "(cached) $ECHO_C" >&6
17486else
17487 cat >conftest.$ac_ext <<_ACEOF
17488/* confdefs.h. */
17489_ACEOF
17490cat confdefs.h >>conftest.$ac_ext
17491cat >>conftest.$ac_ext <<_ACEOF
17492/* end confdefs.h. */
17493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17495#define $ac_func innocuous_$ac_func
17496
17497/* System header to define __stub macros and hopefully few prototypes,
17498 which can conflict with char $ac_func (); below.
17499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 <limits.h> exists even on freestanding compilers. */
17501
17502#ifdef __STDC__
17503# include <limits.h>
17504#else
17505# include <assert.h>
17506#endif
17507
17508#undef $ac_func
17509
17510/* Override any GCC internal prototype to avoid an error.
17511 Use char because int might match the return type of a GCC
17512 builtin and then its argument prototype would still apply. */
17513#ifdef __cplusplus
17514extern "C"
17515#endif
17516char $ac_func ();
17517/* The GNU C library defines this for functions which it implements
17518 to always fail with ENOSYS. Some functions are actually named
17519 something starting with __ and the normal name is an alias. */
17520#if defined __stub_$ac_func || defined __stub___$ac_func
17521choke me
17522#endif
17523
17524int
17525main ()
17526{
17527return $ac_func ();
17528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext conftest$ac_exeext
17533if { (ac_try="$ac_link"
17534case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest$ac_exeext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560esac
17561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 eval "$as_ac_var=yes"
17567else
17568 echo "$as_me: failed program was:" >&5
17569sed 's/^/| /' conftest.$ac_ext >&5
17570
17571 eval "$as_ac_var=no"
17572fi
17573
17574rm -f core conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17576fi
17577ac_res=`eval echo '${'$as_ac_var'}'`
17578 { echo "$as_me:$LINENO: result: $ac_res" >&5
17579echo "${ECHO_T}$ac_res" >&6; }
17580if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017581 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017583_ACEOF
17584
17585fi
17586done
17587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017588
17589
17590
Reid Spencerb90645c2007-02-16 19:17:20 +000017591for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017592do
17593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17594{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17596if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
17598else
17599 cat >conftest.$ac_ext <<_ACEOF
17600/* confdefs.h. */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
17604/* end confdefs.h. */
17605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17607#define $ac_func innocuous_$ac_func
17608
17609/* System header to define __stub macros and hopefully few prototypes,
17610 which can conflict with char $ac_func (); below.
17611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17612 <limits.h> exists even on freestanding compilers. */
17613
17614#ifdef __STDC__
17615# include <limits.h>
17616#else
17617# include <assert.h>
17618#endif
17619
17620#undef $ac_func
17621
17622/* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
17625#ifdef __cplusplus
17626extern "C"
17627#endif
17628char $ac_func ();
17629/* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632#if defined __stub_$ac_func || defined __stub___$ac_func
17633choke me
17634#endif
17635
17636int
17637main ()
17638{
17639return $ac_func ();
17640 ;
17641 return 0;
17642}
17643_ACEOF
17644rm -f conftest.$ac_objext conftest$ac_exeext
17645if { (ac_try="$ac_link"
17646case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_link") 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17659 { (case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662esac
17663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_try") 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest$ac_exeext'
17669 { (case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672esac
17673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_try") 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 eval "$as_ac_var=yes"
17679else
17680 echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
17682
17683 eval "$as_ac_var=no"
17684fi
17685
17686rm -f core conftest.err conftest.$ac_objext \
17687 conftest$ac_exeext conftest.$ac_ext
17688fi
17689ac_res=`eval echo '${'$as_ac_var'}'`
17690 { echo "$as_me:$LINENO: result: $ac_res" >&5
17691echo "${ECHO_T}$ac_res" >&6; }
17692if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017693 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017695_ACEOF
17696
17697fi
17698done
17699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017700
17701
17702
17703
17704
Eric Christophere4291822010-04-16 05:14:21 +000017705
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017706
17707for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017708do
17709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714else
17715 cat >conftest.$ac_ext <<_ACEOF
17716/* confdefs.h. */
17717_ACEOF
17718cat confdefs.h >>conftest.$ac_ext
17719cat >>conftest.$ac_ext <<_ACEOF
17720/* end confdefs.h. */
17721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17723#define $ac_func innocuous_$ac_func
17724
17725/* System header to define __stub macros and hopefully few prototypes,
17726 which can conflict with char $ac_func (); below.
17727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728 <limits.h> exists even on freestanding compilers. */
17729
17730#ifdef __STDC__
17731# include <limits.h>
17732#else
17733# include <assert.h>
17734#endif
17735
17736#undef $ac_func
17737
17738/* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17741#ifdef __cplusplus
17742extern "C"
17743#endif
17744char $ac_func ();
17745/* The GNU C library defines this for functions which it implements
17746 to always fail with ENOSYS. Some functions are actually named
17747 something starting with __ and the normal name is an alias. */
17748#if defined __stub_$ac_func || defined __stub___$ac_func
17749choke me
17750#endif
17751
17752int
17753main ()
17754{
17755return $ac_func ();
17756 ;
17757 return 0;
17758}
17759_ACEOF
17760rm -f conftest.$ac_objext conftest$ac_exeext
17761if { (ac_try="$ac_link"
17762case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765esac
17766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_link") 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778esac
17779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17788esac
17789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 eval "$as_ac_var=yes"
17795else
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799 eval "$as_ac_var=no"
17800fi
17801
17802rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17804fi
17805ac_res=`eval echo '${'$as_ac_var'}'`
17806 { echo "$as_me:$LINENO: result: $ac_res" >&5
17807echo "${ECHO_T}$ac_res" >&6; }
17808if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017809 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017811_ACEOF
17812
17813fi
17814done
Reid Spencerdf3be822006-01-23 08:15:53 +000017815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017816
17817
17818
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017819
17820for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017821do
17822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827else
17828 cat >conftest.$ac_ext <<_ACEOF
17829/* confdefs.h. */
17830_ACEOF
17831cat confdefs.h >>conftest.$ac_ext
17832cat >>conftest.$ac_ext <<_ACEOF
17833/* end confdefs.h. */
17834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17836#define $ac_func innocuous_$ac_func
17837
17838/* System header to define __stub macros and hopefully few prototypes,
17839 which can conflict with char $ac_func (); below.
17840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841 <limits.h> exists even on freestanding compilers. */
17842
17843#ifdef __STDC__
17844# include <limits.h>
17845#else
17846# include <assert.h>
17847#endif
17848
17849#undef $ac_func
17850
17851/* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17854#ifdef __cplusplus
17855extern "C"
17856#endif
17857char $ac_func ();
17858/* The GNU C library defines this for functions which it implements
17859 to always fail with ENOSYS. Some functions are actually named
17860 something starting with __ and the normal name is an alias. */
17861#if defined __stub_$ac_func || defined __stub___$ac_func
17862choke me
17863#endif
17864
17865int
17866main ()
17867{
17868return $ac_func ();
17869 ;
17870 return 0;
17871}
17872_ACEOF
17873rm -f conftest.$ac_objext conftest$ac_exeext
17874if { (ac_try="$ac_link"
17875case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878esac
17879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891esac
17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest$ac_exeext'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17901esac
17902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 eval "$as_ac_var=yes"
17908else
17909 echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912 eval "$as_ac_var=no"
17913fi
17914
17915rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917fi
17918ac_res=`eval echo '${'$as_ac_var'}'`
17919 { echo "$as_me:$LINENO: result: $ac_res" >&5
17920echo "${ECHO_T}$ac_res" >&6; }
17921if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017922 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017924_ACEOF
17925
17926fi
17927done
17928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017929
17930
17931
17932
Chris Lattner511f11d2005-11-14 07:25:50 +000017933for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017934do
17935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17936{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17938if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940else
17941 cat >conftest.$ac_ext <<_ACEOF
17942/* confdefs.h. */
17943_ACEOF
17944cat confdefs.h >>conftest.$ac_ext
17945cat >>conftest.$ac_ext <<_ACEOF
17946/* end confdefs.h. */
17947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17949#define $ac_func innocuous_$ac_func
17950
17951/* System header to define __stub macros and hopefully few prototypes,
17952 which can conflict with char $ac_func (); below.
17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 <limits.h> exists even on freestanding compilers. */
17955
17956#ifdef __STDC__
17957# include <limits.h>
17958#else
17959# include <assert.h>
17960#endif
17961
17962#undef $ac_func
17963
17964/* Override any GCC internal prototype to avoid an error.
17965 Use char because int might match the return type of a GCC
17966 builtin and then its argument prototype would still apply. */
17967#ifdef __cplusplus
17968extern "C"
17969#endif
17970char $ac_func ();
17971/* The GNU C library defines this for functions which it implements
17972 to always fail with ENOSYS. Some functions are actually named
17973 something starting with __ and the normal name is an alias. */
17974#if defined __stub_$ac_func || defined __stub___$ac_func
17975choke me
17976#endif
17977
17978int
17979main ()
17980{
17981return $ac_func ();
17982 ;
17983 return 0;
17984}
17985_ACEOF
17986rm -f conftest.$ac_objext conftest$ac_exeext
17987if { (ac_try="$ac_link"
17988case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17991esac
17992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_link") 2>conftest.er1
17994 ac_status=$?
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001 { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18004esac
18005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_try") 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014esac
18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 eval "$as_ac_var=yes"
18021else
18022 echo "$as_me: failed program was:" >&5
18023sed 's/^/| /' conftest.$ac_ext >&5
18024
18025 eval "$as_ac_var=no"
18026fi
18027
18028rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18030fi
18031ac_res=`eval echo '${'$as_ac_var'}'`
18032 { echo "$as_me:$LINENO: result: $ac_res" >&5
18033echo "${ECHO_T}$ac_res" >&6; }
18034if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018035 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018037_ACEOF
18038
18039fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018040done
John Criswell7a73b802003-06-30 21:59:07 +000018041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018042
18043
18044
18045
Daniel Dunbar3e462932011-02-03 02:40:02 +000018046
18047for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018048do
18049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18050{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18052if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18054else
18055 cat >conftest.$ac_ext <<_ACEOF
18056/* confdefs.h. */
18057_ACEOF
18058cat confdefs.h >>conftest.$ac_ext
18059cat >>conftest.$ac_ext <<_ACEOF
18060/* end confdefs.h. */
18061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18063#define $ac_func innocuous_$ac_func
18064
18065/* System header to define __stub macros and hopefully few prototypes,
18066 which can conflict with char $ac_func (); below.
18067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18068 <limits.h> exists even on freestanding compilers. */
18069
18070#ifdef __STDC__
18071# include <limits.h>
18072#else
18073# include <assert.h>
18074#endif
18075
18076#undef $ac_func
18077
18078/* Override any GCC internal prototype to avoid an error.
18079 Use char because int might match the return type of a GCC
18080 builtin and then its argument prototype would still apply. */
18081#ifdef __cplusplus
18082extern "C"
18083#endif
18084char $ac_func ();
18085/* The GNU C library defines this for functions which it implements
18086 to always fail with ENOSYS. Some functions are actually named
18087 something starting with __ and the normal name is an alias. */
18088#if defined __stub_$ac_func || defined __stub___$ac_func
18089choke me
18090#endif
18091
18092int
18093main ()
18094{
18095return $ac_func ();
18096 ;
18097 return 0;
18098}
18099_ACEOF
18100rm -f conftest.$ac_objext conftest$ac_exeext
18101if { (ac_try="$ac_link"
18102case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105esac
18106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_link") 2>conftest.er1
18108 ac_status=$?
18109 grep -v '^ *+' conftest.er1 >conftest.err
18110 rm -f conftest.er1
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18115 { (case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18118esac
18119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_try") 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest$ac_exeext'
18125 { (case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18128esac
18129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_try") 2>&5
18131 ac_status=$?
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18134 eval "$as_ac_var=yes"
18135else
18136 echo "$as_me: failed program was:" >&5
18137sed 's/^/| /' conftest.$ac_ext >&5
18138
18139 eval "$as_ac_var=no"
18140fi
18141
18142rm -f core conftest.err conftest.$ac_objext \
18143 conftest$ac_exeext conftest.$ac_ext
18144fi
18145ac_res=`eval echo '${'$as_ac_var'}'`
18146 { echo "$as_me:$LINENO: result: $ac_res" >&5
18147echo "${ECHO_T}$ac_res" >&6; }
18148if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018149 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018151_ACEOF
18152
18153fi
18154done
18155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018156{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18157echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18158if test "${llvm_cv_c_printf_a+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018160else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018161 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018162ac_cpp='$CPP $CPPFLAGS'
18163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18165ac_compiler_gnu=$ac_cv_c_compiler_gnu
18166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018167 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018168 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018170 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018172 /* confdefs.h. */
18173_ACEOF
18174cat confdefs.h >>conftest.$ac_ext
18175cat >>conftest.$ac_ext <<_ACEOF
18176/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018177
John Criswella0137d32003-10-13 16:22:01 +000018178#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018179#include <stdlib.h>
18180
John Criswella0137d32003-10-13 16:22:01 +000018181int
18182main ()
18183{
18184
Reid Spencer2706f8c2004-09-19 23:53:36 +000018185volatile double A, B;
18186char Buffer[100];
18187A = 1;
18188A /= 10.0;
18189sprintf(Buffer, "%a", A);
18190B = atof(Buffer);
18191if (A != B)
18192 return (1);
18193if (A != 0x1.999999999999ap-4)
18194 return (1);
18195return (0);
John Criswella0137d32003-10-13 16:22:01 +000018196 ;
18197 return 0;
18198}
18199_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018200rm -f conftest$ac_exeext
18201if { (ac_try="$ac_link"
18202case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18205esac
18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_link") 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18211 { (case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214esac
18215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018220 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018222 echo "$as_me: program exited with status $ac_status" >&5
18223echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226( exit $ac_status )
18227llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018229rm -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 +000018230fi
Reid Spencera773bd52006-08-04 18:18:08 +000018231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018232
Reid Spencer2706f8c2004-09-19 23:53:36 +000018233 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018234ac_cpp='$CPP $CPPFLAGS'
18235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237ac_compiler_gnu=$ac_cv_c_compiler_gnu
18238
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018240{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18241echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018242 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018244cat >>confdefs.h <<\_ACEOF
18245#define HAVE_PRINTF_A 1
18246_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018247
Reid Spencer2706f8c2004-09-19 23:53:36 +000018248 fi
John Criswella0137d32003-10-13 16:22:01 +000018249
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018250
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000018251
18252 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018253echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18254if test "${ac_cv_func_rand48+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018256else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000018257
18258 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018259ac_cpp='$CXXCPP $CPPFLAGS'
18260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18263
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000018264 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018265/* confdefs.h. */
18266_ACEOF
18267cat confdefs.h >>conftest.$ac_ext
18268cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018269/* end confdefs.h. */
18270#include <stdlib.h>
18271int
18272main ()
18273{
18274srand48(0);lrand48();drand48();
18275 ;
18276 return 0;
18277}
18278_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018279rm -f conftest.$ac_objext
18280if { (ac_try="$ac_compile"
18281case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284esac
18285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_compile") 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297esac
18298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest.$ac_objext'
18304 { (case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307esac
18308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018313 ac_cv_func_rand48=yes
18314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018315 echo "$as_me: failed program was:" >&5
18316sed 's/^/| /' conftest.$ac_ext >&5
18317
18318 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018319fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018320
Reid Spencera773bd52006-08-04 18:18:08 +000018321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000018322 ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018323ac_cpp='$CPP $CPPFLAGS'
18324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18326ac_compiler_gnu=$ac_cv_c_compiler_gnu
18327
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000018328
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018330{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18331echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018332
18333if test "$ac_cv_func_rand48" = "yes" ; then
18334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018335cat >>confdefs.h <<\_ACEOF
18336#define HAVE_RAND48 1
18337_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018338
18339fi
John Criswell0021c312004-02-13 21:57:29 +000018340
18341
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018342{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18343echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18344if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18346else
18347 cat >conftest.$ac_ext <<_ACEOF
18348/* confdefs.h. */
18349_ACEOF
18350cat confdefs.h >>conftest.$ac_ext
18351cat >>conftest.$ac_ext <<_ACEOF
18352/* end confdefs.h. */
18353$ac_includes_default
18354int
18355main ()
18356{
18357#ifndef strerror_s
18358 char *p = (char *) strerror_s;
18359 return !p;
18360#endif
18361
18362 ;
18363 return 0;
18364}
18365_ACEOF
18366rm -f conftest.$ac_objext
18367if { (ac_try="$ac_compile"
18368case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18371esac
18372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_compile") 2>conftest.er1
18374 ac_status=$?
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18381 { (case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18384esac
18385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_try") 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest.$ac_objext'
18391 { (case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18394esac
18395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_try") 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 ac_cv_have_decl_strerror_s=yes
18401else
18402 echo "$as_me: failed program was:" >&5
18403sed 's/^/| /' conftest.$ac_ext >&5
18404
18405 ac_cv_have_decl_strerror_s=no
18406fi
18407
18408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18409fi
18410{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18411echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18412if test $ac_cv_have_decl_strerror_s = yes; then
18413
18414cat >>confdefs.h <<_ACEOF
18415#define HAVE_DECL_STRERROR_S 1
18416_ACEOF
18417
18418
18419else
18420 cat >>confdefs.h <<_ACEOF
18421#define HAVE_DECL_STRERROR_S 0
18422_ACEOF
18423
18424
18425fi
18426
18427
18428
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018429if test "$llvm_cv_os_type" = "MingW" ; then
18430 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18431echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18432if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18434else
18435 ac_check_lib_save_LIBS=$LIBS
18436LIBS="-lgcc $LIBS"
18437cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
18443
18444/* Override any GCC internal prototype to avoid an error.
18445 Use char because int might match the return type of a GCC
18446 builtin and then its argument prototype would still apply. */
18447#ifdef __cplusplus
18448extern "C"
18449#endif
18450char _alloca ();
18451int
18452main ()
18453{
18454return _alloca ();
18455 ;
18456 return 0;
18457}
18458_ACEOF
18459rm -f conftest.$ac_objext conftest$ac_exeext
18460if { (ac_try="$ac_link"
18461case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18464esac
18465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_link") 2>conftest.er1
18467 ac_status=$?
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
18473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18474 { (case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18477esac
18478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_try") 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; } &&
18483 { ac_try='test -s conftest$ac_exeext'
18484 { (case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487esac
18488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_try") 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; }; then
18493 ac_cv_lib_gcc__alloca=yes
18494else
18495 echo "$as_me: failed program was:" >&5
18496sed 's/^/| /' conftest.$ac_ext >&5
18497
18498 ac_cv_lib_gcc__alloca=no
18499fi
18500
18501rm -f core conftest.err conftest.$ac_objext \
18502 conftest$ac_exeext conftest.$ac_ext
18503LIBS=$ac_check_lib_save_LIBS
18504fi
18505{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18506echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18507if test $ac_cv_lib_gcc__alloca = yes; then
18508
18509cat >>confdefs.h <<\_ACEOF
18510#define HAVE__ALLOCA 1
18511_ACEOF
18512
18513fi
18514
18515 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18516echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18517if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519else
18520 ac_check_lib_save_LIBS=$LIBS
18521LIBS="-lgcc $LIBS"
18522cat >conftest.$ac_ext <<_ACEOF
18523/* confdefs.h. */
18524_ACEOF
18525cat confdefs.h >>conftest.$ac_ext
18526cat >>conftest.$ac_ext <<_ACEOF
18527/* end confdefs.h. */
18528
18529/* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18532#ifdef __cplusplus
18533extern "C"
18534#endif
18535char __alloca ();
18536int
18537main ()
18538{
18539return __alloca ();
18540 ;
18541 return 0;
18542}
18543_ACEOF
18544rm -f conftest.$ac_objext conftest$ac_exeext
18545if { (ac_try="$ac_link"
18546case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549esac
18550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_link") 2>conftest.er1
18552 ac_status=$?
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
18558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18559 { (case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562esac
18563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_try") 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; } &&
18568 { ac_try='test -s conftest$ac_exeext'
18569 { (case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572esac
18573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_try") 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_cv_lib_gcc___alloca=yes
18579else
18580 echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583 ac_cv_lib_gcc___alloca=no
18584fi
18585
18586rm -f core conftest.err conftest.$ac_objext \
18587 conftest$ac_exeext conftest.$ac_ext
18588LIBS=$ac_check_lib_save_LIBS
18589fi
18590{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18591echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18592if test $ac_cv_lib_gcc___alloca = yes; then
18593
18594cat >>confdefs.h <<\_ACEOF
18595#define HAVE___ALLOCA 1
18596_ACEOF
18597
18598fi
18599
18600 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18601echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18602if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604else
18605 ac_check_lib_save_LIBS=$LIBS
18606LIBS="-lgcc $LIBS"
18607cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613
18614/* Override any GCC internal prototype to avoid an error.
18615 Use char because int might match the return type of a GCC
18616 builtin and then its argument prototype would still apply. */
18617#ifdef __cplusplus
18618extern "C"
18619#endif
18620char __chkstk ();
18621int
18622main ()
18623{
18624return __chkstk ();
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext conftest$ac_exeext
18630if { (ac_try="$ac_link"
18631case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634esac
18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_link") 2>conftest.er1
18637 ac_status=$?
18638 grep -v '^ *+' conftest.er1 >conftest.err
18639 rm -f conftest.er1
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } &&
18643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18644 { (case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647esac
18648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_try") 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest$ac_exeext'
18654 { (case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657esac
18658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_try") 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 ac_cv_lib_gcc___chkstk=yes
18664else
18665 echo "$as_me: failed program was:" >&5
18666sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 ac_cv_lib_gcc___chkstk=no
18669fi
18670
18671rm -f core conftest.err conftest.$ac_objext \
18672 conftest$ac_exeext conftest.$ac_ext
18673LIBS=$ac_check_lib_save_LIBS
18674fi
18675{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18676echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18677if test $ac_cv_lib_gcc___chkstk = yes; then
18678
18679cat >>confdefs.h <<\_ACEOF
18680#define HAVE___CHKSTK 1
18681_ACEOF
18682
18683fi
18684
18685 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18686echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18687if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18689else
18690 ac_check_lib_save_LIBS=$LIBS
18691LIBS="-lgcc $LIBS"
18692cat >conftest.$ac_ext <<_ACEOF
18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698
18699/* Override any GCC internal prototype to avoid an error.
18700 Use char because int might match the return type of a GCC
18701 builtin and then its argument prototype would still apply. */
18702#ifdef __cplusplus
18703extern "C"
18704#endif
18705char ___chkstk ();
18706int
18707main ()
18708{
18709return ___chkstk ();
18710 ;
18711 return 0;
18712}
18713_ACEOF
18714rm -f conftest.$ac_objext conftest$ac_exeext
18715if { (ac_try="$ac_link"
18716case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719esac
18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_link") 2>conftest.er1
18722 ac_status=$?
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732esac
18733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest$ac_exeext'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 ac_cv_lib_gcc____chkstk=yes
18749else
18750 echo "$as_me: failed program was:" >&5
18751sed 's/^/| /' conftest.$ac_ext >&5
18752
18753 ac_cv_lib_gcc____chkstk=no
18754fi
18755
18756rm -f core conftest.err conftest.$ac_objext \
18757 conftest$ac_exeext conftest.$ac_ext
18758LIBS=$ac_check_lib_save_LIBS
18759fi
18760{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18761echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18762if test $ac_cv_lib_gcc____chkstk = yes; then
18763
18764cat >>confdefs.h <<\_ACEOF
18765#define HAVE____CHKSTK 1
18766_ACEOF
18767
18768fi
18769
18770
18771 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18772echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18773if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18775else
18776 ac_check_lib_save_LIBS=$LIBS
18777LIBS="-lgcc $LIBS"
18778cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784
18785/* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18788#ifdef __cplusplus
18789extern "C"
18790#endif
18791char __ashldi3 ();
18792int
18793main ()
18794{
18795return __ashldi3 ();
18796 ;
18797 return 0;
18798}
18799_ACEOF
18800rm -f conftest.$ac_objext conftest$ac_exeext
18801if { (ac_try="$ac_link"
18802case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18805esac
18806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
18808 ac_status=$?
18809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18815 { (case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18818esac
18819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_try") 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest$ac_exeext'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828esac
18829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18834 ac_cv_lib_gcc___ashldi3=yes
18835else
18836 echo "$as_me: failed program was:" >&5
18837sed 's/^/| /' conftest.$ac_ext >&5
18838
18839 ac_cv_lib_gcc___ashldi3=no
18840fi
18841
18842rm -f core conftest.err conftest.$ac_objext \
18843 conftest$ac_exeext conftest.$ac_ext
18844LIBS=$ac_check_lib_save_LIBS
18845fi
18846{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18847echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18848if test $ac_cv_lib_gcc___ashldi3 = yes; then
18849
18850cat >>confdefs.h <<\_ACEOF
18851#define HAVE___ASHLDI3 1
18852_ACEOF
18853
18854fi
18855
18856 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18857echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18858if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18860else
18861 ac_check_lib_save_LIBS=$LIBS
18862LIBS="-lgcc $LIBS"
18863cat >conftest.$ac_ext <<_ACEOF
18864/* confdefs.h. */
18865_ACEOF
18866cat confdefs.h >>conftest.$ac_ext
18867cat >>conftest.$ac_ext <<_ACEOF
18868/* end confdefs.h. */
18869
18870/* Override any GCC internal prototype to avoid an error.
18871 Use char because int might match the return type of a GCC
18872 builtin and then its argument prototype would still apply. */
18873#ifdef __cplusplus
18874extern "C"
18875#endif
18876char __ashrdi3 ();
18877int
18878main ()
18879{
18880return __ashrdi3 ();
18881 ;
18882 return 0;
18883}
18884_ACEOF
18885rm -f conftest.$ac_objext conftest$ac_exeext
18886if { (ac_try="$ac_link"
18887case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18890esac
18891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_link") 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
18899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903esac
18904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; } &&
18909 { ac_try='test -s conftest$ac_exeext'
18910 { (case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913esac
18914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_try") 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_lib_gcc___ashrdi3=yes
18920else
18921 echo "$as_me: failed program was:" >&5
18922sed 's/^/| /' conftest.$ac_ext >&5
18923
18924 ac_cv_lib_gcc___ashrdi3=no
18925fi
18926
18927rm -f core conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18929LIBS=$ac_check_lib_save_LIBS
18930fi
18931{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18932echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18933if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18934
18935cat >>confdefs.h <<\_ACEOF
18936#define HAVE___ASHRDI3 1
18937_ACEOF
18938
18939fi
18940
18941 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18942echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18943if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945else
18946 ac_check_lib_save_LIBS=$LIBS
18947LIBS="-lgcc $LIBS"
18948cat >conftest.$ac_ext <<_ACEOF
18949/* confdefs.h. */
18950_ACEOF
18951cat confdefs.h >>conftest.$ac_ext
18952cat >>conftest.$ac_ext <<_ACEOF
18953/* end confdefs.h. */
18954
18955/* Override any GCC internal prototype to avoid an error.
18956 Use char because int might match the return type of a GCC
18957 builtin and then its argument prototype would still apply. */
18958#ifdef __cplusplus
18959extern "C"
18960#endif
18961char __divdi3 ();
18962int
18963main ()
18964{
18965return __divdi3 ();
18966 ;
18967 return 0;
18968}
18969_ACEOF
18970rm -f conftest.$ac_objext conftest$ac_exeext
18971if { (ac_try="$ac_link"
18972case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18975esac
18976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_link") 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18985 { (case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988esac
18989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_try") 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; } &&
18994 { ac_try='test -s conftest$ac_exeext'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998esac
18999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_lib_gcc___divdi3=yes
19005else
19006 echo "$as_me: failed program was:" >&5
19007sed 's/^/| /' conftest.$ac_ext >&5
19008
19009 ac_cv_lib_gcc___divdi3=no
19010fi
19011
19012rm -f core conftest.err conftest.$ac_objext \
19013 conftest$ac_exeext conftest.$ac_ext
19014LIBS=$ac_check_lib_save_LIBS
19015fi
19016{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19017echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19018if test $ac_cv_lib_gcc___divdi3 = yes; then
19019
19020cat >>confdefs.h <<\_ACEOF
19021#define HAVE___DIVDI3 1
19022_ACEOF
19023
19024fi
19025
19026 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19027echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19028if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19030else
19031 ac_check_lib_save_LIBS=$LIBS
19032LIBS="-lgcc $LIBS"
19033cat >conftest.$ac_ext <<_ACEOF
19034/* confdefs.h. */
19035_ACEOF
19036cat confdefs.h >>conftest.$ac_ext
19037cat >>conftest.$ac_ext <<_ACEOF
19038/* end confdefs.h. */
19039
19040/* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19043#ifdef __cplusplus
19044extern "C"
19045#endif
19046char __fixdfdi ();
19047int
19048main ()
19049{
19050return __fixdfdi ();
19051 ;
19052 return 0;
19053}
19054_ACEOF
19055rm -f conftest.$ac_objext conftest$ac_exeext
19056if { (ac_try="$ac_link"
19057case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060esac
19061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073esac
19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest$ac_exeext'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083esac
19084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; }; then
19089 ac_cv_lib_gcc___fixdfdi=yes
19090else
19091 echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
19094 ac_cv_lib_gcc___fixdfdi=no
19095fi
19096
19097rm -f core conftest.err conftest.$ac_objext \
19098 conftest$ac_exeext conftest.$ac_ext
19099LIBS=$ac_check_lib_save_LIBS
19100fi
19101{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19102echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19103if test $ac_cv_lib_gcc___fixdfdi = yes; then
19104
19105cat >>confdefs.h <<\_ACEOF
19106#define HAVE___FIXDFDI 1
19107_ACEOF
19108
19109fi
19110
19111 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19112echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19113if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115else
19116 ac_check_lib_save_LIBS=$LIBS
19117LIBS="-lgcc $LIBS"
19118cat >conftest.$ac_ext <<_ACEOF
19119/* confdefs.h. */
19120_ACEOF
19121cat confdefs.h >>conftest.$ac_ext
19122cat >>conftest.$ac_ext <<_ACEOF
19123/* end confdefs.h. */
19124
19125/* Override any GCC internal prototype to avoid an error.
19126 Use char because int might match the return type of a GCC
19127 builtin and then its argument prototype would still apply. */
19128#ifdef __cplusplus
19129extern "C"
19130#endif
19131char __fixsfdi ();
19132int
19133main ()
19134{
19135return __fixsfdi ();
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext conftest$ac_exeext
19141if { (ac_try="$ac_link"
19142case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145esac
19146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_link") 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19158esac
19159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest$ac_exeext'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168esac
19169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_cv_lib_gcc___fixsfdi=yes
19175else
19176 echo "$as_me: failed program was:" >&5
19177sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 ac_cv_lib_gcc___fixsfdi=no
19180fi
19181
19182rm -f core conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext conftest.$ac_ext
19184LIBS=$ac_check_lib_save_LIBS
19185fi
19186{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19187echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19188if test $ac_cv_lib_gcc___fixsfdi = yes; then
19189
19190cat >>confdefs.h <<\_ACEOF
19191#define HAVE___FIXSFDI 1
19192_ACEOF
19193
19194fi
19195
19196 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19197echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19198if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19200else
19201 ac_check_lib_save_LIBS=$LIBS
19202LIBS="-lgcc $LIBS"
19203cat >conftest.$ac_ext <<_ACEOF
19204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
19209
19210/* Override any GCC internal prototype to avoid an error.
19211 Use char because int might match the return type of a GCC
19212 builtin and then its argument prototype would still apply. */
19213#ifdef __cplusplus
19214extern "C"
19215#endif
19216char __floatdidf ();
19217int
19218main ()
19219{
19220return __floatdidf ();
19221 ;
19222 return 0;
19223}
19224_ACEOF
19225rm -f conftest.$ac_objext conftest$ac_exeext
19226if { (ac_try="$ac_link"
19227case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230esac
19231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_link") 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243esac
19244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest$ac_exeext'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 ac_cv_lib_gcc___floatdidf=yes
19260else
19261 echo "$as_me: failed program was:" >&5
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 ac_cv_lib_gcc___floatdidf=no
19265fi
19266
19267rm -f core conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269LIBS=$ac_check_lib_save_LIBS
19270fi
19271{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19272echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19273if test $ac_cv_lib_gcc___floatdidf = yes; then
19274
19275cat >>confdefs.h <<\_ACEOF
19276#define HAVE___FLOATDIDF 1
19277_ACEOF
19278
19279fi
19280
19281 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19282echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19283if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19285else
19286 ac_check_lib_save_LIBS=$LIBS
19287LIBS="-lgcc $LIBS"
19288cat >conftest.$ac_ext <<_ACEOF
19289/* confdefs.h. */
19290_ACEOF
19291cat confdefs.h >>conftest.$ac_ext
19292cat >>conftest.$ac_ext <<_ACEOF
19293/* end confdefs.h. */
19294
19295/* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19298#ifdef __cplusplus
19299extern "C"
19300#endif
19301char __lshrdi3 ();
19302int
19303main ()
19304{
19305return __lshrdi3 ();
19306 ;
19307 return 0;
19308}
19309_ACEOF
19310rm -f conftest.$ac_objext conftest$ac_exeext
19311if { (ac_try="$ac_link"
19312case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19315esac
19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_link") 2>conftest.er1
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
19324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328esac
19329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; } &&
19334 { ac_try='test -s conftest$ac_exeext'
19335 { (case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19338esac
19339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_try") 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_lib_gcc___lshrdi3=yes
19345else
19346 echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
19348
19349 ac_cv_lib_gcc___lshrdi3=no
19350fi
19351
19352rm -f core conftest.err conftest.$ac_objext \
19353 conftest$ac_exeext conftest.$ac_ext
19354LIBS=$ac_check_lib_save_LIBS
19355fi
19356{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19357echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19358if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19359
19360cat >>confdefs.h <<\_ACEOF
19361#define HAVE___LSHRDI3 1
19362_ACEOF
19363
19364fi
19365
19366 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19367echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19368if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19369 echo $ECHO_N "(cached) $ECHO_C" >&6
19370else
19371 ac_check_lib_save_LIBS=$LIBS
19372LIBS="-lgcc $LIBS"
19373cat >conftest.$ac_ext <<_ACEOF
19374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
19379
19380/* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19383#ifdef __cplusplus
19384extern "C"
19385#endif
19386char __moddi3 ();
19387int
19388main ()
19389{
19390return __moddi3 ();
19391 ;
19392 return 0;
19393}
19394_ACEOF
19395rm -f conftest.$ac_objext conftest$ac_exeext
19396if { (ac_try="$ac_link"
19397case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_link") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413esac
19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest$ac_exeext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423esac
19424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_cv_lib_gcc___moddi3=yes
19430else
19431 echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 ac_cv_lib_gcc___moddi3=no
19435fi
19436
19437rm -f core conftest.err conftest.$ac_objext \
19438 conftest$ac_exeext conftest.$ac_ext
19439LIBS=$ac_check_lib_save_LIBS
19440fi
19441{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19442echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19443if test $ac_cv_lib_gcc___moddi3 = yes; then
19444
19445cat >>confdefs.h <<\_ACEOF
19446#define HAVE___MODDI3 1
19447_ACEOF
19448
19449fi
19450
19451 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19452echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19453if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19455else
19456 ac_check_lib_save_LIBS=$LIBS
19457LIBS="-lgcc $LIBS"
19458cat >conftest.$ac_ext <<_ACEOF
19459/* confdefs.h. */
19460_ACEOF
19461cat confdefs.h >>conftest.$ac_ext
19462cat >>conftest.$ac_ext <<_ACEOF
19463/* end confdefs.h. */
19464
19465/* Override any GCC internal prototype to avoid an error.
19466 Use char because int might match the return type of a GCC
19467 builtin and then its argument prototype would still apply. */
19468#ifdef __cplusplus
19469extern "C"
19470#endif
19471char __udivdi3 ();
19472int
19473main ()
19474{
19475return __udivdi3 ();
19476 ;
19477 return 0;
19478}
19479_ACEOF
19480rm -f conftest.$ac_objext conftest$ac_exeext
19481if { (ac_try="$ac_link"
19482case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19485esac
19486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_link") 2>conftest.er1
19488 ac_status=$?
19489 grep -v '^ *+' conftest.er1 >conftest.err
19490 rm -f conftest.er1
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } &&
19494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19495 { (case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498esac
19499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_try") 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest$ac_exeext'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508esac
19509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 ac_cv_lib_gcc___udivdi3=yes
19515else
19516 echo "$as_me: failed program was:" >&5
19517sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 ac_cv_lib_gcc___udivdi3=no
19520fi
19521
19522rm -f core conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19524LIBS=$ac_check_lib_save_LIBS
19525fi
19526{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19527echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19528if test $ac_cv_lib_gcc___udivdi3 = yes; then
19529
19530cat >>confdefs.h <<\_ACEOF
19531#define HAVE___UDIVDI3 1
19532_ACEOF
19533
19534fi
19535
19536 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19537echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19538if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540else
19541 ac_check_lib_save_LIBS=$LIBS
19542LIBS="-lgcc $LIBS"
19543cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
19549
19550/* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19553#ifdef __cplusplus
19554extern "C"
19555#endif
19556char __umoddi3 ();
19557int
19558main ()
19559{
19560return __umoddi3 ();
19561 ;
19562 return 0;
19563}
19564_ACEOF
19565rm -f conftest.$ac_objext conftest$ac_exeext
19566if { (ac_try="$ac_link"
19567case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19570esac
19571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_link") 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583esac
19584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest$ac_exeext'
19590 { (case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19593esac
19594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_try") 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 ac_cv_lib_gcc___umoddi3=yes
19600else
19601 echo "$as_me: failed program was:" >&5
19602sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ac_cv_lib_gcc___umoddi3=no
19605fi
19606
19607rm -f core conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19609LIBS=$ac_check_lib_save_LIBS
19610fi
19611{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19612echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19613if test $ac_cv_lib_gcc___umoddi3 = yes; then
19614
19615cat >>confdefs.h <<\_ACEOF
19616#define HAVE___UMODDI3 1
19617_ACEOF
19618
19619fi
19620
19621
19622 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19623echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19624if test "${ac_cv_lib_gcc___main+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19626else
19627 ac_check_lib_save_LIBS=$LIBS
19628LIBS="-lgcc $LIBS"
19629cat >conftest.$ac_ext <<_ACEOF
19630/* confdefs.h. */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
19634/* end confdefs.h. */
19635
19636/* Override any GCC internal prototype to avoid an error.
19637 Use char because int might match the return type of a GCC
19638 builtin and then its argument prototype would still apply. */
19639#ifdef __cplusplus
19640extern "C"
19641#endif
19642char __main ();
19643int
19644main ()
19645{
19646return __main ();
19647 ;
19648 return 0;
19649}
19650_ACEOF
19651rm -f conftest.$ac_objext conftest$ac_exeext
19652if { (ac_try="$ac_link"
19653case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656esac
19657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_link") 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
19665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19666 { (case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19669esac
19670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_try") 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; } &&
19675 { ac_try='test -s conftest$ac_exeext'
19676 { (case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679esac
19680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_try") 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19685 ac_cv_lib_gcc___main=yes
19686else
19687 echo "$as_me: failed program was:" >&5
19688sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 ac_cv_lib_gcc___main=no
19691fi
19692
19693rm -f core conftest.err conftest.$ac_objext \
19694 conftest$ac_exeext conftest.$ac_ext
19695LIBS=$ac_check_lib_save_LIBS
19696fi
19697{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19698echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19699if test $ac_cv_lib_gcc___main = yes; then
19700
19701cat >>confdefs.h <<\_ACEOF
19702#define HAVE___MAIN 1
19703_ACEOF
19704
19705fi
19706
19707 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19708echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19709if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19711else
19712 ac_check_lib_save_LIBS=$LIBS
19713LIBS="-lgcc $LIBS"
19714cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720
19721/* Override any GCC internal prototype to avoid an error.
19722 Use char because int might match the return type of a GCC
19723 builtin and then its argument prototype would still apply. */
19724#ifdef __cplusplus
19725extern "C"
19726#endif
19727char __cmpdi2 ();
19728int
19729main ()
19730{
19731return __cmpdi2 ();
19732 ;
19733 return 0;
19734}
19735_ACEOF
19736rm -f conftest.$ac_objext conftest$ac_exeext
19737if { (ac_try="$ac_link"
19738case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19741esac
19742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_link") 2>conftest.er1
19744 ac_status=$?
19745 grep -v '^ *+' conftest.er1 >conftest.err
19746 rm -f conftest.er1
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
19750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19751 { (case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19754esac
19755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_try") 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try='test -s conftest$ac_exeext'
19761 { (case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19764esac
19765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_try") 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 ac_cv_lib_gcc___cmpdi2=yes
19771else
19772 echo "$as_me: failed program was:" >&5
19773sed 's/^/| /' conftest.$ac_ext >&5
19774
19775 ac_cv_lib_gcc___cmpdi2=no
19776fi
19777
19778rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19780LIBS=$ac_check_lib_save_LIBS
19781fi
19782{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19783echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19784if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19785
19786cat >>confdefs.h <<\_ACEOF
19787#define HAVE___CMPDI2 1
19788_ACEOF
19789
19790fi
19791
19792fi
19793
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019794if test "$llvm_cv_os_type" = "MingW" ; then
19795 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19796echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19797 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019798
19799 /* confdefs.h. */
19800_ACEOF
19801cat confdefs.h >>conftest.$ac_ext
19802cat >>conftest.$ac_ext <<_ACEOF
19803/* end confdefs.h. */
19804
19805 #include <windows.h>
19806 #include <imagehlp.h>
19807 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19808 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19809
19810
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019811_ACEOF
19812rm -f conftest.$ac_objext
19813if { (ac_try="$ac_compile"
19814case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817esac
19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_compile") 2>conftest.er1
19820 ac_status=$?
19821 grep -v '^ *+' conftest.er1 >conftest.err
19822 rm -f conftest.er1
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } &&
19826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19827 { (case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830esac
19831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_try") 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; } &&
19836 { ac_try='test -s conftest.$ac_objext'
19837 { (case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19840esac
19841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_try") 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846
19847 { echo "$as_me:$LINENO: result: yes" >&5
19848echo "${ECHO_T}yes" >&6; }
19849 llvm_cv_win32_elmcb_pcstr="PCSTR"
19850
19851else
19852 echo "$as_me: failed program was:" >&5
19853sed 's/^/| /' conftest.$ac_ext >&5
19854
19855
19856 { echo "$as_me:$LINENO: result: no" >&5
19857echo "${ECHO_T}no" >&6; }
19858 llvm_cv_win32_elmcb_pcstr="PSTR"
19859
19860fi
19861
19862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863
19864cat >>confdefs.h <<_ACEOF
19865#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19866_ACEOF
19867
19868fi
19869
Torok Edwin871384f2010-01-26 08:50:50 +000019870
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019871
19872 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019873echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19874if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019876else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019877
19878 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019879ac_cpp='$CXXCPP $CPPFLAGS'
19880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19883
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019884 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019885/* confdefs.h. */
19886_ACEOF
19887cat confdefs.h >>conftest.$ac_ext
19888cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019889/* end confdefs.h. */
19890#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019891int
19892main ()
19893{
19894float f; isnan(f);
19895 ;
19896 return 0;
19897}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019898_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019899rm -f conftest.$ac_objext
19900if { (ac_try="$ac_compile"
19901case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904esac
19905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_compile") 2>conftest.er1
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } &&
19913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19914 { (case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917esac
19918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_try") 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; } &&
19923 { ac_try='test -s conftest.$ac_objext'
19924 { (case "(($ac_try" in
19925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926 *) ac_try_echo=$ac_try;;
19927esac
19928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19929 (eval "$ac_try") 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019933 ac_cv_func_isnan_in_math_h=yes
19934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019935 echo "$as_me: failed program was:" >&5
19936sed 's/^/| /' conftest.$ac_ext >&5
19937
19938 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019940
Reid Spencera773bd52006-08-04 18:18:08 +000019941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019942 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019943ac_cpp='$CPP $CPPFLAGS'
19944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946ac_compiler_gnu=$ac_cv_c_compiler_gnu
19947
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019948
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019950{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19951echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019952
19953
19954if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019956cat >>confdefs.h <<\_ACEOF
19957#define HAVE_ISNAN_IN_MATH_H 1
19958_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019959
Reid Spencerabec8f92004-10-27 23:03:44 +000019960fi
19961
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019962
19963 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019964echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19965if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019967else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019968
19969 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019970ac_cpp='$CXXCPP $CPPFLAGS'
19971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19974
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000019975 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019976/* confdefs.h. */
19977_ACEOF
19978cat confdefs.h >>conftest.$ac_ext
19979cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019980/* end confdefs.h. */
19981#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019982int
19983main ()
19984{
19985float f; isnan(f);
19986 ;
19987 return 0;
19988}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019989_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019990rm -f conftest.$ac_objext
19991if { (ac_try="$ac_compile"
19992case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19995esac
19996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_compile") 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20005 { (case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008esac
20009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_try") 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest.$ac_objext'
20015 { (case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20018esac
20019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_try") 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020024 ac_cv_func_isnan_in_cmath=yes
20025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020026 echo "$as_me: failed program was:" >&5
20027sed 's/^/| /' conftest.$ac_ext >&5
20028
20029 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020031
Reid Spencera773bd52006-08-04 18:18:08 +000020032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020033 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020034ac_cpp='$CPP $CPPFLAGS'
20035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20037ac_compiler_gnu=$ac_cv_c_compiler_gnu
20038
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020039
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020041{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20042echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020043
20044if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020046cat >>confdefs.h <<\_ACEOF
20047#define HAVE_ISNAN_IN_CMATH 1
20048_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020049
Reid Spencerabec8f92004-10-27 23:03:44 +000020050fi
20051
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020052
20053 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020054echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20055if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020057else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020058
20059 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020060ac_cpp='$CXXCPP $CPPFLAGS'
20061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20064
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020065 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066/* confdefs.h. */
20067_ACEOF
20068cat confdefs.h >>conftest.$ac_ext
20069cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020070/* end confdefs.h. */
20071#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020072int
20073main ()
20074{
20075float f; std::isnan(f);
20076 ;
20077 return 0;
20078}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020079_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020080rm -f conftest.$ac_objext
20081if { (ac_try="$ac_compile"
20082case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085esac
20086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_compile") 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
20094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
20104 { ac_try='test -s conftest.$ac_objext'
20105 { (case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108esac
20109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_try") 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020114 ac_cv_func_std_isnan_in_cmath=yes
20115else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020116 echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020121
Reid Spencera773bd52006-08-04 18:18:08 +000020122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020123 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020124ac_cpp='$CPP $CPPFLAGS'
20125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020129
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020131{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20132echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020133
20134if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020136cat >>confdefs.h <<\_ACEOF
20137#define HAVE_STD_ISNAN_IN_CMATH 1
20138_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020139
Reid Spencerabec8f92004-10-27 23:03:44 +000020140fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020141
20142
NAKAMURA Takumifd6fbec2013-01-30 01:37:49 +000020143
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020144
20145 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020146echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20147if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020149else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020150
20151 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020152ac_cpp='$CXXCPP $CPPFLAGS'
20153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20156
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020157 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020158/* confdefs.h. */
20159_ACEOF
20160cat confdefs.h >>conftest.$ac_ext
20161cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020162/* end confdefs.h. */
20163#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020164int
20165main ()
20166{
20167float f; isinf(f);
20168 ;
20169 return 0;
20170}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020172rm -f conftest.$ac_objext
20173if { (ac_try="$ac_compile"
20174case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177esac
20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_compile") 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
20186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20187 { (case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190esac
20191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_try") 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest.$ac_objext'
20197 { (case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20200esac
20201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_try") 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020206 ac_cv_func_isinf_in_math_h=yes
20207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020208 echo "$as_me: failed program was:" >&5
20209sed 's/^/| /' conftest.$ac_ext >&5
20210
20211 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020213
Reid Spencera773bd52006-08-04 18:18:08 +000020214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020215 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020216ac_cpp='$CPP $CPPFLAGS'
20217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20219ac_compiler_gnu=$ac_cv_c_compiler_gnu
20220
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020221
Brian Gaeke52a551d2004-07-21 03:14:12 +000020222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020223{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20224echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020225
20226if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020228cat >>confdefs.h <<\_ACEOF
20229#define HAVE_ISINF_IN_MATH_H 1
20230_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020231
Reid Spencerabec8f92004-10-27 23:03:44 +000020232fi
20233
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020234
20235 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020236echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20237if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020239else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020240
20241 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020242ac_cpp='$CXXCPP $CPPFLAGS'
20243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20246
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020247 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020248/* confdefs.h. */
20249_ACEOF
20250cat confdefs.h >>conftest.$ac_ext
20251cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020252/* end confdefs.h. */
20253#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020254int
20255main ()
20256{
20257float f; isinf(f);
20258 ;
20259 return 0;
20260}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020261_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020262rm -f conftest.$ac_objext
20263if { (ac_try="$ac_compile"
20264case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20267esac
20268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_compile") 2>conftest.er1
20270 ac_status=$?
20271 grep -v '^ *+' conftest.er1 >conftest.err
20272 rm -f conftest.er1
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20277 { (case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20280esac
20281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_try") 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; } &&
20286 { ac_try='test -s conftest.$ac_objext'
20287 { (case "(($ac_try" in
20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20290esac
20291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292 (eval "$ac_try") 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020296 ac_cv_func_isinf_in_cmath=yes
20297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020298 echo "$as_me: failed program was:" >&5
20299sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020303
Reid Spencera773bd52006-08-04 18:18:08 +000020304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020305 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020306ac_cpp='$CPP $CPPFLAGS'
20307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20309ac_compiler_gnu=$ac_cv_c_compiler_gnu
20310
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020311
Brian Gaeke52a551d2004-07-21 03:14:12 +000020312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020313{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20314echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020315
20316if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318cat >>confdefs.h <<\_ACEOF
20319#define HAVE_ISINF_IN_CMATH 1
20320_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020321
Reid Spencerabec8f92004-10-27 23:03:44 +000020322fi
20323
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020324
20325 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020326echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20327if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020329else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020330
20331 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020332ac_cpp='$CXXCPP $CPPFLAGS'
20333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20336
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020337 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020338/* confdefs.h. */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020342/* end confdefs.h. */
20343#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020344int
20345main ()
20346{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020347float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020348 ;
20349 return 0;
20350}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020351_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352rm -f conftest.$ac_objext
20353if { (ac_try="$ac_compile"
20354case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357esac
20358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_compile") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20367 { (case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20370esac
20371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_try") 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (case "(($ac_try" in
20378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20380esac
20381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_try") 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020386 ac_cv_func_std_isinf_in_cmath=yes
20387else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388 echo "$as_me: failed program was:" >&5
20389sed 's/^/| /' conftest.$ac_ext >&5
20390
20391 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020392fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020393
Reid Spencera773bd52006-08-04 18:18:08 +000020394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020395 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020396ac_cpp='$CPP $CPPFLAGS'
20397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20399ac_compiler_gnu=$ac_cv_c_compiler_gnu
20400
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020401
Brian Gaeke52a551d2004-07-21 03:14:12 +000020402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020403{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20404echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020405
20406if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020408cat >>confdefs.h <<\_ACEOF
20409#define HAVE_STD_ISINF_IN_CMATH 1
20410_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020411
Reid Spencerabec8f92004-10-27 23:03:44 +000020412fi
20413
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020414
20415 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020416echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20417if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020419else
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020420
20421 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020422ac_cpp='$CXXCPP $CPPFLAGS'
20423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20426
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020427 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020428/* confdefs.h. */
20429_ACEOF
20430cat confdefs.h >>conftest.$ac_ext
20431cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020432/* end confdefs.h. */
20433#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020434int
20435main ()
20436{
20437float f; finite(f);
20438 ;
20439 return 0;
20440}
Brian Gaeked59a6472004-07-21 03:33:58 +000020441_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020442rm -f conftest.$ac_objext
20443if { (ac_try="$ac_compile"
20444case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20447esac
20448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_compile") 2>conftest.er1
20450 ac_status=$?
20451 grep -v '^ *+' conftest.er1 >conftest.err
20452 rm -f conftest.er1
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } &&
20456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20457 { (case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460esac
20461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_try") 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest.$ac_objext'
20467 { (case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20470esac
20471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_try") 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020476 ac_cv_func_finite_in_ieeefp_h=yes
20477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478 echo "$as_me: failed program was:" >&5
20479sed 's/^/| /' conftest.$ac_ext >&5
20480
20481 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020483
Reid Spencera773bd52006-08-04 18:18:08 +000020484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020485 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020486ac_cpp='$CPP $CPPFLAGS'
20487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20489ac_compiler_gnu=$ac_cv_c_compiler_gnu
20490
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000020491
Brian Gaeked59a6472004-07-21 03:33:58 +000020492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020493{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20494echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020495
Brian Gaeke6802b552004-10-28 05:06:45 +000020496if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498cat >>confdefs.h <<\_ACEOF
20499#define HAVE_FINITE_IN_IEEEFP_H 1
20500_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020501
Reid Spencerabec8f92004-10-27 23:03:44 +000020502fi
20503
20504
20505
Reid Spencer30fe5262007-01-20 07:48:49 +000020506if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020507
20508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509for ac_header in stdlib.h unistd.h
20510do
20511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517fi
20518ac_res=`eval echo '${'$as_ac_Header'}'`
20519 { echo "$as_me:$LINENO: result: $ac_res" >&5
20520echo "${ECHO_T}$ac_res" >&6; }
20521else
20522 # Is the header compilable?
20523{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20525cat >conftest.$ac_ext <<_ACEOF
20526/* confdefs.h. */
20527_ACEOF
20528cat confdefs.h >>conftest.$ac_ext
20529cat >>conftest.$ac_ext <<_ACEOF
20530/* end confdefs.h. */
20531$ac_includes_default
20532#include <$ac_header>
20533_ACEOF
20534rm -f conftest.$ac_objext
20535if { (ac_try="$ac_compile"
20536case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20539esac
20540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_compile") 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20549 { (case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20552esac
20553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554 (eval "$ac_try") 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; } &&
20558 { ac_try='test -s conftest.$ac_objext'
20559 { (case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562esac
20563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_try") 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_header_compiler=yes
20569else
20570 echo "$as_me: failed program was:" >&5
20571sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020573 ac_header_compiler=no
20574fi
20575
20576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20577{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20578echo "${ECHO_T}$ac_header_compiler" >&6; }
20579
20580# Is the header present?
20581{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20583cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h. */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
20588/* end confdefs.h. */
20589#include <$ac_header>
20590_ACEOF
20591if { (ac_try="$ac_cpp conftest.$ac_ext"
20592case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595esac
20596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20598 ac_status=$?
20599 grep -v '^ *+' conftest.er1 >conftest.err
20600 rm -f conftest.er1
20601 cat conftest.err >&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } >/dev/null; then
20604 if test -s conftest.err; then
20605 ac_cpp_err=$ac_c_preproc_warn_flag
20606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20607 else
20608 ac_cpp_err=
20609 fi
20610else
20611 ac_cpp_err=yes
20612fi
20613if test -z "$ac_cpp_err"; then
20614 ac_header_preproc=yes
20615else
20616 echo "$as_me: failed program was:" >&5
20617sed 's/^/| /' conftest.$ac_ext >&5
20618
20619 ac_header_preproc=no
20620fi
20621
20622rm -f conftest.err conftest.$ac_ext
20623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20624echo "${ECHO_T}$ac_header_preproc" >&6; }
20625
20626# So? What about this header?
20627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20628 yes:no: )
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20633 ac_header_preproc=yes
20634 ;;
20635 no:yes:* )
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20648 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020649## ------------------------------------ ##
20650## Report this to http://llvm.org/bugs/ ##
20651## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020652_ASBOX
20653 ) | sed "s/^/$as_me: WARNING: /" >&2
20654 ;;
20655esac
20656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20660else
20661 eval "$as_ac_Header=\$ac_header_preproc"
20662fi
20663ac_res=`eval echo '${'$as_ac_Header'}'`
20664 { echo "$as_me:$LINENO: result: $ac_res" >&5
20665echo "${ECHO_T}$ac_res" >&6; }
20666
20667fi
20668if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020669 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020671_ACEOF
20672
20673fi
20674
20675done
20676
20677
20678for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679do
20680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20681{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20683if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20684 echo $ECHO_N "(cached) $ECHO_C" >&6
20685else
20686 cat >conftest.$ac_ext <<_ACEOF
20687/* confdefs.h. */
20688_ACEOF
20689cat confdefs.h >>conftest.$ac_ext
20690cat >>conftest.$ac_ext <<_ACEOF
20691/* end confdefs.h. */
20692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20694#define $ac_func innocuous_$ac_func
20695
20696/* System header to define __stub macros and hopefully few prototypes,
20697 which can conflict with char $ac_func (); below.
20698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20699 <limits.h> exists even on freestanding compilers. */
20700
20701#ifdef __STDC__
20702# include <limits.h>
20703#else
20704# include <assert.h>
20705#endif
20706
20707#undef $ac_func
20708
20709/* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply. */
20712#ifdef __cplusplus
20713extern "C"
20714#endif
20715char $ac_func ();
20716/* The GNU C library defines this for functions which it implements
20717 to always fail with ENOSYS. Some functions are actually named
20718 something starting with __ and the normal name is an alias. */
20719#if defined __stub_$ac_func || defined __stub___$ac_func
20720choke me
20721#endif
20722
20723int
20724main ()
20725{
20726return $ac_func ();
20727 ;
20728 return 0;
20729}
20730_ACEOF
20731rm -f conftest.$ac_objext conftest$ac_exeext
20732if { (ac_try="$ac_link"
20733case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736esac
20737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_link") 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } &&
20745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20746 { (case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749esac
20750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_try") 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest$ac_exeext'
20756 { (case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20759esac
20760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_try") 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 eval "$as_ac_var=yes"
20766else
20767 echo "$as_me: failed program was:" >&5
20768sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 eval "$as_ac_var=no"
20771fi
20772
20773rm -f core conftest.err conftest.$ac_objext \
20774 conftest$ac_exeext conftest.$ac_ext
20775fi
20776ac_res=`eval echo '${'$as_ac_var'}'`
20777 { echo "$as_me:$LINENO: result: $ac_res" >&5
20778echo "${ECHO_T}$ac_res" >&6; }
20779if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020780 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020782_ACEOF
20783
20784fi
20785done
20786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020787{ echo "$as_me:$LINENO: checking for working mmap" >&5
20788echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20789if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020792 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020793 ac_cv_func_mmap_fixed_mapped=no
20794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020795 cat >conftest.$ac_ext <<_ACEOF
20796/* confdefs.h. */
20797_ACEOF
20798cat confdefs.h >>conftest.$ac_ext
20799cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020801$ac_includes_default
20802/* malloc might have been renamed as rpl_malloc. */
20803#undef malloc
20804
20805/* Thanks to Mike Haertel and Jim Avera for this test.
20806 Here is a matrix of mmap possibilities:
20807 mmap private not fixed
20808 mmap private fixed at somewhere currently unmapped
20809 mmap private fixed at somewhere already mapped
20810 mmap shared not fixed
20811 mmap shared fixed at somewhere currently unmapped
20812 mmap shared fixed at somewhere already mapped
20813 For private mappings, we should verify that changes cannot be read()
20814 back from the file, nor mmap's back from the file at a different
20815 address. (There have been systems where private was not correctly
20816 implemented like the infamous i386 svr4.0, and systems where the
20817 VM page cache was not coherent with the file system buffer cache
20818 like early versions of FreeBSD and possibly contemporary NetBSD.)
20819 For shared mappings, we should conversely verify that changes get
20820 propagated back to all the places they're supposed to be.
20821
20822 Grep wants private fixed already mapped.
20823 The main things grep needs to know about mmap are:
20824 * does it exist and is it safe to write into the mmap'd area
20825 * how to use it (BSD variants) */
20826
20827#include <fcntl.h>
20828#include <sys/mman.h>
20829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020830#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020831char *malloc ();
20832#endif
20833
20834/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835#if !HAVE_GETPAGESIZE
20836/* Assume that all systems that can run configure have sys/param.h. */
20837# if !HAVE_SYS_PARAM_H
20838# define HAVE_SYS_PARAM_H 1
20839# endif
20840
John Criswell7a73b802003-06-30 21:59:07 +000020841# ifdef _SC_PAGESIZE
20842# define getpagesize() sysconf(_SC_PAGESIZE)
20843# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020844# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020845# include <sys/param.h>
20846# ifdef EXEC_PAGESIZE
20847# define getpagesize() EXEC_PAGESIZE
20848# else /* no EXEC_PAGESIZE */
20849# ifdef NBPG
20850# define getpagesize() NBPG * CLSIZE
20851# ifndef CLSIZE
20852# define CLSIZE 1
20853# endif /* no CLSIZE */
20854# else /* no NBPG */
20855# ifdef NBPC
20856# define getpagesize() NBPC
20857# else /* no NBPC */
20858# ifdef PAGESIZE
20859# define getpagesize() PAGESIZE
20860# endif /* PAGESIZE */
20861# endif /* no NBPC */
20862# endif /* no NBPG */
20863# endif /* no EXEC_PAGESIZE */
20864# else /* no HAVE_SYS_PARAM_H */
20865# define getpagesize() 8192 /* punt totally */
20866# endif /* no HAVE_SYS_PARAM_H */
20867# endif /* no _SC_PAGESIZE */
20868
20869#endif /* no HAVE_GETPAGESIZE */
20870
20871int
20872main ()
20873{
20874 char *data, *data2, *data3;
20875 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020876 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020877
20878 pagesize = getpagesize ();
20879
20880 /* First, make a file with some known garbage in it. */
20881 data = (char *) malloc (pagesize);
20882 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020883 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020884 for (i = 0; i < pagesize; ++i)
20885 *(data + i) = rand ();
20886 umask (0);
20887 fd = creat ("conftest.mmap", 0600);
20888 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020889 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020890 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020891 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020892 close (fd);
20893
20894 /* Next, try to mmap the file at a fixed address which already has
20895 something else allocated at it. If we can, also make sure that
20896 we see the same garbage. */
20897 fd = open ("conftest.mmap", O_RDWR);
20898 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020899 return 1;
20900 data2 = (char *) malloc (2 * pagesize);
20901 if (!data2)
20902 return 1;
20903 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020904 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020905 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020906 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020907 for (i = 0; i < pagesize; ++i)
20908 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020910
20911 /* Finally, make sure that changes to the mapped area do not
20912 percolate back to the file as seen by read(). (This is a bug on
20913 some variants of i386 svr4.0.) */
20914 for (i = 0; i < pagesize; ++i)
20915 *(data2 + i) = *(data2 + i) + 1;
20916 data3 = (char *) malloc (pagesize);
20917 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020918 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020919 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020920 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020921 for (i = 0; i < pagesize; ++i)
20922 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020924 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020925 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020926}
20927_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020928rm -f conftest$ac_exeext
20929if { (ac_try="$ac_link"
20930case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20933esac
20934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_link") 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942esac
20943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020948 ac_cv_func_mmap_fixed_mapped=yes
20949else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020950 echo "$as_me: program exited with status $ac_status" >&5
20951echo "$as_me: failed program was:" >&5
20952sed 's/^/| /' conftest.$ac_ext >&5
20953
20954( exit $ac_status )
20955ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020957rm -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 +000020958fi
Reid Spencera773bd52006-08-04 18:18:08 +000020959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020960
John Criswell7a73b802003-06-30 21:59:07 +000020961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020962{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20963echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020964if test $ac_cv_func_mmap_fixed_mapped = yes; then
20965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020966cat >>confdefs.h <<\_ACEOF
20967#define HAVE_MMAP 1
20968_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020969
20970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020971rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020973 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20974echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20975if test "${ac_cv_func_mmap_file+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020977else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020978 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020979ac_cpp='$CPP $CPPFLAGS'
20980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20982ac_compiler_gnu=$ac_cv_c_compiler_gnu
20983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020984 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020985 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020987 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020989 /* confdefs.h. */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020994
John Criswell7a73b802003-06-30 21:59:07 +000020995#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020996#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020997#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020998
20999int
21000main ()
21001{
John Criswell7a73b802003-06-30 21:59:07 +000021002
21003 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021004 fd = creat ("foo",0777);
21005 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21006 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021007 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021008 ;
21009 return 0;
21010}
John Criswell7a73b802003-06-30 21:59:07 +000021011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012rm -f conftest$ac_exeext
21013if { (ac_try="$ac_link"
21014case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21017esac
21018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_link") 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21023 { (case "(($ac_try" in
21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025 *) ac_try_echo=$ac_try;;
21026esac
21027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028 (eval "$ac_try") 2>&5
21029 ac_status=$?
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021032 ac_cv_func_mmap_file=yes
21033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021034 echo "$as_me: program exited with status $ac_status" >&5
21035echo "$as_me: failed program was:" >&5
21036sed 's/^/| /' conftest.$ac_ext >&5
21037
21038( exit $ac_status )
21039ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021041rm -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 +000021042fi
Reid Spencera773bd52006-08-04 18:18:08 +000021043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021044
John Criswell7a73b802003-06-30 21:59:07 +000021045 ac_ext=c
21046ac_cpp='$CPP $CPPFLAGS'
21047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21049ac_compiler_gnu=$ac_cv_c_compiler_gnu
21050
21051
21052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021053{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21054echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021055if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021057cat >>confdefs.h <<\_ACEOF
21058#define HAVE_MMAP_FILE
21059_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021060
21061 MMAP_FILE=yes
21062
21063fi
21064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021065 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21066echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21067if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021069else
Reid Spencer582a23c2004-12-29 07:07:57 +000021070 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021071 ac_cv_need_dev_zero_for_mmap=yes
21072 else
21073 ac_cv_need_dev_zero_for_mmap=no
21074 fi
21075
21076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021077{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21078echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021079if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021081cat >>confdefs.h <<\_ACEOF
21082#define NEED_DEV_ZERO_FOR_MMAP 1
21083_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021084
21085fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021086
Reid Spencer30fe5262007-01-20 07:48:49 +000021087 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21088 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021089 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21090echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021091 fi
21092 if test "$ac_cv_func_mmap_file" = "no"
21093 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021094 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21095echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021096 fi
John Criswellb13092b2003-07-22 21:00:24 +000021097fi
John Criswell7a73b802003-06-30 21:59:07 +000021098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021099{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21100echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021101ac_ext=cpp
21102ac_cpp='$CXXCPP $CPPFLAGS'
21103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021107cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000021108
21109 /* confdefs.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021110_ACEOF
21111cat confdefs.h >>conftest.$ac_ext
21112cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021113/* end confdefs.h. */
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000021114
21115 int main() {
21116 volatile unsigned long val = 1;
21117 __sync_synchronize();
21118 __sync_val_compare_and_swap(&val, 1, 0);
21119 __sync_add_and_fetch(&val, 1);
21120 __sync_sub_and_fetch(&val, 1);
21121 return 0;
21122 }
21123
Owen Andersond4b272b2009-05-18 23:58:51 +000021124
21125_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021126rm -f conftest.$ac_objext conftest$ac_exeext
21127if { (ac_try="$ac_link"
21128case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21131esac
21132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_link") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000021140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21144esac
21145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest$ac_exeext'
21151 { (case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21154esac
21155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_try") 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000021160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021161 { echo "$as_me:$LINENO: result: yes" >&5
21162echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000021163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021164cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000021165#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021166_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000021167
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000021168
Owen Andersond4b272b2009-05-18 23:58:51 +000021169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170 echo "$as_me: failed program was:" >&5
21171sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000021172
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000021173
21174 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021175echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000021176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021177cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000021178#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179_ACEOF
21180
21181 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21182echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000021183
Owen Andersond4b272b2009-05-18 23:58:51 +000021184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021185
Owen Andersond4b272b2009-05-18 23:58:51 +000021186rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumia4afeef2013-01-30 01:37:55 +000021188ac_ext=c
21189ac_cpp='$CPP $CPPFLAGS'
21190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192ac_compiler_gnu=$ac_cv_c_compiler_gnu
21193
Owen Andersond4b272b2009-05-18 23:58:51 +000021194
John Criswell7a73b802003-06-30 21:59:07 +000021195
Nick Lewycky4372e692009-09-29 06:18:23 +000021196if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021197 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21198echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21199if test "${llvm_cv_linux_mixed+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000021201else
21202 ac_ext=c
21203ac_cpp='$CPP $CPPFLAGS'
21204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21206ac_compiler_gnu=$ac_cv_c_compiler_gnu
21207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208 cat >conftest.$ac_ext <<_ACEOF
21209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000021213/* end confdefs.h. */
21214#ifndef __x86_64__
21215 error: Not x86-64 even if uname says so!
21216 #endif
21217
21218int
21219main ()
21220{
21221
21222 ;
21223 return 0;
21224}
21225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021226rm -f conftest.$ac_objext
21227if { (ac_try="$ac_compile"
21228case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231esac
21232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } &&
21240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21241 { (case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21244esac
21245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_try") 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; } &&
21250 { ac_try='test -s conftest.$ac_objext'
21251 { (case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21254esac
21255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_try") 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000021260 llvm_cv_linux_mixed=no
21261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021262 echo "$as_me: failed program was:" >&5
21263sed 's/^/| /' conftest.$ac_ext >&5
21264
21265 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000021266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267
Nick Lewycky4372e692009-09-29 06:18:23 +000021268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21269 ac_ext=c
21270ac_cpp='$CPP $CPPFLAGS'
21271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21273ac_compiler_gnu=$ac_cv_c_compiler_gnu
21274
21275
21276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021277{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21278echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000021279
21280 if test "$llvm_cv_linux_mixed" = "yes"; then
21281 llvm_cv_target_arch="x86"
21282 ARCH="x86"
21283 fi
21284fi
21285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286
Reid Spencer9372f152007-07-30 20:13:24 +000021287for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021288do
21289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21294else
21295 cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h. */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h. */
21301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21303#define $ac_func innocuous_$ac_func
21304
21305/* System header to define __stub macros and hopefully few prototypes,
21306 which can conflict with char $ac_func (); below.
21307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21308 <limits.h> exists even on freestanding compilers. */
21309
21310#ifdef __STDC__
21311# include <limits.h>
21312#else
21313# include <assert.h>
21314#endif
21315
21316#undef $ac_func
21317
21318/* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21321#ifdef __cplusplus
21322extern "C"
21323#endif
21324char $ac_func ();
21325/* The GNU C library defines this for functions which it implements
21326 to always fail with ENOSYS. Some functions are actually named
21327 something starting with __ and the normal name is an alias. */
21328#if defined __stub_$ac_func || defined __stub___$ac_func
21329choke me
21330#endif
21331
21332int
21333main ()
21334{
21335return $ac_func ();
21336 ;
21337 return 0;
21338}
21339_ACEOF
21340rm -f conftest.$ac_objext conftest$ac_exeext
21341if { (ac_try="$ac_link"
21342case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21345esac
21346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347 (eval "$ac_link") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
21354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21355 { (case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358esac
21359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_try") 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; } &&
21364 { ac_try='test -s conftest$ac_exeext'
21365 { (case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21368esac
21369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370 (eval "$ac_try") 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374 eval "$as_ac_var=yes"
21375else
21376 echo "$as_me: failed program was:" >&5
21377sed 's/^/| /' conftest.$ac_ext >&5
21378
21379 eval "$as_ac_var=no"
21380fi
21381
21382rm -f core conftest.err conftest.$ac_objext \
21383 conftest$ac_exeext conftest.$ac_ext
21384fi
21385ac_res=`eval echo '${'$as_ac_var'}'`
21386 { echo "$as_me:$LINENO: result: $ac_res" >&5
21387echo "${ECHO_T}$ac_res" >&6; }
21388if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021391_ACEOF
21392
21393fi
21394done
21395
21396
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021397SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021398
21399
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021400SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21401
21402
Jeff Cohen28783c32007-01-12 18:22:38 +000021403if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021404 prefix="/usr/local"
21405fi
Reid Spencere9de0912004-08-20 09:03:57 +000021406eval LLVM_PREFIX="${prefix}";
21407eval LLVM_BINDIR="${prefix}/bin";
21408eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021409eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021410eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021411eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021412eval LLVM_INCLUDEDIR="${prefix}/include";
21413eval LLVM_INFODIR="${prefix}/info";
21414eval LLVM_MANDIR="${prefix}/man";
21415LLVM_CONFIGTIME=`date`
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021427if test "${ENABLE_TIMESTAMPS}" = "0"; then
21428 LLVM_CONFIGTIME="(timestamp not enabled)"
21429fi
21430
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021431
Reid Spencere9de0912004-08-20 09:03:57 +000021432cat >>confdefs.h <<_ACEOF
21433#define LLVM_PREFIX "$LLVM_PREFIX"
21434_ACEOF
21435
21436
21437cat >>confdefs.h <<_ACEOF
21438#define LLVM_BINDIR "$LLVM_BINDIR"
21439_ACEOF
21440
21441
21442cat >>confdefs.h <<_ACEOF
21443#define LLVM_LIBDIR "$LLVM_LIBDIR"
21444_ACEOF
21445
21446
21447cat >>confdefs.h <<_ACEOF
21448#define LLVM_DATADIR "$LLVM_DATADIR"
21449_ACEOF
21450
21451
21452cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021453#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021454_ACEOF
21455
21456
21457cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021458#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021459_ACEOF
21460
21461
21462cat >>confdefs.h <<_ACEOF
21463#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21464_ACEOF
21465
21466
21467cat >>confdefs.h <<_ACEOF
21468#define LLVM_INFODIR "$LLVM_INFODIR"
21469_ACEOF
21470
21471
21472cat >>confdefs.h <<_ACEOF
21473#define LLVM_MANDIR "$LLVM_MANDIR"
21474_ACEOF
21475
21476
21477cat >>confdefs.h <<_ACEOF
21478#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21479_ACEOF
21480
21481
Eric Christopher790e11c2007-12-01 00:34:39 +000021482cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021483#define LLVM_HOSTTRIPLE "$host"
21484_ACEOF
21485
21486
21487cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021488#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021489_ACEOF
21490
21491
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021492if test "$BINDINGS_TO_BUILD" = auto ; then
21493 BINDINGS_TO_BUILD=""
21494 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21495 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21496 fi
21497fi
21498BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21499
21500
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021501ALL_BINDINGS=ocaml
21502
21503
Gordon Henriksenf0915682007-10-02 16:42:22 +000021504binding_prereqs_failed=0
21505for a_binding in $BINDINGS_TO_BUILD ; do
21506 case "$a_binding" in
21507 ocaml)
21508 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021509 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21510echo "$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 +000021511 binding_prereqs_failed=1
21512 fi
21513 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21515echo "$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 +000021516 binding_prereqs_failed=1
21517 fi
21518 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21520echo "$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 +000021521 fi
21522 if test "x$with_ocaml_libdir" != xauto ; then
21523 OCAML_LIBDIR=$with_ocaml_libdir
21524
21525 else
21526 ocaml_stdlib="`"$OCAMLC" -where`"
21527 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21528 then
21529 # ocaml stdlib is beneath our prefix; use stdlib
21530 OCAML_LIBDIR=$ocaml_stdlib
21531
21532 else
21533 # ocaml stdlib is outside our prefix; use libdir/ocaml
21534 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21535
21536 fi
21537 fi
21538 ;;
21539 esac
21540done
21541if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21543echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21544 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021545fi
21546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21548echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21549if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021551else
21552 ac_ext=cpp
21553ac_cpp='$CXXCPP $CPPFLAGS'
21554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21557
21558 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021559 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560 cat >conftest.$ac_ext <<_ACEOF
21561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021565/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021566template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021567int
21568main ()
21569{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021570X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021571 ;
21572 return 0;
21573}
21574_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575rm -f conftest.$ac_objext
21576if { (ac_try="$ac_compile"
21577case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21580esac
21581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_compile") 2>conftest.er1
21583 ac_status=$?
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
21589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21590 { (case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593esac
21594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_try") 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest.$ac_objext'
21600 { (case "(($ac_try" in
21601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21603esac
21604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605 (eval "$ac_try") 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021609 llvm_cv_cxx_visibility_inlines_hidden=yes
21610else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021611 echo "$as_me: failed program was:" >&5
21612sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021616
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618 CXXFLAGS="$oldcxxflags"
21619 ac_ext=c
21620ac_cpp='$CPP $CPPFLAGS'
21621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21623ac_compiler_gnu=$ac_cv_c_compiler_gnu
21624
21625
21626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021627{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21628echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021629if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21630 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21631
21632else
21633 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21634
21635fi
21636
Gordon Henriksenf0915682007-10-02 16:42:22 +000021637
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021638if test "$llvm_cv_link_use_r" = "yes" ; then
21639 RPATH="-Wl,-R"
21640else
21641 RPATH="-Wl,-rpath"
21642fi
21643
21644
21645if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21646 RDYNAMIC="-Wl,-export-dynamic"
21647else
21648 RDYNAMIC=""
21649fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021650
21651
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021652
Eric Christophera1cba682010-08-08 02:44:25 +000021653ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021654
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021655
21656
21657
21658
21659
Douglas Gregor1555a232009-06-16 20:12:29 +000021660ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21661
21662ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21663
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021664ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21665
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021666ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21667
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021668ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021669
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021670
Reid Spencera773bd52006-08-04 18:18:08 +000021671ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021672
Eric Christopher360fa9a2011-10-26 00:42:12 +000021673
Reid Spencerea949cf2006-08-16 00:45:38 +000021674ac_config_files="$ac_config_files llvm.spec"
21675
21676
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021677ac_config_files="$ac_config_files docs/doxygen.cfg"
21678
Eric Christopher63c09512012-02-02 00:16:55 +000021679
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021680if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021681 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021682fi
Eric Christopher63c09512012-02-02 00:16:55 +000021683if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021684 configh="include/clang/Config/config.h"
21685 doxy="docs/doxygen.cfg"
21686 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021687
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021688 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021689
21690fi
21691
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021692ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021693
Eric Christopher360fa9a2011-10-26 00:42:12 +000021694
Jordan Rose92080522012-10-01 18:40:32 +000021695test "x$program_prefix" = "xNONE" && program_prefix=""
21696
21697
21698
Reid Spencera773bd52006-08-04 18:18:08 +000021699ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021700
Reid Spencera773bd52006-08-04 18:18:08 +000021701ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021702
21703
Reid Spencera773bd52006-08-04 18:18:08 +000021704ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021705
21706
Reid Spencera773bd52006-08-04 18:18:08 +000021707ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021708
21709
Reid Spencera773bd52006-08-04 18:18:08 +000021710ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021711
21712
Reid Spencer8b2e1412006-11-17 03:32:33 +000021713ac_config_commands="$ac_config_commands runtime/Makefile"
21714
21715
Reid Spencera773bd52006-08-04 18:18:08 +000021716ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021717
21718
Reid Spencera773bd52006-08-04 18:18:08 +000021719ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021720
21721
Bill Wendlingf24eb392009-01-04 23:12:30 +000021722ac_config_commands="$ac_config_commands unittests/Makefile"
21723
21724
Reid Spencera773bd52006-08-04 18:18:08 +000021725ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021726
21727
Reid Spencera773bd52006-08-04 18:18:08 +000021728ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021729
21730
Reid Spencera773bd52006-08-04 18:18:08 +000021731ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021732
21733
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021734ac_config_commands="$ac_config_commands bindings/Makefile"
21735
21736
21737ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21738
21739
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021740
John Criswell7a73b802003-06-30 21:59:07 +000021741cat >confcache <<\_ACEOF
21742# This file is a shell script that caches the results of configure
21743# tests run on this system so they can be shared between configure
21744# scripts and configure runs, see configure's option --config-cache.
21745# It is not useful on other systems. If it contains results you don't
21746# want to keep, you may remove or edit it.
21747#
21748# config.status only pays attention to the cache file if you give it
21749# the --recheck option to rerun configure.
21750#
John Criswell0c38eaf2003-09-10 15:17:25 +000021751# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021752# loading this file, other *unset* `ac_cv_foo' will be assigned the
21753# following values.
21754
21755_ACEOF
21756
21757# The following way of writing the cache mishandles newlines in values,
21758# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021759# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021760# Ultrix sh set writes to stderr and can't be redirected directly,
21761# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021762(
21763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21764 eval ac_val=\$$ac_var
21765 case $ac_val in #(
21766 *${as_nl}*)
21767 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021768 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21769echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021770 esac
21771 case $ac_var in #(
21772 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021773 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021774 esac ;;
21775 esac
21776 done
21777
John Criswell7a73b802003-06-30 21:59:07 +000021778 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021779 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21780 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021781 # `set' does not quote correctly, so add quotes (double-quote
21782 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021783 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021784 "s/'/'\\\\''/g;
21785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021786 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021787 *)
21788 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021790 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021791 esac |
21792 sort
21793) |
John Criswell7a73b802003-06-30 21:59:07 +000021794 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021795 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021796 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021797 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21799 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021800 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21801 :end' >>confcache
21802if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21803 if test -w "$cache_file"; then
21804 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021805 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21806echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021807 cat confcache >$cache_file
21808 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21810echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021811 fi
21812fi
21813rm -f confcache
21814
21815test "x$prefix" = xNONE && prefix=$ac_default_prefix
21816# Let make expand exec_prefix.
21817test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21818
John Criswell7a73b802003-06-30 21:59:07 +000021819DEFS=-DHAVE_CONFIG_H
21820
John Criswell0c38eaf2003-09-10 15:17:25 +000021821ac_libobjs=
21822ac_ltlibobjs=
21823for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21824 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021825 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021826 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021827 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21828 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21830 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021831done
21832LIBOBJS=$ac_libobjs
21833
21834LTLIBOBJS=$ac_ltlibobjs
21835
21836
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021837if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21839Usually this means the macro was only invoked conditionally." >&5
21840echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21841Usually this means the macro was only invoked conditionally." >&2;}
21842 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021843fi
21844if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021845 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21846Usually this means the macro was only invoked conditionally." >&5
21847echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21848Usually this means the macro was only invoked conditionally." >&2;}
21849 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021850fi
John Criswell7a73b802003-06-30 21:59:07 +000021851
21852: ${CONFIG_STATUS=./config.status}
21853ac_clean_files_save=$ac_clean_files
21854ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021855{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21856echo "$as_me: creating $CONFIG_STATUS" >&6;}
21857cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021858#! $SHELL
21859# Generated by $as_me.
21860# Run this file to recreate the current configuration.
21861# Compiler output produced by configure, useful for debugging
21862# configure, is in config.log if it exists.
21863
21864debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021865ac_cs_recheck=false
21866ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021867SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021868_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870cat >>$CONFIG_STATUS <<\_ACEOF
21871## --------------------- ##
21872## M4sh Initialization. ##
21873## --------------------- ##
21874
21875# Be Bourne compatible
21876if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021877 emulate sh
21878 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021880 # is contrary to our usage. Disable this feature.
21881 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021882 setopt NO_GLOB_SUBST
21883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021884 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886BIN_SH=xpg4; export BIN_SH # for Tru64
21887DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021888
John Criswell7a73b802003-06-30 21:59:07 +000021889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890# PATH needs CR
21891# Avoid depending upon Character Ranges.
21892as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21893as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21894as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21895as_cr_digits='0123456789'
21896as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021897
21898# The user is always right.
21899if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021900 echo "#! /bin/sh" >conf$$.sh
21901 echo "exit 0" >>conf$$.sh
21902 chmod +x conf$$.sh
21903 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21904 PATH_SEPARATOR=';'
21905 else
21906 PATH_SEPARATOR=:
21907 fi
21908 rm -f conf$$.sh
21909fi
21910
21911# Support unset when possible.
21912if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21913 as_unset=unset
21914else
21915 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021916fi
John Criswell7a73b802003-06-30 21:59:07 +000021917
Reid Spencera773bd52006-08-04 18:18:08 +000021918
21919# IFS
21920# We need space, tab and new line, in precisely that order. Quoting is
21921# there to prevent editors from complaining about space-tab.
21922# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21923# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924as_nl='
21925'
Reid Spencera773bd52006-08-04 18:18:08 +000021926IFS=" "" $as_nl"
21927
21928# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021929case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021930 *[\\/]* ) as_myself=$0 ;;
21931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021932for as_dir in $PATH
21933do
21934 IFS=$as_save_IFS
21935 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21937done
Reid Spencera773bd52006-08-04 18:18:08 +000021938IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021939
Reid Spencera773bd52006-08-04 18:18:08 +000021940 ;;
21941esac
21942# We did not find ourselves, most probably we were run as `sh COMMAND'
21943# in which case we are not to be found in the path.
21944if test "x$as_myself" = x; then
21945 as_myself=$0
21946fi
21947if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021948 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21949 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021950fi
21951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952# Work around bugs in pre-3.0 UWIN ksh.
21953for as_var in ENV MAIL MAILPATH
21954do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021955done
21956PS1='$ '
21957PS2='> '
21958PS4='+ '
21959
21960# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961for as_var in \
21962 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21963 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21964 LC_TELEPHONE LC_TIME
21965do
21966 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21967 eval $as_var=C; export $as_var
21968 else
21969 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021970 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021971done
Torok Edwin871384f2010-01-26 08:50:50 +000021972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021974if expr a : '\(a\)' >/dev/null 2>&1 &&
21975 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21976 as_expr=expr
21977else
21978 as_expr=false
21979fi
21980
21981if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21982 as_basename=basename
21983else
21984 as_basename=false
21985fi
21986
21987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021989as_me=`$as_basename -- "$0" ||
21990$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21991 X"$0" : 'X\(//\)$' \| \
21992 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021993echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021994 sed '/^.*\/\([^/][^/]*\)\/*$/{
21995 s//\1/
21996 q
21997 }
21998 /^X\/\(\/\/\)$/{
21999 s//\1/
22000 q
22001 }
22002 /^X\/\(\/\).*/{
22003 s//\1/
22004 q
22005 }
22006 s/.*/./; q'`
22007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022008# CDPATH.
22009$as_unset CDPATH
22010
22011
22012
22013 as_lineno_1=$LINENO
22014 as_lineno_2=$LINENO
22015 test "x$as_lineno_1" != "x$as_lineno_2" &&
22016 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22017
22018 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22019 # uniformly replaced by the line number. The first 'sed' inserts a
22020 # line-number line after each line using $LINENO; the second 'sed'
22021 # does the real work. The second script uses 'N' to pair each
22022 # line-number line with the line containing $LINENO, and appends
22023 # trailing '-' during substitution so that $LINENO is not a special
22024 # case at line end.
22025 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22026 # scripts with optimization help from Paolo Bonzini. Blame Lee
22027 # E. McMahon (1931-1989) for sed's syntax. :-)
22028 sed -n '
22029 p
22030 /[$]LINENO/=
22031 ' <$as_myself |
22032 sed '
22033 s/[$]LINENO.*/&-/
22034 t lineno
22035 b
22036 :lineno
22037 N
22038 :loop
22039 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22040 t loop
22041 s/-\n.*//
22042 ' >$as_me.lineno &&
22043 chmod +x "$as_me.lineno" ||
22044 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22045 { (exit 1); exit 1; }; }
22046
22047 # Don't try to exec as it changes $[0], causing all sort of problems
22048 # (the dirname of $[0] is not the place where we might find the
22049 # original and so on. Autoconf is especially sensitive to this).
22050 . "./$as_me.lineno"
22051 # Exit status is that of the last command.
22052 exit
22053}
22054
22055
22056if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22057 as_dirname=dirname
22058else
22059 as_dirname=false
22060fi
Reid Spencera773bd52006-08-04 18:18:08 +000022061
22062ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022063case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022064-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022065 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022066 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022067 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000022068 esac;;
22069*)
22070 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000022071esac
22072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022073if expr a : '\(a\)' >/dev/null 2>&1 &&
22074 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22075 as_expr=expr
22076else
22077 as_expr=false
22078fi
22079
John Criswell7a73b802003-06-30 21:59:07 +000022080rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000022081if test -d conf$$.dir; then
22082 rm -f conf$$.dir/conf$$.file
22083else
22084 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022085 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000022086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022087echo >conf$$.file
22088if ln -s conf$$.file conf$$ 2>/dev/null; then
22089 as_ln_s='ln -s'
22090 # ... but there are two gotchas:
22091 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22092 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22093 # In both cases, we have to default to `cp -p'.
22094 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000022095 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096elif ln conf$$.file conf$$ 2>/dev/null; then
22097 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000022098else
22099 as_ln_s='cp -p'
22100fi
Reid Spencera773bd52006-08-04 18:18:08 +000022101rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22102rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000022103
John Criswell0c38eaf2003-09-10 15:17:25 +000022104if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022105 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022106else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022107 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000022108 as_mkdir_p=false
22109fi
22110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022111# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22112# systems may use methods other than mode bits to determine executability.
22113cat >conf$$.file <<_ASEOF
22114#! /bin/sh
22115exit 0
22116_ASEOF
22117chmod +x conf$$.file
22118if test -x conf$$.file >/dev/null 2>&1; then
22119 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000022120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022121 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000022122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022123rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000022124
22125# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022126as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022127
22128# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022129as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022130
22131
John Criswell7a73b802003-06-30 21:59:07 +000022132exec 6>&1
22133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022134# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000022135# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000022136# values after options handling.
22137ac_log="
Benjamin Kramer537d9a72012-11-17 22:01:08 +000022138This file was extended by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022139generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022140
22141 CONFIG_FILES = $CONFIG_FILES
22142 CONFIG_HEADERS = $CONFIG_HEADERS
22143 CONFIG_LINKS = $CONFIG_LINKS
22144 CONFIG_COMMANDS = $CONFIG_COMMANDS
22145 $ $0 $@
22146
Reid Spencera773bd52006-08-04 18:18:08 +000022147on `(hostname || uname -n) 2>/dev/null | sed 1q`
22148"
22149
John Criswell7a73b802003-06-30 21:59:07 +000022150_ACEOF
22151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022152cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022153# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000022154config_files="$ac_config_files"
22155config_headers="$ac_config_headers"
22156config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000022157
Reid Spencera773bd52006-08-04 18:18:08 +000022158_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022160cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022161ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022162\`$as_me' instantiates files from templates according to the
22163current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000022164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022165Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000022166
22167 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022168 -V, --version print version number, then exit
22169 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022170 -d, --debug don't remove temporary files
22171 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172 --file=FILE[:TEMPLATE]
22173 instantiate the configuration file FILE
22174 --header=FILE[:TEMPLATE]
22175 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000022176
22177Configuration files:
22178$config_files
22179
22180Configuration headers:
22181$config_headers
22182
John Criswellc764fbc2003-09-06 15:17:13 +000022183Configuration commands:
22184$config_commands
22185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022186Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000022187
Reid Spencera773bd52006-08-04 18:18:08 +000022188_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022189cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022190ac_cs_version="\\
Benjamin Kramer537d9a72012-11-17 22:01:08 +000022191LLVM config.status 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022192configured by $0, generated by GNU Autoconf 2.60,
22193 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000022194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000022196This config.status script is free software; the Free Software Foundation
22197gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000022198
22199ac_pwd='$ac_pwd'
22200srcdir='$srcdir'
22201INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000022202_ACEOF
22203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022204cat >>$CONFIG_STATUS <<\_ACEOF
22205# If no file are specified by the user, then we need to provide default
22206# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000022207ac_need_defaults=:
22208while test $# != 0
22209do
22210 case $1 in
22211 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000022212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22213 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022214 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022215 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022216 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000022217 ac_option=$1
22218 ac_optarg=$2
22219 ac_shift=shift
22220 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022221 esac
22222
John Criswell0c38eaf2003-09-10 15:17:25 +000022223 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022224 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000022225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22226 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022227 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022228 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022229 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000022230 debug=: ;;
22231 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022232 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022233 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022234 ac_need_defaults=false;;
22235 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022236 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022237 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022238 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000022239 --he | --h)
22240 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022241 { echo "$as_me: error: ambiguous option: $1
22242Try \`$0 --help' for more information." >&2
22243 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022244 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022245 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22248 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022249
22250 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022251 -*) { echo "$as_me: error: unrecognized option: $1
22252Try \`$0 --help' for more information." >&2
22253 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000022254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022255 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000022256 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000022257
22258 esac
22259 shift
22260done
22261
John Criswell0c38eaf2003-09-10 15:17:25 +000022262ac_configure_extra_args=
22263
22264if $ac_cs_silent; then
22265 exec 6>/dev/null
22266 ac_configure_extra_args="$ac_configure_extra_args --silent"
22267fi
22268
22269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022270cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022271if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22273 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000022274 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022275 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000022276fi
22277
John Criswell7a73b802003-06-30 21:59:07 +000022278_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022279cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022280exec 5>>config.log
22281{
22282 echo
22283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22284## Running $as_me. ##
22285_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022286 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000022287} >&5
John Criswell7a73b802003-06-30 21:59:07 +000022288
Reid Spencera773bd52006-08-04 18:18:08 +000022289_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000022291#
Reid Spencera773bd52006-08-04 18:18:08 +000022292# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000022293#
Reid Spencerc0682832005-02-24 19:05:19 +000022294llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000022295
22296_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022299
22300# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000022301for ac_config_target in $ac_config_targets
22302do
Reid Spencera773bd52006-08-04 18:18:08 +000022303 case $ac_config_target in
22304 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000022305 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000022306 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22307 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022308 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022309 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022310 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022311 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000022312 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022313 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000022314 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22315 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000022316 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022317 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22318 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22319 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22320 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22321 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022322 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022323 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22324 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022325 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022326 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22327 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22328 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022329 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22330 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022332 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22333echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22334 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022335 esac
22336done
22337
Reid Spencera773bd52006-08-04 18:18:08 +000022338
John Criswell7a73b802003-06-30 21:59:07 +000022339# If the user did not use the arguments to specify the items to instantiate,
22340# then the envvar interface is used. Set only those that are not.
22341# We use the long form for the default assignment because of an extremely
22342# bizarre bug on SunOS 4.1.3.
22343if $ac_need_defaults; then
22344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022346 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022347fi
22348
John Criswell0c38eaf2003-09-10 15:17:25 +000022349# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022350# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022351# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022352# Hook for its removal unless debugging.
22353# Note that there is a small window in which the directory will not be cleaned:
22354# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022355$debug ||
22356{
Reid Spencera773bd52006-08-04 18:18:08 +000022357 tmp=
22358 trap 'exit_status=$?
22359 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22360' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022361 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022362}
John Criswell7a73b802003-06-30 21:59:07 +000022363# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022364
John Criswell7a73b802003-06-30 21:59:07 +000022365{
Reid Spencera773bd52006-08-04 18:18:08 +000022366 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022367 test -n "$tmp" && test -d "$tmp"
22368} ||
22369{
Reid Spencera773bd52006-08-04 18:18:08 +000022370 tmp=./conf$$-$RANDOM
22371 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022372} ||
22373{
22374 echo "$me: cannot create a temporary directory in ." >&2
22375 { (exit 1); exit 1; }
22376}
John Criswell7a73b802003-06-30 21:59:07 +000022377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022378#
22379# Set up the sed scripts for CONFIG_FILES section.
22380#
22381
22382# No need to generate the scripts if there are no CONFIG_FILES.
22383# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022384if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022385
22386_ACEOF
22387
Reid Spencera773bd52006-08-04 18:18:08 +000022388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022389
Reid Spencera773bd52006-08-04 18:18:08 +000022390ac_delim='%!_!# '
22391for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022392 cat >conf$$subs.sed <<_ACEOF
22393SHELL!$SHELL$ac_delim
22394PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22395PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22396PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22397PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22398PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22399PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22400exec_prefix!$exec_prefix$ac_delim
22401prefix!$prefix$ac_delim
22402program_transform_name!$program_transform_name$ac_delim
22403bindir!$bindir$ac_delim
22404sbindir!$sbindir$ac_delim
22405libexecdir!$libexecdir$ac_delim
22406datarootdir!$datarootdir$ac_delim
22407datadir!$datadir$ac_delim
22408sysconfdir!$sysconfdir$ac_delim
22409sharedstatedir!$sharedstatedir$ac_delim
22410localstatedir!$localstatedir$ac_delim
22411includedir!$includedir$ac_delim
22412oldincludedir!$oldincludedir$ac_delim
22413docdir!$docdir$ac_delim
22414infodir!$infodir$ac_delim
22415htmldir!$htmldir$ac_delim
22416dvidir!$dvidir$ac_delim
22417pdfdir!$pdfdir$ac_delim
22418psdir!$psdir$ac_delim
22419libdir!$libdir$ac_delim
22420localedir!$localedir$ac_delim
22421mandir!$mandir$ac_delim
22422DEFS!$DEFS$ac_delim
22423ECHO_C!$ECHO_C$ac_delim
22424ECHO_N!$ECHO_N$ac_delim
22425ECHO_T!$ECHO_T$ac_delim
22426LIBS!$LIBS$ac_delim
22427build_alias!$build_alias$ac_delim
22428host_alias!$host_alias$ac_delim
22429target_alias!$target_alias$ac_delim
22430LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022431CC!$CC$ac_delim
22432CFLAGS!$CFLAGS$ac_delim
22433LDFLAGS!$LDFLAGS$ac_delim
22434CPPFLAGS!$CPPFLAGS$ac_delim
22435ac_ct_CC!$ac_ct_CC$ac_delim
22436EXEEXT!$EXEEXT$ac_delim
22437OBJEXT!$OBJEXT$ac_delim
22438CXX!$CXX$ac_delim
22439CXXFLAGS!$CXXFLAGS$ac_delim
22440ac_ct_CXX!$ac_ct_CXX$ac_delim
22441CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022442subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022443ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22444LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022445build!$build$ac_delim
22446build_cpu!$build_cpu$ac_delim
22447build_vendor!$build_vendor$ac_delim
22448build_os!$build_os$ac_delim
22449host!$host$ac_delim
22450host_cpu!$host_cpu$ac_delim
22451host_vendor!$host_vendor$ac_delim
22452host_os!$host_os$ac_delim
22453target!$target$ac_delim
22454target_cpu!$target_cpu$ac_delim
22455target_vendor!$target_vendor$ac_delim
22456target_os!$target_os$ac_delim
22457OS!$OS$ac_delim
22458HOST_OS!$HOST_OS$ac_delim
22459TARGET_OS!$TARGET_OS$ac_delim
22460LINKALL!$LINKALL$ac_delim
22461NOLINKALL!$NOLINKALL$ac_delim
22462LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22463LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22464ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022465HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022466ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022467GREP!$GREP$ac_delim
22468EGREP!$EGREP$ac_delim
22469LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22470BUILD_CC!$BUILD_CC$ac_delim
22471BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22472BUILD_CXX!$BUILD_CXX$ac_delim
22473CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022474ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022475ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000022476ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22477ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22478ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022479ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22480ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22481DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022482ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022483ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22484EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22485DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22486DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022487KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022488JIT!$JIT$ac_delim
22489TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022490_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022492 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022493 break
22494 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022495 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22496echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22497 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022498 else
22499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022500 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022501done
22502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022503ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22504if test -n "$ac_eof"; then
22505 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22506 ac_eof=`expr $ac_eof + 1`
22507fi
22508
22509cat >>$CONFIG_STATUS <<_ACEOF
22510cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22511/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022513sed '
22514s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22515s/^/s,@/; s/!/@,|#_!!_#|/
22516:n
22517t n
22518s/'"$ac_delim"'$/,g/; t
22519s/$/\\/; p
22520N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22521' >>$CONFIG_STATUS <conf$$subs.sed
22522rm -f conf$$subs.sed
22523cat >>$CONFIG_STATUS <<_ACEOF
22524CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022525_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022526
22527
22528ac_delim='%!_!# '
22529for ac_last_try in false false false false false :; do
22530 cat >conf$$subs.sed <<_ACEOF
Roman Divackyd14baf42012-12-13 16:07:19 +000022531ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22532ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22533LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022534ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022535ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022536ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022537ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022538ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherf0b3b742012-11-19 19:31:02 +000022539ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022540TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22541LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22542LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022543LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022544LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022545OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022546EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022547EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022548CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022549BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022550INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022551NM!$NM$ac_delim
22552ifGNUmake!$ifGNUmake$ac_delim
22553LN_S!$LN_S$ac_delim
22554CMP!$CMP$ac_delim
22555CP!$CP$ac_delim
22556DATE!$DATE$ac_delim
22557FIND!$FIND$ac_delim
22558MKDIR!$MKDIR$ac_delim
22559MV!$MV$ac_delim
22560RANLIB!$RANLIB$ac_delim
22561AR!$AR$ac_delim
22562RM!$RM$ac_delim
22563SED!$SED$ac_delim
22564TAR!$TAR$ac_delim
22565BINPWD!$BINPWD$ac_delim
22566GRAPHVIZ!$GRAPHVIZ$ac_delim
22567DOT!$DOT$ac_delim
22568FDP!$FDP$ac_delim
22569NEATO!$NEATO$ac_delim
22570TWOPI!$TWOPI$ac_delim
22571CIRCO!$CIRCO$ac_delim
22572GV!$GV$ac_delim
22573DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022574XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022575INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22576INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22577INSTALL_DATA!$INSTALL_DATA$ac_delim
22578BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022579CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022580DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022581GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022582GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022583PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022584ZIP!$ZIP$ac_delim
22585OCAMLC!$OCAMLC$ac_delim
22586OCAMLOPT!$OCAMLOPT$ac_delim
22587OCAMLDEP!$OCAMLDEP$ac_delim
22588OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022589GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022590HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022591INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22592INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22593CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22594CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22595LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022596NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22597NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Richard Smith1983f542013-01-31 22:19:12 +000022598NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022599COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greened2f82162013-01-09 22:11:13 +000022600NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22601NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Saleem Abdulrasool581126e2013-01-30 04:44:17 +000022602PYTHON!$PYTHON$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022603USE_UDIS86!$USE_UDIS86$ac_delim
22604USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022605USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022606XML2CONFIG!$XML2CONFIG$ac_delim
22607LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22608LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022609HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22610HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22611MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022612SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022613SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022614LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22615LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22616LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22617LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22618LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22619LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22620LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22621LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22622LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22623LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22624BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22625ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022626OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22627ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022628_ACEOF
22629
Roman Divackyd14baf42012-12-13 16:07:19 +000022630 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022631 break
22632 elif $ac_last_try; then
22633 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22634echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22635 { (exit 1); exit 1; }; }
22636 else
22637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22638 fi
22639done
22640
22641ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22642if test -n "$ac_eof"; then
22643 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22644 ac_eof=`expr $ac_eof + 1`
22645fi
22646
22647cat >>$CONFIG_STATUS <<_ACEOF
22648cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyd14baf42012-12-13 16:07:19 +000022649/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22650_ACEOF
22651sed '
22652s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22653s/^/s,@/; s/!/@,|#_!!_#|/
22654:n
22655t n
22656s/'"$ac_delim"'$/,g/; t
22657s/$/\\/; p
22658N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22659' >>$CONFIG_STATUS <conf$$subs.sed
22660rm -f conf$$subs.sed
22661cat >>$CONFIG_STATUS <<_ACEOF
22662CEOF$ac_eof
22663_ACEOF
22664
22665
22666ac_delim='%!_!# '
22667for ac_last_try in false false false false false :; do
22668 cat >conf$$subs.sed <<_ACEOF
Richard Smith68cbd912013-01-31 23:02:23 +000022669RPATH!$RPATH$ac_delim
Saleem Abdulrasool581126e2013-01-30 04:44:17 +000022670RDYNAMIC!$RDYNAMIC$ac_delim
David Greened2f82162013-01-09 22:11:13 +000022671program_prefix!$program_prefix$ac_delim
22672LIBOBJS!$LIBOBJS$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000022673LTLIBOBJS!$LTLIBOBJS$ac_delim
22674_ACEOF
22675
Richard Smith68cbd912013-01-31 23:02:23 +000022676 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
Roman Divackyd14baf42012-12-13 16:07:19 +000022677 break
22678 elif $ac_last_try; then
22679 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22680echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22681 { (exit 1); exit 1; }; }
22682 else
22683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22684 fi
22685done
22686
22687ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22688if test -n "$ac_eof"; then
22689 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22690 ac_eof=`expr $ac_eof + 1`
22691fi
22692
22693cat >>$CONFIG_STATUS <<_ACEOF
22694cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose85042e62012-09-26 00:01:00 +000022695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grossera84b5672010-11-10 16:31:34 +000022696_ACEOF
22697sed '
22698s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22699s/^/s,@/; s/!/@,|#_!!_#|/
22700:n
22701t n
22702s/'"$ac_delim"'$/,g/; t
22703s/$/\\/; p
22704N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22705' >>$CONFIG_STATUS <conf$$subs.sed
22706rm -f conf$$subs.sed
22707cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose85042e62012-09-26 00:01:00 +000022708:end
22709s/|#_!!_#|//g
Tobias Grossera84b5672010-11-10 16:31:34 +000022710CEOF$ac_eof
22711_ACEOF
22712
22713
Reid Spencera773bd52006-08-04 18:18:08 +000022714# VPATH may cause trouble with some makes, so we remove $(srcdir),
22715# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22716# trailing colons and then remove the whole line if VPATH becomes empty
22717# (actually we leave an empty line to preserve line numbers).
22718if test "x$srcdir" = x.; then
22719 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22720s/:*\$(srcdir):*/:/
22721s/:*\${srcdir}:*/:/
22722s/:*@srcdir@:*/:/
22723s/^\([^=]*=[ ]*\):*/\1/
22724s/:*$//
22725s/^[^=]*=[ ]*$//
22726}'
22727fi
22728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022729cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022730fi # test -n "$CONFIG_FILES"
22731
Reid Spencera773bd52006-08-04 18:18:08 +000022732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022733for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022734do
22735 case $ac_tag in
22736 :[FHLC]) ac_mode=$ac_tag; continue;;
22737 esac
22738 case $ac_mode$ac_tag in
22739 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022740 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22741echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22742 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022743 :[FH]-) ac_tag=-:-;;
22744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22745 esac
22746 ac_save_IFS=$IFS
22747 IFS=:
22748 set x $ac_tag
22749 IFS=$ac_save_IFS
22750 shift
22751 ac_file=$1
22752 shift
22753
22754 case $ac_mode in
22755 :L) ac_source=$1;;
22756 :[FH])
22757 ac_file_inputs=
22758 for ac_f
22759 do
22760 case $ac_f in
22761 -) ac_f="$tmp/stdin";;
22762 *) # Look for the file first in the build tree, then in the source tree
22763 # (if the path is not absolute). The absolute path cannot be DOS-style,
22764 # because $ac_f cannot contain `:'.
22765 test -f "$ac_f" ||
22766 case $ac_f in
22767 [\\/$]*) false;;
22768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22769 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022770 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22771echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22772 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022773 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022774 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022775 done
22776
22777 # Let's still pretend it is `configure' which instantiates (i.e., don't
22778 # use $as_me), people would be surprised to read:
22779 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022780 configure_input="Generated from "`IFS=:
22781 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022782 if test x"$ac_file" != x-; then
22783 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022784 { echo "$as_me:$LINENO: creating $ac_file" >&5
22785echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022786 fi
22787
22788 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022789 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022790 esac
22791 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022792 esac
22793
Reid Spencera773bd52006-08-04 18:18:08 +000022794 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022796 X"$ac_file" : 'X\(//\)[^/]' \| \
22797 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022799echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22801 s//\1/
22802 q
22803 }
22804 /^X\(\/\/\)[^/].*/{
22805 s//\1/
22806 q
22807 }
22808 /^X\(\/\/\)$/{
22809 s//\1/
22810 q
22811 }
22812 /^X\(\/\).*/{
22813 s//\1/
22814 q
22815 }
22816 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022817 { as_dir="$ac_dir"
22818 case $as_dir in #(
22819 -*) as_dir=./$as_dir;;
22820 esac
22821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22822 as_dirs=
22823 while :; do
22824 case $as_dir in #(
22825 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22826 *) as_qdir=$as_dir;;
22827 esac
22828 as_dirs="'$as_qdir' $as_dirs"
22829 as_dir=`$as_dirname -- "$as_dir" ||
22830$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22831 X"$as_dir" : 'X\(//\)[^/]' \| \
22832 X"$as_dir" : 'X\(//\)$' \| \
22833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22834echo X"$as_dir" |
22835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22836 s//\1/
22837 q
22838 }
22839 /^X\(\/\/\)[^/].*/{
22840 s//\1/
22841 q
22842 }
22843 /^X\(\/\/\)$/{
22844 s//\1/
22845 q
22846 }
22847 /^X\(\/\).*/{
22848 s//\1/
22849 q
22850 }
22851 s/.*/./; q'`
22852 test -d "$as_dir" && break
22853 done
22854 test -z "$as_dirs" || eval "mkdir $as_dirs"
22855 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22856echo "$as_me: error: cannot create directory $as_dir" >&2;}
22857 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022858 ac_builddir=.
22859
Reid Spencera773bd52006-08-04 18:18:08 +000022860case "$ac_dir" in
22861.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22862*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022864 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022865 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022866 case $ac_top_builddir_sub in
22867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22869 esac ;;
22870esac
22871ac_abs_top_builddir=$ac_pwd
22872ac_abs_builddir=$ac_pwd$ac_dir_suffix
22873# for backward compatibility:
22874ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022875
22876case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022877 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022878 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022879 ac_top_srcdir=$ac_top_builddir_sub
22880 ac_abs_top_srcdir=$ac_pwd ;;
22881 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022882 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022883 ac_top_srcdir=$srcdir
22884 ac_abs_top_srcdir=$srcdir ;;
22885 *) # Relative name.
22886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22887 ac_top_srcdir=$ac_top_build_prefix$srcdir
22888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022889esac
Reid Spencera773bd52006-08-04 18:18:08 +000022890ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022891
John Criswell7a73b802003-06-30 21:59:07 +000022892
Reid Spencera773bd52006-08-04 18:18:08 +000022893 case $ac_mode in
22894 :F)
22895 #
22896 # CONFIG_FILE
22897 #
John Criswell7a73b802003-06-30 21:59:07 +000022898
22899 case $INSTALL in
22900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022901 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022902 esac
John Criswell7a73b802003-06-30 21:59:07 +000022903_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022905cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022906# If the template does not know about datarootdir, expand it.
22907# FIXME: This hack should be removed a few years after 2.60.
22908ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022909
22910case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022911 p
22912 q
22913}
22914/@datadir@/p
22915/@docdir@/p
22916/@infodir@/p
22917/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022918/@mandir@/p
22919' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022920*datarootdir*) ac_datarootdir_seen=yes;;
22921*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022922 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22923echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022924_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022925cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022926 ac_datarootdir_hack='
22927 s&@datadir@&$datadir&g
22928 s&@docdir@&$docdir&g
22929 s&@infodir@&$infodir&g
22930 s&@localedir@&$localedir&g
22931 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022932 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022933esac
22934_ACEOF
22935
22936# Neutralize VPATH when `$srcdir' = `.'.
22937# Shell code in configure.ac might set extrasub.
22938# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022939cat >>$CONFIG_STATUS <<_ACEOF
22940 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022941$extrasub
22942_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022943cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022944:t
22945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022946s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022947s&@top_builddir@&$ac_top_builddir_sub&;t t
22948s&@srcdir@&$ac_srcdir&;t t
22949s&@abs_srcdir@&$ac_abs_srcdir&;t t
22950s&@top_srcdir@&$ac_top_srcdir&;t t
22951s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22952s&@builddir@&$ac_builddir&;t t
22953s&@abs_builddir@&$ac_abs_builddir&;t t
22954s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22955s&@INSTALL@&$ac_INSTALL&;t t
22956$ac_datarootdir_hack
Roman Divackyd14baf42012-12-13 16:07:19 +000022957" $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 +000022958
Reid Spencera773bd52006-08-04 18:18:08 +000022959test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22960 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022962 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022963which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022964echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022965which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022966
Reid Spencera773bd52006-08-04 18:18:08 +000022967 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022968 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022969 -) cat "$tmp/out"; rm -f "$tmp/out";;
22970 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22971 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022972 ;;
22973 :H)
22974 #
22975 # CONFIG_HEADER
22976 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022977_ACEOF
22978
22979# Transform confdefs.h into a sed script `conftest.defines', that
22980# substitutes the proper values into config.h.in to produce config.h.
22981rm -f conftest.defines conftest.tail
22982# First, append a space to every undef/define line, to ease matching.
22983echo 's/$/ /' >conftest.defines
22984# Then, protect against being on the right side of a sed subst, or in
22985# an unquoted here document, in config.status. If some macros were
22986# called several times there might be several #defines for the same
22987# symbol, which is useless. But do not sort them, since the last
22988# AC_DEFINE must be honored.
22989ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22990# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22991# NAME is the cpp macro being defined, VALUE is the value it is being given.
22992# PARAMS is the parameter list in the macro definition--in most cases, it's
22993# just an empty string.
22994ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22995ac_dB='\\)[ (].*,\\1define\\2'
22996ac_dC=' '
22997ac_dD=' ,'
22998
22999uniq confdefs.h |
23000 sed -n '
23001 t rset
23002 :rset
23003 s/^[ ]*#[ ]*define[ ][ ]*//
23004 t ok
23005 d
23006 :ok
23007 s/[\\&,]/\\&/g
23008 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23009 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23010 ' >>conftest.defines
23011
23012# Remove the space that was appended to ease matching.
23013# Then replace #undef with comments. This is necessary, for
23014# example, in the case of _POSIX_SOURCE, which is predefined and required
23015# on some systems where configure will not decide to define it.
23016# (The regexp can be short, since the line contains either #define or #undef.)
23017echo 's/ $//
23018s,^[ #]*u.*,/* & */,' >>conftest.defines
23019
23020# Break up conftest.defines:
23021ac_max_sed_lines=50
23022
23023# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23024# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23025# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23026# et cetera.
23027ac_in='$ac_file_inputs'
23028ac_out='"$tmp/out1"'
23029ac_nxt='"$tmp/out2"'
23030
23031while :
23032do
23033 # Write a here document:
23034 cat >>$CONFIG_STATUS <<_ACEOF
23035 # First, check the format of the line:
23036 cat >"\$tmp/defines.sed" <<\\CEOF
23037/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23038/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23039b
23040:def
23041_ACEOF
23042 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23043 echo 'CEOF
23044 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23045 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23046 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23047 grep . conftest.tail >/dev/null || break
23048 rm -f conftest.defines
23049 mv conftest.tail conftest.defines
23050done
23051rm -f conftest.defines conftest.tail
23052
23053echo "ac_result=$ac_in" >>$CONFIG_STATUS
23054cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023055 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023056 echo "/* $configure_input */" >"$tmp/config.h"
23057 cat "$ac_result" >>"$tmp/config.h"
23058 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23059 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23060echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023061 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023062 rm -f $ac_file
23063 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023064 fi
23065 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023066 echo "/* $configure_input */"
23067 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000023068 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023069 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000023070 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023072 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23073echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023074 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023075 esac
John Criswell7a73b802003-06-30 21:59:07 +000023076
Reid Spencera773bd52006-08-04 18:18:08 +000023077
23078 case $ac_file$ac_mode in
23079 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023080 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023081 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000023082 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023083 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023084 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023085 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023086 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023087 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023088 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023089 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023090 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023091 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000023092 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023093 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023094 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023095 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023096 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023097 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023098 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023099 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023100 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023101 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023102 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023103 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000023104 ${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 +000023105
23106 esac
23107done # for ac_tag
23108
John Criswell7a73b802003-06-30 21:59:07 +000023109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023110{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000023111_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023112chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023113ac_clean_files=$ac_clean_files_save
23114
23115
23116# configure is writing to config.log, and then calls config.status.
23117# config.status does its own redirection, appending to config.log.
23118# Unfortunately, on DOS this fails, as config.log is still kept open
23119# by configure, so config.status won't be able to write to it; its
23120# output is simply discarded. So we exec the FD to /dev/null,
23121# effectively closing config.log, so it can be properly (re)opened and
23122# appended to by config.status. When coming back to configure, we
23123# need to make the FD available again.
23124if test "$no_create" != yes; then
23125 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023126 ac_config_status_args=
23127 test "$silent" = yes &&
23128 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023129 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023131 exec 5>>config.log
23132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23133 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023134 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000023135fi
23136
John Criswell12399a12003-09-30 15:55:44 +000023137#
23138# CONFIG_SUBDIRS section.
23139#
23140if test "$no_recursion" != yes; then
23141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023142 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000023143 ac_sub_configure_args=
23144 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000023145 eval "set x $ac_configure_args"
23146 shift
23147 for ac_arg
23148 do
John Criswell12399a12003-09-30 15:55:44 +000023149 if test -n "$ac_prev"; then
23150 ac_prev=
23151 continue
23152 fi
23153 case $ac_arg in
23154 -cache-file | --cache-file | --cache-fil | --cache-fi \
23155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23156 ac_prev=cache_file ;;
23157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23159 | --c=*)
23160 ;;
23161 --config-cache | -C)
23162 ;;
23163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23164 ac_prev=srcdir ;;
23165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23166 ;;
23167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23168 ac_prev=prefix ;;
23169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23170 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023171 *)
23172 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023173 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023174 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023175 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000023176 esac
23177 done
23178
23179 # Always prepend --prefix to ensure using the same prefix
23180 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000023181 ac_arg="--prefix=$prefix"
23182 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023183 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023184 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023185 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000023186
23187 ac_popdir=`pwd`
23188 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23189
23190 # Do not complain, so a configure script can configure whichever
23191 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000023192 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000023193
Reid Spencera773bd52006-08-04 18:18:08 +000023194 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023195 echo "$as_me:$LINENO: $ac_msg" >&5
23196 echo "$ac_msg" >&6
23197 { as_dir="$ac_dir"
23198 case $as_dir in #(
23199 -*) as_dir=./$as_dir;;
23200 esac
23201 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23202 as_dirs=
23203 while :; do
23204 case $as_dir in #(
23205 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23206 *) as_qdir=$as_dir;;
23207 esac
23208 as_dirs="'$as_qdir' $as_dirs"
23209 as_dir=`$as_dirname -- "$as_dir" ||
23210$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23211 X"$as_dir" : 'X\(//\)[^/]' \| \
23212 X"$as_dir" : 'X\(//\)$' \| \
23213 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23214echo X"$as_dir" |
23215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23216 s//\1/
23217 q
23218 }
23219 /^X\(\/\/\)[^/].*/{
23220 s//\1/
23221 q
23222 }
23223 /^X\(\/\/\)$/{
23224 s//\1/
23225 q
23226 }
23227 /^X\(\/\).*/{
23228 s//\1/
23229 q
23230 }
23231 s/.*/./; q'`
23232 test -d "$as_dir" && break
23233 done
23234 test -z "$as_dirs" || eval "mkdir $as_dirs"
23235 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23236echo "$as_me: error: cannot create directory $as_dir" >&2;}
23237 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000023238 ac_builddir=.
23239
Reid Spencera773bd52006-08-04 18:18:08 +000023240case "$ac_dir" in
23241.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23242*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023243 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023244 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023245 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023246 case $ac_top_builddir_sub in
23247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23249 esac ;;
23250esac
23251ac_abs_top_builddir=$ac_pwd
23252ac_abs_builddir=$ac_pwd$ac_dir_suffix
23253# for backward compatibility:
23254ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000023255
23256case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023257 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000023258 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023259 ac_top_srcdir=$ac_top_builddir_sub
23260 ac_abs_top_srcdir=$ac_pwd ;;
23261 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000023262 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023263 ac_top_srcdir=$srcdir
23264 ac_abs_top_srcdir=$srcdir ;;
23265 *) # Relative name.
23266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23267 ac_top_srcdir=$ac_top_build_prefix$srcdir
23268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000023269esac
Reid Spencera773bd52006-08-04 18:18:08 +000023270ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000023271
23272
Reid Spencera773bd52006-08-04 18:18:08 +000023273 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000023274
23275 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000023276 if test -f "$ac_srcdir/configure.gnu"; then
23277 ac_sub_configure=$ac_srcdir/configure.gnu
23278 elif test -f "$ac_srcdir/configure"; then
23279 ac_sub_configure=$ac_srcdir/configure
23280 elif test -f "$ac_srcdir/configure.in"; then
23281 # This should be Cygnus configure.
23282 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000023283 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023284 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23285echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000023286 ac_sub_configure=
23287 fi
23288
23289 # The recursion is here.
23290 if test -n "$ac_sub_configure"; then
23291 # Make the cache file name correct relative to the subdirectory.
23292 case $cache_file in
23293 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023294 *) # Relative name.
23295 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000023296 esac
23297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023298 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23299echo "$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 +000023300 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000023301 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23302 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023303 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23304echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23305 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000023306 fi
23307
Reid Spencera773bd52006-08-04 18:18:08 +000023308 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000023309 done
23310fi
23311