blob: 3ca2df90abf59a1b46658cf2e601e740df61252c [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramer537d9a72012-11-17 22:01:08 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +000012# Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramer537d9a72012-11-17 22:01:08 +0000564PACKAGE_VERSION='3.3svn'
565PACKAGE_STRING='LLVM 3.3svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Chandler Carruth5ebee9e2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Roman Divackyd14baf42012-12-13 16:07:19 +0000688ENABLE_CLANG_ARCMT
689ENABLE_CLANG_STATIC_ANALYZER
690ENABLE_CLANG_REWRITER
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000691ENABLE_OPTIMIZED
692ENABLE_PROFILING
693DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000694ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_EXPENSIVE_CHECKS
696EXPENSIVE_CHECKS
697DEBUG_RUNTIME
698DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000699KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700JIT
701TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000702ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000704LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000705ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000707ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000708ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000709ENABLE_TIMESTAMPS
Eric Christopherf0b3b742012-11-19 19:31:02 +0000710ENABLE_BACKTRACES
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711TARGETS_TO_BUILD
712LLVM_ENUM_TARGETS
713LLVM_ENUM_ASM_PRINTERS
714LLVM_ENUM_ASM_PARSERS
715LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716OPTIMIZE_OPTION
717EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000718EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000719CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000720BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000721INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000722NM
723ifGNUmake
724LN_S
725CMP
726CP
727DATE
728FIND
729MKDIR
730MV
731RANLIB
732AR
733RM
734SED
735TAR
736BINPWD
737GRAPHVIZ
738DOT
739FDP
740NEATO
741TWOPI
742CIRCO
743GV
744DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000745XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746INSTALL_PROGRAM
747INSTALL_SCRIPT
748INSTALL_DATA
749BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000750CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000752GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000753GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000754PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755ZIP
756OCAMLC
757OCAMLOPT
758OCAMLDEP
759OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000760GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000761HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762INSTALL_LTDL_TRUE
763INSTALL_LTDL_FALSE
764CONVENIENCE_LTDL_TRUE
765CONVENIENCE_LTDL_FALSE
766LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767NO_VARIADIC_MACROS
768NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000769COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000770USE_UDIS86
771USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000772USE_INTEL_JITEVENTS
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000773XML2CONFIG
774LIBXML2_LIBS
775LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776HAVE_PTHREAD
777HUGE_VAL_SANITY
778MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000780SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000781LLVM_PREFIX
782LLVM_BINDIR
783LLVM_LIBDIR
784LLVM_DATADIR
785LLVM_DOCSDIR
786LLVM_ETCDIR
787LLVM_INCLUDEDIR
788LLVM_INFODIR
789LLVM_MANDIR
790LLVM_CONFIGTIME
791BINDINGS_TO_BUILD
792ALL_BINDINGS
793OCAML_LIBDIR
794ENABLE_VISIBILITY_INLINES_HIDDEN
795RPATH
796RDYNAMIC
Jordan Rose92080522012-10-01 18:40:32 +0000797program_prefix
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000798LIBOBJS
799LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000800ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000801 ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000808CXX
809CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000810CCC
811CPP'
John Criswell0157f502010-03-19 21:31:39 +0000812ac_subdirs_all='projects/llvm-gcc
813projects/test-suite
814projects/llvm-test
815projects/poolalloc
816projects/llvm-poolalloc
817projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000819projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000821projects/llvm-java
822projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000823projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000824projects/llvm-kernel
825tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000826
827# Initialize some variables set by options.
828ac_init_help=
829ac_init_version=false
830# The variables have the same names as the options, with
831# dashes changed to underlines.
832cache_file=/dev/null
833exec_prefix=NONE
834no_create=
835no_recursion=
836prefix=NONE
837program_prefix=NONE
838program_suffix=NONE
839program_transform_name=s,x,x,
840silent=
841site=
842srcdir=
843verbose=
844x_includes=NONE
845x_libraries=NONE
846
847# Installation directory options.
848# These are left unexpanded so users can "make install exec_prefix=/foo"
849# and all the variables that are supposed to be based on exec_prefix
850# by default will actually change.
851# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000852# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000853bindir='${exec_prefix}/bin'
854sbindir='${exec_prefix}/sbin'
855libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000856datarootdir='${prefix}/share'
857datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000858sysconfdir='${prefix}/etc'
859sharedstatedir='${prefix}/com'
860localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000861includedir='${prefix}/include'
862oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000863docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864infodir='${datarootdir}/info'
865htmldir='${docdir}'
866dvidir='${docdir}'
867pdfdir='${docdir}'
868psdir='${docdir}'
869libdir='${exec_prefix}/lib'
870localedir='${datarootdir}/locale'
871mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000872
873ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000874ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000875for ac_option
876do
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000879 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000880 ac_prev=
881 continue
882 fi
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_option in
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *) ac_optarg=yes ;;
887 esac
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 # Accept the important Cygnus configure options, so we can diagnose typos.
890
Reid Spencera773bd52006-08-04 18:18:08 +0000891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000916 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000918 datadir=$ac_optarg ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
John Criswell7a73b802003-06-30 21:59:07 +0000927 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000928 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000929 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000930 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
931 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
932 { (exit 1); exit 1; }; }
933 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
934 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000935
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
940
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000947 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000948 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000949 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
950 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
951 { (exit 1); exit 1; }; }
952 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
953 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
Reid Spencera773bd52006-08-04 18:18:08 +0000980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
John Criswell7a73b802003-06-30 21:59:07 +0000986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
Reid Spencera773bd52006-08-04 18:18:08 +00001010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
John Criswell7a73b802003-06-30 21:59:07 +00001015 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001016 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
Reid Spencera773bd52006-08-04 18:18:08 +00001084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
John Criswell7a73b802003-06-30 21:59:07 +00001094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package| sed 's/-/_/g'`
1150 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001153 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001154 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001155 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid package name: $ac_package" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_package=`echo $ac_package | sed 's/-/_/g'`
1159 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 -*) { echo "$as_me: error: unrecognized option: $ac_option
1180Try \`$0 --help' for more information." >&2
1181 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1188 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1189 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001190 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001195 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 ;;
1200
1201 esac
1202done
1203
1204if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206 { echo "$as_me: error: missing argument to $ac_option" >&2
1207 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001208fi
1209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001210# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001215do
Reid Spencera773bd52006-08-04 18:18:08 +00001216 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001217 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001220 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001221 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1222 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001236 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001237 If a cross compiler is detected then cross compile mode will be used." >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
Reid Spencera773bd52006-08-04 18:18:08 +00001249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001252 { echo "$as_me: error: Working directory cannot be determined" >&2
1253 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001254test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 { echo "$as_me: error: pwd does not report name of working directory" >&2
1256 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001257
1258
John Criswell7a73b802003-06-30 21:59:07 +00001259# Find the source files, if location was not specified.
1260if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001262 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001263 ac_confdir=`$as_dirname -- "$0" ||
1264$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$0" : 'X\(//\)[^/]' \| \
1266 X"$0" : 'X\(//\)$' \| \
1267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1268echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001286 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001287 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001288 srcdir=..
1289 fi
1290else
1291 ac_srcdir_defaulted=no
1292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1296 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1301 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001302 pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001327\`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
John Criswell7a73b802003-06-30 21:59:07 +00001347Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001349 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001351 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001375 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001380_ACEOF
1381
1382 cat <<\_ACEOF
1383
1384System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
1392 case $ac_init_help in
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001393 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001394 esac
1395 cat <<\_ACEOF
1396
1397Optional Features:
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001400 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001401 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001402 --enable-cxx11 Use c++11 if available (default is NO)
Roman Divackyd14baf42012-12-13 16:07:19 +00001403 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1404 --enable-clang-static-analyzer
1405 Enable building of clang Static Analyzer (default is
1406 YES)
1407 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001408 --enable-optimized Compile with optimizations enabled (default is NO)
1409 --enable-profiling Compile with profiling enabled (default is NO)
1410 --enable-assertions Compile with assertion checks enabled (default is
1411 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001412 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001413 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001414 Compile with expensive debug checks enabled (default
1415 is NO)
1416 --enable-debug-runtime Build runtime libs with debug symbols (default is
1417 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001418 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1419 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001420 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001421 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001422 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001423 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001424 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001425 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001426 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001427 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001428 --enable-shared Build a shared library and link tools against it
1429 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001430 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001431 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001432 --enable-timestamps Enable embedding timestamp information in build
1433 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001434 --enable-backtraces Enable embedding backtraces on crash (default is
1435 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001436 --enable-targets Build specific host targets: all or
1437 target1,target2,... Valid targets are: host, x86,
Eric Christopher06b42342012-11-14 22:09:20 +00001438 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1439 msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001440 --enable-experimental-targets
1441 Build experimental host targets: disable or
1442 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001443 --enable-bindings Build specific language bindings:
1444 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001445 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001446 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001447
1448Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001451 --with-optimize-option Select the compiler options to use for optimized
1452 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001453 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001454 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001455 --with-ocaml-libdir Specify install location for ocaml bindings (default
1456 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001457 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001458 --with-clang-resource-dir
1459 Relative directory from the Clang binary for
1460 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001461 --with-c-include-dirs Colon separated list of directories clang will
1462 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001463 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001464 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001465 --with-binutils-include Specify path to binutils/include/ containing
1466 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001467 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001468 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001469 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001470 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001471 --with-oprofile=<prefix>
1472 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor770b97b2012-09-28 17:35:20 +00001473 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1474
John Criswell7a73b802003-06-30 21:59:07 +00001475
1476Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001477 CC C compiler command
1478 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001482 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001483 CXX C++ compiler command
1484 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001485 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
Eric Christopherf33ab862011-12-21 00:52:44 +00001490Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001491_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001492ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001498 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001499 ac_builddir=.
1500
Reid Spencera773bd52006-08-04 18:18:08 +00001501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001505 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001516
1517case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001518 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001519 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001523 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001530esac
Reid Spencera773bd52006-08-04 18:18:08 +00001531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001532
Reid Spencera773bd52006-08-04 18:18:08 +00001533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001541 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001545 done
1546fi
1547
Reid Spencera773bd52006-08-04 18:18:08 +00001548test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001549if $ac_init_version; then
1550 cat <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001551LLVM configure 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001552generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15552002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001558
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +00001559Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001560_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001561 exit
John Criswell7a73b802003-06-30 21:59:07 +00001562fi
Reid Spencera773bd52006-08-04 18:18:08 +00001563cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001564This file contains any messages produced by compilers while
1565running configure, to aid debugging if configure makes a mistake.
1566
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001567It was created by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001568generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001569
1570 $ $0 $@
1571
1572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001573exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001574{
1575cat <<_ASUNAME
1576## --------- ##
1577## Platform. ##
1578## --------- ##
1579
1580hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584uname -v = `(uname -v) 2>/dev/null || echo unknown`
1585
1586/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1588
1589/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1590/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1591/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001592/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001593/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1594/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1595/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1596
1597_ASUNAME
1598
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001604 echo "PATH: $as_dir"
1605done
Reid Spencera773bd52006-08-04 18:18:08 +00001606IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001607
1608} >&5
1609
1610cat >&5 <<_ACEOF
1611
1612
1613## ----------- ##
1614## Core tests. ##
1615## ----------- ##
1616
1617_ACEOF
1618
1619
1620# Keep a trace of the command line.
1621# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001622# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001623# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001624# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001625ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001626ac_configure_args0=
1627ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001628ac_must_keep_next=false
1629for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001630do
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 for ac_arg
1632 do
1633 case $ac_arg in
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636 | -silent | --silent | --silen | --sile | --sil)
1637 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001638 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 esac
1641 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001646 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001648 case $ac_arg in
1649 *=* | --config-cache | -C | -disable-* | --disable-* \
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652 | -with-* | --with-* | -without-* | --without-* | --x)
1653 case "$ac_configure_args0 " in
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655 esac
1656 ;;
1657 -* ) ac_must_keep_next=true ;;
1658 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001660 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ;;
1662 esac
1663 done
John Criswell7a73b802003-06-30 21:59:07 +00001664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001665$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001667
1668# When interrupted or exit'd, cleanup temporary files, and complete
1669# config.log. We remove comments because anyway the quotes in there
1670# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001671# WARNING: Use '\'' to represent an apostrophe within the trap.
1672# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001673trap 'exit_status=$?
1674 # Save into config.log some information that might help in debugging.
1675 {
1676 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001677
John Criswell7a73b802003-06-30 21:59:07 +00001678 cat <<\_ASBOX
1679## ---------------- ##
1680## Cache variables. ##
1681## ---------------- ##
1682_ASBOX
1683 echo
1684 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001685(
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687 eval ac_val=\$$ac_var
1688 case $ac_val in #(
1689 *${as_nl}*)
1690 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac
1694 case $ac_var in #(
1695 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001696 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001697 esac ;;
1698 esac
1699 done
John Criswell7a73b802003-06-30 21:59:07 +00001700 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001703 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001704 "s/'\''/'\''\\\\'\'''\''/g;
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001707 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001709 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001710 esac |
1711 sort
1712)
John Criswell7a73b802003-06-30 21:59:07 +00001713 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001714
1715 cat <<\_ASBOX
1716## ----------------- ##
1717## Output variables. ##
1718## ----------------- ##
1719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_vars
1722 do
Reid Spencera773bd52006-08-04 18:18:08 +00001723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 done | sort
1729 echo
1730
1731 if test -n "$ac_subst_files"; then
1732 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001733## ------------------- ##
1734## File substitutions. ##
1735## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_files
1739 do
Reid Spencera773bd52006-08-04 18:18:08 +00001740 eval ac_val=\$$ac_var
1741 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001743 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001744 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 done | sort
1746 echo
1747 fi
1748
John Criswell7a73b802003-06-30 21:59:07 +00001749 if test -s confdefs.h; then
1750 cat <<\_ASBOX
1751## ----------- ##
1752## confdefs.h. ##
1753## ----------- ##
1754_ASBOX
1755 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001756 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001757 echo
1758 fi
1759 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001760 echo "$as_me: caught signal $ac_signal"
1761 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001762 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001763 rm -f core *.core core.conftest.* &&
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001765 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001766' 0
John Criswell7a73b802003-06-30 21:59:07 +00001767for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001769done
1770ac_signal=0
1771
1772# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001773rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001774
1775# Predefined preprocessor variables.
1776
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_NAME "$PACKAGE_NAME"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_VERSION "$PACKAGE_VERSION"
1789_ACEOF
1790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_STRING "$PACKAGE_STRING"
1794_ACEOF
1795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796
John Criswell7a73b802003-06-30 21:59:07 +00001797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1799_ACEOF
1800
1801
1802# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001804if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001806elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 set x "$ac_default_prefix/share/config.site" \
1810 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812shift
1813for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001814do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 if test -r "$ac_site_file"; then
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001818 sed 's/^/| /' "$ac_site_file" >&5
1819 . "$ac_site_file"
1820 fi
1821done
1822
1823if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001824 # Some versions of bash will fail to source /dev/null (special
1825 # files actually), so we avoid doing that.
1826 if test -f "$cache_file"; then
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001829 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001832 esac
1833 fi
1834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 >$cache_file
1838fi
1839
1840# Check that the precious variables saved in the cache have kept the same
1841# value.
1842ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001843for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001848 case $ac_old_set,$ac_new_set in
1849 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001852 ac_cache_corrupted=: ;;
1853 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001856 ac_cache_corrupted=: ;;
1857 ,);;
1858 *)
1859 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1863echo "$as_me: former value: $ac_old_val" >&2;}
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1865echo "$as_me: current value: $ac_new_val" >&2;}
1866 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001867 fi;;
1868 esac
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1871 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001873 *) ac_arg=$ac_var=$ac_new_val ;;
1874 esac
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 esac
1879 fi
1880done
1881if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
Reid Spencera773bd52006-08-04 18:18:08 +00001912
John Criswell7a73b802003-06-30 21:59:07 +00001913ac_ext=c
1914ac_cpp='$CPP $CPPFLAGS'
1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001921cat >>confdefs.h <<\_ACEOF
1922#define LLVM_VERSION_MAJOR 3
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<\_ACEOF
Benjamin Kramer537d9a72012-11-17 22:01:08 +00001927#define LLVM_VERSION_MINOR 3
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001928_ACEOF
1929
1930
NAKAMURA Takumia6fdcaa2013-01-01 10:00:19 +00001931LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001932
1933
1934
1935
1936
1937
1938
John Criswell7a73b802003-06-30 21:59:07 +00001939ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001940for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001941 if test -f "$ac_dir/install-sh"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1944 break
1945 elif test -f "$ac_dir/install.sh"; then
1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1948 break
1949 elif test -f "$ac_dir/shtool"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 break
1953 fi
John Criswell7a73b802003-06-30 21:59:07 +00001954done
1955if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1957echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1958 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001959fi
Reid Spencera773bd52006-08-04 18:18:08 +00001960
1961# These three variables are undocumented and unsupported,
1962# and are intended to be withdrawn in a future Autoconf release.
1963# They can cause serious problems if a builder's source tree is in a directory
1964# whose full name contains unusual characters.
1965ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968
John Criswell7a73b802003-06-30 21:59:07 +00001969
John Criswell392aaa32003-07-22 19:18:09 +00001970
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001972 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001973 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1974echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1975 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001976 fi
John Criswell93e1c722003-09-15 17:04:06 +00001977fi
1978
Nick Lewycky83fc4472009-09-29 05:48:51 +00001979ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001980ac_cpp='$CPP $CPPFLAGS'
1981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1983ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001984if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001985 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001986 do
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001993else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001996else
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002006 break 2
2007 fi
2008done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002009done
Reid Spencera773bd52006-08-04 18:18:08 +00002010IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002011
2012fi
2013fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002014CC=$ac_cv_prog_CC
2015if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016 { echo "$as_me:$LINENO: result: $CC" >&5
2017echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002019 { echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002021fi
2022
Reid Spencera773bd52006-08-04 18:18:08 +00002023
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002025 done
2026fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002027if test -z "$CC"; then
2028 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002029 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002030do
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002037else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002040else
2041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042for as_dir in $PATH
2043do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002050 break 2
2051 fi
2052done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002053done
Reid Spencera773bd52006-08-04 18:18:08 +00002054IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002055
2056fi
2057fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058ac_ct_CC=$ac_cv_prog_ac_ct_CC
2059if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002060 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2061echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002063 { echo "$as_me:$LINENO: result: no" >&5
2064echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002065fi
2066
Reid Spencera773bd52006-08-04 18:18:08 +00002067
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002069done
John Criswell7a73b802003-06-30 21:59:07 +00002070
Reid Spencera773bd52006-08-04 18:18:08 +00002071 if test "x$ac_ct_CC" = x; then
2072 CC=""
2073 else
2074 case $cross_compiling:$ac_tool_warned in
2075yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2077whose name does not start with the host triplet. If you think this
2078configuration is useful to you, please write to autoconf@gnu.org." >&5
2079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2080whose name does not start with the host triplet. If you think this
2081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002082ac_tool_warned=yes ;;
2083esac
2084 CC=$ac_ct_CC
2085 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002086fi
2087
John Criswell7a73b802003-06-30 21:59:07 +00002088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002089test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: no acceptable C compiler found in \$PATH
2092See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002094
John Criswell7a73b802003-06-30 21:59:07 +00002095# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002096echo "$as_me:$LINENO: checking for C compiler version" >&5
2097ac_compiler=`set X $ac_compile; echo $2`
2098{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002105 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108{ (ac_try="$ac_compiler -v >&5"
2109case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112esac
2113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -v >&5") 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118{ (ac_try="$ac_compiler -V >&5"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler -V >&5") 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h. */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002134/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002135
John Criswell7a73b802003-06-30 21:59:07 +00002136int
2137main ()
2138{
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002146# Try to create an executable without -o first, disregard a.out.
2147# It will help us diagnose broken compilers, and finding out an intuition
2148# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002149{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152#
2153# List of possible output files, starting from the most likely.
2154# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2155# only as a last resort. b.out is created by i960 compilers.
2156ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2157#
2158# The IRIX 6 linker writes into existing files which may not be
2159# executable, retaining their permissions. Remove them first so a
2160# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002161ac_rmfiles=
2162for ac_file in $ac_files
2163do
2164 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2167 esac
2168done
2169rm -f $ac_rmfiles
2170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002171if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002172case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002177 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002178 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183# in a Makefile. We should not override ac_cv_exeext if it was cached,
2184# so that the user can short-circuit this test for compilers unknown to
2185# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002186for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002187do
2188 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002189 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002192 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002193 # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002196 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002198 then :; else
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 fi
2201 # We set ac_cv_exeext here because the later test for it is not
2202 # safe: cross compilers may not add the suffix if given an `-o'
2203 # argument, so we may need to know it at that point already.
2204 # Even if this section looks crufty: it has the advantage of
2205 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002206 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002207 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002208 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002209 esac
2210done
Reid Spencera773bd52006-08-04 18:18:08 +00002211test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
John Criswell7a73b802003-06-30 21:59:07 +00002213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002215sed 's/^/| /' conftest.$ac_ext >&5
2216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002217{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218See \`config.log' for more details." >&5
2219echo "$as_me: error: C compiler cannot create executables
2220See \`config.log' for more details." >&2;}
2221 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002222fi
John Criswell7a73b802003-06-30 21:59:07 +00002223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002224ac_exeext=$ac_cv_exeext
2225{ echo "$as_me:$LINENO: result: $ac_file" >&5
2226echo "${ECHO_T}$ac_file" >&6; }
2227
2228# Check that the compiler produces executables we can run. If not, either
2229# the compiler is broken, or we cross compile.
2230{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2232# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233# If not cross compiling, check that we can run a simple program.
2234if test "$cross_compiling" != yes; then
2235 if { ac_try='./$ac_file'
2236 { (case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2239esac
2240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval "$ac_try") 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 cross_compiling=no
2246 else
2247 if test "$cross_compiling" = maybe; then
2248 cross_compiling=yes
2249 else
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251If you meant to cross compile, use \`--host'.
2252See \`config.log' for more details." >&5
2253echo "$as_me: error: cannot run C compiled programs.
2254If you meant to cross compile, use \`--host'.
2255See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2257 fi
2258 fi
2259fi
2260{ echo "$as_me:$LINENO: result: yes" >&5
2261echo "${ECHO_T}yes" >&6; }
2262
2263rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002264ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002265# Check that the compiler produces executables we can run. If not, either
2266# the compiler is broken, or we cross compile.
2267{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2269{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270echo "${ECHO_T}$cross_compiling" >&6; }
2271
2272{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2274if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002275case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002280 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002281 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2286# work properly (i.e., refer to `conftest.exe'), while it won't with
2287# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002288for ac_file in conftest.exe conftest conftest.*; do
2289 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002290 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002293 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002294 * ) break;;
2295 esac
2296done
2297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002298 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2301See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304
2305rm -f conftest$ac_cv_exeext
2306{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2307echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002308
2309rm -f conftest.$ac_ext
2310EXEEXT=$ac_cv_exeext
2311ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002312{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2313echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2314if test "${ac_cv_objext+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002317 cat >conftest.$ac_ext <<_ACEOF
2318/* confdefs.h. */
2319_ACEOF
2320cat confdefs.h >>conftest.$ac_ext
2321cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002323
John Criswell7a73b802003-06-30 21:59:07 +00002324int
2325main ()
2326{
2327
2328 ;
2329 return 0;
2330}
2331_ACEOF
2332rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002334case "(($ac_try" in
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2337esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002339 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002340 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002343 for ac_file in conftest.o conftest.obj conftest.*; do
2344 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002345 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2348 break;;
2349 esac
2350done
2351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002353sed 's/^/| /' conftest.$ac_ext >&5
2354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2356See \`config.log' for more details." >&5
2357echo "$as_me: error: cannot compute suffix of object files: cannot compile
2358See \`config.log' for more details." >&2;}
2359 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002361
John Criswell7a73b802003-06-30 21:59:07 +00002362rm -f conftest.$ac_cv_objext conftest.$ac_ext
2363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002364{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2365echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002366OBJEXT=$ac_cv_objext
2367ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2369echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2370if test "${ac_cv_c_compiler_gnu+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373 cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h. */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002379
John Criswell7a73b802003-06-30 21:59:07 +00002380int
2381main ()
2382{
2383#ifndef __GNUC__
2384 choke me
2385#endif
2386
2387 ;
2388 return 0;
2389}
2390_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002391rm -f conftest.$ac_objext
2392if { (ac_try="$ac_compile"
2393case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396esac
2397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_compile") 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409esac
2410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_try") 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002425 ac_compiler_gnu=yes
2426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427 echo "$as_me: failed program was:" >&5
2428sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002432
Reid Spencera773bd52006-08-04 18:18:08 +00002433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002435
2436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2438echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2439GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440ac_test_CFLAGS=${CFLAGS+set}
2441ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002442{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2444if test "${ac_cv_prog_cc_g+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002446else
Reid Spencera773bd52006-08-04 18:18:08 +00002447 ac_save_c_werror_flag=$ac_c_werror_flag
2448 ac_c_werror_flag=yes
2449 ac_cv_prog_cc_g=no
2450 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451 cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h. */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002457
John Criswell7a73b802003-06-30 21:59:07 +00002458int
2459main ()
2460{
2461
2462 ;
2463 return 0;
2464}
2465_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002466rm -f conftest.$ac_objext
2467if { (ac_try="$ac_compile"
2468case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471esac
2472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compile") 2>conftest.er1
2474 ac_status=$?
2475 grep -v '^ *+' conftest.er1 >conftest.err
2476 rm -f conftest.er1
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494esac
2495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_try") 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502 echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 CFLAGS=""
2506 cat >conftest.$ac_ext <<_ACEOF
2507/* confdefs.h. */
2508_ACEOF
2509cat confdefs.h >>conftest.$ac_ext
2510cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002511/* end confdefs.h. */
2512
2513int
2514main ()
2515{
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521rm -f conftest.$ac_objext
2522if { (ac_try="$ac_compile"
2523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_compile") 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539esac
2540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549esac
2550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_try") 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 :
Torok Edwin871384f2010-01-26 08:50:50 +00002556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 echo "$as_me: failed program was:" >&5
2558sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002561 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002562 cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002567/* end confdefs.h. */
2568
2569int
2570main ()
2571{
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002577rm -f conftest.$ac_objext
2578if { (ac_try="$ac_compile"
2579case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595esac
2596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (case "(($ac_try" in
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2605esac
2606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_try") 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002611 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612else
2613 echo "$as_me: failed program was:" >&5
2614sed 's/^/| /' conftest.$ac_ext >&5
2615
2616
John Criswell7a73b802003-06-30 21:59:07 +00002617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618
Reid Spencera773bd52006-08-04 18:18:08 +00002619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002621
Reid Spencera773bd52006-08-04 18:18:08 +00002622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624
Reid Spencera773bd52006-08-04 18:18:08 +00002625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_c_werror_flag=$ac_save_c_werror_flag
2627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002628{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2629echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630if test "$ac_test_CFLAGS" = set; then
2631 CFLAGS=$ac_save_CFLAGS
2632elif test $ac_cv_prog_cc_g = yes; then
2633 if test "$GCC" = yes; then
2634 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002635 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002637 fi
2638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 if test "$GCC" = yes; then
2640 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002641 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002643 fi
2644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002645{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2646echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2647if test "${ac_cv_prog_cc_c89+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649else
Reid Spencera773bd52006-08-04 18:18:08 +00002650 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002652cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h. */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657/* end confdefs.h. */
2658#include <stdarg.h>
2659#include <stdio.h>
2660#include <sys/types.h>
2661#include <sys/stat.h>
2662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2663struct buf { int x; };
2664FILE * (*rcsopen) (struct buf *, struct stat *, int);
2665static char *e (p, i)
2666 char **p;
2667 int i;
2668{
2669 return p[i];
2670}
2671static char *f (char * (*g) (char **, int), char **p, ...)
2672{
2673 char *s;
2674 va_list v;
2675 va_start (v,p);
2676 s = g (p, va_arg (v,int));
2677 va_end (v);
2678 return s;
2679}
2680
2681/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2682 function prototypes and stuff, but not '\xHH' hex character constants.
2683 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002684 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2686 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002687 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002688int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2689
Reid Spencera773bd52006-08-04 18:18:08 +00002690/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2691 inside strings and character constants. */
2692#define FOO(x) 'x'
2693int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2694
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002695int test (int i, double x);
2696struct s1 {int (*f) (int a);};
2697struct s2 {int (*f) (double a);};
2698int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2699int argc;
2700char **argv;
2701int
2702main ()
2703{
2704return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2705 ;
2706 return 0;
2707}
2708_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002709for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002711do
2712 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002713 rm -f conftest.$ac_objext
2714if { (ac_try="$ac_compile"
2715case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_try") 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002747 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748else
2749 echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754
Reid Spencera773bd52006-08-04 18:18:08 +00002755rm -f core conftest.err conftest.$ac_objext
2756 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757done
Reid Spencera773bd52006-08-04 18:18:08 +00002758rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002759CC=$ac_save_CC
2760
2761fi
Reid Spencera773bd52006-08-04 18:18:08 +00002762# AC_CACHE_VAL
2763case "x$ac_cv_prog_cc_c89" in
2764 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002765 { echo "$as_me:$LINENO: result: none needed" >&5
2766echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002767 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002768 { echo "$as_me:$LINENO: result: unsupported" >&5
2769echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002770 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002771 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2773echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002774esac
2775
John Criswell0c38eaf2003-09-10 15:17:25 +00002776
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002777ac_ext=c
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782
Eric Christopherffee5722011-09-16 20:36:25 +00002783ac_ext=cpp
2784ac_cpp='$CXXCPP $CPPFLAGS'
2785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2788if test -z "$CXX"; then
2789 if test -n "$CCC"; then
2790 CXX=$CCC
2791 else
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in clang++ llvm-g++ g++
2794 do
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799if test "${ac_cv_prog_CXX+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801else
2802 if test -n "$CXX"; then
2803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816done
2817done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822CXX=$ac_cv_prog_CXX
2823if test -n "$CXX"; then
2824 { echo "$as_me:$LINENO: result: $CXX" >&5
2825echo "${ECHO_T}$CXX" >&6; }
2826else
2827 { echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6; }
2829fi
2830
2831
2832 test -n "$CXX" && break
2833 done
2834fi
2835if test -z "$CXX"; then
2836 ac_ct_CXX=$CXX
2837 for ac_prog in clang++ llvm-g++ g++
2838do
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840set dummy $ac_prog; ac_word=$2
2841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846 if test -n "$ac_ct_CXX"; then
2847 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_CXX="$ac_prog"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860done
2861done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2867if test -n "$ac_ct_CXX"; then
2868 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2869echo "${ECHO_T}$ac_ct_CXX" >&6; }
2870else
2871 { echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6; }
2873fi
2874
2875
2876 test -n "$ac_ct_CXX" && break
2877done
2878
2879 if test "x$ac_ct_CXX" = x; then
2880 CXX="g++"
2881 else
2882 case $cross_compiling:$ac_tool_warned in
2883yes:)
2884{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2885whose name does not start with the host triplet. If you think this
2886configuration is useful to you, please write to autoconf@gnu.org." >&5
2887echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2888whose name does not start with the host triplet. If you think this
2889configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2890ac_tool_warned=yes ;;
2891esac
2892 CXX=$ac_ct_CXX
2893 fi
2894fi
2895
2896 fi
2897fi
2898# Provide some information about the compiler.
2899echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2900ac_compiler=`set X $ac_compile; echo $2`
2901{ (ac_try="$ac_compiler --version >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler --version >&5") 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911{ (ac_try="$ac_compiler -v >&5"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -v >&5") 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921{ (ac_try="$ac_compiler -V >&5"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compiler -V >&5") 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931
2932{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2933echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2934if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947#ifndef __GNUC__
2948 choke me
2949#endif
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext
2956if { (ac_try="$ac_compile"
2957case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960esac
2961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_try") 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 ac_compiler_gnu=yes
2990else
2991 echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 ac_compiler_gnu=no
2995fi
2996
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2999
3000fi
3001{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3002echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3003GXX=`test $ac_compiler_gnu = yes && echo yes`
3004ac_test_CXXFLAGS=${CXXFLAGS+set}
3005ac_save_CXXFLAGS=$CXXFLAGS
3006{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3007echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3008if test "${ac_cv_prog_cxx_g+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3012 ac_cxx_werror_flag=yes
3013 ac_cv_prog_cxx_g=no
3014 CXXFLAGS="-g"
3015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021
3022int
3023main ()
3024{
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext
3031if { (ac_try="$ac_compile"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_cxx_g=yes
3065else
3066 echo "$as_me: failed program was:" >&5
3067sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 CXXFLAGS=""
3070 cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h. */
3076
3077int
3078main ()
3079{
3080
3081 ;
3082 return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext
3086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 :
3120else
3121 echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3125 CXXFLAGS="-g"
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 ac_cv_prog_cxx_g=yes
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180
3181fi
3182
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
3185
3186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191fi
3192{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3193echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3194if test "$ac_test_CXXFLAGS" = set; then
3195 CXXFLAGS=$ac_save_CXXFLAGS
3196elif test $ac_cv_prog_cxx_g = yes; then
3197 if test "$GXX" = yes; then
3198 CXXFLAGS="-g -O2"
3199 else
3200 CXXFLAGS="-g"
3201 fi
3202else
3203 if test "$GXX" = yes; then
3204 CXXFLAGS="-O2"
3205 else
3206 CXXFLAGS=
3207 fi
3208fi
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003214
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215ac_ext=c
3216ac_cpp='$CPP $CPPFLAGS'
3217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003220{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3221echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222# On Suns, sometimes $CPP names a directory.
3223if test -n "$CPP" && test -d "$CPP"; then
3224 CPP=
3225fi
3226if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227 if test "${ac_cv_prog_CPP+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229else
3230 # Double quotes because CPP needs to be expanded
3231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3232 do
3233 ac_preproc_ok=false
3234for ac_c_preproc_warn_flag in '' yes
3235do
3236 # Use a header file that comes with gcc, so configuring glibc
3237 # with a fresh cross-compiler works.
3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3239 # <limits.h> exists even on freestanding compilers.
3240 # On the NeXT, cc -E runs the code through the compiler's parser,
3241 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003242 cat >conftest.$ac_ext <<_ACEOF
3243/* confdefs.h. */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003247/* end confdefs.h. */
3248#ifdef __STDC__
3249# include <limits.h>
3250#else
3251# include <assert.h>
3252#endif
3253 Syntax error
3254_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255if { (ac_try="$ac_cpp conftest.$ac_ext"
3256case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
3260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } >/dev/null; then
3268 if test -s conftest.err; then
3269 ac_cpp_err=$ac_c_preproc_warn_flag
3270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3271 else
3272 ac_cpp_err=
3273 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003274else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003275 ac_cpp_err=yes
3276fi
3277if test -z "$ac_cpp_err"; then
3278 :
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283 # Broken: fails on valid input.
3284continue
3285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003286
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287rm -f conftest.err conftest.$ac_ext
3288
Reid Spencera773bd52006-08-04 18:18:08 +00003289 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003291 cat >conftest.$ac_ext <<_ACEOF
3292/* confdefs.h. */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296/* end confdefs.h. */
3297#include <ac_nonexistent.h>
3298_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003299if { (ac_try="$ac_cpp conftest.$ac_ext"
3300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3315 else
3316 ac_cpp_err=
3317 fi
3318else
3319 ac_cpp_err=yes
3320fi
3321if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 # Broken: success on invalid input.
3323continue
3324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003325 echo "$as_me: failed program was:" >&5
3326sed 's/^/| /' conftest.$ac_ext >&5
3327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328 # Passes both tests.
3329ac_preproc_ok=:
3330break
3331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333rm -f conftest.err conftest.$ac_ext
3334
3335done
3336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3337rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003338if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339 break
3340fi
3341
3342 done
3343 ac_cv_prog_CPP=$CPP
3344
3345fi
3346 CPP=$ac_cv_prog_CPP
3347else
3348 ac_cv_prog_CPP=$CPP
3349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350{ echo "$as_me:$LINENO: result: $CPP" >&5
3351echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352ac_preproc_ok=false
3353for ac_c_preproc_warn_flag in '' yes
3354do
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003361 cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003366/* end confdefs.h. */
3367#ifdef __STDC__
3368# include <limits.h>
3369#else
3370# include <assert.h>
3371#endif
3372 Syntax error
3373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374if { (ac_try="$ac_cpp conftest.$ac_ext"
3375case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
3379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null; then
3387 if test -s conftest.err; then
3388 ac_cpp_err=$ac_c_preproc_warn_flag
3389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3390 else
3391 ac_cpp_err=
3392 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003394 ac_cpp_err=yes
3395fi
3396if test -z "$ac_cpp_err"; then
3397 :
3398else
3399 echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402 # Broken: fails on valid input.
3403continue
3404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406rm -f conftest.err conftest.$ac_ext
3407
Reid Spencera773bd52006-08-04 18:18:08 +00003408 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003409 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003410 cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003415/* end confdefs.h. */
3416#include <ac_nonexistent.h>
3417_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003418if { (ac_try="$ac_cpp conftest.$ac_ext"
3419case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422esac
3423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } >/dev/null; then
3431 if test -s conftest.err; then
3432 ac_cpp_err=$ac_c_preproc_warn_flag
3433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434 else
3435 ac_cpp_err=
3436 fi
3437else
3438 ac_cpp_err=yes
3439fi
3440if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441 # Broken: success on invalid input.
3442continue
3443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003444 echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447 # Passes both tests.
3448ac_preproc_ok=:
3449break
3450fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003452rm -f conftest.err conftest.$ac_ext
3453
3454done
3455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003457if $ac_preproc_ok; then
3458 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003460 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3461See \`config.log' for more details." >&5
3462echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3463See \`config.log' for more details." >&2;}
3464 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003465fi
3466
John Criswell7a73b802003-06-30 21:59:07 +00003467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472
John Criswell7a73b802003-06-30 21:59:07 +00003473
Dmitri Gribenkoa7303362013-01-09 15:25:30 +00003474if test "$CXX" = "clang++" ; then
3475 { echo "$as_me:$LINENO: checking whether clang works" >&5
3476echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3477 ac_ext=cpp
3478ac_cpp='$CXXCPP $CPPFLAGS'
3479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3482
3483
3484cat >conftest.$ac_ext <<_ACEOF
3485/* confdefs.h. */
3486_ACEOF
3487cat confdefs.h >>conftest.$ac_ext
3488cat >>conftest.$ac_ext <<_ACEOF
3489/* end confdefs.h. */
3490#include <limits>
3491#if __has_include (<cxxabi.h>)
3492#include <cxxabi.h>
3493#endif
3494#if __has_include (<unwind.h>)
3495#include <unwind.h>
3496#endif
3497
3498int
3499main ()
3500{
3501
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (ac_try="$ac_compile"
3508case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511esac
3512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3514 ac_status=$?
3515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3521 { (case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524esac
3525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_try") 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try='test -s conftest.$ac_objext'
3531 { (case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534esac
3535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_try") 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540
3541 { echo "$as_me:$LINENO: result: yes" >&5
3542echo "${ECHO_T}yes" >&6; }
3543
3544else
3545 echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548
3549 { echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6; }
3551 { { 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
3552echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3553 { (exit 1); exit 1; }; }
3554
3555fi
3556
3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_ext=c
3559ac_cpp='$CPP $CPPFLAGS'
3560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563
3564fi
3565
Eric Christopherffee5722011-09-16 20:36:25 +00003566
3567
3568if test -d ${srcdir}/projects/llvm-gcc ; then
3569 subdirs="$subdirs projects/llvm-gcc"
3570
3571fi
3572
3573if test -d ${srcdir}/projects/test-suite ; then
3574 subdirs="$subdirs projects/test-suite"
3575
3576fi
3577
3578if test -d ${srcdir}/projects/llvm-test ; then
3579 subdirs="$subdirs projects/llvm-test"
3580
3581fi
3582
3583if test -d ${srcdir}/projects/poolalloc ; then
3584 subdirs="$subdirs projects/poolalloc"
3585
3586fi
3587
3588if test -d ${srcdir}/projects/llvm-poolalloc ; then
3589 subdirs="$subdirs projects/llvm-poolalloc"
3590
3591fi
3592
3593for i in `ls ${srcdir}/projects`
3594do
3595 if test -d ${srcdir}/projects/${i} ; then
3596 case ${i} in
3597 sample) subdirs="$subdirs projects/sample"
3598 ;;
3599 privbracket) subdirs="$subdirs projects/privbracket"
3600 ;;
3601 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3602 ;;
3603 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3604;;
3605 llvm-java) subdirs="$subdirs projects/llvm-java"
3606 ;;
3607 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3608 ;;
3609 safecode) subdirs="$subdirs projects/safecode"
3610 ;;
3611 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3612 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003613 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003614 llvm-gcc) ;;
3615 test-suite) ;;
3616 llvm-test) ;;
3617 poolalloc) ;;
3618 llvm-poolalloc) ;;
3619 *)
3620 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3621echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3622 ;;
3623 esac
3624 fi
3625done
3626
3627# Check whether --enable-polly was given.
3628if test "${enable_polly+set}" = set; then
3629 enableval=$enable_polly;
3630else
3631 enableval=default
3632fi
3633
3634case "$enableval" in
3635 yes) ENABLE_POLLY=1
3636 ;;
3637 no) ENABLE_POLLY=0
3638 ;;
3639 default) ENABLE_POLLY=1
3640 ;;
3641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3642echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3643 { (exit 1); exit 1; }; } ;;
3644esac
3645
3646
3647if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3648 LLVM_HAS_POLLY=1
3649
3650 subdirs="$subdirs tools/polly"
3651
3652fi
3653
3654
3655# Make sure we can run config.sub.
3656$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3657 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3658echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3659 { (exit 1); exit 1; }; }
3660
3661{ echo "$as_me:$LINENO: checking build system type" >&5
3662echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3663if test "${ac_cv_build+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 ac_build_alias=$build_alias
3667test "x$ac_build_alias" = x &&
3668 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3669test "x$ac_build_alias" = x &&
3670 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3671echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3672 { (exit 1); exit 1; }; }
3673ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3674 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3675echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3676 { (exit 1); exit 1; }; }
3677
3678fi
3679{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3680echo "${ECHO_T}$ac_cv_build" >&6; }
3681case $ac_cv_build in
3682*-*-*) ;;
3683*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3684echo "$as_me: error: invalid value of canonical build" >&2;}
3685 { (exit 1); exit 1; }; };;
3686esac
3687build=$ac_cv_build
3688ac_save_IFS=$IFS; IFS='-'
3689set x $ac_cv_build
3690shift
3691build_cpu=$1
3692build_vendor=$2
3693shift; shift
3694# Remember, the first character of IFS is used to create $*,
3695# except with old shells:
3696build_os=$*
3697IFS=$ac_save_IFS
3698case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3699
3700
3701{ echo "$as_me:$LINENO: checking host system type" >&5
3702echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3703if test "${ac_cv_host+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705else
3706 if test "x$host_alias" = x; then
3707 ac_cv_host=$ac_cv_build
3708else
3709 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3710 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3711echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3712 { (exit 1); exit 1; }; }
3713fi
3714
3715fi
3716{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3717echo "${ECHO_T}$ac_cv_host" >&6; }
3718case $ac_cv_host in
3719*-*-*) ;;
3720*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3721echo "$as_me: error: invalid value of canonical host" >&2;}
3722 { (exit 1); exit 1; }; };;
3723esac
3724host=$ac_cv_host
3725ac_save_IFS=$IFS; IFS='-'
3726set x $ac_cv_host
3727shift
3728host_cpu=$1
3729host_vendor=$2
3730shift; shift
3731# Remember, the first character of IFS is used to create $*,
3732# except with old shells:
3733host_os=$*
3734IFS=$ac_save_IFS
3735case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3736
3737
3738{ echo "$as_me:$LINENO: checking target system type" >&5
3739echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3740if test "${ac_cv_target+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 if test "x$target_alias" = x; then
3744 ac_cv_target=$ac_cv_host
3745else
3746 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3747 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3748echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3749 { (exit 1); exit 1; }; }
3750fi
3751
3752fi
3753{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3754echo "${ECHO_T}$ac_cv_target" >&6; }
3755case $ac_cv_target in
3756*-*-*) ;;
3757*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3758echo "$as_me: error: invalid value of canonical target" >&2;}
3759 { (exit 1); exit 1; }; };;
3760esac
3761target=$ac_cv_target
3762ac_save_IFS=$IFS; IFS='-'
3763set x $ac_cv_target
3764shift
3765target_cpu=$1
3766target_vendor=$2
3767shift; shift
3768# Remember, the first character of IFS is used to create $*,
3769# except with old shells:
3770target_os=$*
3771IFS=$ac_save_IFS
3772case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3773
3774
3775# The aliases save the names the user supplied, while $host etc.
3776# will get canonicalized.
3777test -n "$target_alias" &&
3778 test "$program_prefix$program_suffix$program_transform_name" = \
3779 NONENONEs,x,x, &&
3780 program_prefix=${target_alias}-
3781
3782{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3783echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3784if test "${llvm_cv_os_type+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
3787 case $host in
3788 *-*-aix*)
3789 llvm_cv_link_all_option="-Wl,--whole-archive"
3790 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3791 llvm_cv_os_type="AIX"
3792 llvm_cv_platform_type="Unix" ;;
3793 *-*-irix*)
3794 llvm_cv_link_all_option="-Wl,--whole-archive"
3795 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3796 llvm_cv_os_type="IRIX"
3797 llvm_cv_platform_type="Unix" ;;
3798 *-*-cygwin*)
3799 llvm_cv_link_all_option="-Wl,--whole-archive"
3800 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3801 llvm_cv_os_type="Cygwin"
3802 llvm_cv_platform_type="Unix" ;;
3803 *-*-darwin*)
3804 llvm_cv_link_all_option="-Wl,-all_load"
3805 llvm_cv_no_link_all_option="-Wl,-noall_load"
3806 llvm_cv_os_type="Darwin"
3807 llvm_cv_platform_type="Unix" ;;
3808 *-*-minix*)
3809 llvm_cv_link_all_option="-Wl,-all_load"
3810 llvm_cv_no_link_all_option="-Wl,-noall_load"
3811 llvm_cv_os_type="Minix"
3812 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003813 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003814 llvm_cv_link_all_option="-Wl,--whole-archive"
3815 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3816 llvm_cv_os_type="FreeBSD"
3817 llvm_cv_platform_type="Unix" ;;
3818 *-*-openbsd*)
3819 llvm_cv_link_all_option="-Wl,--whole-archive"
3820 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3821 llvm_cv_os_type="OpenBSD"
3822 llvm_cv_platform_type="Unix" ;;
3823 *-*-netbsd*)
3824 llvm_cv_link_all_option="-Wl,--whole-archive"
3825 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3826 llvm_cv_os_type="NetBSD"
3827 llvm_cv_platform_type="Unix" ;;
3828 *-*-dragonfly*)
3829 llvm_cv_link_all_option="-Wl,--whole-archive"
3830 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3831 llvm_cv_os_type="DragonFly"
3832 llvm_cv_platform_type="Unix" ;;
3833 *-*-hpux*)
3834 llvm_cv_link_all_option="-Wl,--whole-archive"
3835 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3836 llvm_cv_os_type="HP-UX"
3837 llvm_cv_platform_type="Unix" ;;
3838 *-*-interix*)
3839 llvm_cv_link_all_option="-Wl,--whole-archive"
3840 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3841 llvm_cv_os_type="Interix"
3842 llvm_cv_platform_type="Unix" ;;
3843 *-*-linux*)
3844 llvm_cv_link_all_option="-Wl,--whole-archive"
3845 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3846 llvm_cv_os_type="Linux"
3847 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003848 *-*-gnu*)
3849 llvm_cv_link_all_option="-Wl,--whole-archive"
3850 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3851 llvm_cv_os_type="GNU"
3852 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003853 *-*-solaris*)
3854 llvm_cv_link_all_option="-Wl,-z,allextract"
3855 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3856 llvm_cv_os_type="SunOS"
3857 llvm_cv_platform_type="Unix" ;;
3858 *-*-auroraux*)
3859 llvm_cv_link_all_option="-Wl,-z,allextract"
3860 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3861 llvm_cv_os_type="AuroraUX"
3862 llvm_cv_platform_type="Unix" ;;
3863 *-*-win32*)
3864 llvm_cv_link_all_option="-Wl,--whole-archive"
3865 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3866 llvm_cv_os_type="Win32"
3867 llvm_cv_platform_type="Win32" ;;
3868 *-*-mingw*)
3869 llvm_cv_link_all_option="-Wl,--whole-archive"
3870 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3871 llvm_cv_os_type="MingW"
3872 llvm_cv_platform_type="Win32" ;;
3873 *-*-haiku*)
3874 llvm_cv_link_all_option="-Wl,--whole-archive"
3875 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3876 llvm_cv_os_type="Haiku"
3877 llvm_cv_platform_type="Unix" ;;
3878 *-unknown-eabi*)
3879 llvm_cv_link_all_option="-Wl,--whole-archive"
3880 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3881 llvm_cv_os_type="Freestanding"
3882 llvm_cv_platform_type="Unix" ;;
3883 *-unknown-elf*)
3884 llvm_cv_link_all_option="-Wl,--whole-archive"
3885 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3886 llvm_cv_os_type="Freestanding"
3887 llvm_cv_platform_type="Unix" ;;
3888 *)
3889 llvm_cv_link_all_option=""
3890 llvm_cv_no_link_all_option=""
3891 llvm_cv_os_type="Unknown"
3892 llvm_cv_platform_type="Unknown" ;;
3893esac
3894fi
3895{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3896echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3897
3898{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3899echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3900if test "${llvm_cv_target_os_type+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903 case $target in
3904 *-*-aix*)
3905 llvm_cv_target_os_type="AIX" ;;
3906 *-*-irix*)
3907 llvm_cv_target_os_type="IRIX" ;;
3908 *-*-cygwin*)
3909 llvm_cv_target_os_type="Cygwin" ;;
3910 *-*-darwin*)
3911 llvm_cv_target_os_type="Darwin" ;;
3912 *-*-minix*)
3913 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003914 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003915 llvm_cv_target_os_type="FreeBSD" ;;
3916 *-*-openbsd*)
3917 llvm_cv_target_os_type="OpenBSD" ;;
3918 *-*-netbsd*)
3919 llvm_cv_target_os_type="NetBSD" ;;
3920 *-*-dragonfly*)
3921 llvm_cv_target_os_type="DragonFly" ;;
3922 *-*-hpux*)
3923 llvm_cv_target_os_type="HP-UX" ;;
3924 *-*-interix*)
3925 llvm_cv_target_os_type="Interix" ;;
3926 *-*-linux*)
3927 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003928 *-*-gnu*)
3929 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003930 *-*-solaris*)
3931 llvm_cv_target_os_type="SunOS" ;;
3932 *-*-auroraux*)
3933 llvm_cv_target_os_type="AuroraUX" ;;
3934 *-*-win32*)
3935 llvm_cv_target_os_type="Win32" ;;
3936 *-*-mingw*)
3937 llvm_cv_target_os_type="MingW" ;;
3938 *-*-haiku*)
3939 llvm_cv_target_os_type="Haiku" ;;
3940 *-*-rtems*)
3941 llvm_cv_target_os_type="RTEMS" ;;
3942 *-*-nacl*)
3943 llvm_cv_target_os_type="NativeClient" ;;
3944 *-unknown-eabi*)
3945 llvm_cv_target_os_type="Freestanding" ;;
3946 *)
3947 llvm_cv_target_os_type="Unknown" ;;
3948esac
3949fi
3950{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3951echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3952
3953if test "$llvm_cv_os_type" = "Unknown" ; then
3954 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3955echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3956 { (exit 1); exit 1; }; }
3957fi
3958
3959OS=$llvm_cv_os_type
3960
3961HOST_OS=$llvm_cv_os_type
3962
3963TARGET_OS=$llvm_cv_target_os_type
3964
3965
3966LINKALL=$llvm_cv_link_all_option
3967
3968NOLINKALL=$llvm_cv_no_link_all_option
3969
3970
3971case $llvm_cv_platform_type in
3972 Unix)
3973
3974cat >>confdefs.h <<\_ACEOF
3975#define LLVM_ON_UNIX 1
3976_ACEOF
3977
3978 LLVM_ON_UNIX=1
3979
3980 LLVM_ON_WIN32=0
3981
3982 ;;
3983 Win32)
3984
3985cat >>confdefs.h <<\_ACEOF
3986#define LLVM_ON_WIN32 1
3987_ACEOF
3988
3989 LLVM_ON_UNIX=0
3990
3991 LLVM_ON_WIN32=1
3992
3993 ;;
3994esac
3995
3996{ echo "$as_me:$LINENO: checking target architecture" >&5
3997echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3998if test "${llvm_cv_target_arch+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001 case $target in
4002 i?86-*) llvm_cv_target_arch="x86" ;;
4003 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4004 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4005 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004006 arm*-*) llvm_cv_target_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00004007 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4008 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004009 xcore-*) llvm_cv_target_arch="XCore" ;;
4010 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00004011 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004012 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00004013 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00004014 *) llvm_cv_target_arch="Unknown" ;;
4015esac
4016fi
4017{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4018echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4019
4020if test "$llvm_cv_target_arch" = "Unknown" ; then
4021 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4022echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4023fi
4024
Eric Christopherffee5722011-09-16 20:36:25 +00004025case "$llvm_cv_target_arch" in
4026 x86) LLVM_NATIVE_ARCH="X86" ;;
4027 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4028 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4029esac
4030
4031ARCH=$llvm_cv_target_arch
4032
4033
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004034case $host in
4035 i?86-*) host_arch="x86" ;;
4036 amd64-* | x86_64-*) host_arch="x86_64" ;;
4037 sparc*-*) host_arch="Sparc" ;;
4038 powerpc*-*) host_arch="PowerPC" ;;
4039 arm*-*) host_arch="ARM" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00004040 mips-* | mips64-*) host_arch="Mips" ;;
4041 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004042 xcore-*) host_arch="XCore" ;;
4043 msp430-*) host_arch="MSP430" ;;
4044 hexagon-*) host_arch="Hexagon" ;;
4045 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00004046 *) host_arch="Unknown" ;;
4047esac
4048
4049if test "$host_arch" = "Unknown" ; then
4050 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4051echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4052fi
4053
4054HOST_ARCH=$host_arch
4055
4056
Eric Christopherffee5722011-09-16 20:36:25 +00004057
4058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4060echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4061if test "${ac_cv_path_GREP+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064 # Extract the first word of "grep ggrep" to use in msg output
4065if test -z "$GREP"; then
4066set dummy grep ggrep; ac_prog_name=$2
4067if test "${ac_cv_path_GREP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
Reid Spencera773bd52006-08-04 18:18:08 +00004070 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004071# Loop through the user's path and test for each of PROGNAME-LIST
4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077 for ac_prog in grep ggrep; do
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4080 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4081 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004082 # Check for GNU $ac_path_GREP
4083case `"$ac_path_GREP" --version 2>&1` in
4084*GNU*)
4085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4086*)
4087 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004088 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004089 while :
4090 do
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_GREP="$ac_path_GREP"
4101 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004102 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4105 done
4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107esac
4108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004109
4110 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004111 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004112done
4113
4114done
Reid Spencera773bd52006-08-04 18:18:08 +00004115IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116
4117
4118fi
4119
4120GREP="$ac_cv_path_GREP"
4121if test -z "$GREP"; then
4122 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4123echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4124 { (exit 1); exit 1; }; }
4125fi
4126
Reid Spencera773bd52006-08-04 18:18:08 +00004127else
4128 ac_cv_path_GREP=$GREP
4129fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004131
Reid Spencera773bd52006-08-04 18:18:08 +00004132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4134echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004135 GREP="$ac_cv_path_GREP"
4136
4137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138{ echo "$as_me:$LINENO: checking for egrep" >&5
4139echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4140if test "${ac_cv_path_EGREP+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004142else
4143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144 then ac_cv_path_EGREP="$GREP -E"
4145 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146 # Extract the first word of "egrep" to use in msg output
4147if test -z "$EGREP"; then
4148set dummy egrep; ac_prog_name=$2
4149if test "${ac_cv_path_EGREP+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
Reid Spencera773bd52006-08-04 18:18:08 +00004152 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153# Loop through the user's path and test for each of PROGNAME-LIST
4154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004155for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 for ac_prog in egrep; do
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4162 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4163 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004164 # Check for GNU $ac_path_EGREP
4165case `"$ac_path_EGREP" --version 2>&1` in
4166*GNU*)
4167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4168*)
4169 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004170 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004171 while :
4172 do
4173 cat "conftest.in" "conftest.in" >"conftest.tmp"
4174 mv "conftest.tmp" "conftest.in"
4175 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004176 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004177 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004179 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4181 # Best one so far, save it but keep looking for a better one
4182 ac_cv_path_EGREP="$ac_path_EGREP"
4183 ac_path_EGREP_max=$ac_count
4184 fi
4185 # 10*(2^10) chars as input seems more than enough
4186 test $ac_count -gt 10 && break
4187 done
4188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189esac
4190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004191
4192 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004193 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194done
4195
4196done
Reid Spencera773bd52006-08-04 18:18:08 +00004197IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198
4199
4200fi
4201
4202EGREP="$ac_cv_path_EGREP"
4203if test -z "$EGREP"; then
4204 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4205echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4206 { (exit 1); exit 1; }; }
4207fi
4208
Reid Spencera773bd52006-08-04 18:18:08 +00004209else
4210 ac_cv_path_EGREP=$EGREP
4211fi
4212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004213
Reid Spencera773bd52006-08-04 18:18:08 +00004214 fi
4215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004216{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4217echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004218 EGREP="$ac_cv_path_EGREP"
4219
4220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004221{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4222echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4223if test "${ac_cv_header_stdc+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004226 cat >conftest.$ac_ext <<_ACEOF
4227/* confdefs.h. */
4228_ACEOF
4229cat confdefs.h >>conftest.$ac_ext
4230cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004232#include <stdlib.h>
4233#include <stdarg.h>
4234#include <string.h>
4235#include <float.h>
4236
John Criswell0c38eaf2003-09-10 15:17:25 +00004237int
4238main ()
4239{
4240
4241 ;
4242 return 0;
4243}
John Criswell7a73b802003-06-30 21:59:07 +00004244_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004245rm -f conftest.$ac_objext
4246if { (ac_try="$ac_compile"
4247case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004279 ac_cv_header_stdc=yes
4280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004281 echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004286
Reid Spencera773bd52006-08-04 18:18:08 +00004287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004288
4289if test $ac_cv_header_stdc = yes; then
4290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291 cat >conftest.$ac_ext <<_ACEOF
4292/* confdefs.h. */
4293_ACEOF
4294cat confdefs.h >>conftest.$ac_ext
4295cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004297#include <string.h>
4298
4299_ACEOF
4300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301 $EGREP "memchr" >/dev/null 2>&1; then
4302 :
John Criswell7a73b802003-06-30 21:59:07 +00004303else
4304 ac_cv_header_stdc=no
4305fi
4306rm -f conftest*
4307
4308fi
4309
4310if test $ac_cv_header_stdc = yes; then
4311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004312 cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004318#include <stdlib.h>
4319
4320_ACEOF
4321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004322 $EGREP "free" >/dev/null 2>&1; then
4323 :
John Criswell7a73b802003-06-30 21:59:07 +00004324else
4325 ac_cv_header_stdc=no
4326fi
4327rm -f conftest*
4328
4329fi
4330
4331if test $ac_cv_header_stdc = yes; then
4332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004333 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004334 :
4335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004341/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004342#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004343#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004344#if ((' ' & 0x0FF) == 0x020)
4345# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4346# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4347#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004348# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004349 (('a' <= (c) && (c) <= 'i') \
4350 || ('j' <= (c) && (c) <= 'r') \
4351 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004352# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4353#endif
4354
4355#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4356int
4357main ()
4358{
4359 int i;
4360 for (i = 0; i < 256; i++)
4361 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004362 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004363 return 2;
4364 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004365}
4366_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004367rm -f conftest$ac_exeext
4368if { (ac_try="$ac_link"
4369case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_link") 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 :
John Criswell7a73b802003-06-30 21:59:07 +00004388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389 echo "$as_me: program exited with status $ac_status" >&5
4390echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393( exit $ac_status )
4394ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004396rm -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 +00004397fi
4398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399
John Criswell7a73b802003-06-30 21:59:07 +00004400fi
4401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4403echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004404if test $ac_cv_header_stdc = yes; then
4405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406cat >>confdefs.h <<\_ACEOF
4407#define STDC_HEADERS 1
4408_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004409
4410fi
4411
Reid Spencera773bd52006-08-04 18:18:08 +00004412# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413
4414
4415
4416
4417
4418
4419
4420
4421
Reid Spencera773bd52006-08-04 18:18:08 +00004422for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4423 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424do
4425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4426{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431 cat >conftest.$ac_ext <<_ACEOF
4432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
4437$ac_includes_default
4438
4439#include <$ac_header>
4440_ACEOF
4441rm -f conftest.$ac_objext
4442if { (ac_try="$ac_compile"
4443case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_compile") 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4475 eval "$as_ac_Header=yes"
4476else
4477 echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 eval "$as_ac_Header=no"
4481fi
4482
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484fi
4485ac_res=`eval echo '${'$as_ac_Header'}'`
4486 { echo "$as_me:$LINENO: result: $ac_res" >&5
4487echo "${ECHO_T}$ac_res" >&6; }
4488if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004489 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004491_ACEOF
4492
4493fi
4494
4495done
4496
4497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004498{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4499echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4500if test "${ac_cv_c_bigendian+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004503 # See if sys/param.h defines the BYTE_ORDER macro.
4504cat >conftest.$ac_ext <<_ACEOF
4505/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004506_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004509/* end confdefs.h. */
4510#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004511#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004512
4513int
4514main ()
4515{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4517 bogus endian macros
4518#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004519
4520 ;
4521 return 0;
4522}
4523_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524rm -f conftest.$ac_objext
4525if { (ac_try="$ac_compile"
4526case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_compile") 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4539 { (case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542esac
4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_try") 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004558 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004564/* end confdefs.h. */
4565#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004567
4568int
4569main ()
4570{
4571#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 not big endian
4573#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004574
4575 ;
4576 return 0;
4577}
4578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579rm -f conftest.$ac_objext
4580if { (ac_try="$ac_compile"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_compile") 2>conftest.er1
4587 ac_status=$?
4588 grep -v '^ *+' conftest.er1 >conftest.err
4589 rm -f conftest.er1
4590 cat conftest.err >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_try") 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004613 ac_cv_c_bigendian=yes
4614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 ac_cv_c_bigendian=no
4619fi
4620
4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622else
4623 echo "$as_me: failed program was:" >&5
4624sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 # It does not; compile a test program.
4627if test "$cross_compiling" = yes; then
4628 # try to guess the endianness by grepping values into an object file
4629 ac_cv_c_bigendian=unknown
4630 cat >conftest.$ac_ext <<_ACEOF
4631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
4636short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4637short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4638void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4639short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4640short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4641void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004642int
4643main ()
4644{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004645 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004646 ;
4647 return 0;
4648}
4649_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650rm -f conftest.$ac_objext
4651if { (ac_try="$ac_compile"
4652case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655esac
4656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4657 (eval "$ac_compile") 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } &&
4664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4665 { (case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
4669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_try") 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; } &&
4674 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4684 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004685 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004686fi
4687if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4688 if test "$ac_cv_c_bigendian" = unknown; then
4689 ac_cv_c_bigendian=no
4690 else
4691 # finding both strings is unlikely to happen, but who knows?
4692 ac_cv_c_bigendian=unknown
4693 fi
4694fi
Reid Spencera773bd52006-08-04 18:18:08 +00004695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004696 echo "$as_me: failed program was:" >&5
4697sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699
Torok Edwin871384f2010-01-26 08:50:50 +00004700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701
Reid Spencera773bd52006-08-04 18:18:08 +00004702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004704 cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004709/* end confdefs.h. */
4710$ac_includes_default
4711int
4712main ()
4713{
4714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 /* Are we little or big endian? From Harbison&Steele. */
4716 union
4717 {
4718 long int l;
4719 char c[sizeof (long int)];
4720 } u;
4721 u.l = 1;
4722 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004723
4724 ;
4725 return 0;
4726}
4727_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004728rm -f conftest$ac_exeext
4729if { (ac_try="$ac_link"
4730case "(($ac_try" in
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4733esac
4734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_link") 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4739 { (case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742esac
4743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_try") 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004748 ac_cv_c_bigendian=no
4749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750 echo "$as_me: program exited with status $ac_status" >&5
4751echo "$as_me: failed program was:" >&5
4752sed 's/^/| /' conftest.$ac_ext >&5
4753
4754( exit $ac_status )
4755ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757rm -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 +00004758fi
4759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004760
Reid Spencera773bd52006-08-04 18:18:08 +00004761fi
4762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764fi
4765{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4766echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4767case $ac_cv_c_bigendian in
4768 yes)
4769 ENDIAN=big
4770 ;;
4771 no)
4772 ENDIAN=little
4773 ;;
4774 *)
4775 { { echo "$as_me:$LINENO: error: unknown endianness
4776presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4777echo "$as_me: error: unknown endianness
4778presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4779 { (exit 1); exit 1; }; } ;;
4780esac
Reid Spencera773bd52006-08-04 18:18:08 +00004781
4782
4783if test "$cross_compiling" = yes; then
4784 LLVM_CROSS_COMPILING=1
4785
4786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4788echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4789if test "${ac_cv_build_exeext+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004791else
4792 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4793 ac_cv_build_exeext=.exe
4794else
4795 ac_build_prefix=${build_alias}-
4796
4797 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4798set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004803else
4804 if test -n "$BUILD_CC"; then
4805 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 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 +00004814 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004816 break 2
4817 fi
4818done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004819done
Reid Spencera773bd52006-08-04 18:18:08 +00004820IFS=$as_save_IFS
4821
4822fi
4823fi
4824BUILD_CC=$ac_cv_prog_BUILD_CC
4825if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004826 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4827echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 { echo "$as_me:$LINENO: result: no" >&5
4830echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004831fi
4832
4833
4834 if test -z "$BUILD_CC"; then
4835 # Extract the first word of "gcc", so it can be a program name with args.
4836set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4839if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004841else
4842 if test -n "$BUILD_CC"; then
4843 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 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 +00004852 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004854 break 2
4855 fi
4856done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857done
Reid Spencera773bd52006-08-04 18:18:08 +00004858IFS=$as_save_IFS
4859
4860fi
4861fi
4862BUILD_CC=$ac_cv_prog_BUILD_CC
4863if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004864 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4865echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004867 { echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004869fi
4870
4871
4872 if test -z "$BUILD_CC"; then
4873 # Extract the first word of "cc", so it can be a program name with args.
4874set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4877if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004879else
4880 if test -n "$BUILD_CC"; then
4881 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4882else
4883 ac_prog_rejected=no
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 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 +00004891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4892 ac_prog_rejected=yes
4893 continue
4894 fi
4895 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004897 break 2
4898 fi
4899done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004900done
Reid Spencera773bd52006-08-04 18:18:08 +00004901IFS=$as_save_IFS
4902
4903if test $ac_prog_rejected = yes; then
4904 # We found a bogon in the path, so make sure we never use it.
4905 set dummy $ac_cv_prog_BUILD_CC
4906 shift
4907 if test $# != 0; then
4908 # We chose a different compiler from the bogus one.
4909 # However, it has the same basename, so the bogon will be chosen
4910 # first if we set BUILD_CC to just the basename; use the full file name.
4911 shift
4912 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4913 fi
4914fi
4915fi
4916fi
4917BUILD_CC=$ac_cv_prog_BUILD_CC
4918if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004919 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4920echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922 { echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004924fi
4925
4926
4927 fi
4928 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004929 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4930echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4931 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004932 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4933 rm -f conftest*
4934 echo 'int main () { return 0; }' > conftest.$ac_ext
4935 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004936 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004937 (eval $ac_build_link) 2>&5
4938 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004941 for file in conftest.*; do
4942 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004943 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004944 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4945 esac
4946 done
4947 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4949echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4950 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004951 fi
4952 rm -f conftest*
4953 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4954fi
4955fi
4956
4957BUILD_EXEEXT=""
4958test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004959{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4960echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004961ac_build_exeext=$BUILD_EXEEXT
4962
Jim Grosbach673612e2008-10-02 22:56:44 +00004963 ac_build_prefix=${build_alias}-
4964 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4965set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004970else
4971 if test -n "$BUILD_CXX"; then
4972 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 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 +00004981 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004983 break 2
4984 fi
4985done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004986done
Jim Grosbach673612e2008-10-02 22:56:44 +00004987IFS=$as_save_IFS
4988
4989fi
4990fi
4991BUILD_CXX=$ac_cv_prog_BUILD_CXX
4992if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004993 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4994echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004996 { echo "$as_me:$LINENO: result: no" >&5
4997echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004998fi
4999
5000
5001 if test -z "$BUILD_CXX"; then
5002 # Extract the first word of "g++", so it can be a program name with args.
5003set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00005008else
5009 if test -n "$BUILD_CXX"; then
5010 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 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 +00005019 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00005021 break 2
5022 fi
5023done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005024done
Jim Grosbach673612e2008-10-02 22:56:44 +00005025IFS=$as_save_IFS
5026
5027fi
5028fi
5029BUILD_CXX=$ac_cv_prog_BUILD_CXX
5030if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005031 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5032echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005033else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005034 { echo "$as_me:$LINENO: result: no" >&5
5035echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005036fi
5037
5038
5039 if test -z "$BUILD_CXX"; then
5040 # Extract the first word of "c++", so it can be a program name with args.
5041set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5044if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00005046else
5047 if test -n "$BUILD_CXX"; then
5048 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5049else
5050 ac_prog_rejected=no
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 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 +00005058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5059 ac_prog_rejected=yes
5060 continue
5061 fi
5062 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00005064 break 2
5065 fi
5066done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005067done
Jim Grosbach673612e2008-10-02 22:56:44 +00005068IFS=$as_save_IFS
5069
5070if test $ac_prog_rejected = yes; then
5071 # We found a bogon in the path, so make sure we never use it.
5072 set dummy $ac_cv_prog_BUILD_CXX
5073 shift
5074 if test $# != 0; then
5075 # We chose a different compiler from the bogus one.
5076 # However, it has the same basename, so the bogon will be chosen
5077 # first if we set BUILD_CXX to just the basename; use the full file name.
5078 shift
5079 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5080 fi
5081fi
5082fi
5083fi
5084BUILD_CXX=$ac_cv_prog_BUILD_CXX
5085if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005086 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5087echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005089 { echo "$as_me:$LINENO: result: no" >&5
5090echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00005091fi
5092
5093
5094 fi
5095 fi
Reid Spencera773bd52006-08-04 18:18:08 +00005096else
5097 LLVM_CROSS_COMPILING=0
5098
5099fi
5100
Dan Gohman56fb5f92010-08-04 16:25:01 +00005101if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005102 cvsbuild="yes"
5103 optimize="no"
5104 CVSBUILD=CVSBUILD=1
5105
5106else
5107 cvsbuild="no"
5108 optimize="yes"
5109fi
5110
5111
Eric Christopherbee515f2011-11-11 22:51:42 +00005112# Check whether --enable-libcpp was given.
5113if test "${enable_libcpp+set}" = set; then
5114 enableval=$enable_libcpp;
5115else
5116 enableval=default
5117fi
5118
5119case "$enableval" in
5120 yes) ENABLE_LIBCPP=1
5121 ;;
5122 no) ENABLE_LIBCPP=0
5123 ;;
5124 default) ENABLE_LIBCPP=0
5125;;
5126 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5127echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5128 { (exit 1); exit 1; }; } ;;
5129esac
5130
Eric Christopher82120022012-08-03 19:47:14 +00005131# Check whether --enable-cxx11 was given.
5132if test "${enable_cxx11+set}" = set; then
5133 enableval=$enable_cxx11;
5134else
5135 enableval=default
5136fi
5137
5138case "$enableval" in
5139 yes) ENABLE_CXX11=1
5140 ;;
5141 no) ENABLE_CXX11=0
5142 ;;
5143 default) ENABLE_CXX11=0
5144;;
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5146echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5148esac
5149
Roman Divackyd14baf42012-12-13 16:07:19 +00005150clang_arcmt="yes"
5151# Check whether --enable-clang-arcmt was given.
5152if test "${enable_clang_arcmt+set}" = set; then
5153 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5154else
5155 enableval="yes"
5156fi
5157
5158case "$enableval" in
5159 yes) ENABLE_CLANG_ARCMT=1
5160 ;;
5161 no) ENABLE_CLANG_ARCMT=0
5162 ;;
5163 default) ENABLE_CLANG_ARCMT=1
5164;;
5165 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5166echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5167 { (exit 1); exit 1; }; } ;;
5168esac
5169
5170clang_static_analyzer="yes"
5171# Check whether --enable-clang-static-analyzer was given.
5172if test "${enable_clang_static_analyzer+set}" = set; then
5173 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5174else
5175 enableval="yes"
5176fi
5177
5178case "$enableval" in
5179 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5180 ;;
5181 no) ENABLE_CLANG_STATIC_ANALYZER=0
5182 ;;
5183 default) ENABLE_CLANG_STATIC_ANALYZER=1
5184;;
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5186echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5188esac
5189
5190# Check whether --enable-clang-rewriter was given.
5191if test "${enable_clang_rewriter+set}" = set; then
5192 enableval=$enable_clang_rewriter;
5193else
5194 enableval="yes"
5195fi
5196
5197case "$enableval" in
5198 yes) ENABLE_CLANG_REWRITER=1
5199 ;;
5200 no)
Benjamin Kramer23c50212012-12-26 10:48:49 +00005201 if test ${clang_arcmt} != "no" ; then
Roman Divackyd14baf42012-12-13 16:07:19 +00005202 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5203echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5204 { (exit 1); exit 1; }; }
5205 fi
Benjamin Kramer23c50212012-12-26 10:48:49 +00005206 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyd14baf42012-12-13 16:07:19 +00005207 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5208echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5209 { (exit 1); exit 1; }; }
5210 fi
5211 ENABLE_CLANG_REWRITER=0
5212
5213 ;;
5214 default) ENABLE_CLANG_REWRITER=1
5215;;
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5217echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5219esac
5220
Reid Spencera773bd52006-08-04 18:18:08 +00005221# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005222if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005223 enableval=$enable_optimized;
5224else
5225 enableval=$optimize
5226fi
5227
5228if test ${enableval} = "no" ; then
5229 ENABLE_OPTIMIZED=
5230
5231else
5232 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5233
5234fi
5235
David Greene2a5a12c2009-04-17 14:50:39 +00005236# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005237if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005238 enableval=$enable_profiling;
5239else
5240 enableval="no"
5241fi
5242
5243if test ${enableval} = "no" ; then
5244 ENABLE_PROFILING=
5245
5246else
5247 ENABLE_PROFILING=ENABLE_PROFILING=1
5248
5249fi
5250
Reid Spencera773bd52006-08-04 18:18:08 +00005251# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005252if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005253 enableval=$enable_assertions;
5254else
5255 enableval="yes"
5256fi
5257
5258if test ${enableval} = "yes" ; then
5259 DISABLE_ASSERTIONS=
5260
5261else
5262 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5263
5264fi
5265
Eric Christopher09a88732012-08-03 19:58:20 +00005266# Check whether --enable-werror was given.
5267if test "${enable_werror+set}" = set; then
5268 enableval=$enable_werror;
5269else
5270 enableval="no"
5271fi
5272
5273case "$enableval" in
5274 yes) ENABLE_WERROR=1
5275 ;;
5276 no) ENABLE_WERROR=0
5277 ;;
5278 default) ENABLE_WERROR=0
5279;;
5280 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5281echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5282 { (exit 1); exit 1; }; } ;;
5283esac
5284
David Greenea696d242007-06-28 19:36:08 +00005285# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005286if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005287 enableval=$enable_expensive_checks;
5288else
5289 enableval="no"
5290fi
5291
5292if test ${enableval} = "yes" ; then
5293 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5294
5295 EXPENSIVE_CHECKS=yes
5296
5297else
5298 ENABLE_EXPENSIVE_CHECKS=
5299
5300 EXPENSIVE_CHECKS=no
5301
5302fi
5303
Reid Spencer8b2e1412006-11-17 03:32:33 +00005304# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005305if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005306 enableval=$enable_debug_runtime;
5307else
5308 enableval=no
5309fi
5310
5311if test ${enableval} = "no" ; then
5312 DEBUG_RUNTIME=
5313
5314else
5315 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5316
5317fi
5318
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005319# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005320if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005321 enableval=$enable_debug_symbols;
5322else
5323 enableval=no
5324fi
5325
5326if test ${enableval} = "no" ; then
5327 DEBUG_SYMBOLS=
5328
5329else
5330 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5331
5332fi
5333
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005334# Check whether --enable-keep-symbols was given.
5335if test "${enable_keep_symbols+set}" = set; then
5336 enableval=$enable_keep_symbols;
5337else
5338 enableval=no
5339fi
5340
5341if test ${enableval} = "no" ; then
5342 KEEP_SYMBOLS=
5343
5344else
5345 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5346
5347fi
5348
Reid Spencera773bd52006-08-04 18:18:08 +00005349# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005350if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005351 enableval=$enable_jit;
5352else
5353 enableval=default
5354fi
5355
5356if test ${enableval} = "no"
5357then
5358 JIT=
5359
5360else
5361 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005362 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005363 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005364 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005365 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005366 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005367 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005368 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005369 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005370 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005371 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005372 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005373 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005374 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005375 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005376 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005377 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005378 Hexagon) TARGET_HAS_JIT=0
5379 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005380 MBlaze) TARGET_HAS_JIT=0
5381 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005382 NVPTX) TARGET_HAS_JIT=0
5383 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005384 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005385 ;;
5386 esac
5387fi
5388
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005389# Check whether --enable-docs was given.
5390if test "${enable_docs+set}" = set; then
5391 enableval=$enable_docs;
5392else
5393 enableval=default
5394fi
5395
5396case "$enableval" in
5397 yes) ENABLE_DOCS=1
5398 ;;
5399 no) ENABLE_DOCS=0
5400 ;;
5401 default) ENABLE_DOCS=1
5402 ;;
5403 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5404echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5405 { (exit 1); exit 1; }; } ;;
5406esac
5407
Reid Spencera773bd52006-08-04 18:18:08 +00005408# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005409if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005410 enableval=$enable_doxygen;
5411else
5412 enableval=default
5413fi
5414
5415case "$enableval" in
5416 yes) ENABLE_DOXYGEN=1
5417 ;;
5418 no) ENABLE_DOXYGEN=0
5419 ;;
5420 default) ENABLE_DOXYGEN=0
5421 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005422 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5423echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5424 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005425esac
5426
5427# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005428if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005429 enableval=$enable_threads;
5430else
Reid Spencer65c5d752006-11-05 17:08:18 +00005431 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005432fi
5433
5434case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005435 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005436 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005437 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005438 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005439 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005440 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005441 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5442echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5443 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005444esac
5445
Owen Andersona8603702009-05-19 22:18:56 +00005446cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005447#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005448_ACEOF
5449
5450
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005451# Check whether --enable-pthreads was given.
5452if test "${enable_pthreads+set}" = set; then
5453 enableval=$enable_pthreads;
5454else
5455 enableval=default
5456fi
5457
5458case "$enableval" in
5459 yes) ENABLE_PTHREADS=1
5460 ;;
5461 no) ENABLE_PTHREADS=0
5462 ;;
5463 default) ENABLE_PTHREADS=1
5464 ;;
5465 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5466echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5467 { (exit 1); exit 1; }; } ;;
5468esac
5469
Reid Spencer89b0d992006-12-16 22:07:52 +00005470# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005471if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005472 enableval=$enable_pic;
5473else
5474 enableval=default
5475fi
5476
5477case "$enableval" in
5478 yes) ENABLE_PIC=1
5479 ;;
5480 no) ENABLE_PIC=0
5481 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005482 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005483 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005484 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5485echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5486 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005487esac
5488
5489cat >>confdefs.h <<_ACEOF
5490#define ENABLE_PIC $ENABLE_PIC
5491_ACEOF
5492
5493
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005494# Check whether --enable-shared was given.
5495if test "${enable_shared+set}" = set; then
5496 enableval=$enable_shared;
5497else
5498 enableval=default
5499fi
5500
5501case "$enableval" in
5502 yes) ENABLE_SHARED=1
5503 ;;
5504 no) ENABLE_SHARED=0
5505 ;;
5506 default) ENABLE_SHARED=0
5507 ;;
5508 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5509echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5510 { (exit 1); exit 1; }; } ;;
5511esac
5512
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005513# Check whether --enable-embed-stdcxx was given.
5514if test "${enable_embed_stdcxx+set}" = set; then
5515 enableval=$enable_embed_stdcxx;
5516else
5517 enableval=default
5518fi
5519
5520case "$enableval" in
5521 yes) ENABLE_EMBED_STDCXX=1
5522 ;;
5523 no) ENABLE_EMBED_STDCXX=0
5524 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005525 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005526 ;;
5527 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5528echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5529 { (exit 1); exit 1; }; } ;;
5530esac
5531
Daniel Dunbardd464df2010-05-10 20:11:56 +00005532# Check whether --enable-timestamps was given.
5533if test "${enable_timestamps+set}" = set; then
5534 enableval=$enable_timestamps;
5535else
5536 enableval=default
5537fi
5538
5539case "$enableval" in
5540 yes) ENABLE_TIMESTAMPS=1
5541 ;;
5542 no) ENABLE_TIMESTAMPS=0
5543 ;;
5544 default) ENABLE_TIMESTAMPS=1
5545 ;;
5546 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5547echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5548 { (exit 1); exit 1; }; } ;;
5549esac
5550
5551cat >>confdefs.h <<_ACEOF
5552#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5553_ACEOF
5554
5555
Eric Christopherc69bdad2012-09-21 23:03:29 +00005556
5557# Check whether --enable-backtraces was given.
5558if test "${enable_backtraces+set}" = set; then
5559 enableval=$enable_backtraces;
5560else
5561 enableval=default
5562fi
5563
5564case "$enableval" in
Eric Christopherf0b3b742012-11-19 19:31:02 +00005565 yes) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005566 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005567 no) ENABLE_BACKTRACES=0
Eric Christopherc69bdad2012-09-21 23:03:29 +00005568 ;;
Eric Christopherf0b3b742012-11-19 19:31:02 +00005569 default) ENABLE_BACKTRACES=1
Eric Christopherc69bdad2012-09-21 23:03:29 +00005570 ;;
5571 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5572echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5573 { (exit 1); exit 1; }; } ;;
5574esac
5575
5576cat >>confdefs.h <<_ACEOF
5577#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5578_ACEOF
5579
5580
Reid Spencera773bd52006-08-04 18:18:08 +00005581TARGETS_TO_BUILD=""
5582# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005583if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005584 enableval=$enable_targets;
5585else
5586 enableval=all
5587fi
5588
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005589if test "$enableval" = host-only ; then
5590 enableval=host
5591fi
Reid Spencera773bd52006-08-04 18:18:08 +00005592case "$enableval" in
Eric Christopher06b42342012-11-14 22:09:20 +00005593 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005594 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5595 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005596 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5597 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5598 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5599 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005600 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5601 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005602 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyan4830ccf2012-10-29 19:49:45 +00005603 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5604 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005605 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5606 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005607 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005608 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005609 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005610 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005611 host) case "$llvm_cv_target_arch" in
5612 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5613 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5614 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5615 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005616 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5617 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005618 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005619 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5620 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005621 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005622 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005623 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5624echo "$as_me: error: Can not set target to build" >&2;}
5625 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005626 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005627 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5628echo "$as_me: error: Unrecognized target $a_target" >&2;}
5629 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005630 esac
5631 done
5632 ;;
5633esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005634
5635# Check whether --enable-experimental-targets was given.
5636if test "${enable_experimental_targets+set}" = set; then
5637 enableval=$enable_experimental_targets;
5638else
5639 enableval=disable
5640fi
5641
5642
5643if test ${enableval} != "disable"
5644then
5645 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5646fi
5647
Reid Spencera773bd52006-08-04 18:18:08 +00005648TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5649
5650
Douglas Gregor0711c302009-06-17 00:43:20 +00005651for a_target in $TARGETS_TO_BUILD; do
5652 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5653
5654cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005655#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5656_ACEOF
5657
5658 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5659 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005660 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005661 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005662 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5663 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5664 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005665 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5666 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5667 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005668
5669cat >>confdefs.h <<_ACEOF
5670#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005671_ACEOF
5672
5673
5674cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005675#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5676_ACEOF
5677
5678
5679cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005680#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005681_ACEOF
5682
5683
5684cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005685#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005686_ACEOF
5687
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005688 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005689
5690cat >>confdefs.h <<_ACEOF
5691#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5692_ACEOF
5693
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005694 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005695 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5696
5697cat >>confdefs.h <<_ACEOF
5698#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5699_ACEOF
5700
5701 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005702 fi
5703done
5704
Douglas Gregor1555a232009-06-16 20:12:29 +00005705LLVM_ENUM_TARGETS=""
5706LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005707LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005708LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005709for target_to_build in $TARGETS_TO_BUILD; do
5710 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005711 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005712 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5713 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005714 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5715 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5716 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005717 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5718 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5719 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005720done
5721
5722
5723
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005724
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005725
Reid Spencera773bd52006-08-04 18:18:08 +00005726
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005727# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005728if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005729 withval=$with_optimize_option;
5730else
5731 withval=default
5732fi
5733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734{ echo "$as_me:$LINENO: checking optimization flags" >&5
5735echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005736case "$withval" in
5737 default)
5738 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005739 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005740 MingW) optimize_option=-O2 ;;
5741 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005742 esac ;;
5743 *) optimize_option="$withval" ;;
5744esac
5745OPTIMIZE_OPTION=$optimize_option
5746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5748echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005749
5750
Reid Spencera773bd52006-08-04 18:18:08 +00005751# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005752if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005753 withval=$with_extra_options;
5754else
5755 withval=default
5756fi
5757
5758case "$withval" in
5759 default) EXTRA_OPTIONS= ;;
5760 *) EXTRA_OPTIONS=$withval ;;
5761esac
5762EXTRA_OPTIONS=$EXTRA_OPTIONS
5763
5764
Daniel Dunbared344d22011-06-16 22:30:41 +00005765
5766# Check whether --with-extra-ld-options was given.
5767if test "${with_extra_ld_options+set}" = set; then
5768 withval=$with_extra_ld_options;
5769else
5770 withval=default
5771fi
5772
5773case "$withval" in
5774 default) EXTRA_LD_OPTIONS= ;;
5775 *) EXTRA_LD_OPTIONS=$withval ;;
5776esac
5777EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5778
5779
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005780# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005781if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005782 enableval=$enable_bindings;
5783else
5784 enableval=default
5785fi
5786
5787BINDINGS_TO_BUILD=""
5788case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005789 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005790 all ) BINDINGS_TO_BUILD="ocaml" ;;
5791 none | no) BINDINGS_TO_BUILD="" ;;
5792 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5793 case "$a_binding" in
5794 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005795 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5796echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5797 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005798 esac
5799 done
5800 ;;
5801esac
5802
Reid Spencera773bd52006-08-04 18:18:08 +00005803
Gordon Henriksenf0915682007-10-02 16:42:22 +00005804# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005805if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005806 withval=$with_ocaml_libdir;
5807else
5808 withval=auto
5809fi
5810
5811case "$withval" in
5812 auto) with_ocaml_libdir="$withval" ;;
5813 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005814 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5815echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5816 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005817esac
5818
5819
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005820# Check whether --with-clang-srcdir was given.
5821if test "${with_clang_srcdir+set}" = set; then
5822 withval=$with_clang_srcdir;
5823else
5824 withval="-"
5825fi
5826
5827case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005828 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005829 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5830 *) clang_src_root="$ac_pwd/$withval" ;;
5831esac
5832CLANG_SRC_ROOT=$clang_src_root
5833
5834
5835
Chandler Carruth6b241162010-10-19 08:21:25 +00005836# Check whether --with-clang-resource-dir was given.
5837if test "${with_clang_resource_dir+set}" = set; then
5838 withval=$with_clang_resource_dir;
5839else
5840 withval=""
5841fi
5842
5843
5844cat >>confdefs.h <<_ACEOF
5845#define CLANG_RESOURCE_DIR "$withval"
5846_ACEOF
5847
5848
5849
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005850# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005852 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005853else
5854 withval=""
5855fi
5856
5857
5858cat >>confdefs.h <<_ACEOF
5859#define C_INCLUDE_DIRS "$withval"
5860_ACEOF
5861
5862
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005863# Clang normally uses the system c++ headers and libraries. With this option,
5864# clang will use the ones provided by a gcc installation instead. This option should
5865# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005866
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005867# Check whether --with-gcc-toolchain was given.
5868if test "${with_gcc_toolchain+set}" = set; then
5869 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005870else
5871 withval=""
5872fi
5873
5874
5875cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005876#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005877_ACEOF
5878
5879
5880
Sebastian Pope4f1b372012-04-30 20:06:58 +00005881# Check whether --with-default-sysroot was given.
5882if test "${with_default_sysroot+set}" = set; then
5883 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005884else
5885 withval=""
5886fi
5887
5888
5889cat >>confdefs.h <<_ACEOF
5890#define DEFAULT_SYSROOT "$withval"
5891_ACEOF
5892
5893
5894
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005895# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005897 withval=$with_binutils_include;
5898else
5899 withval=default
5900fi
5901
5902case "$withval" in
5903 default) WITH_BINUTILS_INCDIR=default ;;
5904 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5906echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5907 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005908esac
5909if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5910 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5911
5912 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5913 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005914 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5915echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5916 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005917 fi
5918fi
5919
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005920
5921# Check whether --with-bug-report-url was given.
5922if test "${with_bug_report_url+set}" = set; then
5923 withval=$with_bug_report_url;
5924else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005925 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005926fi
5927
5928
5929cat >>confdefs.h <<_ACEOF
5930#define BUG_REPORT_URL "$withval"
5931_ACEOF
5932
5933
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005934# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005936 enableval=$enable_libffi; case "$enableval" in
5937 yes) llvm_cv_enable_libffi="yes" ;;
5938 no) llvm_cv_enable_libffi="no" ;;
5939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5941 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005942 esac
5943else
5944 llvm_cv_enable_libffi=no
5945fi
5946
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005947
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005948
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005949# Check whether --with-internal-prefix was given.
5950if test "${with_internal_prefix+set}" = set; then
5951 withval=$with_internal_prefix;
5952else
5953 withval=""
5954fi
5955
5956INTERNAL_PREFIX=$withval
5957
5958
5959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5961echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5962if test "${lt_cv_path_NM+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005964else
5965 if test -n "$NM"; then
5966 # Let the user override the test.
5967 lt_cv_path_NM="$NM"
5968else
5969 lt_nm_to_check="${ac_tool_prefix}nm"
5970 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5971 lt_nm_to_check="$lt_nm_to_check nm"
5972 fi
5973 for lt_tmp_nm in $lt_nm_to_check; do
5974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5975 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5976 IFS="$lt_save_ifs"
5977 test -z "$ac_dir" && ac_dir=.
5978 tmp_nm="$ac_dir/$lt_tmp_nm"
5979 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5980 # Check to see if the nm accepts a BSD-compat flag.
5981 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5982 # nm: unknown option "B" ignored
5983 # Tru64's nm complains that /dev/null is an invalid object file
5984 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5985 */dev/null* | *'Invalid file or object type'*)
5986 lt_cv_path_NM="$tmp_nm -B"
5987 break
5988 ;;
5989 *)
5990 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5991 */dev/null*)
5992 lt_cv_path_NM="$tmp_nm -p"
5993 break
5994 ;;
5995 *)
5996 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5997 continue # so that we can try to find one that supports BSD flags
5998 ;;
5999 esac
6000 ;;
6001 esac
6002 fi
6003 done
6004 IFS="$lt_save_ifs"
6005 done
6006 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6007fi
6008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6010echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006011NM="$lt_cv_path_NM"
6012
6013
6014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015{ echo "$as_me:$LINENO: checking for GNU make" >&5
6016echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6017if test "${llvm_cv_gnu_make_command+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006019else
6020 llvm_cv_gnu_make_command=''
6021 for a in "$MAKE" make gmake gnumake ; do
6022 if test -z "$a" ; then continue ; fi ;
6023 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6024 then
6025 llvm_cv_gnu_make_command=$a ;
6026 break;
6027 fi
6028 done
6029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006030{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6031echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006032 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6033 ifGNUmake='' ;
6034 else
6035 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6037echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006038 fi
6039
6040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6042echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006043LN_S=$as_ln_s
6044if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 { echo "$as_me:$LINENO: result: yes" >&5
6046echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6049echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006050fi
6051
6052# Extract the first word of "cmp", so it can be a program name with args.
6053set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056if test "${ac_cv_path_CMP+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006058else
6059 case $CMP in
6060 [\\/]* | ?:[\\/]*)
6061 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6062 ;;
6063 *)
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 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 +00006071 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006073 break 2
6074 fi
6075done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006076done
Reid Spencera773bd52006-08-04 18:18:08 +00006077IFS=$as_save_IFS
6078
6079 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6080 ;;
6081esac
6082fi
6083CMP=$ac_cv_path_CMP
6084if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085 { echo "$as_me:$LINENO: result: $CMP" >&5
6086echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006088 { echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006090fi
6091
6092
6093# Extract the first word of "cp", so it can be a program name with args.
6094set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097if test "${ac_cv_path_CP+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006099else
6100 case $CP in
6101 [\\/]* | ?:[\\/]*)
6102 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6103 ;;
6104 *)
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 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 +00006112 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006114 break 2
6115 fi
6116done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006117done
Reid Spencera773bd52006-08-04 18:18:08 +00006118IFS=$as_save_IFS
6119
6120 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6121 ;;
6122esac
6123fi
6124CP=$ac_cv_path_CP
6125if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126 { echo "$as_me:$LINENO: result: $CP" >&5
6127echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129 { echo "$as_me:$LINENO: result: no" >&5
6130echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006131fi
6132
6133
6134# Extract the first word of "date", so it can be a program name with args.
6135set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138if test "${ac_cv_path_DATE+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006140else
6141 case $DATE in
6142 [\\/]* | ?:[\\/]*)
6143 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6144 ;;
6145 *)
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 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 +00006153 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006155 break 2
6156 fi
6157done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158done
Reid Spencera773bd52006-08-04 18:18:08 +00006159IFS=$as_save_IFS
6160
6161 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6162 ;;
6163esac
6164fi
6165DATE=$ac_cv_path_DATE
6166if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167 { echo "$as_me:$LINENO: result: $DATE" >&5
6168echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170 { echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006172fi
6173
6174
6175# Extract the first word of "find", so it can be a program name with args.
6176set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179if test "${ac_cv_path_FIND+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006181else
6182 case $FIND in
6183 [\\/]* | ?:[\\/]*)
6184 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6185 ;;
6186 *)
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 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 +00006194 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006196 break 2
6197 fi
6198done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199done
Reid Spencera773bd52006-08-04 18:18:08 +00006200IFS=$as_save_IFS
6201
6202 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6203 ;;
6204esac
6205fi
6206FIND=$ac_cv_path_FIND
6207if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208 { echo "$as_me:$LINENO: result: $FIND" >&5
6209echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006211 { echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006213fi
6214
6215
6216# Extract the first word of "grep", so it can be a program name with args.
6217set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220if test "${ac_cv_path_GREP+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006222else
6223 case $GREP in
6224 [\\/]* | ?:[\\/]*)
6225 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6226 ;;
6227 *)
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 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 +00006235 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006237 break 2
6238 fi
6239done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240done
Reid Spencera773bd52006-08-04 18:18:08 +00006241IFS=$as_save_IFS
6242
6243 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6244 ;;
6245esac
6246fi
6247GREP=$ac_cv_path_GREP
6248if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249 { echo "$as_me:$LINENO: result: $GREP" >&5
6250echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252 { echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006254fi
6255
6256
6257# Extract the first word of "mkdir", so it can be a program name with args.
6258set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261if test "${ac_cv_path_MKDIR+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006263else
6264 case $MKDIR in
6265 [\\/]* | ?:[\\/]*)
6266 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6267 ;;
6268 *)
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 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 +00006276 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006278 break 2
6279 fi
6280done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281done
Reid Spencera773bd52006-08-04 18:18:08 +00006282IFS=$as_save_IFS
6283
6284 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6285 ;;
6286esac
6287fi
6288MKDIR=$ac_cv_path_MKDIR
6289if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6291echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293 { echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006295fi
6296
6297
6298# Extract the first word of "mv", so it can be a program name with args.
6299set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302if test "${ac_cv_path_MV+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006304else
6305 case $MV in
6306 [\\/]* | ?:[\\/]*)
6307 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6308 ;;
6309 *)
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 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 +00006317 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006319 break 2
6320 fi
6321done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322done
Reid Spencera773bd52006-08-04 18:18:08 +00006323IFS=$as_save_IFS
6324
6325 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6326 ;;
6327esac
6328fi
6329MV=$ac_cv_path_MV
6330if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331 { echo "$as_me:$LINENO: result: $MV" >&5
6332echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 { echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006336fi
6337
6338
6339if test -n "$ac_tool_prefix"; then
6340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6341set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344if test "${ac_cv_prog_RANLIB+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006346else
6347 if test -n "$RANLIB"; then
6348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 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 +00006357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006359 break 2
6360 fi
6361done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362done
Reid Spencera773bd52006-08-04 18:18:08 +00006363IFS=$as_save_IFS
6364
6365fi
6366fi
6367RANLIB=$ac_cv_prog_RANLIB
6368if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6370echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006372 { echo "$as_me:$LINENO: result: no" >&5
6373echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006374fi
6375
6376
6377fi
6378if test -z "$ac_cv_prog_RANLIB"; then
6379 ac_ct_RANLIB=$RANLIB
6380 # Extract the first word of "ranlib", so it can be a program name with args.
6381set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6384if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006386else
6387 if test -n "$ac_ct_RANLIB"; then
6388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6389else
6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391for as_dir in $PATH
6392do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006397 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006399 break 2
6400 fi
6401done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402done
Reid Spencera773bd52006-08-04 18:18:08 +00006403IFS=$as_save_IFS
6404
6405fi
6406fi
6407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6408if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6410echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412 { echo "$as_me:$LINENO: result: no" >&5
6413echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006414fi
6415
6416 if test "x$ac_ct_RANLIB" = x; then
6417 RANLIB=":"
6418 else
6419 case $cross_compiling:$ac_tool_warned in
6420yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6422whose name does not start with the host triplet. If you think this
6423configuration is useful to you, please write to autoconf@gnu.org." >&5
6424echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6425whose name does not start with the host triplet. If you think this
6426configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006427ac_tool_warned=yes ;;
6428esac
6429 RANLIB=$ac_ct_RANLIB
6430 fi
6431else
6432 RANLIB="$ac_cv_prog_RANLIB"
6433fi
6434
Torok Edwin871384f2010-01-26 08:50:50 +00006435if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6437set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440if test "${ac_cv_prog_AR+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006442else
6443 if test -n "$AR"; then
6444 ac_cv_prog_AR="$AR" # Let the user override the test.
6445else
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 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 +00006453 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006455 break 2
6456 fi
6457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458done
Torok Edwin871384f2010-01-26 08:50:50 +00006459IFS=$as_save_IFS
6460
6461fi
6462fi
6463AR=$ac_cv_prog_AR
6464if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006465 { echo "$as_me:$LINENO: result: $AR" >&5
6466echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468 { echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006470fi
6471
6472
6473fi
6474if test -z "$ac_cv_prog_AR"; then
6475 ac_ct_AR=$AR
6476 # Extract the first word of "ar", so it can be a program name with args.
6477set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006482else
6483 if test -n "$ac_ct_AR"; then
6484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 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 +00006493 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006495 break 2
6496 fi
6497done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006498done
Torok Edwin871384f2010-01-26 08:50:50 +00006499IFS=$as_save_IFS
6500
6501fi
6502fi
6503ac_ct_AR=$ac_cv_prog_ac_ct_AR
6504if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6506echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006508 { echo "$as_me:$LINENO: result: no" >&5
6509echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006510fi
6511
6512 if test "x$ac_ct_AR" = x; then
6513 AR="false"
6514 else
6515 case $cross_compiling:$ac_tool_warned in
6516yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6518whose name does not start with the host triplet. If you think this
6519configuration is useful to you, please write to autoconf@gnu.org." >&5
6520echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6521whose name does not start with the host triplet. If you think this
6522configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006523ac_tool_warned=yes ;;
6524esac
6525 AR=$ac_ct_AR
6526 fi
6527else
6528 AR="$ac_cv_prog_AR"
6529fi
6530
Reid Spencera773bd52006-08-04 18:18:08 +00006531# Extract the first word of "rm", so it can be a program name with args.
6532set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535if test "${ac_cv_path_RM+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006537else
6538 case $RM in
6539 [\\/]* | ?:[\\/]*)
6540 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6541 ;;
6542 *)
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 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 +00006550 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006552 break 2
6553 fi
6554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555done
Reid Spencera773bd52006-08-04 18:18:08 +00006556IFS=$as_save_IFS
6557
6558 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6559 ;;
6560esac
6561fi
6562RM=$ac_cv_path_RM
6563if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564 { echo "$as_me:$LINENO: result: $RM" >&5
6565echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006567 { echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006569fi
6570
6571
6572# Extract the first word of "sed", so it can be a program name with args.
6573set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576if test "${ac_cv_path_SED+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006578else
6579 case $SED in
6580 [\\/]* | ?:[\\/]*)
6581 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6582 ;;
6583 *)
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585for as_dir in $PATH
6586do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 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 +00006591 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006593 break 2
6594 fi
6595done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006596done
Reid Spencera773bd52006-08-04 18:18:08 +00006597IFS=$as_save_IFS
6598
6599 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6600 ;;
6601esac
6602fi
6603SED=$ac_cv_path_SED
6604if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605 { echo "$as_me:$LINENO: result: $SED" >&5
6606echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608 { echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006610fi
6611
6612
6613# Extract the first word of "tar", so it can be a program name with args.
6614set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617if test "${ac_cv_path_TAR+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006619else
6620 case $TAR in
6621 [\\/]* | ?:[\\/]*)
6622 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6623 ;;
6624 *)
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 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 +00006632 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006634 break 2
6635 fi
6636done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006637done
Reid Spencera773bd52006-08-04 18:18:08 +00006638IFS=$as_save_IFS
6639
6640 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6641 ;;
6642esac
6643fi
6644TAR=$ac_cv_path_TAR
6645if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646 { echo "$as_me:$LINENO: result: $TAR" >&5
6647echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006649 { echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006651fi
6652
6653
6654# Extract the first word of "pwd", so it can be a program name with args.
6655set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_BINPWD+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006660else
6661 case $BINPWD in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 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 +00006673 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006675 break 2
6676 fi
6677done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006678done
Reid Spencera773bd52006-08-04 18:18:08 +00006679IFS=$as_save_IFS
6680
6681 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6682 ;;
6683esac
6684fi
6685BINPWD=$ac_cv_path_BINPWD
6686if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6688echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006690 { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006692fi
6693
6694
6695
6696# Extract the first word of "Graphviz", so it can be a program name with args.
6697set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006702else
6703 case $GRAPHVIZ in
6704 [\\/]* | ?:[\\/]*)
6705 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6706 ;;
6707 *)
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 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 +00006715 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006717 break 2
6718 fi
6719done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720done
Reid Spencera773bd52006-08-04 18:18:08 +00006721IFS=$as_save_IFS
6722
6723 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6724 ;;
6725esac
6726fi
6727GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6728if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6730echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006732 { echo "$as_me:$LINENO: result: no" >&5
6733echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006734fi
6735
6736
6737if test "$GRAPHVIZ" != "echo Graphviz" ; then
6738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006739cat >>confdefs.h <<\_ACEOF
6740#define HAVE_GRAPHVIZ 1
6741_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006742
Jeff Cohen28783c32007-01-12 18:22:38 +00006743 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006744 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6745 fi
6746
6747cat >>confdefs.h <<_ACEOF
6748#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6749_ACEOF
6750
6751fi
6752# Extract the first word of "dot", so it can be a program name with args.
6753set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756if test "${ac_cv_path_DOT+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006758else
6759 case $DOT in
6760 [\\/]* | ?:[\\/]*)
6761 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6762 ;;
6763 *)
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 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 +00006771 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006773 break 2
6774 fi
6775done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776done
Reid Spencera773bd52006-08-04 18:18:08 +00006777IFS=$as_save_IFS
6778
6779 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6780 ;;
6781esac
6782fi
6783DOT=$ac_cv_path_DOT
6784if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785 { echo "$as_me:$LINENO: result: $DOT" >&5
6786echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788 { echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006790fi
6791
6792
6793if test "$DOT" != "echo dot" ; then
6794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006795cat >>confdefs.h <<\_ACEOF
6796#define HAVE_DOT 1
6797_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006798
Jeff Cohen28783c32007-01-12 18:22:38 +00006799 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006800 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6801 fi
6802
6803cat >>confdefs.h <<_ACEOF
6804#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6805_ACEOF
6806
6807fi
David Greenef0b9eff2009-07-09 17:16:26 +00006808# Extract the first word of "fdp", so it can be a program name with args.
6809set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812if test "${ac_cv_path_FDP+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006814else
6815 case $FDP in
6816 [\\/]* | ?:[\\/]*)
6817 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6818 ;;
6819 *)
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 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 +00006827 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006829 break 2
6830 fi
6831done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006832done
David Greenef0b9eff2009-07-09 17:16:26 +00006833IFS=$as_save_IFS
6834
6835 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6836 ;;
6837esac
6838fi
6839FDP=$ac_cv_path_FDP
6840if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 { echo "$as_me:$LINENO: result: $FDP" >&5
6842echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 { echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006846fi
6847
6848
6849if test "$FDP" != "echo fdp" ; then
6850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851cat >>confdefs.h <<\_ACEOF
6852#define HAVE_FDP 1
6853_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006854
6855 if test "$llvm_cv_os_type" = "MingW" ; then
6856 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6857 fi
6858
6859cat >>confdefs.h <<_ACEOF
6860#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6861_ACEOF
6862
6863fi
6864# Extract the first word of "neato", so it can be a program name with args.
6865set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868if test "${ac_cv_path_NEATO+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006870else
6871 case $NEATO in
6872 [\\/]* | ?:[\\/]*)
6873 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 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 +00006883 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006885 break 2
6886 fi
6887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888done
David Greenef0b9eff2009-07-09 17:16:26 +00006889IFS=$as_save_IFS
6890
6891 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6892 ;;
6893esac
6894fi
6895NEATO=$ac_cv_path_NEATO
6896if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 { echo "$as_me:$LINENO: result: $NEATO" >&5
6898echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006902fi
6903
6904
6905if test "$NEATO" != "echo neato" ; then
6906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907cat >>confdefs.h <<\_ACEOF
6908#define HAVE_NEATO 1
6909_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006910
6911 if test "$llvm_cv_os_type" = "MingW" ; then
6912 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6913 fi
6914
6915cat >>confdefs.h <<_ACEOF
6916#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6917_ACEOF
6918
6919fi
6920# Extract the first word of "twopi", so it can be a program name with args.
6921set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924if test "${ac_cv_path_TWOPI+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006926else
6927 case $TWOPI in
6928 [\\/]* | ?:[\\/]*)
6929 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6930 ;;
6931 *)
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 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 +00006939 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006941 break 2
6942 fi
6943done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944done
David Greenef0b9eff2009-07-09 17:16:26 +00006945IFS=$as_save_IFS
6946
6947 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6948 ;;
6949esac
6950fi
6951TWOPI=$ac_cv_path_TWOPI
6952if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6954echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956 { echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006958fi
6959
6960
6961if test "$TWOPI" != "echo twopi" ; then
6962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963cat >>confdefs.h <<\_ACEOF
6964#define HAVE_TWOPI 1
6965_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006966
6967 if test "$llvm_cv_os_type" = "MingW" ; then
6968 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6969 fi
6970
6971cat >>confdefs.h <<_ACEOF
6972#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6973_ACEOF
6974
6975fi
6976# Extract the first word of "circo", so it can be a program name with args.
6977set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980if test "${ac_cv_path_CIRCO+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006982else
6983 case $CIRCO in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6986 ;;
6987 *)
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 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 +00006995 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006997 break 2
6998 fi
6999done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000done
David Greenef0b9eff2009-07-09 17:16:26 +00007001IFS=$as_save_IFS
7002
7003 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7004 ;;
7005esac
7006fi
7007CIRCO=$ac_cv_path_CIRCO
7008if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7010echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007011else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007012 { echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007014fi
7015
7016
7017if test "$CIRCO" != "echo circo" ; then
7018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019cat >>confdefs.h <<\_ACEOF
7020#define HAVE_CIRCO 1
7021_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007022
7023 if test "$llvm_cv_os_type" = "MingW" ; then
7024 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7025 fi
7026
7027cat >>confdefs.h <<_ACEOF
7028#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7029_ACEOF
7030
7031fi
Reid Spencera773bd52006-08-04 18:18:08 +00007032for ac_prog in gv gsview32
7033do
7034 # Extract the first word of "$ac_prog", so it can be a program name with args.
7035set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038if test "${ac_cv_path_GV+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007040else
7041 case $GV in
7042 [\\/]* | ?:[\\/]*)
7043 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7044 ;;
7045 *)
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 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 +00007053 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007055 break 2
7056 fi
7057done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058done
Reid Spencera773bd52006-08-04 18:18:08 +00007059IFS=$as_save_IFS
7060
7061 ;;
7062esac
7063fi
7064GV=$ac_cv_path_GV
7065if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007066 { echo "$as_me:$LINENO: result: $GV" >&5
7067echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069 { echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007071fi
7072
7073
7074 test -n "$GV" && break
7075done
7076test -n "$GV" || GV="echo gv"
7077
7078if test "$GV" != "echo gv" ; then
7079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080cat >>confdefs.h <<\_ACEOF
7081#define HAVE_GV 1
7082_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007083
Jeff Cohen28783c32007-01-12 18:22:38 +00007084 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007085 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7086 fi
7087
7088cat >>confdefs.h <<_ACEOF
7089#define LLVM_PATH_GV "$GV${EXEEXT}"
7090_ACEOF
7091
7092fi
7093# Extract the first word of "dotty", so it can be a program name with args.
7094set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_DOTTY+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007099else
7100 case $DOTTY in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 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 +00007112 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007114 break 2
7115 fi
7116done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117done
Reid Spencera773bd52006-08-04 18:18:08 +00007118IFS=$as_save_IFS
7119
7120 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7121 ;;
7122esac
7123fi
7124DOTTY=$ac_cv_path_DOTTY
7125if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7127echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007129 { echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007131fi
7132
7133
7134if test "$DOTTY" != "echo dotty" ; then
7135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007136cat >>confdefs.h <<\_ACEOF
7137#define HAVE_DOTTY 1
7138_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007139
Jeff Cohen28783c32007-01-12 18:22:38 +00007140 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007141 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7142 fi
7143
7144cat >>confdefs.h <<_ACEOF
7145#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7146_ACEOF
7147
7148fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007149# Extract the first word of "xdot.py", so it can be a program name with args.
7150set dummy xdot.py; ac_word=$2
7151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153if test "${ac_cv_path_XDOT_PY+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156 case $XDOT_PY in
7157 [\\/]* | ?:[\\/]*)
7158 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7159 ;;
7160 *)
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7171 fi
7172done
7173done
7174IFS=$as_save_IFS
7175
7176 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7177 ;;
7178esac
7179fi
7180XDOT_PY=$ac_cv_path_XDOT_PY
7181if test -n "$XDOT_PY"; then
7182 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7183echo "${ECHO_T}$XDOT_PY" >&6; }
7184else
7185 { echo "$as_me:$LINENO: result: no" >&5
7186echo "${ECHO_T}no" >&6; }
7187fi
7188
7189
7190if test "$XDOT_PY" != "echo xdot.py" ; then
7191
7192cat >>confdefs.h <<\_ACEOF
7193#define HAVE_XDOT_PY 1
7194_ACEOF
7195
7196 if test "$llvm_cv_os_type" = "MingW" ; then
7197 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7198 fi
7199
7200cat >>confdefs.h <<_ACEOF
7201#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7202_ACEOF
7203
7204fi
Reid Spencera773bd52006-08-04 18:18:08 +00007205
Reid Spencera773bd52006-08-04 18:18:08 +00007206# Find a good install program. We prefer a C program (faster),
7207# so one script is as good as another. But avoid the broken or
7208# incompatible versions:
7209# SysV /etc/install, /usr/sbin/install
7210# SunOS /usr/etc/install
7211# IRIX /sbin/install
7212# AIX /bin/install
7213# AmigaOS /C/install, which installs bootblocks on floppy discs
7214# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7215# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7216# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7217# OS/2's system install, which has a completely different semantic
7218# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7220echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007221if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222if test "${ac_cv_path_install+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007224else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230 # Account for people who put trailing slashes in PATH elements.
7231case $as_dir/ in
7232 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007235 /usr/ucb/* ) ;;
7236 *)
7237 # OSF1 and SCO ODT 3.0 have their own names for install.
7238 # Don't use installbsd from OSF since it installs stuff as root
7239 # by default.
7240 for ac_prog in ginstall scoinst install; do
7241 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007242 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 +00007243 if test $ac_prog = install &&
7244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7245 # AIX install. It has an incompatible calling convention.
7246 :
7247 elif test $ac_prog = install &&
7248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7249 # program-specific install script used by HP pwplus--don't use.
7250 :
7251 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7253 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007254 fi
7255 fi
7256 done
7257 done
7258 ;;
7259esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260done
Reid Spencera773bd52006-08-04 18:18:08 +00007261IFS=$as_save_IFS
7262
7263
7264fi
7265 if test "${ac_cv_path_install+set}" = set; then
7266 INSTALL=$ac_cv_path_install
7267 else
7268 # As a last resort, use the slow shell script. Don't cache a
7269 # value for INSTALL within a source directory, because that will
7270 # break other packages using the cache if that directory is
7271 # removed, or if the value is a relative name.
7272 INSTALL=$ac_install_sh
7273 fi
7274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7276echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007277
7278# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7279# It thinks the first close brace ends the variable substitution.
7280test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7281
7282test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7283
7284test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7285
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007286case "$INSTALL" in
7287 [\\/$]* | ?:[\\/]* ) ;;
7288 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7289esac
Reid Spencera773bd52006-08-04 18:18:08 +00007290
7291# Extract the first word of "bzip2", so it can be a program name with args.
7292set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295if test "${ac_cv_path_BZIP2+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007297else
7298 case $BZIP2 in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7301 ;;
7302 *)
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 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 +00007310 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007312 break 2
7313 fi
7314done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315done
Reid Spencera773bd52006-08-04 18:18:08 +00007316IFS=$as_save_IFS
7317
Reid Spencera773bd52006-08-04 18:18:08 +00007318 ;;
7319esac
7320fi
7321BZIP2=$ac_cv_path_BZIP2
7322if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7324echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007325else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326 { echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007328fi
7329
7330
mike-m68cb3192010-05-06 23:45:43 +00007331# Extract the first word of "cat", so it can be a program name with args.
7332set dummy cat; ac_word=$2
7333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335if test "${ac_cv_path_CAT+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338 case $CAT in
7339 [\\/]* | ?:[\\/]*)
7340 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7341 ;;
7342 *)
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355done
7356IFS=$as_save_IFS
7357
7358 ;;
7359esac
7360fi
7361CAT=$ac_cv_path_CAT
7362if test -n "$CAT"; then
7363 { echo "$as_me:$LINENO: result: $CAT" >&5
7364echo "${ECHO_T}$CAT" >&6; }
7365else
7366 { echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6; }
7368fi
7369
7370
Reid Spencera773bd52006-08-04 18:18:08 +00007371# Extract the first word of "doxygen", so it can be a program name with args.
7372set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375if test "${ac_cv_path_DOXYGEN+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007377else
7378 case $DOXYGEN in
7379 [\\/]* | ?:[\\/]*)
7380 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7381 ;;
7382 *)
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 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 +00007390 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007392 break 2
7393 fi
7394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395done
Reid Spencera773bd52006-08-04 18:18:08 +00007396IFS=$as_save_IFS
7397
Reid Spencera773bd52006-08-04 18:18:08 +00007398 ;;
7399esac
7400fi
7401DOXYGEN=$ac_cv_path_DOXYGEN
7402if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7404echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406 { echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007408fi
7409
7410
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007411# Extract the first word of "groff", so it can be a program name with args.
7412set dummy groff; ac_word=$2
7413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415if test "${ac_cv_path_GROFF+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418 case $GROFF in
7419 [\\/]* | ?:[\\/]*)
7420 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7421 ;;
7422 *)
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434done
7435done
7436IFS=$as_save_IFS
7437
7438 ;;
7439esac
7440fi
7441GROFF=$ac_cv_path_GROFF
7442if test -n "$GROFF"; then
7443 { echo "$as_me:$LINENO: result: $GROFF" >&5
7444echo "${ECHO_T}$GROFF" >&6; }
7445else
7446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
7448fi
7449
7450
Reid Spencera773bd52006-08-04 18:18:08 +00007451# Extract the first word of "gzip", so it can be a program name with args.
7452set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007455if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007457else
Eric Christopher031d3072010-12-10 01:31:51 +00007458 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007459 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007460 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007461 ;;
7462 *)
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 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 +00007470 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007472 break 2
7473 fi
7474done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475done
Reid Spencera773bd52006-08-04 18:18:08 +00007476IFS=$as_save_IFS
7477
Reid Spencera773bd52006-08-04 18:18:08 +00007478 ;;
7479esac
7480fi
Eric Christopher031d3072010-12-10 01:31:51 +00007481GZIPBIN=$ac_cv_path_GZIPBIN
7482if test -n "$GZIPBIN"; then
7483 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7484echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 { echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007488fi
7489
7490
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007491# Extract the first word of "pdfroff", so it can be a program name with args.
7492set dummy pdfroff; ac_word=$2
7493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495if test "${ac_cv_path_PDFROFF+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497else
7498 case $PDFROFF in
7499 [\\/]* | ?:[\\/]*)
7500 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7501 ;;
7502 *)
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514done
7515done
7516IFS=$as_save_IFS
7517
7518 ;;
7519esac
7520fi
7521PDFROFF=$ac_cv_path_PDFROFF
7522if test -n "$PDFROFF"; then
7523 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7524echo "${ECHO_T}$PDFROFF" >&6; }
7525else
7526 { echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6; }
7528fi
7529
7530
Reid Spencera773bd52006-08-04 18:18:08 +00007531# Extract the first word of "zip", so it can be a program name with args.
7532set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535if test "${ac_cv_path_ZIP+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007537else
7538 case $ZIP in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7541 ;;
7542 *)
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 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 +00007550 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007552 break 2
7553 fi
7554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555done
Reid Spencera773bd52006-08-04 18:18:08 +00007556IFS=$as_save_IFS
7557
Reid Spencera773bd52006-08-04 18:18:08 +00007558 ;;
7559esac
7560fi
7561ZIP=$ac_cv_path_ZIP
7562if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 { echo "$as_me:$LINENO: result: $ZIP" >&5
7564echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566 { echo "$as_me:$LINENO: result: no" >&5
7567echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007568fi
7569
7570
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007571for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007572do
7573 # Extract the first word of "$ac_prog", so it can be a program name with args.
7574set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577if test "${ac_cv_path_OCAMLC+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007579else
7580 case $OCAMLC in
7581 [\\/]* | ?:[\\/]*)
7582 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7583 ;;
7584 *)
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 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 +00007592 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007594 break 2
7595 fi
7596done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007597done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007598IFS=$as_save_IFS
7599
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007600 ;;
7601esac
7602fi
7603OCAMLC=$ac_cv_path_OCAMLC
7604if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7606echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007608 { echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007610fi
7611
7612
Gordon Henriksene7072162008-03-07 18:20:01 +00007613 test -n "$OCAMLC" && break
7614done
7615
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007616for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007617do
7618 # Extract the first word of "$ac_prog", so it can be a program name with args.
7619set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007624else
7625 case $OCAMLOPT in
7626 [\\/]* | ?:[\\/]*)
7627 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7628 ;;
7629 *)
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 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 +00007637 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007639 break 2
7640 fi
7641done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007643IFS=$as_save_IFS
7644
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007645 ;;
7646esac
7647fi
7648OCAMLOPT=$ac_cv_path_OCAMLOPT
7649if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7651echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653 { echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007655fi
7656
7657
Gordon Henriksene7072162008-03-07 18:20:01 +00007658 test -n "$OCAMLOPT" && break
7659done
7660
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007661for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007662do
7663 # Extract the first word of "$ac_prog", so it can be a program name with args.
7664set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007669else
7670 case $OCAMLDEP in
7671 [\\/]* | ?:[\\/]*)
7672 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7673 ;;
7674 *)
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 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 +00007682 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007684 break 2
7685 fi
7686done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007687done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007688IFS=$as_save_IFS
7689
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007690 ;;
7691esac
7692fi
7693OCAMLDEP=$ac_cv_path_OCAMLDEP
7694if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7696echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698 { echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007700fi
7701
7702
Gordon Henriksene7072162008-03-07 18:20:01 +00007703 test -n "$OCAMLDEP" && break
7704done
7705
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007706for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007707do
7708 # Extract the first word of "$ac_prog", so it can be a program name with args.
7709set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7712if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007714else
7715 case $OCAMLDOC in
7716 [\\/]* | ?:[\\/]*)
7717 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7718 ;;
7719 *)
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 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 +00007727 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007729 break 2
7730 fi
7731done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007733IFS=$as_save_IFS
7734
7735 ;;
7736esac
7737fi
7738OCAMLDOC=$ac_cv_path_OCAMLDOC
7739if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7741echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743 { echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007745fi
7746
7747
7748 test -n "$OCAMLDOC" && break
7749done
7750
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007751for ac_prog in gas as
7752do
7753 # Extract the first word of "$ac_prog", so it can be a program name with args.
7754set dummy $ac_prog; ac_word=$2
7755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757if test "${ac_cv_path_GAS+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760 case $GAS in
7761 [\\/]* | ?:[\\/]*)
7762 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7763 ;;
7764 *)
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776done
7777done
7778IFS=$as_save_IFS
7779
7780 ;;
7781esac
7782fi
7783GAS=$ac_cv_path_GAS
7784if test -n "$GAS"; then
7785 { echo "$as_me:$LINENO: result: $GAS" >&5
7786echo "${ECHO_T}$GAS" >&6; }
7787else
7788 { echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6; }
7790fi
7791
7792
7793 test -n "$GAS" && break
7794done
7795
Reid Spencera773bd52006-08-04 18:18:08 +00007796
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007797{ echo "$as_me:$LINENO: checking for linker version" >&5
7798echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7799if test "${llvm_cv_link_version+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802
7803 version_string="$(ld -v 2>&1 | head -1)"
7804
7805 # Check for ld64.
7806 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007807 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007808 else
7809 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7810 fi
7811
7812fi
7813{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7814echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7815
7816cat >>confdefs.h <<_ACEOF
7817#define HOST_LINK_VERSION "$llvm_cv_link_version"
7818_ACEOF
7819
7820
7821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7823echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7824if test "${llvm_cv_link_use_r+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007826else
7827 ac_ext=c
7828ac_cpp='$CPP $CPPFLAGS'
7829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832
7833 oldcflags="$CFLAGS"
7834 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835 cat >conftest.$ac_ext <<_ACEOF
7836/* confdefs.h. */
7837_ACEOF
7838cat confdefs.h >>conftest.$ac_ext
7839cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007840/* end confdefs.h. */
7841
7842int
7843main ()
7844{
Dan Gohman39ed6782010-04-25 00:12:20 +00007845
Reid Spencera773bd52006-08-04 18:18:08 +00007846 ;
7847 return 0;
7848}
7849_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850rm -f conftest.$ac_objext conftest$ac_exeext
7851if { (ac_try="$ac_link"
7852case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855esac
7856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7865 { (case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_try") 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest$ac_exeext'
7875 { (case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878esac
7879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_try") 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007884 llvm_cv_link_use_r=yes
7885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886 echo "$as_me: failed program was:" >&5
7887sed 's/^/| /' conftest.$ac_ext >&5
7888
7889 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891
Bill Wendlingebcceee2009-04-18 11:20:33 +00007892rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007894 CFLAGS="$oldcflags"
7895 ac_ext=c
7896ac_cpp='$CPP $CPPFLAGS'
7897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901
7902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7904echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007905if test "$llvm_cv_link_use_r" = yes ; then
7906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007907cat >>confdefs.h <<\_ACEOF
7908#define HAVE_LINK_R 1
7909_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007910
7911 fi
7912
7913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007914{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7915echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7916if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007918else
7919 ac_ext=c
7920ac_cpp='$CPP $CPPFLAGS'
7921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924
7925 oldcflags="$CFLAGS"
7926 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007927 cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h. */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007932/* end confdefs.h. */
7933
7934int
7935main ()
7936{
Dan Gohman39ed6782010-04-25 00:12:20 +00007937
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007938 ;
7939 return 0;
7940}
7941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007942rm -f conftest.$ac_objext conftest$ac_exeext
7943if { (ac_try="$ac_link"
7944case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947esac
7948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_link") 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7957 { (case "(($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_try") 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7970esac
7971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_try") 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007976 llvm_cv_link_use_export_dynamic=yes
7977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007978 echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983
Bill Wendlingebcceee2009-04-18 11:20:33 +00007984rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007986 CFLAGS="$oldcflags"
7987 ac_ext=c
7988ac_cpp='$CPP $CPPFLAGS'
7989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991ac_compiler_gnu=$ac_cv_c_compiler_gnu
7992
7993
7994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007995{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7996echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007997if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007999cat >>confdefs.h <<\_ACEOF
8000#define HAVE_LINK_EXPORT_DYNAMIC 1
8001_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008002
8003 fi
8004
8005
Dan Gohmanda612d62010-06-01 14:56:56 +00008006{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8007echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8008if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011 ac_ext=c
8012ac_cpp='$CPP $CPPFLAGS'
8013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016
8017 oldcflags="$CFLAGS"
8018
8019 # The following code is from the autoconf manual,
8020 # "11.13: Limitations of Usual Tools".
8021 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8022 # Use mktemp if possible; otherwise fall back on mkdir,
8023 # with $RANDOM to make collisions less likely.
8024 : ${TMPDIR=/tmp}
8025 {
8026 tmp=`
8027 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8028 ` &&
8029 test -n "$tmp" && test -d "$tmp"
8030 } || {
8031 tmp=$TMPDIR/foo$$-$RANDOM
8032 (umask 077 && mkdir "$tmp")
8033 } || exit $?
8034
Dan Gohmanda612d62010-06-01 14:56:56 +00008035 echo "{" > "$tmp/export.map"
8036 echo " global: main;" >> "$tmp/export.map"
8037 echo " local: *;" >> "$tmp/export.map"
8038 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008039
Dan Gohmanda612d62010-06-01 14:56:56 +00008040 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008041 cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h. */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h. */
8047
8048int
8049main ()
8050{
Dan Gohman39ed6782010-04-25 00:12:20 +00008051
Dan Gohman391569c2010-04-16 22:59:06 +00008052 ;
8053 return 0;
8054}
8055_ACEOF
8056rm -f conftest.$ac_objext conftest$ac_exeext
8057if { (ac_try="$ac_link"
8058case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8061esac
8062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_link") 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8071 { (case "(($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_try") 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084esac
8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_try") 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008090 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008091else
8092 echo "$as_me: failed program was:" >&5
8093sed 's/^/| /' conftest.$ac_ext >&5
8094
Dan Gohman943005e2010-06-01 16:22:27 +00008095 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008096fi
8097
8098rm -f core conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008100 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008101 rmdir "$tmp"
8102 CFLAGS="$oldcflags"
8103 ac_ext=c
8104ac_cpp='$CPP $CPPFLAGS'
8105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8107ac_compiler_gnu=$ac_cv_c_compiler_gnu
8108
8109
8110fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008111{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8112echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8113if test "$llvm_cv_link_use_version_script" = yes ; then
8114 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008115
8116 fi
8117
8118
Reid Spencera773bd52006-08-04 18:18:08 +00008119
8120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8122echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8123if test "${ac_cv_c_const+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126 cat >conftest.$ac_ext <<_ACEOF
8127/* confdefs.h. */
8128_ACEOF
8129cat confdefs.h >>conftest.$ac_ext
8130cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008131/* end confdefs.h. */
8132
8133int
8134main ()
8135{
8136/* FIXME: Include the comments suggested by Paul. */
8137#ifndef __cplusplus
8138 /* Ultrix mips cc rejects this. */
8139 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008140 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008141 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142 char const *const *ccp;
8143 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008144 /* NEC SVR4.0.2 mips cc rejects this. */
8145 struct point {int x, y;};
8146 static struct point const zero = {0,0};
8147 /* AIX XL C 1.02.0.0 rejects this.
8148 It does not let you subtract one const X* pointer from another in
8149 an arm of an if-expression whose if-part is not a constant
8150 expression */
8151 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008153 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154 ++ccp;
8155 p = (char**) ccp;
8156 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008157 { /* SCO 3.2v4 cc rejects this. */
8158 char *t;
8159 char const *s = 0 ? (char *) 0 : (char const *) 0;
8160
8161 *t++ = 0;
8162 if (s) return 0;
8163 }
8164 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8165 int x[] = {25, 17};
8166 const int *foo = &x[0];
8167 ++foo;
8168 }
8169 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8170 typedef const int *iptr;
8171 iptr p = 0;
8172 ++p;
8173 }
8174 { /* AIX XL C 1.02.0.0 rejects this saying
8175 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8176 struct s { int j; const int *ap[3]; };
8177 struct s *b; b->j = 5;
8178 }
8179 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8180 const int foo = 10;
8181 if (!foo) return 0;
8182 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008183 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008184#endif
8185
8186 ;
8187 return 0;
8188}
8189_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008190rm -f conftest.$ac_objext
8191if { (ac_try="$ac_compile"
8192case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195esac
8196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205 { (case "(($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_try") 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008224 ac_cv_c_const=yes
8225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226 echo "$as_me: failed program was:" >&5
8227sed 's/^/| /' conftest.$ac_ext >&5
8228
8229 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231
Reid Spencera773bd52006-08-04 18:18:08 +00008232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8235echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008236if test $ac_cv_c_const = no; then
8237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238cat >>confdefs.h <<\_ACEOF
8239#define const
8240_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008241
8242fi
8243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008244
8245
8246
8247
8248
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008249ac_header_dirent=no
8250for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8252{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8253echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257 cat >conftest.$ac_ext <<_ACEOF
8258/* confdefs.h. */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008262/* end confdefs.h. */
8263#include <sys/types.h>
8264#include <$ac_hdr>
8265
8266int
8267main ()
8268{
8269if ((DIR *) 0)
8270return 0;
8271 ;
8272 return 0;
8273}
8274_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008275rm -f conftest.$ac_objext
8276if { (ac_try="$ac_compile"
8277case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($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_try") 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008309 eval "$as_ac_Header=yes"
8310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311 echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316
Reid Spencera773bd52006-08-04 18:18:08 +00008317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319ac_res=`eval echo '${'$as_ac_Header'}'`
8320 { echo "$as_me:$LINENO: result: $ac_res" >&5
8321echo "${ECHO_T}$ac_res" >&6; }
8322if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008323 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008325_ACEOF
8326
8327ac_header_dirent=$ac_hdr; break
8328fi
8329
8330done
8331# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8332if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008333 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8334echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8335if test "${ac_cv_search_opendir+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008337else
8338 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008339cat >conftest.$ac_ext <<_ACEOF
8340/* confdefs.h. */
8341_ACEOF
8342cat confdefs.h >>conftest.$ac_ext
8343cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008344/* end confdefs.h. */
8345
Reid Spencera773bd52006-08-04 18:18:08 +00008346/* Override any GCC internal prototype to avoid an error.
8347 Use char because int might match the return type of a GCC
8348 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008349#ifdef __cplusplus
8350extern "C"
8351#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008352char opendir ();
8353int
8354main ()
8355{
Reid Spencera773bd52006-08-04 18:18:08 +00008356return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008357 ;
8358 return 0;
8359}
8360_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008361for ac_lib in '' dir; do
8362 if test -z "$ac_lib"; then
8363 ac_res="none required"
8364 else
8365 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008367 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368 rm -f conftest.$ac_objext conftest$ac_exeext
8369if { (ac_try="$ac_link"
8370case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8373esac
8374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_link") 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } &&
8382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8383 { (case "(($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_try") 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest$ac_exeext'
8393 { (case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396esac
8397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_try") 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008402 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403else
8404 echo "$as_me: failed program was:" >&5
8405sed 's/^/| /' conftest.$ac_ext >&5
8406
8407
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409
Bill Wendlingebcceee2009-04-18 11:20:33 +00008410rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008411 conftest$ac_exeext
8412 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008413 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008414fi
John Criswell7a73b802003-06-30 21:59:07 +00008415done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416if test "${ac_cv_search_opendir+set}" = set; then
8417 :
Reid Spencera773bd52006-08-04 18:18:08 +00008418else
8419 ac_cv_search_opendir=no
8420fi
8421rm conftest.$ac_ext
8422LIBS=$ac_func_search_save_LIBS
8423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8425echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008426ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008429
Reid Spencera773bd52006-08-04 18:18:08 +00008430fi
8431
8432else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008433 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8434echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8435if test "${ac_cv_search_opendir+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008437else
8438 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008439cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008444/* end confdefs.h. */
8445
8446/* Override any GCC internal prototype to avoid an error.
8447 Use char because int might match the return type of a GCC
8448 builtin and then its argument prototype would still apply. */
8449#ifdef __cplusplus
8450extern "C"
8451#endif
8452char opendir ();
8453int
8454main ()
8455{
8456return opendir ();
8457 ;
8458 return 0;
8459}
8460_ACEOF
8461for ac_lib in '' x; do
8462 if test -z "$ac_lib"; then
8463 ac_res="none required"
8464 else
8465 ac_res=-l$ac_lib
8466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8467 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468 rm -f conftest.$ac_objext conftest$ac_exeext
8469if { (ac_try="$ac_link"
8470case "(($ac_try" in
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8473esac
8474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_link") 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8483 { (case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486esac
8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_try") 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496esac
8497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_try") 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008502 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008503else
8504 echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
8507
Reid Spencera773bd52006-08-04 18:18:08 +00008508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509
Bill Wendlingebcceee2009-04-18 11:20:33 +00008510rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511 conftest$ac_exeext
8512 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008513 break
8514fi
8515done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008516if test "${ac_cv_search_opendir+set}" = set; then
8517 :
Reid Spencera773bd52006-08-04 18:18:08 +00008518else
8519 ac_cv_search_opendir=no
8520fi
8521rm conftest.$ac_ext
8522LIBS=$ac_func_search_save_LIBS
8523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8525echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008526ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008527if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8529
8530fi
8531
8532fi
John Criswell7a73b802003-06-30 21:59:07 +00008533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008534
John Criswell7a73b802003-06-30 21:59:07 +00008535for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536do
8537as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543fi
8544ac_res=`eval echo '${'$as_ac_Header'}'`
8545 { echo "$as_me:$LINENO: result: $ac_res" >&5
8546echo "${ECHO_T}$ac_res" >&6; }
8547else
8548 # Is the header compilable?
8549{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8551cat >conftest.$ac_ext <<_ACEOF
8552/* confdefs.h. */
8553_ACEOF
8554cat confdefs.h >>conftest.$ac_ext
8555cat >>conftest.$ac_ext <<_ACEOF
8556/* end confdefs.h. */
8557$ac_includes_default
8558#include <$ac_header>
8559_ACEOF
8560rm -f conftest.$ac_objext
8561if { (ac_try="$ac_compile"
8562case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565esac
8566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8575 { (case "(($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_try") 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588esac
8589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_try") 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_header_compiler=yes
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_header_compiler=no
8600fi
8601
8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8604echo "${ECHO_T}$ac_header_compiler" >&6; }
8605
8606# Is the header present?
8607{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8609cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615#include <$ac_header>
8616_ACEOF
8617if { (ac_try="$ac_cpp conftest.$ac_ext"
8618case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621esac
8622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } >/dev/null; then
8630 if test -s conftest.err; then
8631 ac_cpp_err=$ac_c_preproc_warn_flag
8632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8633 else
8634 ac_cpp_err=
8635 fi
8636else
8637 ac_cpp_err=yes
8638fi
8639if test -z "$ac_cpp_err"; then
8640 ac_header_preproc=yes
8641else
8642 echo "$as_me: failed program was:" >&5
8643sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ac_header_preproc=no
8646fi
8647
8648rm -f conftest.err conftest.$ac_ext
8649{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8650echo "${ECHO_T}$ac_header_preproc" >&6; }
8651
8652# So? What about this header?
8653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8654 yes:no: )
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8659 ac_header_preproc=yes
8660 ;;
8661 no:yes:* )
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8674 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008675## ------------------------------------ ##
8676## Report this to http://llvm.org/bugs/ ##
8677## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678_ASBOX
8679 ) | sed "s/^/$as_me: WARNING: /" >&2
8680 ;;
8681esac
8682{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686else
8687 eval "$as_ac_Header=\$ac_header_preproc"
8688fi
8689ac_res=`eval echo '${'$as_ac_Header'}'`
8690 { echo "$as_me:$LINENO: result: $ac_res" >&5
8691echo "${ECHO_T}$ac_res" >&6; }
8692
8693fi
8694if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008695 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008697_ACEOF
8698
8699fi
8700
8701done
8702
Reid Spencera773bd52006-08-04 18:18:08 +00008703# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008704if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008705 enableval=$enable_ltdl_install;
8706fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008707
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008709
8710
8711if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008712 INSTALL_LTDL_TRUE=
8713 INSTALL_LTDL_FALSE='#'
8714else
8715 INSTALL_LTDL_TRUE='#'
8716 INSTALL_LTDL_FALSE=
8717fi
8718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008719
8720
8721if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008722 CONVENIENCE_LTDL_TRUE=
8723 CONVENIENCE_LTDL_FALSE='#'
8724else
8725 CONVENIENCE_LTDL_TRUE='#'
8726 CONVENIENCE_LTDL_FALSE=
8727fi
8728
8729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008730{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8731echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008732library_names_spec=
8733libname_spec='lib$name'
8734soname_spec=
8735shrext_cmds=".so"
8736postinstall_cmds=
8737postuninstall_cmds=
8738finish_cmds=
8739finish_eval=
8740shlibpath_var=
8741shlibpath_overrides_runpath=unknown
8742version_type=none
8743dynamic_linker="$host_os ld.so"
8744sys_lib_dlsearch_path_spec="/lib /usr/lib"
8745if test "$GCC" = yes; then
8746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8747 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8748 # if the path contains ";" then we assume it to be the separator
8749 # otherwise default to the standard path separator (i.e. ":") - it is
8750 # assumed that no part of a normal pathname contains ";" but that should
8751 # okay in the real world where ";" in dirpaths is itself problematic.
8752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8753 else
8754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8755 fi
8756else
8757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8758fi
8759need_lib_prefix=unknown
8760hardcode_into_libs=no
8761
8762# when you set need_version to no, make sure it does not cause -set_version
8763# flags to be left without arguments
8764need_version=unknown
8765
8766case $host_os in
8767aix3*)
8768 version_type=linux
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8770 shlibpath_var=LIBPATH
8771
8772 # AIX 3 has no versioning support, so we append a major version to the name.
8773 soname_spec='${libname}${release}${shared_ext}$major'
8774 ;;
8775
8776aix4* | aix5*)
8777 version_type=linux
8778 need_lib_prefix=no
8779 need_version=no
8780 hardcode_into_libs=yes
8781 if test "$host_cpu" = ia64; then
8782 # AIX 5 supports IA64
8783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8784 shlibpath_var=LD_LIBRARY_PATH
8785 else
8786 # With GCC up to 2.95.x, collect2 would create an import file
8787 # for dependence libraries. The import file would start with
8788 # the line `#! .'. This would cause the generated library to
8789 # depend on `.', always an invalid library. This was fixed in
8790 # development snapshots of GCC prior to 3.0.
8791 case $host_os in
8792 aix4 | aix4.[01] | aix4.[01].*)
8793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8794 echo ' yes '
8795 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8796 :
8797 else
8798 can_build_shared=no
8799 fi
8800 ;;
8801 esac
8802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8803 # soname into executable. Probably we can add versioning support to
8804 # collect2, so additional links can be useful in future.
8805 if test "$aix_use_runtimelinking" = yes; then
8806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8807 # instead of lib<name>.a to let people know that these are not
8808 # typical AIX shared libraries.
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810 else
8811 # We preserve .a as extension for shared libraries through AIX4.2
8812 # and later when we are not doing run time linking.
8813 library_names_spec='${libname}${release}.a $libname.a'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 fi
8816 shlibpath_var=LIBPATH
8817 fi
8818 ;;
8819
8820amigaos*)
8821 library_names_spec='$libname.ixlibrary $libname.a'
8822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8823 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'
8824 ;;
8825
8826beos*)
8827 library_names_spec='${libname}${shared_ext}'
8828 dynamic_linker="$host_os ld.so"
8829 shlibpath_var=LIBRARY_PATH
8830 ;;
8831
8832bsdi[45]*)
8833 version_type=linux
8834 need_version=no
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8840 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8841 # the default ld.so.conf also contains /usr/contrib/lib and
8842 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8843 # libtool to hard-code these into programs
8844 ;;
8845
8846cygwin* | mingw* | pw32*)
8847 version_type=windows
8848 shrext_cmds=".dll"
8849 need_version=no
8850 need_lib_prefix=no
8851
8852 case $GCC,$host_os in
8853 yes,cygwin* | yes,mingw* | yes,pw32*)
8854 library_names_spec='$libname.dll.a'
8855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8856 postinstall_cmds='base_file=`basename \${file}`~
8857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8858 dldir=$destdir/`dirname \$dlpath`~
8859 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008860 $install_prog $dir/$dlname \$dldir/$dlname~
8861 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8863 dlpath=$dir/\$dldll~
8864 $rm \$dlpath'
8865 shlibpath_overrides_runpath=yes
8866
8867 case $host_os in
8868 cygwin*)
8869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8872 ;;
8873 mingw*)
8874 # MinGW DLLs use traditional 'lib' prefix
8875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8877 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8878 # It is most probably a Windows format PATH printed by
8879 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8880 # path with ; separators, and with drive letters. We can handle the
8881 # drive letters (cygwin fileutils understands them), so leave them,
8882 # especially as we might pass files found there to a mingw objdump,
8883 # which wouldn't understand a cygwinified path. Ahh.
8884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8885 else
8886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8887 fi
8888 ;;
8889 pw32*)
8890 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008891 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 +00008892 ;;
8893 esac
8894 ;;
8895
8896 *)
8897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8898 ;;
8899 esac
8900 dynamic_linker='Win32 ld.exe'
8901 # FIXME: first we should search . and the directory the executable is in
8902 shlibpath_var=PATH
8903 ;;
8904
8905darwin* | rhapsody*)
8906 dynamic_linker="$host_os dyld"
8907 version_type=darwin
8908 need_lib_prefix=no
8909 need_version=no
8910 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8911 soname_spec='${libname}${release}${major}$shared_ext'
8912 shlibpath_overrides_runpath=yes
8913 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008914 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008915 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8916 if test "$GCC" = yes; then
8917 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"`
8918 else
8919 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8920 fi
8921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8922 ;;
8923
8924dgux*)
8925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8929 soname_spec='${libname}${release}${shared_ext}$major'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 ;;
8932
Eric Christopher360fa9a2011-10-26 00:42:12 +00008933freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008934 dynamic_linker=no
8935 ;;
8936
8937kfreebsd*-gnu)
8938 version_type=linux
8939 need_lib_prefix=no
8940 need_version=no
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=no
8945 hardcode_into_libs=yes
8946 dynamic_linker='GNU ld.so'
8947 ;;
8948
Reid Spencera773bd52006-08-04 18:18:08 +00008949freebsd* | dragonfly*)
8950 # DragonFly does not have aout. When/if they implement a new
8951 # versioning mechanism, adjust this.
8952 if test -x /usr/bin/objformat; then
8953 objformat=`/usr/bin/objformat`
8954 else
8955 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008956 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008957 *) objformat=elf ;;
8958 esac
8959 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008960 version_type=freebsd-$objformat
8961 case $version_type in
8962 freebsd-elf*)
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8964 need_version=no
8965 need_lib_prefix=no
8966 ;;
8967 freebsd-*)
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8969 need_version=yes
8970 ;;
8971 esac
8972 shlibpath_var=LD_LIBRARY_PATH
8973 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008974 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008975 shlibpath_overrides_runpath=yes
8976 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008977 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008978 shlibpath_overrides_runpath=yes
8979 hardcode_into_libs=yes
8980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008983 shlibpath_overrides_runpath=no
8984 hardcode_into_libs=yes
8985 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008986 freebsd*) # from 4.6 on
8987 shlibpath_overrides_runpath=yes
8988 hardcode_into_libs=yes
8989 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008990 esac
8991 ;;
8992
8993gnu*)
8994 version_type=linux
8995 need_lib_prefix=no
8996 need_version=no
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 hardcode_into_libs=yes
9001 ;;
9002
9003hpux9* | hpux10* | hpux11*)
9004 # Give a soname corresponding to the major version so that dld.sl refuses to
9005 # link against other versions.
9006 version_type=sunos
9007 need_lib_prefix=no
9008 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009009 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009010 ia64*)
9011 shrext_cmds='.so'
9012 hardcode_into_libs=yes
9013 dynamic_linker="$host_os dld.so"
9014 shlibpath_var=LD_LIBRARY_PATH
9015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 if test "X$HPUX_IA64_MODE" = X32; then
9019 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9020 else
9021 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9022 fi
9023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9024 ;;
9025 hppa*64*)
9026 shrext_cmds='.sl'
9027 hardcode_into_libs=yes
9028 dynamic_linker="$host_os dld.sl"
9029 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9035 ;;
9036 *)
9037 shrext_cmds='.sl'
9038 dynamic_linker="$host_os dld.sl"
9039 shlibpath_var=SHLIB_PATH
9040 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 ;;
9044 esac
9045 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9046 postinstall_cmds='chmod 555 $lib'
9047 ;;
9048
Reid Spencera773bd52006-08-04 18:18:08 +00009049interix3*)
9050 version_type=linux
9051 need_lib_prefix=no
9052 need_version=no
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=no
9058 hardcode_into_libs=yes
9059 ;;
9060
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009061irix5* | irix6* | nonstopux*)
9062 case $host_os in
9063 nonstopux*) version_type=nonstopux ;;
9064 *)
9065 if test "$lt_cv_prog_gnu_ld" = yes; then
9066 version_type=linux
9067 else
9068 version_type=irix
9069 fi ;;
9070 esac
9071 need_lib_prefix=no
9072 need_version=no
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9075 case $host_os in
9076 irix5* | nonstopux*)
9077 libsuff= shlibsuff=
9078 ;;
9079 *)
9080 case $LD in # libtool.m4 will add one of these switches to LD
9081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9082 libsuff= shlibsuff= libmagic=32-bit;;
9083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9084 libsuff=32 shlibsuff=N32 libmagic=N32;;
9085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9087 *) libsuff= shlibsuff= libmagic=never-match;;
9088 esac
9089 ;;
9090 esac
9091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9092 shlibpath_overrides_runpath=no
9093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9095 hardcode_into_libs=yes
9096 ;;
9097
9098# No shared lib support for Linux oldld, aout, or coff.
9099linux*oldld* | linux*aout* | linux*coff*)
9100 dynamic_linker=no
9101 ;;
9102
9103# This must be Linux ELF.
9104linux*)
9105 version_type=linux
9106 need_lib_prefix=no
9107 need_version=no
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=no
9113 # This implies no fast_install, which is unacceptable.
9114 # Some rework will be needed to allow for fast_install
9115 # before this can be enabled.
9116 hardcode_into_libs=yes
9117
9118 # Append ld.so.conf contents to the search path
9119 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009120 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 +00009121 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9122 fi
9123
9124 # We used to test for /lib/ld.so.1 and disable shared libraries on
9125 # powerpc, because MkLinux only supported shared libraries with the
9126 # GNU dynamic linker. Since this was broken with cross compilers,
9127 # most powerpc-linux boxes support dynamic linking these days and
9128 # people can always --disable-shared, the test was removed, and we
9129 # assume the GNU/Linux dynamic linker is in use.
9130 dynamic_linker='GNU/Linux ld.so'
9131 ;;
9132
9133knetbsd*-gnu)
9134 version_type=linux
9135 need_lib_prefix=no
9136 need_version=no
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 shlibpath_overrides_runpath=no
9141 hardcode_into_libs=yes
9142 dynamic_linker='GNU ld.so'
9143 ;;
9144
9145netbsd*)
9146 version_type=sunos
9147 need_lib_prefix=no
9148 need_version=no
9149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9152 dynamic_linker='NetBSD (a.out) ld.so'
9153 else
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 dynamic_linker='NetBSD ld.elf_so'
9157 fi
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=yes
9160 hardcode_into_libs=yes
9161 ;;
9162
9163newsos6)
9164 version_type=linux
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 shlibpath_overrides_runpath=yes
9168 ;;
9169
9170nto-qnx*)
9171 version_type=linux
9172 need_lib_prefix=no
9173 need_version=no
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes
9178 ;;
9179
Eric Christopherb0f67592012-08-06 20:52:18 +00009180openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009181 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009182 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009183 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9185 case $host_os in
9186 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9187 *) need_version=no ;;
9188 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9193 case $host_os in
9194 openbsd2.[89] | openbsd2.[89].*)
9195 shlibpath_overrides_runpath=no
9196 ;;
9197 *)
9198 shlibpath_overrides_runpath=yes
9199 ;;
9200 esac
9201 else
9202 shlibpath_overrides_runpath=yes
9203 fi
9204 ;;
9205
9206os2*)
9207 libname_spec='$name'
9208 shrext_cmds=".dll"
9209 need_lib_prefix=no
9210 library_names_spec='$libname${shared_ext} $libname.a'
9211 dynamic_linker='OS/2 ld.exe'
9212 shlibpath_var=LIBPATH
9213 ;;
9214
9215osf3* | osf4* | osf5*)
9216 version_type=osf
9217 need_lib_prefix=no
9218 need_version=no
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9224 ;;
9225
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009226solaris*)
9227 version_type=linux
9228 need_lib_prefix=no
9229 need_version=no
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes
9234 hardcode_into_libs=yes
9235 # ldd complains unless libraries are executable
9236 postinstall_cmds='chmod +x $lib'
9237 ;;
9238
9239sunos4*)
9240 version_type=sunos
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=yes
9245 if test "$with_gnu_ld" = yes; then
9246 need_lib_prefix=no
9247 fi
9248 need_version=yes
9249 ;;
9250
Reid Spencera773bd52006-08-04 18:18:08 +00009251sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009252 version_type=linux
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 case $host_vendor in
9257 sni)
9258 shlibpath_overrides_runpath=no
9259 need_lib_prefix=no
9260 export_dynamic_flag_spec='${wl}-Blargedynsym'
9261 runpath_var=LD_RUN_PATH
9262 ;;
9263 siemens)
9264 need_lib_prefix=no
9265 ;;
9266 motorola)
9267 need_lib_prefix=no
9268 need_version=no
9269 shlibpath_overrides_runpath=no
9270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9271 ;;
9272 esac
9273 ;;
9274
9275sysv4*MP*)
9276 if test -d /usr/nec ;then
9277 version_type=linux
9278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9279 soname_spec='$libname${shared_ext}.$major'
9280 shlibpath_var=LD_LIBRARY_PATH
9281 fi
9282 ;;
9283
Reid Spencera773bd52006-08-04 18:18:08 +00009284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9285 version_type=freebsd-elf
9286 need_lib_prefix=no
9287 need_version=no
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 hardcode_into_libs=yes
9292 if test "$with_gnu_ld" = yes; then
9293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9294 shlibpath_overrides_runpath=no
9295 else
9296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9297 shlibpath_overrides_runpath=yes
9298 case $host_os in
9299 sco3.2v5*)
9300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9301 ;;
9302 esac
9303 fi
9304 sys_lib_dlsearch_path_spec='/usr/lib'
9305 ;;
9306
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307uts4*)
9308 version_type=linux
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 ;;
9313
9314*)
9315 dynamic_linker=no
9316 ;;
9317esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009318{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9319echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009320test "$dynamic_linker" = no && can_build_shared=no
9321
Reid Spencera773bd52006-08-04 18:18:08 +00009322variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9323if test "$GCC" = yes; then
9324 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9325fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009326
Reid Spencera773bd52006-08-04 18:18:08 +00009327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009328{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9329echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9330if test "${libltdl_cv_shlibext+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332else
9333
9334module=yes
9335eval libltdl_cv_shlibext=$shrext_cmds
9336
9337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009338{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9339echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009340if test -n "$libltdl_cv_shlibext"; then
9341
9342cat >>confdefs.h <<_ACEOF
9343#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9344_ACEOF
9345
9346fi
9347
9348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009349{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9350echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9351if test "${libltdl_cv_shlibpath_var+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009353else
9354 libltdl_cv_shlibpath_var="$shlibpath_var"
9355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009356{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9357echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009358if test -n "$libltdl_cv_shlibpath_var"; then
9359
9360cat >>confdefs.h <<_ACEOF
9361#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9362_ACEOF
9363
9364fi
9365
9366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009367{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9368echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9369if test "${libltdl_cv_sys_search_path+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371else
9372 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009374{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9375echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009376if test -n "$libltdl_cv_sys_search_path"; then
9377 sys_search_path=
9378 for dir in $libltdl_cv_sys_search_path; do
9379 if test -z "$sys_search_path"; then
9380 sys_search_path="$dir"
9381 else
9382 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9383 fi
9384 done
9385
9386cat >>confdefs.h <<_ACEOF
9387#define LTDL_SYSSEARCHPATH "$sys_search_path"
9388_ACEOF
9389
9390fi
9391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009392{ echo "$as_me:$LINENO: checking for objdir" >&5
9393echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9394if test "${libltdl_cv_objdir+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009396else
9397 libltdl_cv_objdir="$objdir"
9398 if test -n "$objdir"; then
9399 :
9400 else
9401 rm -f .libs 2>/dev/null
9402 mkdir .libs 2>/dev/null
9403 if test -d .libs; then
9404 libltdl_cv_objdir=.libs
9405 else
9406 # MS-DOS does not allow filenames that begin with a dot.
9407 libltdl_cv_objdir=_libs
9408 fi
9409 rmdir .libs 2>/dev/null
9410 fi
9411
9412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009413{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9414echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009415
9416cat >>confdefs.h <<_ACEOF
9417#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9418_ACEOF
9419
9420
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009421
9422
9423
9424
9425# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009426{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9427echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9428if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430else
9431
9432# These are sane defaults that work on at least a few old systems.
9433# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9434
9435# Character class describing NM global symbol codes.
9436symcode='[BCDEGRST]'
9437
9438# Regexp to match symbols that can be accessed directly from C.
9439sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9440
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009441# Transform an extracted symbol line into a proper C declaration
9442lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9443
9444# Transform an extracted symbol line into symbol name and symbol address
9445lt_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'"
9446
9447# Define system-specific variables.
9448case $host_os in
9449aix*)
9450 symcode='[BCDT]'
9451 ;;
9452cygwin* | mingw* | pw32*)
9453 symcode='[ABCDGISTW]'
9454 ;;
9455hpux*) # Its linker distinguishes data from code symbols
9456 if test "$host_cpu" = ia64; then
9457 symcode='[ABCDEGRST]'
9458 fi
9459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9460 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'"
9461 ;;
9462linux*)
9463 if test "$host_cpu" = ia64; then
9464 symcode='[ABCDGIRSTW]'
9465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9466 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'"
9467 fi
9468 ;;
9469irix* | nonstopux*)
9470 symcode='[BCDEGRST]'
9471 ;;
9472osf*)
9473 symcode='[BCDEGQRST]'
9474 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009475solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009476 symcode='[BDRT]'
9477 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009478sco3.2v5*)
9479 symcode='[DT]'
9480 ;;
9481sysv4.2uw2*)
9482 symcode='[DT]'
9483 ;;
9484sysv5* | sco5v6* | unixware* | OpenUNIX*)
9485 symcode='[ABDT]'
9486 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487sysv4)
9488 symcode='[DFNSTU]'
9489 ;;
9490esac
9491
9492# Handle CRLF in mingw tool chain
9493opt_cr=
9494case $build_os in
9495mingw*)
9496 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9497 ;;
9498esac
9499
9500# If we're using GNU nm, then use its standard symbol codes.
9501case `$NM -V 2>&1` in
9502*GNU* | *'with BFD'*)
9503 symcode='[ABCDGIRSTW]' ;;
9504esac
9505
9506# Try without a prefix undercore, then with it.
9507for ac_symprfx in "" "_"; do
9508
Reid Spencera773bd52006-08-04 18:18:08 +00009509 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9510 symxfrm="\\1 $ac_symprfx\\2 \\2"
9511
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009513 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 +00009514
9515 # Check to see that the pipe works correctly.
9516 pipe_works=no
9517
9518 rm -f conftest*
9519 cat > conftest.$ac_ext <<EOF
9520#ifdef __cplusplus
9521extern "C" {
9522#endif
9523char nm_test_var;
9524void nm_test_func(){}
9525#ifdef __cplusplus
9526}
9527#endif
9528int main(){nm_test_var='a';nm_test_func();return(0);}
9529EOF
9530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009532 (eval $ac_compile) 2>&5
9533 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009536 # Now try to grab the symbols.
9537 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009538 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 +00009539 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9540 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009543 # Try sorting and uniquifying the output.
9544 if sort "$nlist" | uniq > "$nlist"T; then
9545 mv -f "$nlist"T "$nlist"
9546 else
9547 rm -f "$nlist"T
9548 fi
9549
9550 # Make sure that we snagged all the symbols we need.
9551 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9552 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9553 cat <<EOF > conftest.$ac_ext
9554#ifdef __cplusplus
9555extern "C" {
9556#endif
9557
9558EOF
9559 # Now generate the symbol file.
9560 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9561
9562 cat <<EOF >> conftest.$ac_ext
9563#if defined (__STDC__) && __STDC__
9564# define lt_ptr_t void *
9565#else
9566# define lt_ptr_t char *
9567# define const
9568#endif
9569
9570/* The mapping between symbol names and symbols. */
9571const struct {
9572 const char *name;
9573 lt_ptr_t address;
9574}
9575lt_preloaded_symbols[] =
9576{
9577EOF
9578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9579 cat <<\EOF >> conftest.$ac_ext
9580 {0, (lt_ptr_t) 0}
9581};
9582
9583#ifdef __cplusplus
9584}
9585#endif
9586EOF
9587 # Now try linking the two files.
9588 mv conftest.$ac_objext conftstm.$ac_objext
9589 lt_save_LIBS="$LIBS"
9590 lt_save_CFLAGS="$CFLAGS"
9591 LIBS="conftstm.$ac_objext"
9592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009594 (eval $ac_link) 2>&5
9595 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009598 pipe_works=yes
9599 fi
9600 LIBS="$lt_save_LIBS"
9601 CFLAGS="$lt_save_CFLAGS"
9602 else
9603 echo "cannot find nm_test_func in $nlist" >&5
9604 fi
9605 else
9606 echo "cannot find nm_test_var in $nlist" >&5
9607 fi
9608 else
9609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9610 fi
9611 else
9612 echo "$progname: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 fi
9615 rm -f conftest* conftst*
9616
9617 # Do not use the global_symbol_pipe unless it works.
9618 if test "$pipe_works" = yes; then
9619 break
9620 else
9621 lt_cv_sys_global_symbol_pipe=
9622 fi
9623done
9624
9625fi
9626
9627if test -z "$lt_cv_sys_global_symbol_pipe"; then
9628 lt_cv_sys_global_symbol_to_cdecl=
9629fi
9630if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009631 { echo "$as_me:$LINENO: result: failed" >&5
9632echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009634 { echo "$as_me:$LINENO: result: ok" >&5
9635echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636fi
9637
9638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009639{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9640echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9641if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643else
9644 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9645 libltdl_cv_preloaded_symbols=yes
9646 else
9647 libltdl_cv_preloaded_symbols=no
9648 fi
9649
9650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009651{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9652echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009653if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009655cat >>confdefs.h <<\_ACEOF
9656#define HAVE_PRELOADED_SYMBOLS 1
9657_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009658
9659fi
9660
9661LIBADD_DL=
9662
9663ac_ext=c
9664ac_cpp='$CPP $CPPFLAGS'
9665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9667ac_compiler_gnu=$ac_cv_c_compiler_gnu
9668
9669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009670{ echo "$as_me:$LINENO: checking for shl_load" >&5
9671echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9672if test "${ac_cv_func_shl_load+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674else
9675 cat >conftest.$ac_ext <<_ACEOF
9676/* confdefs.h. */
9677_ACEOF
9678cat confdefs.h >>conftest.$ac_ext
9679cat >>conftest.$ac_ext <<_ACEOF
9680/* end confdefs.h. */
9681/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9683#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009685/* System header to define __stub macros and hopefully few prototypes,
9686 which can conflict with char shl_load (); below.
9687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9688 <limits.h> exists even on freestanding compilers. */
9689
9690#ifdef __STDC__
9691# include <limits.h>
9692#else
9693# include <assert.h>
9694#endif
9695
9696#undef shl_load
9697
9698/* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9701#ifdef __cplusplus
9702extern "C"
9703#endif
9704char shl_load ();
9705/* The GNU C library defines this for functions which it implements
9706 to always fail with ENOSYS. Some functions are actually named
9707 something starting with __ and the normal name is an alias. */
9708#if defined __stub_shl_load || defined __stub___shl_load
9709choke me
9710#endif
9711
9712int
9713main ()
9714{
9715return shl_load ();
9716 ;
9717 return 0;
9718}
9719_ACEOF
9720rm -f conftest.$ac_objext conftest$ac_exeext
9721if { (ac_try="$ac_link"
9722case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725esac
9726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_func_shl_load=yes
9755else
9756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 ac_cv_func_shl_load=no
9760fi
9761
9762rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764fi
9765{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9766echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9767if test $ac_cv_func_shl_load = yes; then
9768
9769cat >>confdefs.h <<\_ACEOF
9770#define HAVE_SHL_LOAD 1
9771_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772
9773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009774 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9775echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9776if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009778else
9779 ac_check_lib_save_LIBS=$LIBS
9780LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009781cat >conftest.$ac_ext <<_ACEOF
9782/* confdefs.h. */
9783_ACEOF
9784cat confdefs.h >>conftest.$ac_ext
9785cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786/* end confdefs.h. */
9787
Reid Spencera773bd52006-08-04 18:18:08 +00009788/* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791#ifdef __cplusplus
9792extern "C"
9793#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794char shl_load ();
9795int
9796main ()
9797{
Reid Spencera773bd52006-08-04 18:18:08 +00009798return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799 ;
9800 return 0;
9801}
9802_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009803rm -f conftest.$ac_objext conftest$ac_exeext
9804if { (ac_try="$ac_link"
9805case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_link") 2>conftest.er1
9811 ac_status=$?
9812 grep -v '^ *+' conftest.er1 >conftest.err
9813 rm -f conftest.er1
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818 { (case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821esac
9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_try") 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837 ac_cv_lib_dld_shl_load=yes
9838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009839 echo "$as_me: failed program was:" >&5
9840sed 's/^/| /' conftest.$ac_ext >&5
9841
9842 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009844
Bill Wendlingebcceee2009-04-18 11:20:33 +00009845rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009846 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847LIBS=$ac_check_lib_save_LIBS
9848fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009849{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9850echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9851if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009853cat >>confdefs.h <<\_ACEOF
9854#define HAVE_SHL_LOAD 1
9855_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856
9857 LIBADD_DL="$LIBADD_DL -ldld"
9858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009859 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9860echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9861if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863else
9864 ac_check_lib_save_LIBS=$LIBS
9865LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009866cat >conftest.$ac_ext <<_ACEOF
9867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871/* end confdefs.h. */
9872
Reid Spencera773bd52006-08-04 18:18:08 +00009873/* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876#ifdef __cplusplus
9877extern "C"
9878#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879char dlopen ();
9880int
9881main ()
9882{
Reid Spencera773bd52006-08-04 18:18:08 +00009883return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884 ;
9885 return 0;
9886}
9887_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009888rm -f conftest.$ac_objext conftest$ac_exeext
9889if { (ac_try="$ac_link"
9890case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009922 ac_cv_lib_dl_dlopen=yes
9923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009924 echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
9927 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009929
Bill Wendlingebcceee2009-04-18 11:20:33 +00009930rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009931 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932LIBS=$ac_check_lib_save_LIBS
9933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009934{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9935echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9936if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009938cat >>confdefs.h <<\_ACEOF
9939#define HAVE_LIBDL 1
9940_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941
9942 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009944 cat >conftest.$ac_ext <<_ACEOF
9945/* confdefs.h. */
9946_ACEOF
9947cat confdefs.h >>conftest.$ac_ext
9948cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949/* end confdefs.h. */
9950#if HAVE_DLFCN_H
9951# include <dlfcn.h>
9952#endif
9953
9954int
9955main ()
9956{
9957dlopen(0, 0);
9958 ;
9959 return 0;
9960}
9961_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009962rm -f conftest.$ac_objext conftest$ac_exeext
9963if { (ac_try="$ac_link"
9964case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
9968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_link") 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9977 { (case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980esac
9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_try") 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990esac
9991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_LIBDL 1
9999_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000 libltdl_cv_func_dlopen="yes"
10001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010002 echo "$as_me: failed program was:" >&5
10003sed 's/^/| /' conftest.$ac_ext >&5
10004
10005 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10006echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10007if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009else
10010 ac_check_lib_save_LIBS=$LIBS
10011LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010012cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h. */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017/* end confdefs.h. */
10018
Reid Spencera773bd52006-08-04 18:18:08 +000010019/* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022#ifdef __cplusplus
10023extern "C"
10024#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010025char dlopen ();
10026int
10027main ()
10028{
Reid Spencera773bd52006-08-04 18:18:08 +000010029return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030 ;
10031 return 0;
10032}
10033_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (ac_try="$ac_link"
10036case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039esac
10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_link") 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049 { (case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_try") 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10062esac
10063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010068 ac_cv_lib_svld_dlopen=yes
10069else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010070 echo "$as_me: failed program was:" >&5
10071sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010075
Bill Wendlingebcceee2009-04-18 11:20:33 +000010076rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010077 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078LIBS=$ac_check_lib_save_LIBS
10079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010080{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10081echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10082if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010084cat >>confdefs.h <<\_ACEOF
10085#define HAVE_LIBDL 1
10086_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087
10088 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010090 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10092if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094else
10095 ac_check_lib_save_LIBS=$LIBS
10096LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010097cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010102/* end confdefs.h. */
10103
Reid Spencera773bd52006-08-04 18:18:08 +000010104/* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107#ifdef __cplusplus
10108extern "C"
10109#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110char dld_link ();
10111int
10112main ()
10113{
Reid Spencera773bd52006-08-04 18:18:08 +000010114return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115 ;
10116 return 0;
10117}
10118_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010119rm -f conftest.$ac_objext conftest$ac_exeext
10120if { (ac_try="$ac_link"
10121case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137esac
10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153 ac_cv_lib_dld_dld_link=yes
10154else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010155 echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010160
Bill Wendlingebcceee2009-04-18 11:20:33 +000010161rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010162 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163LIBS=$ac_check_lib_save_LIBS
10164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010165{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10166echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10167if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010169cat >>confdefs.h <<\_ACEOF
10170#define HAVE_DLD 1
10171_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172
10173 LIBADD_DL="$LIBADD_DL -ldld"
10174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010175 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10176echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10177if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179else
10180 cat >conftest.$ac_ext <<_ACEOF
10181/* confdefs.h. */
10182_ACEOF
10183cat confdefs.h >>conftest.$ac_ext
10184cat >>conftest.$ac_ext <<_ACEOF
10185/* end confdefs.h. */
10186/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10188#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010190/* System header to define __stub macros and hopefully few prototypes,
10191 which can conflict with char _dyld_func_lookup (); below.
10192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10193 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010195#ifdef __STDC__
10196# include <limits.h>
10197#else
10198# include <assert.h>
10199#endif
10200
10201#undef _dyld_func_lookup
10202
10203/* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10206#ifdef __cplusplus
10207extern "C"
10208#endif
10209char _dyld_func_lookup ();
10210/* The GNU C library defines this for functions which it implements
10211 to always fail with ENOSYS. Some functions are actually named
10212 something starting with __ and the normal name is an alias. */
10213#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10214choke me
10215#endif
10216
10217int
10218main ()
10219{
10220return _dyld_func_lookup ();
10221 ;
10222 return 0;
10223}
10224_ACEOF
10225rm -f conftest.$ac_objext conftest$ac_exeext
10226if { (ac_try="$ac_link"
10227case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10230esac
10231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_link") 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10240 { (case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243esac
10244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_try") 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_cv_func__dyld_func_lookup=yes
10260else
10261 echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
10264 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265fi
Reid Spencera773bd52006-08-04 18:18:08 +000010266
Bill Wendlingebcceee2009-04-18 11:20:33 +000010267rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010268 conftest$ac_exeext conftest.$ac_ext
10269fi
10270{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10271echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10272if test $ac_cv_func__dyld_func_lookup = yes; then
10273
10274cat >>confdefs.h <<\_ACEOF
10275#define HAVE_DYLD 1
10276_ACEOF
10277
10278fi
10279
10280
10281fi
10282
10283
10284fi
10285
10286
10287fi
10288
10289rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291
10292fi
10293
10294
10295fi
10296
10297
10298fi
10299
10300
10301if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10302then
10303 lt_save_LIBS="$LIBS"
10304 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010305
10306for ac_func in dlerror
10307do
10308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313else
10314 cat >conftest.$ac_ext <<_ACEOF
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10322#define $ac_func innocuous_$ac_func
10323
10324/* System header to define __stub macros and hopefully few prototypes,
10325 which can conflict with char $ac_func (); below.
10326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10327 <limits.h> exists even on freestanding compilers. */
10328
10329#ifdef __STDC__
10330# include <limits.h>
10331#else
10332# include <assert.h>
10333#endif
10334
10335#undef $ac_func
10336
10337/* Override any GCC internal prototype to avoid an error.
10338 Use char because int might match the return type of a GCC
10339 builtin and then its argument prototype would still apply. */
10340#ifdef __cplusplus
10341extern "C"
10342#endif
10343char $ac_func ();
10344/* The GNU C library defines this for functions which it implements
10345 to always fail with ENOSYS. Some functions are actually named
10346 something starting with __ and the normal name is an alias. */
10347#if defined __stub_$ac_func || defined __stub___$ac_func
10348choke me
10349#endif
10350
10351int
10352main ()
10353{
10354return $ac_func ();
10355 ;
10356 return 0;
10357}
10358_ACEOF
10359rm -f conftest.$ac_objext conftest$ac_exeext
10360if { (ac_try="$ac_link"
10361case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10364esac
10365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_link") 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10374 { (case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377esac
10378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_try") 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; } &&
10383 { ac_try='test -s conftest$ac_exeext'
10384 { (case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387esac
10388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_try") 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 eval "$as_ac_var=yes"
10394else
10395 echo "$as_me: failed program was:" >&5
10396sed 's/^/| /' conftest.$ac_ext >&5
10397
10398 eval "$as_ac_var=no"
10399fi
10400
10401rm -f core conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10403fi
10404ac_res=`eval echo '${'$as_ac_var'}'`
10405 { echo "$as_me:$LINENO: result: $ac_res" >&5
10406echo "${ECHO_T}$ac_res" >&6; }
10407if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410_ACEOF
10411
10412fi
10413done
10414
10415 LIBS="$lt_save_LIBS"
10416fi
10417ac_ext=c
10418ac_cpp='$CPP $CPPFLAGS'
10419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10421ac_compiler_gnu=$ac_cv_c_compiler_gnu
10422
10423
10424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010425{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10426echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10427if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429else
10430 ac_cv_sys_symbol_underscore=no
10431 cat > conftest.$ac_ext <<EOF
10432void nm_test_func(){}
10433int main(){nm_test_func;return 0;}
10434EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436 (eval $ac_compile) 2>&5
10437 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440 # Now try to grab the symbols.
10441 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442 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 +000010443 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10444 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 # See whether the symbols have a leading underscore.
10448 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10449 ac_cv_sys_symbol_underscore=yes
10450 else
10451 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10452 :
10453 else
10454 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10455 fi
10456 fi
10457 else
10458 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10459 fi
10460 else
10461 echo "configure: failed program was:" >&5
10462 cat conftest.c >&5
10463 fi
10464 rm -rf conftest*
10465
10466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010467{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10468echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469
10470
10471if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10472 if test x"$libltdl_cv_func_dlopen" = xyes ||
10473 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010474 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10475echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10476if test "${libltdl_cv_need_uscore+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478else
10479 libltdl_cv_need_uscore=unknown
10480 save_LIBS="$LIBS"
10481 LIBS="$LIBS $LIBADD_DL"
10482 if test "$cross_compiling" = yes; then :
10483 libltdl_cv_need_uscore=cross
10484else
10485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10486 lt_status=$lt_dlunknown
10487 cat > conftest.$ac_ext <<EOF
Dmitri Gribenkoa7303362013-01-09 15:25:30 +000010488#line 10488 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010489#include "confdefs.h"
10490
10491#if HAVE_DLFCN_H
10492#include <dlfcn.h>
10493#endif
10494
10495#include <stdio.h>
10496
10497#ifdef RTLD_GLOBAL
10498# define LT_DLGLOBAL RTLD_GLOBAL
10499#else
10500# ifdef DL_GLOBAL
10501# define LT_DLGLOBAL DL_GLOBAL
10502# else
10503# define LT_DLGLOBAL 0
10504# endif
10505#endif
10506
10507/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10508 find out it does not work in some platform. */
10509#ifndef LT_DLLAZY_OR_NOW
10510# ifdef RTLD_LAZY
10511# define LT_DLLAZY_OR_NOW RTLD_LAZY
10512# else
10513# ifdef DL_LAZY
10514# define LT_DLLAZY_OR_NOW DL_LAZY
10515# else
10516# ifdef RTLD_NOW
10517# define LT_DLLAZY_OR_NOW RTLD_NOW
10518# else
10519# ifdef DL_NOW
10520# define LT_DLLAZY_OR_NOW DL_NOW
10521# else
10522# define LT_DLLAZY_OR_NOW 0
10523# endif
10524# endif
10525# endif
10526# endif
10527#endif
10528
10529#ifdef __cplusplus
10530extern "C" void exit (int);
10531#endif
10532
10533void fnord() { int i=42;}
10534int main ()
10535{
10536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10537 int status = $lt_dlunknown;
10538
10539 if (self)
10540 {
10541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10542 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10543 /* dlclose (self); */
10544 }
Reid Spencera773bd52006-08-04 18:18:08 +000010545 else
10546 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547
10548 exit (status);
10549}
10550EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552 (eval $ac_link) 2>&5
10553 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010556 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557 lt_status=$?
10558 case x$lt_status in
10559 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10560 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010561 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562 esac
10563 else :
10564 # compilation failed
10565
10566 fi
10567fi
10568rm -fr conftest*
10569
10570 LIBS="$save_LIBS"
10571
10572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010573{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10574echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575 fi
10576fi
10577
10578if test x"$libltdl_cv_need_uscore" = xyes; then
10579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010580cat >>confdefs.h <<\_ACEOF
10581#define NEED_USCORE 1
10582_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583
10584fi
10585
10586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010587{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10588echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10589if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591else
10592 # PORTME does your system automatically load deplibs for dlopen?
10593 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10594 # For now, we just catch OSes we know something about -- in the
10595 # future, we'll try test this programmatically.
10596 libltdl_cv_sys_dlopen_deplibs=unknown
10597 case "$host_os" in
10598 aix3*|aix4.1.*|aix4.2.*)
10599 # Unknown whether this is true for these versions of AIX, but
10600 # we want this `case' here to explicitly catch those versions.
10601 libltdl_cv_sys_dlopen_deplibs=unknown
10602 ;;
10603 aix[45]*)
10604 libltdl_cv_sys_dlopen_deplibs=yes
10605 ;;
10606 darwin*)
10607 # Assuming the user has installed a libdl from somewhere, this is true
10608 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10609 libltdl_cv_sys_dlopen_deplibs=yes
10610 ;;
10611 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10612 # GNU and its variants, using gnu ld.so (Glibc)
10613 libltdl_cv_sys_dlopen_deplibs=yes
10614 ;;
10615 hpux10*|hpux11*)
10616 libltdl_cv_sys_dlopen_deplibs=yes
10617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010618 interix*)
10619 libltdl_cv_sys_dlopen_deplibs=yes
10620 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010621 irix[12345]*|irix6.[01]*)
10622 # Catch all versions of IRIX before 6.2, and indicate that we don't
10623 # know how it worked for any of those versions.
10624 libltdl_cv_sys_dlopen_deplibs=unknown
10625 ;;
10626 irix*)
10627 # The case above catches anything before 6.2, and it's known that
10628 # at 6.2 and later dlopen does load deplibs.
10629 libltdl_cv_sys_dlopen_deplibs=yes
10630 ;;
10631 netbsd*)
10632 libltdl_cv_sys_dlopen_deplibs=yes
10633 ;;
10634 openbsd*)
10635 libltdl_cv_sys_dlopen_deplibs=yes
10636 ;;
10637 osf[1234]*)
10638 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10639 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010640 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641 libltdl_cv_sys_dlopen_deplibs=no
10642 ;;
10643 osf5.0|osf5.0a|osf5.1)
10644 # dlopen *does* load deplibs and with the right loader patch applied
10645 # it even uses RPATH in a shared library to search for shared objects
10646 # that the library depends on, but there's no easy way to know if that
10647 # patch is installed. Since this is the case, all we can really
10648 # say is unknown -- it depends on the patch being installed. If
10649 # it is, this changes to `yes'. Without it, it would be `no'.
10650 libltdl_cv_sys_dlopen_deplibs=unknown
10651 ;;
10652 osf*)
10653 # the two cases above should catch all versions of osf <= 5.1. Read
10654 # the comments above for what we know about them.
10655 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10656 # is used to find them so we can finally say `yes'.
10657 libltdl_cv_sys_dlopen_deplibs=yes
10658 ;;
10659 solaris*)
10660 libltdl_cv_sys_dlopen_deplibs=yes
10661 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10663 libltdl_cv_sys_dlopen_deplibs=yes
10664 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665 esac
10666
10667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010668{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10669echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010672cat >>confdefs.h <<\_ACEOF
10673#define LTDL_DLOPEN_DEPLIBS 1
10674_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010675
10676fi
10677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010678
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010680do
10681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687fi
10688ac_res=`eval echo '${'$as_ac_Header'}'`
10689 { echo "$as_me:$LINENO: result: $ac_res" >&5
10690echo "${ECHO_T}$ac_res" >&6; }
10691else
10692 # Is the header compilable?
10693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10695cat >conftest.$ac_ext <<_ACEOF
10696/* confdefs.h. */
10697_ACEOF
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h. */
10701$ac_includes_default
10702#include <$ac_header>
10703_ACEOF
10704rm -f conftest.$ac_objext
10705if { (ac_try="$ac_compile"
10706case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 { (case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
10723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_try") 2>&5
10725 ac_status=$?
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest.$ac_objext'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732esac
10733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_header_compiler=yes
10739else
10740 echo "$as_me: failed program was:" >&5
10741sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_header_compiler=no
10744fi
10745
10746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748echo "${ECHO_T}$ac_header_compiler" >&6; }
10749
10750# Is the header present?
10751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10753cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
10759#include <$ac_header>
10760_ACEOF
10761if { (ac_try="$ac_cpp conftest.$ac_ext"
10762case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765esac
10766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } >/dev/null; then
10774 if test -s conftest.err; then
10775 ac_cpp_err=$ac_c_preproc_warn_flag
10776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10777 else
10778 ac_cpp_err=
10779 fi
10780else
10781 ac_cpp_err=yes
10782fi
10783if test -z "$ac_cpp_err"; then
10784 ac_header_preproc=yes
10785else
10786 echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 ac_header_preproc=no
10790fi
10791
10792rm -f conftest.err conftest.$ac_ext
10793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794echo "${ECHO_T}$ac_header_preproc" >&6; }
10795
10796# So? What about this header?
10797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10798 yes:no: )
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10803 ac_header_preproc=yes
10804 ;;
10805 no:yes:* )
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10818 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010819## ------------------------------------ ##
10820## Report this to http://llvm.org/bugs/ ##
10821## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010822_ASBOX
10823 ) | sed "s/^/$as_me: WARNING: /" >&2
10824 ;;
10825esac
10826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 eval "$as_ac_Header=\$ac_header_preproc"
10832fi
10833ac_res=`eval echo '${'$as_ac_Header'}'`
10834 { echo "$as_me:$LINENO: result: $ac_res" >&5
10835echo "${ECHO_T}$ac_res" >&6; }
10836
10837fi
10838if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841_ACEOF
10842
10843fi
10844
10845done
10846
10847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010848{ echo "$as_me:$LINENO: checking for error_t" >&5
10849echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10850if test "${ac_cv_type_error_t+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 cat >conftest.$ac_ext <<_ACEOF
10854/* confdefs.h. */
10855_ACEOF
10856cat confdefs.h >>conftest.$ac_ext
10857cat >>conftest.$ac_ext <<_ACEOF
10858/* end confdefs.h. */
10859#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860# include <argz.h>
10861#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010862
10863typedef error_t ac__type_new_;
10864int
10865main ()
10866{
10867if ((ac__type_new_ *) 0)
10868 return 0;
10869if (sizeof (ac__type_new_))
10870 return 0;
10871 ;
10872 return 0;
10873}
10874_ACEOF
10875rm -f conftest.$ac_objext
10876if { (ac_try="$ac_compile"
10877case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_compile") 2>conftest.er1
10883 ac_status=$?
10884 grep -v '^ *+' conftest.er1 >conftest.err
10885 rm -f conftest.er1
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest.$ac_objext'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903esac
10904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_type_error_t=yes
10910else
10911 echo "$as_me: failed program was:" >&5
10912sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 ac_cv_type_error_t=no
10915fi
10916
10917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918fi
10919{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10920echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10921if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922
10923cat >>confdefs.h <<_ACEOF
10924#define HAVE_ERROR_T 1
10925_ACEOF
10926
10927
10928else
10929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010930cat >>confdefs.h <<\_ACEOF
10931#define error_t int
10932_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933
10934fi
10935
10936
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010937
10938
10939
10940
10941
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010943do
10944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10945{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10947if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949else
10950 cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h. */
10956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10958#define $ac_func innocuous_$ac_func
10959
10960/* System header to define __stub macros and hopefully few prototypes,
10961 which can conflict with char $ac_func (); below.
10962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10963 <limits.h> exists even on freestanding compilers. */
10964
10965#ifdef __STDC__
10966# include <limits.h>
10967#else
10968# include <assert.h>
10969#endif
10970
10971#undef $ac_func
10972
10973/* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
10976#ifdef __cplusplus
10977extern "C"
10978#endif
10979char $ac_func ();
10980/* The GNU C library defines this for functions which it implements
10981 to always fail with ENOSYS. Some functions are actually named
10982 something starting with __ and the normal name is an alias. */
10983#if defined __stub_$ac_func || defined __stub___$ac_func
10984choke me
10985#endif
10986
10987int
10988main ()
10989{
10990return $ac_func ();
10991 ;
10992 return 0;
10993}
10994_ACEOF
10995rm -f conftest.$ac_objext conftest$ac_exeext
10996if { (ac_try="$ac_link"
10997case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11000esac
11001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_link") 2>conftest.er1
11003 ac_status=$?
11004 grep -v '^ *+' conftest.er1 >conftest.err
11005 rm -f conftest.er1
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013esac
11014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023esac
11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 eval "$as_ac_var=yes"
11030else
11031 echo "$as_me: failed program was:" >&5
11032sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 eval "$as_ac_var=no"
11035fi
11036
11037rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039fi
11040ac_res=`eval echo '${'$as_ac_var'}'`
11041 { echo "$as_me:$LINENO: result: $ac_res" >&5
11042echo "${ECHO_T}$ac_res" >&6; }
11043if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046_ACEOF
11047
11048fi
11049done
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011070
11071
11072
11073
11074
11075
11076
11077
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11079 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011080do
11081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087fi
11088ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result: $ac_res" >&5
11090echo "${ECHO_T}$ac_res" >&6; }
11091else
11092 # Is the header compilable?
11093{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h. */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h. */
11101$ac_includes_default
11102#include <$ac_header>
11103_ACEOF
11104rm -f conftest.$ac_objext
11105if { (ac_try="$ac_compile"
11106case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_compile") 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11132esac
11133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_header_compiler=yes
11139else
11140 echo "$as_me: failed program was:" >&5
11141sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 ac_header_compiler=no
11144fi
11145
11146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148echo "${ECHO_T}$ac_header_compiler" >&6; }
11149
11150# Is the header present?
11151{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153cat >conftest.$ac_ext <<_ACEOF
11154/* confdefs.h. */
11155_ACEOF
11156cat confdefs.h >>conftest.$ac_ext
11157cat >>conftest.$ac_ext <<_ACEOF
11158/* end confdefs.h. */
11159#include <$ac_header>
11160_ACEOF
11161if { (ac_try="$ac_cpp conftest.$ac_ext"
11162case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165esac
11166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
11176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11177 else
11178 ac_cpp_err=
11179 fi
11180else
11181 ac_cpp_err=yes
11182fi
11183if test -z "$ac_cpp_err"; then
11184 ac_header_preproc=yes
11185else
11186 echo "$as_me: failed program was:" >&5
11187sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_header_preproc=no
11190fi
11191
11192rm -f conftest.err conftest.$ac_ext
11193{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194echo "${ECHO_T}$ac_header_preproc" >&6; }
11195
11196# So? What about this header?
11197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198 yes:no: )
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11204 ;;
11205 no:yes:* )
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011219## ------------------------------------ ##
11220## Report this to http://llvm.org/bugs/ ##
11221## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011222_ASBOX
11223 ) | sed "s/^/$as_me: WARNING: /" >&2
11224 ;;
11225esac
11226{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231 eval "$as_ac_Header=\$ac_header_preproc"
11232fi
11233ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235echo "${ECHO_T}$ac_res" >&6; }
11236
11237fi
11238if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241_ACEOF
11242
11243fi
11244
11245done
11246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011247
11248
11249
11250
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011252do
11253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259fi
11260ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262echo "${ECHO_T}$ac_res" >&6; }
11263else
11264 # Is the header compilable?
11265{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11267cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273$ac_includes_default
11274#include <$ac_header>
11275_ACEOF
11276rm -f conftest.$ac_objext
11277if { (ac_try="$ac_compile"
11278case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281esac
11282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_compile") 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_try") 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304esac
11305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_header_compiler=yes
11311else
11312 echo "$as_me: failed program was:" >&5
11313sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 ac_header_compiler=no
11316fi
11317
11318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11320echo "${ECHO_T}$ac_header_compiler" >&6; }
11321
11322# Is the header present?
11323{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11325cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331#include <$ac_header>
11332_ACEOF
11333if { (ac_try="$ac_cpp conftest.$ac_ext"
11334case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } >/dev/null; then
11346 if test -s conftest.err; then
11347 ac_cpp_err=$ac_c_preproc_warn_flag
11348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349 else
11350 ac_cpp_err=
11351 fi
11352else
11353 ac_cpp_err=yes
11354fi
11355if test -z "$ac_cpp_err"; then
11356 ac_header_preproc=yes
11357else
11358 echo "$as_me: failed program was:" >&5
11359sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 ac_header_preproc=no
11362fi
11363
11364rm -f conftest.err conftest.$ac_ext
11365{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11366echo "${ECHO_T}$ac_header_preproc" >&6; }
11367
11368# So? What about this header?
11369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370 yes:no: )
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11375 ac_header_preproc=yes
11376 ;;
11377 no:yes:* )
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011391## ------------------------------------ ##
11392## Report this to http://llvm.org/bugs/ ##
11393## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011394_ASBOX
11395 ) | sed "s/^/$as_me: WARNING: /" >&2
11396 ;;
11397esac
11398{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 eval "$as_ac_Header=\$ac_header_preproc"
11404fi
11405ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407echo "${ECHO_T}$ac_res" >&6; }
11408
11409fi
11410if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011412#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413_ACEOF
11414
11415fi
11416
11417done
11418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011419
11420
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011422do
11423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11429fi
11430ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432echo "${ECHO_T}$ac_res" >&6; }
11433else
11434 # Is the header compilable?
11435{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11437cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
11443$ac_includes_default
11444#include <$ac_header>
11445_ACEOF
11446rm -f conftest.$ac_objext
11447if { (ac_try="$ac_compile"
11448case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11451esac
11452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_compile") 2>conftest.er1
11454 ac_status=$?
11455 grep -v '^ *+' conftest.er1 >conftest.err
11456 rm -f conftest.er1
11457 cat conftest.err >&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461 { (case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464esac
11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_try") 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11474esac
11475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_try") 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_header_compiler=yes
11481else
11482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_header_compiler=no
11486fi
11487
11488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490echo "${ECHO_T}$ac_header_compiler" >&6; }
11491
11492# Is the header present?
11493{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11495cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501#include <$ac_header>
11502_ACEOF
11503if { (ac_try="$ac_cpp conftest.$ac_ext"
11504case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507esac
11508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11510 ac_status=$?
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } >/dev/null; then
11516 if test -s conftest.err; then
11517 ac_cpp_err=$ac_c_preproc_warn_flag
11518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11519 else
11520 ac_cpp_err=
11521 fi
11522else
11523 ac_cpp_err=yes
11524fi
11525if test -z "$ac_cpp_err"; then
11526 ac_header_preproc=yes
11527else
11528 echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
11530
11531 ac_header_preproc=no
11532fi
11533
11534rm -f conftest.err conftest.$ac_ext
11535{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536echo "${ECHO_T}$ac_header_preproc" >&6; }
11537
11538# So? What about this header?
11539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540 yes:no: )
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11546 ;;
11547 no:yes:* )
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011561## ------------------------------------ ##
11562## Report this to http://llvm.org/bugs/ ##
11563## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011564_ASBOX
11565 ) | sed "s/^/$as_me: WARNING: /" >&2
11566 ;;
11567esac
11568{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
11573 eval "$as_ac_Header=\$ac_header_preproc"
11574fi
11575ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577echo "${ECHO_T}$ac_res" >&6; }
11578
11579fi
11580if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583_ACEOF
11584 break
11585fi
11586
11587done
11588
11589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011590
11591
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011593do
11594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599else
11600 cat >conftest.$ac_ext <<_ACEOF
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
11606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608#define $ac_func innocuous_$ac_func
11609
11610/* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11614
11615#ifdef __STDC__
11616# include <limits.h>
11617#else
11618# include <assert.h>
11619#endif
11620
11621#undef $ac_func
11622
11623/* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626#ifdef __cplusplus
11627extern "C"
11628#endif
11629char $ac_func ();
11630/* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633#if defined __stub_$ac_func || defined __stub___$ac_func
11634choke me
11635#endif
11636
11637int
11638main ()
11639{
11640return $ac_func ();
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest$ac_exeext
11646if { (ac_try="$ac_link"
11647case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11660 { (case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663esac
11664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_try") 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
11676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 eval "$as_ac_var=yes"
11680else
11681 echo "$as_me: failed program was:" >&5
11682sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 eval "$as_ac_var=no"
11685fi
11686
11687rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689fi
11690ac_res=`eval echo '${'$as_ac_var'}'`
11691 { echo "$as_me:$LINENO: result: $ac_res" >&5
11692echo "${ECHO_T}$ac_res" >&6; }
11693if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011696_ACEOF
11697 break
11698fi
11699done
11700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011701
11702
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011704do
11705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710else
11711 cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11719#define $ac_func innocuous_$ac_func
11720
11721/* System header to define __stub macros and hopefully few prototypes,
11722 which can conflict with char $ac_func (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11725
11726#ifdef __STDC__
11727# include <limits.h>
11728#else
11729# include <assert.h>
11730#endif
11731
11732#undef $ac_func
11733
11734/* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11737#ifdef __cplusplus
11738extern "C"
11739#endif
11740char $ac_func ();
11741/* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744#if defined __stub_$ac_func || defined __stub___$ac_func
11745choke me
11746#endif
11747
11748int
11749main ()
11750{
11751return $ac_func ();
11752 ;
11753 return 0;
11754}
11755_ACEOF
11756rm -f conftest.$ac_objext conftest$ac_exeext
11757if { (ac_try="$ac_link"
11758case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761esac
11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } &&
11780 { ac_try='test -s conftest$ac_exeext'
11781 { (case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_try") 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 eval "$as_ac_var=no"
11796fi
11797
11798rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800fi
11801ac_res=`eval echo '${'$as_ac_var'}'`
11802 { echo "$as_me:$LINENO: result: $ac_res" >&5
11803echo "${ECHO_T}$ac_res" >&6; }
11804if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807_ACEOF
11808 break
11809fi
11810done
11811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011812
11813
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011815do
11816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830#define $ac_func innocuous_$ac_func
11831
11832/* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11836
11837#ifdef __STDC__
11838# include <limits.h>
11839#else
11840# include <assert.h>
11841#endif
11842
11843#undef $ac_func
11844
11845/* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11848#ifdef __cplusplus
11849extern "C"
11850#endif
11851char $ac_func ();
11852/* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855#if defined __stub_$ac_func || defined __stub___$ac_func
11856choke me
11857#endif
11858
11859int
11860main ()
11861{
11862return $ac_func ();
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext conftest$ac_exeext
11868if { (ac_try="$ac_link"
11869case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872esac
11873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 eval "$as_ac_var=no"
11907fi
11908
11909rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911fi
11912ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914echo "${ECHO_T}$ac_res" >&6; }
11915if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918_ACEOF
11919 break
11920fi
11921done
11922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011923
11924
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011926do
11927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11928{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11930if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932else
11933 cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
11939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11941#define $ac_func innocuous_$ac_func
11942
11943/* System header to define __stub macros and hopefully few prototypes,
11944 which can conflict with char $ac_func (); below.
11945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11946 <limits.h> exists even on freestanding compilers. */
11947
11948#ifdef __STDC__
11949# include <limits.h>
11950#else
11951# include <assert.h>
11952#endif
11953
11954#undef $ac_func
11955
11956/* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959#ifdef __cplusplus
11960extern "C"
11961#endif
11962char $ac_func ();
11963/* The GNU C library defines this for functions which it implements
11964 to always fail with ENOSYS. Some functions are actually named
11965 something starting with __ and the normal name is an alias. */
11966#if defined __stub_$ac_func || defined __stub___$ac_func
11967choke me
11968#endif
11969
11970int
11971main ()
11972{
11973return $ac_func ();
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext conftest$ac_exeext
11979if { (ac_try="$ac_link"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_link") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006esac
12007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 eval "$as_ac_var=yes"
12013else
12014 echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 eval "$as_ac_var=no"
12018fi
12019
12020rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022fi
12023ac_res=`eval echo '${'$as_ac_var'}'`
12024 { echo "$as_me:$LINENO: result: $ac_res" >&5
12025echo "${ECHO_T}$ac_res" >&6; }
12026if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029_ACEOF
12030
12031fi
12032done
12033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012034
12035
12036
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012038do
12039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12040{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12042if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044else
12045 cat >conftest.$ac_ext <<_ACEOF
12046/* confdefs.h. */
12047_ACEOF
12048cat confdefs.h >>conftest.$ac_ext
12049cat >>conftest.$ac_ext <<_ACEOF
12050/* end confdefs.h. */
12051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12053#define $ac_func innocuous_$ac_func
12054
12055/* System header to define __stub macros and hopefully few prototypes,
12056 which can conflict with char $ac_func (); below.
12057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12058 <limits.h> exists even on freestanding compilers. */
12059
12060#ifdef __STDC__
12061# include <limits.h>
12062#else
12063# include <assert.h>
12064#endif
12065
12066#undef $ac_func
12067
12068/* Override any GCC internal prototype to avoid an error.
12069 Use char because int might match the return type of a GCC
12070 builtin and then its argument prototype would still apply. */
12071#ifdef __cplusplus
12072extern "C"
12073#endif
12074char $ac_func ();
12075/* The GNU C library defines this for functions which it implements
12076 to always fail with ENOSYS. Some functions are actually named
12077 something starting with __ and the normal name is an alias. */
12078#if defined __stub_$ac_func || defined __stub___$ac_func
12079choke me
12080#endif
12081
12082int
12083main ()
12084{
12085return $ac_func ();
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090rm -f conftest.$ac_objext conftest$ac_exeext
12091if { (ac_try="$ac_link"
12092case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_link") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12105 { (case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108esac
12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_try") 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
12115 { (case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118esac
12119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_try") 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12125else
12126 echo "$as_me: failed program was:" >&5
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 eval "$as_ac_var=no"
12130fi
12131
12132rm -f core conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134fi
12135ac_res=`eval echo '${'$as_ac_var'}'`
12136 { echo "$as_me:$LINENO: result: $ac_res" >&5
12137echo "${ECHO_T}$ac_res" >&6; }
12138if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012141_ACEOF
12142
12143fi
12144done
12145
12146
Douglas Gregor01746742009-05-11 18:05:52 +000012147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12149echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012150
Reid Spencer86901802004-12-08 23:07:27 +000012151ICC=no
12152IXX=no
12153case $CC in
12154 icc*|icpc*)
12155 ICC=yes
12156 IXX=yes
12157 ;;
12158 *)
12159 ;;
12160esac
12161
Duraid Madina937c60a2006-02-15 07:57:42 +000012162if test "$GCC" != "yes" && test "$ICC" != "yes"
12163then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012164 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12165echo "$as_me: error: gcc|icc required but not found" >&2;}
12166 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012167fi
12168
12169if test "$GXX" != "yes" && test "$IXX" != "yes"
12170then
Eric Christopher73e36da2010-12-08 02:02:14 +000012171 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12172echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012173 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012174fi
12175
Reid Spencer86901802004-12-08 23:07:27 +000012176if test "$GCC" = "yes"
12177then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012178 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012179#if !defined(__GNUC__) || __GNUC__ < 3
12180#error Unsupported GCC version
12181#endif
12182
12183_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012184rm -f conftest.$ac_objext
12185if { (ac_try="$ac_compile"
12186case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189esac
12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_compile") 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest.$ac_objext'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012220 echo "$as_me: failed program was:" >&5
12221sed 's/^/| /' conftest.$ac_ext >&5
12222
12223 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12224echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12225 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012227
Chris Lattner399c7c72008-02-05 19:43:53 +000012228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012229fi
12230
12231if test -z "$llvm_cv_gnu_make_command"
12232then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012233 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12234echo "$as_me: error: GNU Make required but not found" >&2;}
12235 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012236fi
12237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238{ echo "$as_me:$LINENO: result: ok" >&5
12239echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012241{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12242echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012243NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012244
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012245NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012246
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012247COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12248
12249{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12250echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012251
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012253
12254{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12255echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12256if test "${ac_cv_lib_m_sin+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012258else
12259 ac_check_lib_save_LIBS=$LIBS
12260LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012261cat >conftest.$ac_ext <<_ACEOF
12262/* confdefs.h. */
12263_ACEOF
12264cat confdefs.h >>conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012266/* end confdefs.h. */
12267
Reid Spencera773bd52006-08-04 18:18:08 +000012268/* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012271#ifdef __cplusplus
12272extern "C"
12273#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012274char sin ();
12275int
12276main ()
12277{
Reid Spencera773bd52006-08-04 18:18:08 +000012278return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012279 ;
12280 return 0;
12281}
12282_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012283rm -f conftest.$ac_objext conftest$ac_exeext
12284if { (ac_try="$ac_link"
12285case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288esac
12289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_link") 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311esac
12312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012317 ac_cv_lib_m_sin=yes
12318else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012319 echo "$as_me: failed program was:" >&5
12320sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012324
Bill Wendlingebcceee2009-04-18 11:20:33 +000012325rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012326 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012327LIBS=$ac_check_lib_save_LIBS
12328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012329{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12330echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12331if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012332 cat >>confdefs.h <<_ACEOF
12333#define HAVE_LIBM 1
12334_ACEOF
12335
12336 LIBS="-lm $LIBS"
12337
12338fi
12339
Jeff Cohen28783c32007-01-12 18:22:38 +000012340if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012341
12342{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12343echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12344if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012346else
12347 ac_check_lib_save_LIBS=$LIBS
12348LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012349cat >conftest.$ac_ext <<_ACEOF
12350/* confdefs.h. */
12351_ACEOF
12352cat confdefs.h >>conftest.$ac_ext
12353cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012354/* end confdefs.h. */
12355
Reid Spencer48fdf912006-06-01 19:03:21 +000012356
Reid Spencer484fc8e2006-06-01 16:55:59 +000012357int
12358main ()
12359{
Reid Spencera773bd52006-08-04 18:18:08 +000012360return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012361 ;
12362 return 0;
12363}
12364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012365rm -f conftest.$ac_objext conftest$ac_exeext
12366if { (ac_try="$ac_link"
12367case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_link") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
12390 { (case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12393esac
12394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_try") 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012399 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012401 echo "$as_me: failed program was:" >&5
12402sed 's/^/| /' conftest.$ac_ext >&5
12403
12404 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406
Bill Wendlingebcceee2009-04-18 11:20:33 +000012407rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012408 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012409LIBS=$ac_check_lib_save_LIBS
12410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012411{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12412echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12413if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012414 cat >>confdefs.h <<_ACEOF
12415#define HAVE_LIBIMAGEHLP 1
12416_ACEOF
12417
12418 LIBS="-limagehlp $LIBS"
12419
12420fi
12421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012422
12423{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12424echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12425if test "${ac_cv_lib_psapi_main+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012427else
12428 ac_check_lib_save_LIBS=$LIBS
12429LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012430cat >conftest.$ac_ext <<_ACEOF
12431/* confdefs.h. */
12432_ACEOF
12433cat confdefs.h >>conftest.$ac_ext
12434cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012435/* end confdefs.h. */
12436
Reid Spencer48fdf912006-06-01 19:03:21 +000012437
Reid Spencer484fc8e2006-06-01 16:55:59 +000012438int
12439main ()
12440{
Reid Spencera773bd52006-08-04 18:18:08 +000012441return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012442 ;
12443 return 0;
12444}
12445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012446rm -f conftest.$ac_objext conftest$ac_exeext
12447if { (ac_try="$ac_link"
12448case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12451esac
12452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_link") 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12461 { (case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464esac
12465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_try") 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12474esac
12475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_try") 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012480 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012482 echo "$as_me: failed program was:" >&5
12483sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012487
Bill Wendlingebcceee2009-04-18 11:20:33 +000012488rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012489 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012490LIBS=$ac_check_lib_save_LIBS
12491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012492{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12493echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12494if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012495 cat >>confdefs.h <<_ACEOF
12496#define HAVE_LIBPSAPI 1
12497_ACEOF
12498
12499 LIBS="-lpsapi $LIBS"
12500
12501fi
12502
12503fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012505{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12506echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12507if test "${ac_cv_search_dlopen+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012509else
12510 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012511cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012516/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012517
Reid Spencera773bd52006-08-04 18:18:08 +000012518/* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012521#ifdef __cplusplus
12522extern "C"
12523#endif
John Criswell7a73b802003-06-30 21:59:07 +000012524char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012525int
12526main ()
12527{
Reid Spencera773bd52006-08-04 18:18:08 +000012528return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012529 ;
12530 return 0;
12531}
12532_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012533for ac_lib in '' dl; do
12534 if test -z "$ac_lib"; then
12535 ac_res="none required"
12536 else
12537 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012539 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012540 rm -f conftest.$ac_objext conftest$ac_exeext
12541if { (ac_try="$ac_link"
12542case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545esac
12546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_link") 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12555 { (case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558esac
12559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_try") 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest$ac_exeext'
12565 { (case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568esac
12569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012574 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575else
12576 echo "$as_me: failed program was:" >&5
12577sed 's/^/| /' conftest.$ac_ext >&5
12578
12579
John Criswell7a73b802003-06-30 21:59:07 +000012580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012581
Bill Wendlingebcceee2009-04-18 11:20:33 +000012582rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012583 conftest$ac_exeext
12584 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012585 break
John Criswell7a73b802003-06-30 21:59:07 +000012586fi
Reid Spencera773bd52006-08-04 18:18:08 +000012587done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012588if test "${ac_cv_search_dlopen+set}" = set; then
12589 :
Reid Spencera773bd52006-08-04 18:18:08 +000012590else
12591 ac_cv_search_dlopen=no
12592fi
12593rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012594LIBS=$ac_func_search_save_LIBS
12595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12597echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012598ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012599if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012602cat >>confdefs.h <<\_ACEOF
12603#define HAVE_DLOPEN 1
12604_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012605
12606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012607 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12608echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012609fi
12610
12611
Chandler Carruth73c35d82013-01-04 23:19:55 +000012612{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12613echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12614if test "${ac_cv_search_clock_gettime+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616else
12617 ac_func_search_save_LIBS=$LIBS
12618cat >conftest.$ac_ext <<_ACEOF
12619/* confdefs.h. */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h. */
12624
12625/* Override any GCC internal prototype to avoid an error.
12626 Use char because int might match the return type of a GCC
12627 builtin and then its argument prototype would still apply. */
12628#ifdef __cplusplus
12629extern "C"
12630#endif
12631char clock_gettime ();
12632int
12633main ()
12634{
12635return clock_gettime ();
12636 ;
12637 return 0;
12638}
12639_ACEOF
12640for ac_lib in '' rt; do
12641 if test -z "$ac_lib"; then
12642 ac_res="none required"
12643 else
12644 ac_res=-l$ac_lib
12645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12646 fi
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648if { (ac_try="$ac_link"
12649case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652esac
12653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_link") 2>conftest.er1
12655 ac_status=$?
12656 grep -v '^ *+' conftest.er1 >conftest.err
12657 rm -f conftest.er1
12658 cat conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12662 { (case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665esac
12666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_try") 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest$ac_exeext'
12672 { (case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675esac
12676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_try") 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 ac_cv_search_clock_gettime=$ac_res
12682else
12683 echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686
12687fi
12688
12689rm -f core conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext
12691 if test "${ac_cv_search_clock_gettime+set}" = set; then
12692 break
12693fi
12694done
12695if test "${ac_cv_search_clock_gettime+set}" = set; then
12696 :
12697else
12698 ac_cv_search_clock_gettime=no
12699fi
12700rm conftest.$ac_ext
12701LIBS=$ac_func_search_save_LIBS
12702fi
12703{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12704echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12705ac_res=$ac_cv_search_clock_gettime
12706if test "$ac_res" != no; then
12707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12708
Chandler Carruth73c35d82013-01-04 23:19:55 +000012709fi
12710
12711
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012712if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012713 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12714echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12715if test "${ac_cv_search_ffi_call+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012717else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012718 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012719cat >conftest.$ac_ext <<_ACEOF
12720/* confdefs.h. */
12721_ACEOF
12722cat confdefs.h >>conftest.$ac_ext
12723cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012724/* end confdefs.h. */
12725
12726/* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729#ifdef __cplusplus
12730extern "C"
12731#endif
12732char ffi_call ();
12733int
12734main ()
12735{
12736return ffi_call ();
12737 ;
12738 return 0;
12739}
12740_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012741for ac_lib in '' ffi; do
12742 if test -z "$ac_lib"; then
12743 ac_res="none required"
12744 else
12745 ac_res=-l$ac_lib
12746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12747 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012748 rm -f conftest.$ac_objext conftest$ac_exeext
12749if { (ac_try="$ac_link"
12750case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_link") 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766esac
12767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest$ac_exeext'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776esac
12777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012782 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012783else
12784 echo "$as_me: failed program was:" >&5
12785sed 's/^/| /' conftest.$ac_ext >&5
12786
12787
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789
Bill Wendlingebcceee2009-04-18 11:20:33 +000012790rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012791 conftest$ac_exeext
12792 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012793 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012794fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012796if test "${ac_cv_search_ffi_call+set}" = set; then
12797 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012798else
12799 ac_cv_search_ffi_call=no
12800fi
12801rm conftest.$ac_ext
12802LIBS=$ac_func_search_save_LIBS
12803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012804{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12805echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012806ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012807if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810cat >>confdefs.h <<\_ACEOF
12811#define HAVE_FFI_CALL 1
12812_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012813
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012814else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012815 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12816echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12817 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012818fi
12819
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012820fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012822{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12823echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12824if test "${ac_cv_search_mallinfo+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012826else
12827 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012833/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012834
Reid Spencera773bd52006-08-04 18:18:08 +000012835/* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012838#ifdef __cplusplus
12839extern "C"
12840#endif
John Criswell7a73b802003-06-30 21:59:07 +000012841char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012842int
12843main ()
12844{
Reid Spencera773bd52006-08-04 18:18:08 +000012845return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012846 ;
12847 return 0;
12848}
12849_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012850for ac_lib in '' malloc; do
12851 if test -z "$ac_lib"; then
12852 ac_res="none required"
12853 else
12854 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012856 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012857 rm -f conftest.$ac_objext conftest$ac_exeext
12858if { (ac_try="$ac_link"
12859case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12862esac
12863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_link") 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12872 { (case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875esac
12876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_try") 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try='test -s conftest$ac_exeext'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012891 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012892else
12893 echo "$as_me: failed program was:" >&5
12894sed 's/^/| /' conftest.$ac_ext >&5
12895
12896
John Criswell7a73b802003-06-30 21:59:07 +000012897fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012898
Bill Wendlingebcceee2009-04-18 11:20:33 +000012899rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012900 conftest$ac_exeext
12901 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012902 break
John Criswell7a73b802003-06-30 21:59:07 +000012903fi
Reid Spencera773bd52006-08-04 18:18:08 +000012904done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012905if test "${ac_cv_search_mallinfo+set}" = set; then
12906 :
Reid Spencera773bd52006-08-04 18:18:08 +000012907else
12908 ac_cv_search_mallinfo=no
12909fi
12910rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012911LIBS=$ac_func_search_save_LIBS
12912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012913{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12914echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012915ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012916if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012919cat >>confdefs.h <<\_ACEOF
12920#define HAVE_MALLINFO 1
12921_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012922
12923fi
12924
12925
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012926if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927
12928{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12929echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12930if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012932else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012933 ac_check_lib_save_LIBS=$LIBS
12934LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012935cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h. */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012940/* end confdefs.h. */
12941
Reid Spencera773bd52006-08-04 18:18:08 +000012942/* Override any GCC internal prototype to avoid an error.
12943 Use char because int might match the return type of a GCC
12944 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012945#ifdef __cplusplus
12946extern "C"
12947#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012948char pthread_mutex_init ();
12949int
12950main ()
12951{
Reid Spencera773bd52006-08-04 18:18:08 +000012952return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012953 ;
12954 return 0;
12955}
12956_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012957rm -f conftest.$ac_objext conftest$ac_exeext
12958if { (ac_try="$ac_link"
12959case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962esac
12963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_link") 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
12976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_try") 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest$ac_exeext'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985esac
12986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012991 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012992else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012998
Bill Wendlingebcceee2009-04-18 11:20:33 +000012999rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013001LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13004echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13005if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013006 cat >>confdefs.h <<_ACEOF
13007#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013008_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013009
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013010 LIBS="-lpthread $LIBS"
13011
Reid Spencer22177fe2005-07-12 15:24:20 +000013012fi
13013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013014 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13015echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13016if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013018else
13019 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020cat >conftest.$ac_ext <<_ACEOF
13021/* confdefs.h. */
13022_ACEOF
13023cat confdefs.h >>conftest.$ac_ext
13024cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013025/* end confdefs.h. */
13026
Reid Spencera773bd52006-08-04 18:18:08 +000013027/* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013030#ifdef __cplusplus
13031extern "C"
13032#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013033char pthread_mutex_lock ();
13034int
13035main ()
13036{
Reid Spencera773bd52006-08-04 18:18:08 +000013037return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013038 ;
13039 return 0;
13040}
13041_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013042for ac_lib in '' pthread; do
13043 if test -z "$ac_lib"; then
13044 ac_res="none required"
13045 else
13046 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013048 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013049 rm -f conftest.$ac_objext conftest$ac_exeext
13050if { (ac_try="$ac_link"
13051case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054esac
13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_link") 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_try") 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013083 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013084else
13085 echo "$as_me: failed program was:" >&5
13086sed 's/^/| /' conftest.$ac_ext >&5
13087
13088
Brian Gaeke5f268f72003-12-05 19:29:01 +000013089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013090
Bill Wendlingebcceee2009-04-18 11:20:33 +000013091rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092 conftest$ac_exeext
13093 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013094 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013095fi
Reid Spencera773bd52006-08-04 18:18:08 +000013096done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013097if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13098 :
Reid Spencera773bd52006-08-04 18:18:08 +000013099else
13100 ac_cv_search_pthread_mutex_lock=no
13101fi
13102rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013103LIBS=$ac_func_search_save_LIBS
13104fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13106echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013107ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013111cat >>confdefs.h <<\_ACEOF
13112#define HAVE_PTHREAD_MUTEX_LOCK 1
13113_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013114
13115fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013117 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13118echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13119if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013121else
13122 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123cat >conftest.$ac_ext <<_ACEOF
13124/* confdefs.h. */
13125_ACEOF
13126cat confdefs.h >>conftest.$ac_ext
13127cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013128/* end confdefs.h. */
13129
13130/* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13133#ifdef __cplusplus
13134extern "C"
13135#endif
13136char pthread_rwlock_init ();
13137int
13138main ()
13139{
13140return pthread_rwlock_init ();
13141 ;
13142 return 0;
13143}
13144_ACEOF
13145for ac_lib in '' pthread; do
13146 if test -z "$ac_lib"; then
13147 ac_res="none required"
13148 else
13149 ac_res=-l$ac_lib
13150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13151 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013152 rm -f conftest.$ac_objext conftest$ac_exeext
13153if { (ac_try="$ac_link"
13154case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157esac
13158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_link") 2>conftest.er1
13160 ac_status=$?
13161 grep -v '^ *+' conftest.er1 >conftest.err
13162 rm -f conftest.er1
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } &&
13166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13167 { (case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13170esac
13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_try") 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest$ac_exeext'
13177 { (case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180esac
13181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_try") 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013186 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187else
13188 echo "$as_me: failed program was:" >&5
13189sed 's/^/| /' conftest.$ac_ext >&5
13190
13191
Owen Andersonde8aed22009-06-16 18:20:20 +000013192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193
Owen Andersonde8aed22009-06-16 18:20:20 +000013194rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013195 conftest$ac_exeext
13196 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013197 break
13198fi
13199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13201 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013202else
13203 ac_cv_search_pthread_rwlock_init=no
13204fi
13205rm conftest.$ac_ext
13206LIBS=$ac_func_search_save_LIBS
13207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013208{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13209echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013210ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013214cat >>confdefs.h <<\_ACEOF
13215#define HAVE_PTHREAD_RWLOCK_INIT 1
13216_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013217
13218fi
13219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013220 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13221echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13222if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013224else
13225 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013226cat >conftest.$ac_ext <<_ACEOF
13227/* confdefs.h. */
13228_ACEOF
13229cat confdefs.h >>conftest.$ac_ext
13230cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013231/* end confdefs.h. */
13232
13233/* Override any GCC internal prototype to avoid an error.
13234 Use char because int might match the return type of a GCC
13235 builtin and then its argument prototype would still apply. */
13236#ifdef __cplusplus
13237extern "C"
13238#endif
13239char pthread_getspecific ();
13240int
13241main ()
13242{
13243return pthread_getspecific ();
13244 ;
13245 return 0;
13246}
13247_ACEOF
13248for ac_lib in '' pthread; do
13249 if test -z "$ac_lib"; then
13250 ac_res="none required"
13251 else
13252 ac_res=-l$ac_lib
13253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13254 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013255 rm -f conftest.$ac_objext conftest$ac_exeext
13256if { (ac_try="$ac_link"
13257case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260esac
13261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_link") 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270 { (case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_try") 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013289 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290else
13291 echo "$as_me: failed program was:" >&5
13292sed 's/^/| /' conftest.$ac_ext >&5
13293
13294
Owen Anderson27fcfe12009-06-25 23:10:26 +000013295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296
Owen Anderson27fcfe12009-06-25 23:10:26 +000013297rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013298 conftest$ac_exeext
13299 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013300 break
13301fi
13302done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13304 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013305else
13306 ac_cv_search_pthread_getspecific=no
13307fi
13308rm conftest.$ac_ext
13309LIBS=$ac_func_search_save_LIBS
13310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013311{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13312echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013313ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013317cat >>confdefs.h <<\_ACEOF
13318#define HAVE_PTHREAD_GETSPECIFIC 1
13319_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013320
13321fi
13322
Reid Spencer0a262ba2005-08-24 10:07:20 +000013323fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013324
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013325
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013326# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013327if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013328 withval=$with_udis86;
13329 USE_UDIS86=1
13330
13331 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013332 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013333 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13334 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013335
13336{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13337echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13338if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013340else
13341 ac_check_lib_save_LIBS=$LIBS
13342LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013343cat >conftest.$ac_ext <<_ACEOF
13344/* confdefs.h. */
13345_ACEOF
13346cat confdefs.h >>conftest.$ac_ext
13347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013348/* end confdefs.h. */
13349
13350/* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13353#ifdef __cplusplus
13354extern "C"
13355#endif
13356char ud_init ();
13357int
13358main ()
13359{
13360return ud_init ();
13361 ;
13362 return 0;
13363}
13364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365rm -f conftest.$ac_objext conftest$ac_exeext
13366if { (ac_try="$ac_link"
13367case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370esac
13371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_link") 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383esac
13384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest$ac_exeext'
13390 { (case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13393esac
13394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_try") 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013399 ac_cv_lib_udis86_ud_init=yes
13400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013401 echo "$as_me: failed program was:" >&5
13402sed 's/^/| /' conftest.$ac_ext >&5
13403
13404 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013406
Bill Wendlingebcceee2009-04-18 11:20:33 +000013407rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013408 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013409LIBS=$ac_check_lib_save_LIBS
13410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13412echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13413if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013414 cat >>confdefs.h <<_ACEOF
13415#define HAVE_LIBUDIS86 1
13416_ACEOF
13417
13418 LIBS="-ludis86 $LIBS"
13419
13420else
13421
13422 echo "Error! You need to have libudis86 around."
13423 exit -1
13424
13425fi
13426
13427
13428else
13429 USE_UDIS86=0
13430
13431fi
13432
13433
13434cat >>confdefs.h <<_ACEOF
13435#define USE_UDIS86 $USE_UDIS86
13436_ACEOF
13437
13438
13439
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013440# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013442 withval=$with_oprofile;
13443 USE_OPROFILE=1
13444
13445 case "$withval" in
13446 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013447 no) llvm_cv_oppath=
13448 USE_OPROFILE=0
13449 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013450 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013451 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013452 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013453 case $llvm_cv_os_type in
13454 Linux)
13455 if test -n "$llvm_cv_oppath" ; then
13456 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13457 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013458echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13459if test "${ac_cv_search_bfd_init+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013461else
13462 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013468/* end confdefs.h. */
13469
13470/* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13473#ifdef __cplusplus
13474extern "C"
13475#endif
13476char bfd_init ();
13477int
13478main ()
13479{
13480return bfd_init ();
13481 ;
13482 return 0;
13483}
13484_ACEOF
13485for ac_lib in '' bfd; do
13486 if test -z "$ac_lib"; then
13487 ac_res="none required"
13488 else
13489 ac_res=-l$ac_lib
13490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13491 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492 rm -f conftest.$ac_objext conftest$ac_exeext
13493if { (ac_try="$ac_link"
13494case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497esac
13498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507 { (case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510esac
13511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_try") 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013526 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013527else
13528 echo "$as_me: failed program was:" >&5
13529sed 's/^/| /' conftest.$ac_ext >&5
13530
13531
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013533
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013534rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013535 conftest$ac_exeext
13536 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013537 break
13538fi
13539done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013540if test "${ac_cv_search_bfd_init+set}" = set; then
13541 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013542else
13543 ac_cv_search_bfd_init=no
13544fi
13545rm conftest.$ac_ext
13546LIBS=$ac_func_search_save_LIBS
13547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013548{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13549echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013550ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013551if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13553
13554fi
13555
Eli Bendersky61b18512012-03-13 08:33:15 +000013556 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013557echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13558if test "${ac_cv_search_op_open_agent+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013560else
13561 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013562cat >conftest.$ac_ext <<_ACEOF
13563/* confdefs.h. */
13564_ACEOF
13565cat confdefs.h >>conftest.$ac_ext
13566cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013567/* end confdefs.h. */
13568
13569/* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13572#ifdef __cplusplus
13573extern "C"
13574#endif
13575char op_open_agent ();
13576int
13577main ()
13578{
13579return op_open_agent ();
13580 ;
13581 return 0;
13582}
13583_ACEOF
13584for ac_lib in '' opagent; do
13585 if test -z "$ac_lib"; then
13586 ac_res="none required"
13587 else
13588 ac_res=-l$ac_lib
13589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13590 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013591 rm -f conftest.$ac_objext conftest$ac_exeext
13592if { (ac_try="$ac_link"
13593case "(($ac_try" in
13594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 *) ac_try_echo=$ac_try;;
13596esac
13597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 (eval "$ac_link") 2>conftest.er1
13599 ac_status=$?
13600 grep -v '^ *+' conftest.er1 >conftest.err
13601 rm -f conftest.er1
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609esac
13610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13612 ac_status=$?
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; } &&
13615 { ac_try='test -s conftest$ac_exeext'
13616 { (case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619esac
13620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_try") 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013625 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013632
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013633rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013634 conftest$ac_exeext
13635 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013636 break
13637fi
13638done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013639if test "${ac_cv_search_op_open_agent+set}" = set; then
13640 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013641else
13642 ac_cv_search_op_open_agent=no
13643fi
13644rm conftest.$ac_ext
13645LIBS=$ac_func_search_save_LIBS
13646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013647{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13648echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013649ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013650if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13652
13653else
13654
Eli Bendersky61b18512012-03-13 08:33:15 +000013655 echo "Error! You need to have libopagent around."
13656 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013657
13658fi
13659
Eli Bendersky61b18512012-03-13 08:33:15 +000013660 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013661 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13662echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13663if test "${ac_cv_header_opagent_h+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13665fi
13666{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13667echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13668else
13669 # Is the header compilable?
13670{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13671echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13672cat >conftest.$ac_ext <<_ACEOF
13673/* confdefs.h. */
13674_ACEOF
13675cat confdefs.h >>conftest.$ac_ext
13676cat >>conftest.$ac_ext <<_ACEOF
13677/* end confdefs.h. */
13678$ac_includes_default
13679#include <opagent.h>
13680_ACEOF
13681rm -f conftest.$ac_objext
13682if { (ac_try="$ac_compile"
13683case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686esac
13687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_compile") 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } &&
13695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13696 { (case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13699esac
13700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_try") 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709esac
13710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_try") 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ac_header_compiler=yes
13716else
13717 echo "$as_me: failed program was:" >&5
13718sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013720 ac_header_compiler=no
13721fi
13722
13723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13725echo "${ECHO_T}$ac_header_compiler" >&6; }
13726
13727# Is the header present?
13728{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13729echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13730cat >conftest.$ac_ext <<_ACEOF
13731/* confdefs.h. */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
13735/* end confdefs.h. */
13736#include <opagent.h>
13737_ACEOF
13738if { (ac_try="$ac_cpp conftest.$ac_ext"
13739case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742esac
13743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } >/dev/null; then
13751 if test -s conftest.err; then
13752 ac_cpp_err=$ac_c_preproc_warn_flag
13753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13754 else
13755 ac_cpp_err=
13756 fi
13757else
13758 ac_cpp_err=yes
13759fi
13760if test -z "$ac_cpp_err"; then
13761 ac_header_preproc=yes
13762else
13763 echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766 ac_header_preproc=no
13767fi
13768
13769rm -f conftest.err conftest.$ac_ext
13770{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13771echo "${ECHO_T}$ac_header_preproc" >&6; }
13772
13773# So? What about this header?
13774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13775 yes:no: )
13776 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13777echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13779echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13780 ac_header_preproc=yes
13781 ;;
13782 no:yes:* )
13783 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13784echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13786echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13788echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13790echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13792echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13794echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13795 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013796## ------------------------------------ ##
13797## Report this to http://llvm.org/bugs/ ##
13798## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799_ASBOX
13800 ) | sed "s/^/$as_me: WARNING: /" >&2
13801 ;;
13802esac
13803{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13804echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13805if test "${ac_cv_header_opagent_h+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808 ac_cv_header_opagent_h=$ac_header_preproc
13809fi
13810{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13811echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13812
13813fi
13814if test $ac_cv_header_opagent_h = yes; then
13815 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013816else
13817
Eli Bendersky61b18512012-03-13 08:33:15 +000013818 echo "Error! You need to have opagent.h around."
13819 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013820
13821fi
13822
13823
Eli Bendersky61b18512012-03-13 08:33:15 +000013824 fi ;;
13825 *)
13826 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13827echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13828 { (exit 1); exit 1; }; } ;;
13829 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013830
13831else
13832
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013833 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013834
13835
13836fi
13837
13838
13839cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013840#define LLVM_USE_OPROFILE $USE_OPROFILE
13841_ACEOF
13842
13843
13844
13845# Check whether --with-intel-jitevents was given.
13846if test "${with_intel_jitevents+set}" = set; then
13847 withval=$with_intel_jitevents;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013848 case "$withval" in
13849 yes) USE_INTEL_JITEVENTS=1
13850;;
13851 no) USE_INTEL_JITEVENTS=0
13852;;
13853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13854echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13855 { (exit 1); exit 1; }; };;
13856 esac
13857
Eli Bendersky61b18512012-03-13 08:33:15 +000013858 case $llvm_cv_os_type in
13859 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013860 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13861echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13862 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013863 esac
13864
Eli Bendersky61b18512012-03-13 08:33:15 +000013865 case "$llvm_cv_target_arch" in
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013866 x86|x86_64) ;;
13867 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13868echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13869 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013870 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013871
13872else
13873
13874 USE_INTEL_JITEVENTS=0
13875
13876
13877fi
13878
13879
13880cat >>confdefs.h <<_ACEOF
13881#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013882_ACEOF
13883
13884
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013885for ac_prog in xml2-config
13886do
13887 # Extract the first word of "$ac_prog", so it can be a program name with args.
13888set dummy $ac_prog; ac_word=$2
13889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13891if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893else
13894 if test -n "$XML2CONFIG"; then
13895 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13896else
13897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898for as_dir in $PATH
13899do
13900 IFS=$as_save_IFS
13901 test -z "$as_dir" && as_dir=.
13902 for ac_exec_ext in '' $ac_executable_extensions; do
13903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13904 ac_cv_prog_XML2CONFIG="$ac_prog"
13905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13906 break 2
13907 fi
13908done
13909done
13910IFS=$as_save_IFS
13911
13912fi
13913fi
13914XML2CONFIG=$ac_cv_prog_XML2CONFIG
13915if test -n "$XML2CONFIG"; then
13916 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13917echo "${ECHO_T}$XML2CONFIG" >&6; }
13918else
13919 { echo "$as_me:$LINENO: result: no" >&5
13920echo "${ECHO_T}no" >&6; }
13921fi
13922
13923
13924 test -n "$XML2CONFIG" && break
13925done
13926
13927
13928{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13929echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13930if test "x$XML2CONFIG" = "x"; then
13931 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13932echo "${ECHO_T}xml2-config not found" >&6; }
13933else
13934 LIBXML2_INC=`$XML2CONFIG --cflags`
13935 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13936echo "${ECHO_T}$LIBXML2_INC" >&6; }
13937 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13938echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13939if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941else
13942 ac_check_lib_save_LIBS=$LIBS
13943LIBS="-lxml2 $LIBS"
13944cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h. */
13950
13951/* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
13954#ifdef __cplusplus
13955extern "C"
13956#endif
13957char xmlReadFile ();
13958int
13959main ()
13960{
13961return xmlReadFile ();
13962 ;
13963 return 0;
13964}
13965_ACEOF
13966rm -f conftest.$ac_objext conftest$ac_exeext
13967if { (ac_try="$ac_link"
13968case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13971esac
13972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_link") 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981 { (case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_try") 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
13991 { (case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994esac
13995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_lib_xml2_xmlReadFile=yes
14001else
14002 echo "$as_me: failed program was:" >&5
14003sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_cv_lib_xml2_xmlReadFile=no
14006fi
14007
14008rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010LIBS=$ac_check_lib_save_LIBS
14011fi
14012{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14013echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14014if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14015
14016cat >>confdefs.h <<\_ACEOF
14017#define CLANG_HAVE_LIBXML 1
14018_ACEOF
14019
14020 LIBXML2_LIBS="-lxml2"
14021fi
14022
14023fi
14024
14025
14026
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028
14029
14030
14031
14032
Reid Spencer59473af2004-12-25 07:31:29 +000014033ac_header_dirent=no
14034for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14036{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14037echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041 cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014046/* end confdefs.h. */
14047#include <sys/types.h>
14048#include <$ac_hdr>
14049
14050int
14051main ()
14052{
14053if ((DIR *) 0)
14054return 0;
14055 ;
14056 return 0;
14057}
14058_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059rm -f conftest.$ac_objext
14060if { (ac_try="$ac_compile"
14061case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14064esac
14065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_compile") 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } &&
14073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14074 { (case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14077esac
14078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_try") 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014093 eval "$as_ac_Header=yes"
14094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095 echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
14098 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100
Reid Spencera773bd52006-08-04 18:18:08 +000014101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014103ac_res=`eval echo '${'$as_ac_Header'}'`
14104 { echo "$as_me:$LINENO: result: $ac_res" >&5
14105echo "${ECHO_T}$ac_res" >&6; }
14106if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014107 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014108#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014109_ACEOF
14110
14111ac_header_dirent=$ac_hdr; break
14112fi
14113
14114done
14115# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14116if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14118echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14119if test "${ac_cv_search_opendir+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014121else
14122 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014123cat >conftest.$ac_ext <<_ACEOF
14124/* confdefs.h. */
14125_ACEOF
14126cat confdefs.h >>conftest.$ac_ext
14127cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014128/* end confdefs.h. */
14129
Reid Spencera773bd52006-08-04 18:18:08 +000014130/* Override any GCC internal prototype to avoid an error.
14131 Use char because int might match the return type of a GCC
14132 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014133#ifdef __cplusplus
14134extern "C"
14135#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014136char opendir ();
14137int
14138main ()
14139{
Reid Spencera773bd52006-08-04 18:18:08 +000014140return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014141 ;
14142 return 0;
14143}
14144_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014145for ac_lib in '' dir; do
14146 if test -z "$ac_lib"; then
14147 ac_res="none required"
14148 else
14149 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014151 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152 rm -f conftest.$ac_objext conftest$ac_exeext
14153if { (ac_try="$ac_link"
14154case "(($ac_try" in
14155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156 *) ac_try_echo=$ac_try;;
14157esac
14158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159 (eval "$ac_link") 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14167 { (case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14170esac
14171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_try") 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14180esac
14181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014186 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014187else
14188 echo "$as_me: failed program was:" >&5
14189sed 's/^/| /' conftest.$ac_ext >&5
14190
14191
Reid Spencer59473af2004-12-25 07:31:29 +000014192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193
Bill Wendlingebcceee2009-04-18 11:20:33 +000014194rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014195 conftest$ac_exeext
14196 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014197 break
Reid Spencer59473af2004-12-25 07:31:29 +000014198fi
Reid Spencera773bd52006-08-04 18:18:08 +000014199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014200if test "${ac_cv_search_opendir+set}" = set; then
14201 :
Reid Spencera773bd52006-08-04 18:18:08 +000014202else
14203 ac_cv_search_opendir=no
14204fi
14205rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014206LIBS=$ac_func_search_save_LIBS
14207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014208{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14209echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014210ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014211if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014213
14214fi
14215
14216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14218echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14219if test "${ac_cv_search_opendir+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014221else
14222 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h. */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014228/* end confdefs.h. */
14229
Reid Spencera773bd52006-08-04 18:18:08 +000014230/* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014233#ifdef __cplusplus
14234extern "C"
14235#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014236char opendir ();
14237int
14238main ()
14239{
Reid Spencera773bd52006-08-04 18:18:08 +000014240return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014241 ;
14242 return 0;
14243}
14244_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014245for ac_lib in '' x; do
14246 if test -z "$ac_lib"; then
14247 ac_res="none required"
14248 else
14249 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014251 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252 rm -f conftest.$ac_objext conftest$ac_exeext
14253if { (ac_try="$ac_link"
14254case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14257esac
14258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14267 { (case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14270esac
14271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_try") 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014286 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287else
14288 echo "$as_me: failed program was:" >&5
14289sed 's/^/| /' conftest.$ac_ext >&5
14290
14291
Reid Spencer59473af2004-12-25 07:31:29 +000014292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293
Bill Wendlingebcceee2009-04-18 11:20:33 +000014294rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295 conftest$ac_exeext
14296 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014297 break
Reid Spencer59473af2004-12-25 07:31:29 +000014298fi
Reid Spencera773bd52006-08-04 18:18:08 +000014299done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300if test "${ac_cv_search_opendir+set}" = set; then
14301 :
Reid Spencera773bd52006-08-04 18:18:08 +000014302else
14303 ac_cv_search_opendir=no
14304fi
14305rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014306LIBS=$ac_func_search_save_LIBS
14307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014308{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14309echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014310ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014313
14314fi
14315
14316fi
14317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14319echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14320if test "${ac_cv_header_mmap_anon+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014322else
14323 ac_ext=c
14324ac_cpp='$CPP $CPPFLAGS'
14325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327ac_compiler_gnu=$ac_cv_c_compiler_gnu
14328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014329 cat >conftest.$ac_ext <<_ACEOF
14330/* confdefs.h. */
14331_ACEOF
14332cat confdefs.h >>conftest.$ac_ext
14333cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014334/* end confdefs.h. */
14335#include <sys/mman.h>
14336#include <unistd.h>
14337#include <fcntl.h>
14338int
14339main ()
14340{
14341mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14342 ;
14343 return 0;
14344}
14345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346rm -f conftest.$ac_objext
14347if { (ac_try="$ac_compile"
14348case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14351esac
14352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_compile") 2>conftest.er1
14354 ac_status=$?
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361 { (case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364esac
14365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_try") 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014380 ac_cv_header_mmap_anon=yes
14381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382 echo "$as_me: failed program was:" >&5
14383sed 's/^/| /' conftest.$ac_ext >&5
14384
14385 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014387
Reid Spencera773bd52006-08-04 18:18:08 +000014388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014389 ac_ext=c
14390ac_cpp='$CPP $CPPFLAGS'
14391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14393ac_compiler_gnu=$ac_cv_c_compiler_gnu
14394
14395
14396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14398echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014399if test "$ac_cv_header_mmap_anon" = yes; then
14400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014401cat >>confdefs.h <<\_ACEOF
14402#define HAVE_MMAP_ANONYMOUS 1
14403_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014404
14405fi
14406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014407{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14408echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14409if test "${ac_cv_header_stat_broken+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014412 cat >conftest.$ac_ext <<_ACEOF
14413/* confdefs.h. */
14414_ACEOF
14415cat confdefs.h >>conftest.$ac_ext
14416cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014417/* end confdefs.h. */
14418#include <sys/types.h>
14419#include <sys/stat.h>
14420
Reid Spencera773bd52006-08-04 18:18:08 +000014421#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014422# if S_ISBLK (S_IFDIR)
14423You lose.
14424# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014425#endif
14426
Reid Spencera773bd52006-08-04 18:18:08 +000014427#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014428# if S_ISBLK (S_IFCHR)
14429You lose.
14430# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014431#endif
14432
Reid Spencera773bd52006-08-04 18:18:08 +000014433#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014434# if S_ISLNK (S_IFREG)
14435You lose.
14436# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014437#endif
14438
Reid Spencera773bd52006-08-04 18:18:08 +000014439#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014440# if S_ISSOCK (S_IFREG)
14441You lose.
14442# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014443#endif
14444
14445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14447 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014448 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014449else
14450 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014451fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014452rm -f conftest*
14453
Reid Spencer59473af2004-12-25 07:31:29 +000014454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14456echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014457if test $ac_cv_header_stat_broken = yes; then
14458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014459cat >>confdefs.h <<\_ACEOF
14460#define STAT_MACROS_BROKEN 1
14461_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014462
14463fi
14464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014465{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14466echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14467if test "${ac_cv_header_sys_wait_h+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014470 cat >conftest.$ac_ext <<_ACEOF
14471/* confdefs.h. */
14472_ACEOF
14473cat confdefs.h >>conftest.$ac_ext
14474cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014476#include <sys/types.h>
14477#include <sys/wait.h>
14478#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014479# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014480#endif
14481#ifndef WIFEXITED
14482# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14483#endif
14484
John Criswell7a73b802003-06-30 21:59:07 +000014485int
14486main ()
14487{
14488 int s;
14489 wait (&s);
14490 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14491 ;
14492 return 0;
14493}
14494_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014495rm -f conftest.$ac_objext
14496if { (ac_try="$ac_compile"
14497case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14500esac
14501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_compile") 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510 { (case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513esac
14514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_try") 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; } &&
14519 { ac_try='test -s conftest.$ac_objext'
14520 { (case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14523esac
14524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_try") 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014529 ac_cv_header_sys_wait_h=yes
14530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014531 echo "$as_me: failed program was:" >&5
14532sed 's/^/| /' conftest.$ac_ext >&5
14533
14534 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014535fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536
Reid Spencera773bd52006-08-04 18:18:08 +000014537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014539{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14540echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014541if test $ac_cv_header_sys_wait_h = yes; then
14542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014543cat >>confdefs.h <<\_ACEOF
14544#define HAVE_SYS_WAIT_H 1
14545_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014546
14547fi
14548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014549{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14550echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14551if test "${ac_cv_header_time+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014554 cat >conftest.$ac_ext <<_ACEOF
14555/* confdefs.h. */
14556_ACEOF
14557cat confdefs.h >>conftest.$ac_ext
14558cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014559/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014560#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014561#include <sys/time.h>
14562#include <time.h>
14563
14564int
14565main ()
14566{
14567if ((struct tm *) 0)
14568return 0;
14569 ;
14570 return 0;
14571}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014573rm -f conftest.$ac_objext
14574if { (ac_try="$ac_compile"
14575case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578esac
14579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_compile") 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14588 { (case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14591esac
14592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_try") 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14601esac
14602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_try") 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014607 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014609 echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
14612 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014614
Reid Spencera773bd52006-08-04 18:18:08 +000014615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014617{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14618echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014619if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014621cat >>confdefs.h <<\_ACEOF
14622#define TIME_WITH_SYS_TIME 1
14623_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014624
14625fi
14626
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014628
14629
14630
14631
14632
14633
Reid Spencer59473af2004-12-25 07:31:29 +000014634for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014635do
14636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642fi
14643ac_res=`eval echo '${'$as_ac_Header'}'`
14644 { echo "$as_me:$LINENO: result: $ac_res" >&5
14645echo "${ECHO_T}$ac_res" >&6; }
14646else
14647 # Is the header compilable?
14648{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14650cat >conftest.$ac_ext <<_ACEOF
14651/* confdefs.h. */
14652_ACEOF
14653cat confdefs.h >>conftest.$ac_ext
14654cat >>conftest.$ac_ext <<_ACEOF
14655/* end confdefs.h. */
14656$ac_includes_default
14657#include <$ac_header>
14658_ACEOF
14659rm -f conftest.$ac_objext
14660if { (ac_try="$ac_compile"
14661case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664esac
14665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14674 { (case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14677esac
14678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_try") 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; } &&
14683 { ac_try='test -s conftest.$ac_objext'
14684 { (case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687esac
14688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_try") 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_header_compiler=yes
14694else
14695 echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_header_compiler=no
14699fi
14700
14701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14703echo "${ECHO_T}$ac_header_compiler" >&6; }
14704
14705# Is the header present?
14706{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14708cat >conftest.$ac_ext <<_ACEOF
14709/* confdefs.h. */
14710_ACEOF
14711cat confdefs.h >>conftest.$ac_ext
14712cat >>conftest.$ac_ext <<_ACEOF
14713/* end confdefs.h. */
14714#include <$ac_header>
14715_ACEOF
14716if { (ac_try="$ac_cpp conftest.$ac_ext"
14717case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } >/dev/null; then
14729 if test -s conftest.err; then
14730 ac_cpp_err=$ac_c_preproc_warn_flag
14731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14732 else
14733 ac_cpp_err=
14734 fi
14735else
14736 ac_cpp_err=yes
14737fi
14738if test -z "$ac_cpp_err"; then
14739 ac_header_preproc=yes
14740else
14741 echo "$as_me: failed program was:" >&5
14742sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ac_header_preproc=no
14745fi
14746
14747rm -f conftest.err conftest.$ac_ext
14748{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14749echo "${ECHO_T}$ac_header_preproc" >&6; }
14750
14751# So? What about this header?
14752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14753 yes:no: )
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14758 ac_header_preproc=yes
14759 ;;
14760 no:yes:* )
14761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14764echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14768echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14773 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014774## ------------------------------------ ##
14775## Report this to http://llvm.org/bugs/ ##
14776## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014777_ASBOX
14778 ) | sed "s/^/$as_me: WARNING: /" >&2
14779 ;;
14780esac
14781{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785else
14786 eval "$as_ac_Header=\$ac_header_preproc"
14787fi
14788ac_res=`eval echo '${'$as_ac_Header'}'`
14789 { echo "$as_me:$LINENO: result: $ac_res" >&5
14790echo "${ECHO_T}$ac_res" >&6; }
14791
14792fi
14793if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014794 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014796_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014797
14798fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014799
Reid Spencer59473af2004-12-25 07:31:29 +000014800done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014802
14803
14804
14805
14806
14807
Douglas Gregor071d73d2009-05-18 17:21:34 +000014808for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014809do
14810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816fi
14817ac_res=`eval echo '${'$as_ac_Header'}'`
14818 { echo "$as_me:$LINENO: result: $ac_res" >&5
14819echo "${ECHO_T}$ac_res" >&6; }
14820else
14821 # Is the header compilable?
14822{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14824cat >conftest.$ac_ext <<_ACEOF
14825/* confdefs.h. */
14826_ACEOF
14827cat confdefs.h >>conftest.$ac_ext
14828cat >>conftest.$ac_ext <<_ACEOF
14829/* end confdefs.h. */
14830$ac_includes_default
14831#include <$ac_header>
14832_ACEOF
14833rm -f conftest.$ac_objext
14834if { (ac_try="$ac_compile"
14835case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838esac
14839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_compile") 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848 { (case "(($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_try") 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest.$ac_objext'
14858 { (case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14861esac
14862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_try") 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14867 ac_header_compiler=yes
14868else
14869 echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872 ac_header_compiler=no
14873fi
14874
14875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14877echo "${ECHO_T}$ac_header_compiler" >&6; }
14878
14879# Is the header present?
14880{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14882cat >conftest.$ac_ext <<_ACEOF
14883/* confdefs.h. */
14884_ACEOF
14885cat confdefs.h >>conftest.$ac_ext
14886cat >>conftest.$ac_ext <<_ACEOF
14887/* end confdefs.h. */
14888#include <$ac_header>
14889_ACEOF
14890if { (ac_try="$ac_cpp conftest.$ac_ext"
14891case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14894esac
14895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } >/dev/null; then
14903 if test -s conftest.err; then
14904 ac_cpp_err=$ac_c_preproc_warn_flag
14905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14906 else
14907 ac_cpp_err=
14908 fi
14909else
14910 ac_cpp_err=yes
14911fi
14912if test -z "$ac_cpp_err"; then
14913 ac_header_preproc=yes
14914else
14915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_header_preproc=no
14919fi
14920
14921rm -f conftest.err conftest.$ac_ext
14922{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14923echo "${ECHO_T}$ac_header_preproc" >&6; }
14924
14925# So? What about this header?
14926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14927 yes:no: )
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14929echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14931echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14932 ac_header_preproc=yes
14933 ;;
14934 no:yes:* )
14935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14936echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14938echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14940echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14942echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14944echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14946echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14947 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014948## ------------------------------------ ##
14949## Report this to http://llvm.org/bugs/ ##
14950## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014951_ASBOX
14952 ) | sed "s/^/$as_me: WARNING: /" >&2
14953 ;;
14954esac
14955{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959else
14960 eval "$as_ac_Header=\$ac_header_preproc"
14961fi
14962ac_res=`eval echo '${'$as_ac_Header'}'`
14963 { echo "$as_me:$LINENO: result: $ac_res" >&5
14964echo "${ECHO_T}$ac_res" >&6; }
14965
14966fi
14967if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014968 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014970_ACEOF
14971
14972fi
14973
14974done
14975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014976
14977
Douglas Gregor071d73d2009-05-18 17:21:34 +000014978for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014979do
14980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986fi
14987ac_res=`eval echo '${'$as_ac_Header'}'`
14988 { echo "$as_me:$LINENO: result: $ac_res" >&5
14989echo "${ECHO_T}$ac_res" >&6; }
14990else
14991 # Is the header compilable?
14992{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14994cat >conftest.$ac_ext <<_ACEOF
14995/* confdefs.h. */
14996_ACEOF
14997cat confdefs.h >>conftest.$ac_ext
14998cat >>conftest.$ac_ext <<_ACEOF
14999/* end confdefs.h. */
15000$ac_includes_default
15001#include <$ac_header>
15002_ACEOF
15003rm -f conftest.$ac_objext
15004if { (ac_try="$ac_compile"
15005case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_compile") 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031esac
15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 ac_header_compiler=yes
15038else
15039 echo "$as_me: failed program was:" >&5
15040sed 's/^/| /' conftest.$ac_ext >&5
15041
15042 ac_header_compiler=no
15043fi
15044
15045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15047echo "${ECHO_T}$ac_header_compiler" >&6; }
15048
15049# Is the header present?
15050{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15052cat >conftest.$ac_ext <<_ACEOF
15053/* confdefs.h. */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
15057/* end confdefs.h. */
15058#include <$ac_header>
15059_ACEOF
15060if { (ac_try="$ac_cpp conftest.$ac_ext"
15061case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064esac
15065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } >/dev/null; then
15073 if test -s conftest.err; then
15074 ac_cpp_err=$ac_c_preproc_warn_flag
15075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15076 else
15077 ac_cpp_err=
15078 fi
15079else
15080 ac_cpp_err=yes
15081fi
15082if test -z "$ac_cpp_err"; then
15083 ac_header_preproc=yes
15084else
15085 echo "$as_me: failed program was:" >&5
15086sed 's/^/| /' conftest.$ac_ext >&5
15087
15088 ac_header_preproc=no
15089fi
15090
15091rm -f conftest.err conftest.$ac_ext
15092{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15093echo "${ECHO_T}$ac_header_preproc" >&6; }
15094
15095# So? What about this header?
15096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15097 yes:no: )
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15102 ac_header_preproc=yes
15103 ;;
15104 no:yes:* )
15105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15108echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15112echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15117 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015118## ------------------------------------ ##
15119## Report this to http://llvm.org/bugs/ ##
15120## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015121_ASBOX
15122 ) | sed "s/^/$as_me: WARNING: /" >&2
15123 ;;
15124esac
15125{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129else
15130 eval "$as_ac_Header=\$ac_header_preproc"
15131fi
15132ac_res=`eval echo '${'$as_ac_Header'}'`
15133 { echo "$as_me:$LINENO: result: $ac_res" >&5
15134echo "${ECHO_T}$ac_res" >&6; }
15135
15136fi
15137if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015138 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015140_ACEOF
15141
15142fi
15143
15144done
Reid Spencer59473af2004-12-25 07:31:29 +000015145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015146
15147
15148
15149
Daniel Dunbar3e462932011-02-03 02:40:02 +000015150
15151for 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 +000015152do
15153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159fi
15160ac_res=`eval echo '${'$as_ac_Header'}'`
15161 { echo "$as_me:$LINENO: result: $ac_res" >&5
15162echo "${ECHO_T}$ac_res" >&6; }
15163else
15164 # Is the header compilable?
15165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15167cat >conftest.$ac_ext <<_ACEOF
15168/* confdefs.h. */
15169_ACEOF
15170cat confdefs.h >>conftest.$ac_ext
15171cat >>conftest.$ac_ext <<_ACEOF
15172/* end confdefs.h. */
15173$ac_includes_default
15174#include <$ac_header>
15175_ACEOF
15176rm -f conftest.$ac_objext
15177if { (ac_try="$ac_compile"
15178case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15181esac
15182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_compile") 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194esac
15195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_header_compiler=yes
15211else
15212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_header_compiler=no
15216fi
15217
15218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15220echo "${ECHO_T}$ac_header_compiler" >&6; }
15221
15222# Is the header present?
15223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15225cat >conftest.$ac_ext <<_ACEOF
15226/* confdefs.h. */
15227_ACEOF
15228cat confdefs.h >>conftest.$ac_ext
15229cat >>conftest.$ac_ext <<_ACEOF
15230/* end confdefs.h. */
15231#include <$ac_header>
15232_ACEOF
15233if { (ac_try="$ac_cpp conftest.$ac_ext"
15234case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237esac
15238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } >/dev/null; then
15246 if test -s conftest.err; then
15247 ac_cpp_err=$ac_c_preproc_warn_flag
15248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15249 else
15250 ac_cpp_err=
15251 fi
15252else
15253 ac_cpp_err=yes
15254fi
15255if test -z "$ac_cpp_err"; then
15256 ac_header_preproc=yes
15257else
15258 echo "$as_me: failed program was:" >&5
15259sed 's/^/| /' conftest.$ac_ext >&5
15260
15261 ac_header_preproc=no
15262fi
15263
15264rm -f conftest.err conftest.$ac_ext
15265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15266echo "${ECHO_T}$ac_header_preproc" >&6; }
15267
15268# So? What about this header?
15269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15270 yes:no: )
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15275 ac_header_preproc=yes
15276 ;;
15277 no:yes:* )
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15290 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015291## ------------------------------------ ##
15292## Report this to http://llvm.org/bugs/ ##
15293## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015294_ASBOX
15295 ) | sed "s/^/$as_me: WARNING: /" >&2
15296 ;;
15297esac
15298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302else
15303 eval "$as_ac_Header=\$ac_header_preproc"
15304fi
15305ac_res=`eval echo '${'$as_ac_Header'}'`
15306 { echo "$as_me:$LINENO: result: $ac_res" >&5
15307echo "${ECHO_T}$ac_res" >&6; }
15308
15309fi
15310if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015311 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015313_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015314
15315fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015316
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015317done
15318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015319
15320
15321
15322
Douglas Gregor01746742009-05-11 18:05:52 +000015323for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015324do
15325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331fi
15332ac_res=`eval echo '${'$as_ac_Header'}'`
15333 { echo "$as_me:$LINENO: result: $ac_res" >&5
15334echo "${ECHO_T}$ac_res" >&6; }
15335else
15336 # Is the header compilable?
15337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15339cat >conftest.$ac_ext <<_ACEOF
15340/* confdefs.h. */
15341_ACEOF
15342cat confdefs.h >>conftest.$ac_ext
15343cat >>conftest.$ac_ext <<_ACEOF
15344/* end confdefs.h. */
15345$ac_includes_default
15346#include <$ac_header>
15347_ACEOF
15348rm -f conftest.$ac_objext
15349if { (ac_try="$ac_compile"
15350case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353esac
15354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_compile") 2>conftest.er1
15356 ac_status=$?
15357 grep -v '^ *+' conftest.er1 >conftest.err
15358 rm -f conftest.er1
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15363 { (case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
15367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_try") 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15376esac
15377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_try") 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_header_compiler=yes
15383else
15384 echo "$as_me: failed program was:" >&5
15385sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 ac_header_compiler=no
15388fi
15389
15390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15392echo "${ECHO_T}$ac_header_compiler" >&6; }
15393
15394# Is the header present?
15395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15397cat >conftest.$ac_ext <<_ACEOF
15398/* confdefs.h. */
15399_ACEOF
15400cat confdefs.h >>conftest.$ac_ext
15401cat >>conftest.$ac_ext <<_ACEOF
15402/* end confdefs.h. */
15403#include <$ac_header>
15404_ACEOF
15405if { (ac_try="$ac_cpp conftest.$ac_ext"
15406case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409esac
15410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } >/dev/null; then
15418 if test -s conftest.err; then
15419 ac_cpp_err=$ac_c_preproc_warn_flag
15420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15421 else
15422 ac_cpp_err=
15423 fi
15424else
15425 ac_cpp_err=yes
15426fi
15427if test -z "$ac_cpp_err"; then
15428 ac_header_preproc=yes
15429else
15430 echo "$as_me: failed program was:" >&5
15431sed 's/^/| /' conftest.$ac_ext >&5
15432
15433 ac_header_preproc=no
15434fi
15435
15436rm -f conftest.err conftest.$ac_ext
15437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15438echo "${ECHO_T}$ac_header_preproc" >&6; }
15439
15440# So? What about this header?
15441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15442 yes:no: )
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15447 ac_header_preproc=yes
15448 ;;
15449 no:yes:* )
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15462 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015463## ------------------------------------ ##
15464## Report this to http://llvm.org/bugs/ ##
15465## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015466_ASBOX
15467 ) | sed "s/^/$as_me: WARNING: /" >&2
15468 ;;
15469esac
15470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474else
15475 eval "$as_ac_Header=\$ac_header_preproc"
15476fi
15477ac_res=`eval echo '${'$as_ac_Header'}'`
15478 { echo "$as_me:$LINENO: result: $ac_res" >&5
15479echo "${ECHO_T}$ac_res" >&6; }
15480
15481fi
15482if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015485_ACEOF
15486
15487fi
15488
15489done
15490
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015491
15492for ac_header in valgrind/valgrind.h
15493do
15494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500fi
15501ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503echo "${ECHO_T}$ac_res" >&6; }
15504else
15505 # Is the header compilable?
15506{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15508cat >conftest.$ac_ext <<_ACEOF
15509/* confdefs.h. */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h. */
15514$ac_includes_default
15515#include <$ac_header>
15516_ACEOF
15517rm -f conftest.$ac_objext
15518if { (ac_try="$ac_compile"
15519case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522esac
15523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_compile") 2>conftest.er1
15525 ac_status=$?
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15532 { (case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15535esac
15536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_try") 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545esac
15546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_try") 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_header_compiler=yes
15552else
15553 echo "$as_me: failed program was:" >&5
15554sed 's/^/| /' conftest.$ac_ext >&5
15555
15556 ac_header_compiler=no
15557fi
15558
15559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15561echo "${ECHO_T}$ac_header_compiler" >&6; }
15562
15563# Is the header present?
15564{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15566cat >conftest.$ac_ext <<_ACEOF
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572#include <$ac_header>
15573_ACEOF
15574if { (ac_try="$ac_cpp conftest.$ac_ext"
15575case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } >/dev/null; then
15587 if test -s conftest.err; then
15588 ac_cpp_err=$ac_c_preproc_warn_flag
15589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15590 else
15591 ac_cpp_err=
15592 fi
15593else
15594 ac_cpp_err=yes
15595fi
15596if test -z "$ac_cpp_err"; then
15597 ac_header_preproc=yes
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 ac_header_preproc=no
15603fi
15604
15605rm -f conftest.err conftest.$ac_ext
15606{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15607echo "${ECHO_T}$ac_header_preproc" >&6; }
15608
15609# So? What about this header?
15610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15611 yes:no: )
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15616 ac_header_preproc=yes
15617 ;;
15618 no:yes:* )
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15631 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015632## ------------------------------------ ##
15633## Report this to http://llvm.org/bugs/ ##
15634## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015635_ASBOX
15636 ) | sed "s/^/$as_me: WARNING: /" >&2
15637 ;;
15638esac
15639{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15643else
15644 eval "$as_ac_Header=\$ac_header_preproc"
15645fi
15646ac_res=`eval echo '${'$as_ac_Header'}'`
15647 { echo "$as_me:$LINENO: result: $ac_res" >&5
15648echo "${ECHO_T}$ac_res" >&6; }
15649
15650fi
15651if test `eval echo '${'$as_ac_Header'}'` = yes; then
15652 cat >>confdefs.h <<_ACEOF
15653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15654_ACEOF
15655
15656fi
15657
15658done
15659
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015660
15661for ac_header in fenv.h
15662do
15663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669fi
15670ac_res=`eval echo '${'$as_ac_Header'}'`
15671 { echo "$as_me:$LINENO: result: $ac_res" >&5
15672echo "${ECHO_T}$ac_res" >&6; }
15673else
15674 # Is the header compilable?
15675{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15677cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683$ac_includes_default
15684#include <$ac_header>
15685_ACEOF
15686rm -f conftest.$ac_objext
15687if { (ac_try="$ac_compile"
15688case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15691esac
15692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_compile") 2>conftest.er1
15694 ac_status=$?
15695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15714esac
15715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_header_compiler=yes
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725 ac_header_compiler=no
15726fi
15727
15728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15730echo "${ECHO_T}$ac_header_compiler" >&6; }
15731
15732# Is the header present?
15733{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15734echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15735cat >conftest.$ac_ext <<_ACEOF
15736/* confdefs.h. */
15737_ACEOF
15738cat confdefs.h >>conftest.$ac_ext
15739cat >>conftest.$ac_ext <<_ACEOF
15740/* end confdefs.h. */
15741#include <$ac_header>
15742_ACEOF
15743if { (ac_try="$ac_cpp conftest.$ac_ext"
15744case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15747esac
15748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15750 ac_status=$?
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } >/dev/null; then
15756 if test -s conftest.err; then
15757 ac_cpp_err=$ac_c_preproc_warn_flag
15758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15759 else
15760 ac_cpp_err=
15761 fi
15762else
15763 ac_cpp_err=yes
15764fi
15765if test -z "$ac_cpp_err"; then
15766 ac_header_preproc=yes
15767else
15768 echo "$as_me: failed program was:" >&5
15769sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ac_header_preproc=no
15772fi
15773
15774rm -f conftest.err conftest.$ac_ext
15775{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15776echo "${ECHO_T}$ac_header_preproc" >&6; }
15777
15778# So? What about this header?
15779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15780 yes:no: )
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15784echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15785 ac_header_preproc=yes
15786 ;;
15787 no:yes:* )
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15789echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15791echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15793echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15795echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15799echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15800 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015801## ------------------------------------ ##
15802## Report this to http://llvm.org/bugs/ ##
15803## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015804_ASBOX
15805 ) | sed "s/^/$as_me: WARNING: /" >&2
15806 ;;
15807esac
15808{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812else
15813 eval "$as_ac_Header=\$ac_header_preproc"
15814fi
15815ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817echo "${ECHO_T}$ac_res" >&6; }
15818
15819fi
15820if test `eval echo '${'$as_ac_Header'}'` = yes; then
15821 cat >>confdefs.h <<_ACEOF
15822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15823_ACEOF
15824
15825fi
15826
15827done
15828
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015829if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015830
15831for ac_header in pthread.h
15832do
15833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839fi
15840ac_res=`eval echo '${'$as_ac_Header'}'`
15841 { echo "$as_me:$LINENO: result: $ac_res" >&5
15842echo "${ECHO_T}$ac_res" >&6; }
15843else
15844 # Is the header compilable?
15845{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15847cat >conftest.$ac_ext <<_ACEOF
15848/* confdefs.h. */
15849_ACEOF
15850cat confdefs.h >>conftest.$ac_ext
15851cat >>conftest.$ac_ext <<_ACEOF
15852/* end confdefs.h. */
15853$ac_includes_default
15854#include <$ac_header>
15855_ACEOF
15856rm -f conftest.$ac_objext
15857if { (ac_try="$ac_compile"
15858case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15861esac
15862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_compile") 2>conftest.er1
15864 ac_status=$?
15865 grep -v '^ *+' conftest.er1 >conftest.err
15866 rm -f conftest.er1
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15871 { (case "(($ac_try" in
15872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873 *) ac_try_echo=$ac_try;;
15874esac
15875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876 (eval "$ac_try") 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest.$ac_objext'
15881 { (case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884esac
15885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_try") 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_header_compiler=yes
15891else
15892 echo "$as_me: failed program was:" >&5
15893sed 's/^/| /' conftest.$ac_ext >&5
15894
15895 ac_header_compiler=no
15896fi
15897
15898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900echo "${ECHO_T}$ac_header_compiler" >&6; }
15901
15902# Is the header present?
15903{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15905cat >conftest.$ac_ext <<_ACEOF
15906/* confdefs.h. */
15907_ACEOF
15908cat confdefs.h >>conftest.$ac_ext
15909cat >>conftest.$ac_ext <<_ACEOF
15910/* end confdefs.h. */
15911#include <$ac_header>
15912_ACEOF
15913if { (ac_try="$ac_cpp conftest.$ac_ext"
15914case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15917esac
15918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } >/dev/null; then
15926 if test -s conftest.err; then
15927 ac_cpp_err=$ac_c_preproc_warn_flag
15928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15929 else
15930 ac_cpp_err=
15931 fi
15932else
15933 ac_cpp_err=yes
15934fi
15935if test -z "$ac_cpp_err"; then
15936 ac_header_preproc=yes
15937else
15938 echo "$as_me: failed program was:" >&5
15939sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 ac_header_preproc=no
15942fi
15943
15944rm -f conftest.err conftest.$ac_ext
15945{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946echo "${ECHO_T}$ac_header_preproc" >&6; }
15947
15948# So? What about this header?
15949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15950 yes:no: )
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955 ac_header_preproc=yes
15956 ;;
15957 no:yes:* )
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15965echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15970 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015971## ------------------------------------ ##
15972## Report this to http://llvm.org/bugs/ ##
15973## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015974_ASBOX
15975 ) | sed "s/^/$as_me: WARNING: /" >&2
15976 ;;
15977esac
15978{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982else
15983 eval "$as_ac_Header=\$ac_header_preproc"
15984fi
15985ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987echo "${ECHO_T}$ac_res" >&6; }
15988
15989fi
15990if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015991 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015993_ACEOF
15994 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015995
15996else
15997 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015998
15999fi
16000
Reid Spencerbe3e4192007-08-17 05:45:26 +000016001done
Reid Spencer1000b732006-12-01 00:37:14 +000016002
16003else
16004 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016005
16006fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016007
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016008if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016009
16010
16011for ac_header in ffi.h ffi/ffi.h
16012do
16013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16019fi
16020ac_res=`eval echo '${'$as_ac_Header'}'`
16021 { echo "$as_me:$LINENO: result: $ac_res" >&5
16022echo "${ECHO_T}$ac_res" >&6; }
16023else
16024 # Is the header compilable?
16025{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16027cat >conftest.$ac_ext <<_ACEOF
16028/* confdefs.h. */
16029_ACEOF
16030cat confdefs.h >>conftest.$ac_ext
16031cat >>conftest.$ac_ext <<_ACEOF
16032/* end confdefs.h. */
16033$ac_includes_default
16034#include <$ac_header>
16035_ACEOF
16036rm -f conftest.$ac_objext
16037if { (ac_try="$ac_compile"
16038case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041esac
16042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_compile") 2>conftest.er1
16044 ac_status=$?
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16051 { (case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054esac
16055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_try") 2>&5
16057 ac_status=$?
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; } &&
16060 { ac_try='test -s conftest.$ac_objext'
16061 { (case "(($ac_try" in
16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063 *) ac_try_echo=$ac_try;;
16064esac
16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16066 (eval "$ac_try") 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_header_compiler=yes
16071else
16072 echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 ac_header_compiler=no
16076fi
16077
16078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16080echo "${ECHO_T}$ac_header_compiler" >&6; }
16081
16082# Is the header present?
16083{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16085cat >conftest.$ac_ext <<_ACEOF
16086/* confdefs.h. */
16087_ACEOF
16088cat confdefs.h >>conftest.$ac_ext
16089cat >>conftest.$ac_ext <<_ACEOF
16090/* end confdefs.h. */
16091#include <$ac_header>
16092_ACEOF
16093if { (ac_try="$ac_cpp conftest.$ac_ext"
16094case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097esac
16098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16100 ac_status=$?
16101 grep -v '^ *+' conftest.er1 >conftest.err
16102 rm -f conftest.er1
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } >/dev/null; then
16106 if test -s conftest.err; then
16107 ac_cpp_err=$ac_c_preproc_warn_flag
16108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16109 else
16110 ac_cpp_err=
16111 fi
16112else
16113 ac_cpp_err=yes
16114fi
16115if test -z "$ac_cpp_err"; then
16116 ac_header_preproc=yes
16117else
16118 echo "$as_me: failed program was:" >&5
16119sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 ac_header_preproc=no
16122fi
16123
16124rm -f conftest.err conftest.$ac_ext
16125{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16126echo "${ECHO_T}$ac_header_preproc" >&6; }
16127
16128# So? What about this header?
16129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16130 yes:no: )
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16135 ac_header_preproc=yes
16136 ;;
16137 no:yes:* )
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16141echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16145echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16150 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016151## ------------------------------------ ##
16152## Report this to http://llvm.org/bugs/ ##
16153## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016154_ASBOX
16155 ) | sed "s/^/$as_me: WARNING: /" >&2
16156 ;;
16157esac
16158{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16162else
16163 eval "$as_ac_Header=\$ac_header_preproc"
16164fi
16165ac_res=`eval echo '${'$as_ac_Header'}'`
16166 { echo "$as_me:$LINENO: result: $ac_res" >&5
16167echo "${ECHO_T}$ac_res" >&6; }
16168
16169fi
16170if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016171 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016173_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016174
16175fi
16176
16177done
16178
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016179fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016180
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016181
Eric Christopher654dee42010-06-22 21:01:04 +000016182for ac_header in CrashReporterClient.h
16183do
16184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16190fi
16191ac_res=`eval echo '${'$as_ac_Header'}'`
16192 { echo "$as_me:$LINENO: result: $ac_res" >&5
16193echo "${ECHO_T}$ac_res" >&6; }
16194else
16195 # Is the header compilable?
16196{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16198cat >conftest.$ac_ext <<_ACEOF
16199/* confdefs.h. */
16200_ACEOF
16201cat confdefs.h >>conftest.$ac_ext
16202cat >>conftest.$ac_ext <<_ACEOF
16203/* end confdefs.h. */
16204$ac_includes_default
16205#include <$ac_header>
16206_ACEOF
16207rm -f conftest.$ac_objext
16208if { (ac_try="$ac_compile"
16209case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16212esac
16213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214 (eval "$ac_compile") 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222 { (case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16225esac
16226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_try") 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_header_compiler=yes
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246 ac_header_compiler=no
16247fi
16248
16249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251echo "${ECHO_T}$ac_header_compiler" >&6; }
16252
16253# Is the header present?
16254{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256cat >conftest.$ac_ext <<_ACEOF
16257/* confdefs.h. */
16258_ACEOF
16259cat confdefs.h >>conftest.$ac_ext
16260cat >>conftest.$ac_ext <<_ACEOF
16261/* end confdefs.h. */
16262#include <$ac_header>
16263_ACEOF
16264if { (ac_try="$ac_cpp conftest.$ac_ext"
16265case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16268esac
16269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16271 ac_status=$?
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } >/dev/null; then
16277 if test -s conftest.err; then
16278 ac_cpp_err=$ac_c_preproc_warn_flag
16279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16280 else
16281 ac_cpp_err=
16282 fi
16283else
16284 ac_cpp_err=yes
16285fi
16286if test -z "$ac_cpp_err"; then
16287 ac_header_preproc=yes
16288else
16289 echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292 ac_header_preproc=no
16293fi
16294
16295rm -f conftest.err conftest.$ac_ext
16296{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16297echo "${ECHO_T}$ac_header_preproc" >&6; }
16298
16299# So? What about this header?
16300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16301 yes:no: )
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16306 ac_header_preproc=yes
16307 ;;
16308 no:yes:* )
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16321 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016322## ------------------------------------ ##
16323## Report this to http://llvm.org/bugs/ ##
16324## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016325_ASBOX
16326 ) | sed "s/^/$as_me: WARNING: /" >&2
16327 ;;
16328esac
16329{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16333else
16334 eval "$as_ac_Header=\$ac_header_preproc"
16335fi
16336ac_res=`eval echo '${'$as_ac_Header'}'`
16337 { echo "$as_me:$LINENO: result: $ac_res" >&5
16338echo "${ECHO_T}$ac_res" >&6; }
16339
16340fi
16341if test `eval echo '${'$as_ac_Header'}'` = yes; then
16342 cat >>confdefs.h <<_ACEOF
16343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344_ACEOF
16345
16346fi
16347
16348done
16349
16350
Eric Christopher51e57132010-12-07 02:05:42 +000016351{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16352echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016353cat >conftest.$ac_ext <<_ACEOF
16354/* confdefs.h. */
16355_ACEOF
16356cat confdefs.h >>conftest.$ac_ext
16357cat >>conftest.$ac_ext <<_ACEOF
16358/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016359extern const char *__crashreporter_info__;
16360 int main() {
16361 __crashreporter_info__ = "test";
16362 return 0;
16363 }
Eric Christopher481d4022010-12-03 07:45:22 +000016364
Eric Christopher481d4022010-12-03 07:45:22 +000016365_ACEOF
16366rm -f conftest.$ac_objext conftest$ac_exeext
16367if { (ac_try="$ac_link"
16368case "(($ac_try" in
16369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16371esac
16372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_link") 2>conftest.er1
16374 ac_status=$?
16375 grep -v '^ *+' conftest.er1 >conftest.err
16376 rm -f conftest.er1
16377 cat conftest.err >&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
16380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; } &&
16390 { ac_try='test -s conftest$ac_exeext'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394esac
16395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016400 { echo "$as_me:$LINENO: result: yes" >&5
16401echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016402
16403cat >>confdefs.h <<\_ACEOF
16404#define HAVE_CRASHREPORTER_INFO 1
16405_ACEOF
16406
Eric Christopher51e57132010-12-07 02:05:42 +000016407else
16408 echo "$as_me: failed program was:" >&5
16409sed 's/^/| /' conftest.$ac_ext >&5
16410
16411 { echo "$as_me:$LINENO: result: no" >&5
16412echo "${ECHO_T}no" >&6; }
16413
16414cat >>confdefs.h <<\_ACEOF
16415#define HAVE_CRASHREPORTER_INFO 0
16416_ACEOF
16417
Eric Christopher481d4022010-12-03 07:45:22 +000016418fi
Eric Christopher654dee42010-06-22 21:01:04 +000016419
Eric Christopher51e57132010-12-07 02:05:42 +000016420rm -f core conftest.err conftest.$ac_objext \
16421 conftest$ac_exeext conftest.$ac_ext
16422
16423
Reid Spencer8085cff2005-01-16 02:58:39 +000016424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016425 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16426echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16427if test "${ac_cv_huge_val_sanity+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016429else
16430
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016431 ac_ext=cpp
16432ac_cpp='$CXXCPP $CPPFLAGS'
16433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016436
Eric Christopherc7718502010-03-02 05:06:54 +000016437 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016438 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016439 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016440 ac_cv_huge_val_sanity=yes
16441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016442 cat >conftest.$ac_ext <<_ACEOF
16443/* confdefs.h. */
16444_ACEOF
16445cat confdefs.h >>conftest.$ac_ext
16446cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016447/* end confdefs.h. */
16448#include <math.h>
16449int
16450main ()
16451{
16452double x = HUGE_VAL; return x != x;
16453 ;
16454 return 0;
16455}
16456_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016457rm -f conftest$ac_exeext
16458if { (ac_try="$ac_link"
16459case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462esac
16463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>&5
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471esac
16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016477 ac_cv_huge_val_sanity=yes
16478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016479 echo "$as_me: program exited with status $ac_status" >&5
16480echo "$as_me: failed program was:" >&5
16481sed 's/^/| /' conftest.$ac_ext >&5
16482
16483( exit $ac_status )
16484ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016485fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016486rm -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 +000016487fi
16488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016489
Eric Christopherc7718502010-03-02 05:06:54 +000016490 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016491 ac_ext=c
16492ac_cpp='$CPP $CPPFLAGS'
16493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16495ac_compiler_gnu=$ac_cv_c_compiler_gnu
16496
16497
16498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016499{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16500echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016501 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16502
16503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016504{ echo "$as_me:$LINENO: checking for pid_t" >&5
16505echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16506if test "${ac_cv_type_pid_t+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16508else
16509 cat >conftest.$ac_ext <<_ACEOF
16510/* confdefs.h. */
16511_ACEOF
16512cat confdefs.h >>conftest.$ac_ext
16513cat >>conftest.$ac_ext <<_ACEOF
16514/* end confdefs.h. */
16515$ac_includes_default
16516typedef pid_t ac__type_new_;
16517int
16518main ()
16519{
16520if ((ac__type_new_ *) 0)
16521 return 0;
16522if (sizeof (ac__type_new_))
16523 return 0;
16524 ;
16525 return 0;
16526}
16527_ACEOF
16528rm -f conftest.$ac_objext
16529if { (ac_try="$ac_compile"
16530case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533esac
16534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_compile") 2>conftest.er1
16536 ac_status=$?
16537 grep -v '^ *+' conftest.er1 >conftest.err
16538 rm -f conftest.er1
16539 cat conftest.err >&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16543 { (case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16546esac
16547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548 (eval "$ac_try") 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; } &&
16552 { ac_try='test -s conftest.$ac_objext'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16556esac
16557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_try") 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_cv_type_pid_t=yes
16563else
16564 echo "$as_me: failed program was:" >&5
16565sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016567 ac_cv_type_pid_t=no
16568fi
16569
16570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571fi
16572{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16573echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16574if test $ac_cv_type_pid_t = yes; then
16575 :
John Criswell7a73b802003-06-30 21:59:07 +000016576else
16577
16578cat >>confdefs.h <<_ACEOF
16579#define pid_t int
16580_ACEOF
16581
16582fi
16583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016584{ echo "$as_me:$LINENO: checking for size_t" >&5
16585echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16586if test "${ac_cv_type_size_t+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588else
16589 cat >conftest.$ac_ext <<_ACEOF
16590/* confdefs.h. */
16591_ACEOF
16592cat confdefs.h >>conftest.$ac_ext
16593cat >>conftest.$ac_ext <<_ACEOF
16594/* end confdefs.h. */
16595$ac_includes_default
16596typedef size_t ac__type_new_;
16597int
16598main ()
16599{
16600if ((ac__type_new_ *) 0)
16601 return 0;
16602if (sizeof (ac__type_new_))
16603 return 0;
16604 ;
16605 return 0;
16606}
16607_ACEOF
16608rm -f conftest.$ac_objext
16609if { (ac_try="$ac_compile"
16610case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16613esac
16614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_compile") 2>conftest.er1
16616 ac_status=$?
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16623 { (case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16626esac
16627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_try") 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; } &&
16632 { ac_try='test -s conftest.$ac_objext'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; }; then
16642 ac_cv_type_size_t=yes
16643else
16644 echo "$as_me: failed program was:" >&5
16645sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016647 ac_cv_type_size_t=no
16648fi
16649
16650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16651fi
16652{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16653echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16654if test $ac_cv_type_size_t = yes; then
16655 :
John Criswell7a73b802003-06-30 21:59:07 +000016656else
16657
16658cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016659#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016660_ACEOF
16661
16662fi
16663
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016664
16665cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016666#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016667_ACEOF
16668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016669{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16670echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16671if test "${ac_cv_struct_tm+set}" = set; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016674 cat >conftest.$ac_ext <<_ACEOF
16675/* confdefs.h. */
16676_ACEOF
16677cat confdefs.h >>conftest.$ac_ext
16678cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016679/* end confdefs.h. */
16680#include <sys/types.h>
16681#include <time.h>
16682
16683int
16684main ()
16685{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016686struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016687 ;
16688 return 0;
16689}
16690_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016691rm -f conftest.$ac_objext
16692if { (ac_try="$ac_compile"
16693case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_compile") 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16709esac
16710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16719esac
16720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016725 ac_cv_struct_tm=time.h
16726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016727 echo "$as_me: failed program was:" >&5
16728sed 's/^/| /' conftest.$ac_ext >&5
16729
16730 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016732
Reid Spencera773bd52006-08-04 18:18:08 +000016733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016735{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16736echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016737if test $ac_cv_struct_tm = sys/time.h; then
16738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016739cat >>confdefs.h <<\_ACEOF
16740#define TM_IN_SYS_TIME 1
16741_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016742
16743fi
16744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016745{ echo "$as_me:$LINENO: checking for int64_t" >&5
16746echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16747if test "${ac_cv_type_int64_t+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16749else
16750 cat >conftest.$ac_ext <<_ACEOF
16751/* confdefs.h. */
16752_ACEOF
16753cat confdefs.h >>conftest.$ac_ext
16754cat >>conftest.$ac_ext <<_ACEOF
16755/* end confdefs.h. */
16756$ac_includes_default
16757typedef int64_t ac__type_new_;
16758int
16759main ()
16760{
16761if ((ac__type_new_ *) 0)
16762 return 0;
16763if (sizeof (ac__type_new_))
16764 return 0;
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769rm -f conftest.$ac_objext
16770if { (ac_try="$ac_compile"
16771case "(($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_compile") 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16784 { (case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787esac
16788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_try") 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; } &&
16793 { ac_try='test -s conftest.$ac_objext'
16794 { (case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797esac
16798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_try") 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_type_int64_t=yes
16804else
16805 echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
16808 ac_cv_type_int64_t=no
16809fi
16810
16811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812fi
16813{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16814echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16815if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016816
16817cat >>confdefs.h <<_ACEOF
16818#define HAVE_INT64_T 1
16819_ACEOF
16820
16821
16822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016823 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16824echo "$as_me: error: Type int64_t required but not found" >&2;}
16825 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016826fi
16827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016828{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16829echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16830if test "${ac_cv_type_uint64_t+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832else
16833 cat >conftest.$ac_ext <<_ACEOF
16834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
16839$ac_includes_default
16840typedef uint64_t ac__type_new_;
16841int
16842main ()
16843{
16844if ((ac__type_new_ *) 0)
16845 return 0;
16846if (sizeof (ac__type_new_))
16847 return 0;
16848 ;
16849 return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (ac_try="$ac_compile"
16854case "(($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_compile") 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880esac
16881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_type_uint64_t=yes
16887else
16888 echo "$as_me: failed program was:" >&5
16889sed 's/^/| /' conftest.$ac_ext >&5
16890
16891 ac_cv_type_uint64_t=no
16892fi
16893
16894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895fi
16896{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16897echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16898if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016899
16900cat >>confdefs.h <<_ACEOF
16901#define HAVE_UINT64_T 1
16902_ACEOF
16903
16904
16905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016906 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16907echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16908if test "${ac_cv_type_u_int64_t+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16910else
16911 cat >conftest.$ac_ext <<_ACEOF
16912/* confdefs.h. */
16913_ACEOF
16914cat confdefs.h >>conftest.$ac_ext
16915cat >>conftest.$ac_ext <<_ACEOF
16916/* end confdefs.h. */
16917$ac_includes_default
16918typedef u_int64_t ac__type_new_;
16919int
16920main ()
16921{
16922if ((ac__type_new_ *) 0)
16923 return 0;
16924if (sizeof (ac__type_new_))
16925 return 0;
16926 ;
16927 return 0;
16928}
16929_ACEOF
16930rm -f conftest.$ac_objext
16931if { (ac_try="$ac_compile"
16932case "(($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_compile") 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16945 { (case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948esac
16949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_try") 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest.$ac_objext'
16955 { (case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958esac
16959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_try") 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16964 ac_cv_type_u_int64_t=yes
16965else
16966 echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969 ac_cv_type_u_int64_t=no
16970fi
16971
16972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973fi
16974{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16975echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16976if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016977
16978cat >>confdefs.h <<_ACEOF
16979#define HAVE_U_INT64_T 1
16980_ACEOF
16981
16982
Misha Brukmanceca9042004-09-02 23:02:30 +000016983else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016984 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16985echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16986 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016987fi
16988
John Criswell679ff312004-09-02 18:44:44 +000016989fi
16990
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016991
16992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016993
16994
16995
16996
16997
16998
16999
Reid Spencerdf3be822006-01-23 08:15:53 +000017000for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017001do
17002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007else
17008 cat >conftest.$ac_ext <<_ACEOF
17009/* confdefs.h. */
17010_ACEOF
17011cat confdefs.h >>conftest.$ac_ext
17012cat >>conftest.$ac_ext <<_ACEOF
17013/* end confdefs.h. */
17014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17016#define $ac_func innocuous_$ac_func
17017
17018/* System header to define __stub macros and hopefully few prototypes,
17019 which can conflict with char $ac_func (); below.
17020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17021 <limits.h> exists even on freestanding compilers. */
17022
17023#ifdef __STDC__
17024# include <limits.h>
17025#else
17026# include <assert.h>
17027#endif
17028
17029#undef $ac_func
17030
17031/* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
17034#ifdef __cplusplus
17035extern "C"
17036#endif
17037char $ac_func ();
17038/* The GNU C library defines this for functions which it implements
17039 to always fail with ENOSYS. Some functions are actually named
17040 something starting with __ and the normal name is an alias. */
17041#if defined __stub_$ac_func || defined __stub___$ac_func
17042choke me
17043#endif
17044
17045int
17046main ()
17047{
17048return $ac_func ();
17049 ;
17050 return 0;
17051}
17052_ACEOF
17053rm -f conftest.$ac_objext conftest$ac_exeext
17054if { (ac_try="$ac_link"
17055case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058esac
17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_link") 2>conftest.er1
17061 ac_status=$?
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17068 { (case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17071esac
17072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_try") 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; } &&
17077 { ac_try='test -s conftest$ac_exeext'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081esac
17082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
17087 eval "$as_ac_var=yes"
17088else
17089 echo "$as_me: failed program was:" >&5
17090sed 's/^/| /' conftest.$ac_ext >&5
17091
17092 eval "$as_ac_var=no"
17093fi
17094
17095rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097fi
17098ac_res=`eval echo '${'$as_ac_var'}'`
17099 { echo "$as_me:$LINENO: result: $ac_res" >&5
17100echo "${ECHO_T}$ac_res" >&6; }
17101if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017102 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017104_ACEOF
17105
17106fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017107done
John Criswell7a73b802003-06-30 21:59:07 +000017108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017109
17110
17111
17112
Reid Spencer96cf5872007-07-13 10:05:30 +000017113for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017114do
17115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17116{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120else
17121 cat >conftest.$ac_ext <<_ACEOF
17122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
17127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17129#define $ac_func innocuous_$ac_func
17130
17131/* System header to define __stub macros and hopefully few prototypes,
17132 which can conflict with char $ac_func (); below.
17133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134 <limits.h> exists even on freestanding compilers. */
17135
17136#ifdef __STDC__
17137# include <limits.h>
17138#else
17139# include <assert.h>
17140#endif
17141
17142#undef $ac_func
17143
17144/* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17147#ifdef __cplusplus
17148extern "C"
17149#endif
17150char $ac_func ();
17151/* The GNU C library defines this for functions which it implements
17152 to always fail with ENOSYS. Some functions are actually named
17153 something starting with __ and the normal name is an alias. */
17154#if defined __stub_$ac_func || defined __stub___$ac_func
17155choke me
17156#endif
17157
17158int
17159main ()
17160{
17161return $ac_func ();
17162 ;
17163 return 0;
17164}
17165_ACEOF
17166rm -f conftest.$ac_objext conftest$ac_exeext
17167if { (ac_try="$ac_link"
17168case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_link") 2>conftest.er1
17174 ac_status=$?
17175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 eval "$as_ac_var=yes"
17201else
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 eval "$as_ac_var=no"
17206fi
17207
17208rm -f core conftest.err conftest.$ac_objext \
17209 conftest$ac_exeext conftest.$ac_ext
17210fi
17211ac_res=`eval echo '${'$as_ac_var'}'`
17212 { echo "$as_me:$LINENO: result: $ac_res" >&5
17213echo "${ECHO_T}$ac_res" >&6; }
17214if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017215 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017217_ACEOF
17218
17219fi
17220done
17221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017222
17223
17224
17225
17226
Reid Spencerb90645c2007-02-16 19:17:20 +000017227for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017228do
17229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17230{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17232if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234else
17235 cat >conftest.$ac_ext <<_ACEOF
17236/* confdefs.h. */
17237_ACEOF
17238cat confdefs.h >>conftest.$ac_ext
17239cat >>conftest.$ac_ext <<_ACEOF
17240/* end confdefs.h. */
17241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17243#define $ac_func innocuous_$ac_func
17244
17245/* System header to define __stub macros and hopefully few prototypes,
17246 which can conflict with char $ac_func (); below.
17247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17248 <limits.h> exists even on freestanding compilers. */
17249
17250#ifdef __STDC__
17251# include <limits.h>
17252#else
17253# include <assert.h>
17254#endif
17255
17256#undef $ac_func
17257
17258/* Override any GCC internal prototype to avoid an error.
17259 Use char because int might match the return type of a GCC
17260 builtin and then its argument prototype would still apply. */
17261#ifdef __cplusplus
17262extern "C"
17263#endif
17264char $ac_func ();
17265/* The GNU C library defines this for functions which it implements
17266 to always fail with ENOSYS. Some functions are actually named
17267 something starting with __ and the normal name is an alias. */
17268#if defined __stub_$ac_func || defined __stub___$ac_func
17269choke me
17270#endif
17271
17272int
17273main ()
17274{
17275return $ac_func ();
17276 ;
17277 return 0;
17278}
17279_ACEOF
17280rm -f conftest.$ac_objext conftest$ac_exeext
17281if { (ac_try="$ac_link"
17282case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17285esac
17286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_link") 2>conftest.er1
17288 ac_status=$?
17289 grep -v '^ *+' conftest.er1 >conftest.err
17290 rm -f conftest.er1
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest$ac_exeext'
17305 { (case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308esac
17309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_try") 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 eval "$as_ac_var=yes"
17315else
17316 echo "$as_me: failed program was:" >&5
17317sed 's/^/| /' conftest.$ac_ext >&5
17318
17319 eval "$as_ac_var=no"
17320fi
17321
17322rm -f core conftest.err conftest.$ac_objext \
17323 conftest$ac_exeext conftest.$ac_ext
17324fi
17325ac_res=`eval echo '${'$as_ac_var'}'`
17326 { echo "$as_me:$LINENO: result: $ac_res" >&5
17327echo "${ECHO_T}$ac_res" >&6; }
17328if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017329 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017331_ACEOF
17332
17333fi
17334done
17335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017336
17337
17338
Reid Spencerb90645c2007-02-16 19:17:20 +000017339for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017340do
17341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17342{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17346else
17347 cat >conftest.$ac_ext <<_ACEOF
17348/* confdefs.h. */
17349_ACEOF
17350cat confdefs.h >>conftest.$ac_ext
17351cat >>conftest.$ac_ext <<_ACEOF
17352/* end confdefs.h. */
17353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17355#define $ac_func innocuous_$ac_func
17356
17357/* System header to define __stub macros and hopefully few prototypes,
17358 which can conflict with char $ac_func (); below.
17359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17360 <limits.h> exists even on freestanding compilers. */
17361
17362#ifdef __STDC__
17363# include <limits.h>
17364#else
17365# include <assert.h>
17366#endif
17367
17368#undef $ac_func
17369
17370/* Override any GCC internal prototype to avoid an error.
17371 Use char because int might match the return type of a GCC
17372 builtin and then its argument prototype would still apply. */
17373#ifdef __cplusplus
17374extern "C"
17375#endif
17376char $ac_func ();
17377/* The GNU C library defines this for functions which it implements
17378 to always fail with ENOSYS. Some functions are actually named
17379 something starting with __ and the normal name is an alias. */
17380#if defined __stub_$ac_func || defined __stub___$ac_func
17381choke me
17382#endif
17383
17384int
17385main ()
17386{
17387return $ac_func ();
17388 ;
17389 return 0;
17390}
17391_ACEOF
17392rm -f conftest.$ac_objext conftest$ac_exeext
17393if { (ac_try="$ac_link"
17394case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397esac
17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_link") 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
17406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17407 { (case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17410esac
17411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_try") 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420esac
17421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 eval "$as_ac_var=yes"
17427else
17428 echo "$as_me: failed program was:" >&5
17429sed 's/^/| /' conftest.$ac_ext >&5
17430
17431 eval "$as_ac_var=no"
17432fi
17433
17434rm -f core conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17436fi
17437ac_res=`eval echo '${'$as_ac_var'}'`
17438 { echo "$as_me:$LINENO: result: $ac_res" >&5
17439echo "${ECHO_T}$ac_res" >&6; }
17440if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017441 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017443_ACEOF
17444
17445fi
17446done
17447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017448
17449
17450
17451
17452
Eric Christophere4291822010-04-16 05:14:21 +000017453
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017454
17455for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017456do
17457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17458{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463 cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
17469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17471#define $ac_func innocuous_$ac_func
17472
17473/* System header to define __stub macros and hopefully few prototypes,
17474 which can conflict with char $ac_func (); below.
17475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476 <limits.h> exists even on freestanding compilers. */
17477
17478#ifdef __STDC__
17479# include <limits.h>
17480#else
17481# include <assert.h>
17482#endif
17483
17484#undef $ac_func
17485
17486/* Override any GCC internal prototype to avoid an error.
17487 Use char because int might match the return type of a GCC
17488 builtin and then its argument prototype would still apply. */
17489#ifdef __cplusplus
17490extern "C"
17491#endif
17492char $ac_func ();
17493/* The GNU C library defines this for functions which it implements
17494 to always fail with ENOSYS. Some functions are actually named
17495 something starting with __ and the normal name is an alias. */
17496#if defined __stub_$ac_func || defined __stub___$ac_func
17497choke me
17498#endif
17499
17500int
17501main ()
17502{
17503return $ac_func ();
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext conftest$ac_exeext
17509if { (ac_try="$ac_link"
17510case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513esac
17514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_link") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526esac
17527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536esac
17537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 eval "$as_ac_var=yes"
17543else
17544 echo "$as_me: failed program was:" >&5
17545sed 's/^/| /' conftest.$ac_ext >&5
17546
17547 eval "$as_ac_var=no"
17548fi
17549
17550rm -f core conftest.err conftest.$ac_objext \
17551 conftest$ac_exeext conftest.$ac_ext
17552fi
17553ac_res=`eval echo '${'$as_ac_var'}'`
17554 { echo "$as_me:$LINENO: result: $ac_res" >&5
17555echo "${ECHO_T}$ac_res" >&6; }
17556if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017557 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017559_ACEOF
17560
17561fi
17562done
Reid Spencerdf3be822006-01-23 08:15:53 +000017563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017564
17565
17566
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017567
17568for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017569do
17570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17571{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17573if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575else
17576 cat >conftest.$ac_ext <<_ACEOF
17577/* confdefs.h. */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h. */
17582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17584#define $ac_func innocuous_$ac_func
17585
17586/* System header to define __stub macros and hopefully few prototypes,
17587 which can conflict with char $ac_func (); below.
17588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589 <limits.h> exists even on freestanding compilers. */
17590
17591#ifdef __STDC__
17592# include <limits.h>
17593#else
17594# include <assert.h>
17595#endif
17596
17597#undef $ac_func
17598
17599/* Override any GCC internal prototype to avoid an error.
17600 Use char because int might match the return type of a GCC
17601 builtin and then its argument prototype would still apply. */
17602#ifdef __cplusplus
17603extern "C"
17604#endif
17605char $ac_func ();
17606/* The GNU C library defines this for functions which it implements
17607 to always fail with ENOSYS. Some functions are actually named
17608 something starting with __ and the normal name is an alias. */
17609#if defined __stub_$ac_func || defined __stub___$ac_func
17610choke me
17611#endif
17612
17613int
17614main ()
17615{
17616return $ac_func ();
17617 ;
17618 return 0;
17619}
17620_ACEOF
17621rm -f conftest.$ac_objext conftest$ac_exeext
17622if { (ac_try="$ac_link"
17623case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626esac
17627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_link") 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 eval "$as_ac_var=yes"
17656else
17657 echo "$as_me: failed program was:" >&5
17658sed 's/^/| /' conftest.$ac_ext >&5
17659
17660 eval "$as_ac_var=no"
17661fi
17662
17663rm -f core conftest.err conftest.$ac_objext \
17664 conftest$ac_exeext conftest.$ac_ext
17665fi
17666ac_res=`eval echo '${'$as_ac_var'}'`
17667 { echo "$as_me:$LINENO: result: $ac_res" >&5
17668echo "${ECHO_T}$ac_res" >&6; }
17669if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017670 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017672_ACEOF
17673
17674fi
17675done
17676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017677
17678
17679
17680
Chris Lattner511f11d2005-11-14 07:25:50 +000017681for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017682do
17683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17684{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17686if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688else
17689 cat >conftest.$ac_ext <<_ACEOF
17690/* confdefs.h. */
17691_ACEOF
17692cat confdefs.h >>conftest.$ac_ext
17693cat >>conftest.$ac_ext <<_ACEOF
17694/* end confdefs.h. */
17695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17697#define $ac_func innocuous_$ac_func
17698
17699/* System header to define __stub macros and hopefully few prototypes,
17700 which can conflict with char $ac_func (); below.
17701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17702 <limits.h> exists even on freestanding compilers. */
17703
17704#ifdef __STDC__
17705# include <limits.h>
17706#else
17707# include <assert.h>
17708#endif
17709
17710#undef $ac_func
17711
17712/* Override any GCC internal prototype to avoid an error.
17713 Use char because int might match the return type of a GCC
17714 builtin and then its argument prototype would still apply. */
17715#ifdef __cplusplus
17716extern "C"
17717#endif
17718char $ac_func ();
17719/* The GNU C library defines this for functions which it implements
17720 to always fail with ENOSYS. Some functions are actually named
17721 something starting with __ and the normal name is an alias. */
17722#if defined __stub_$ac_func || defined __stub___$ac_func
17723choke me
17724#endif
17725
17726int
17727main ()
17728{
17729return $ac_func ();
17730 ;
17731 return 0;
17732}
17733_ACEOF
17734rm -f conftest.$ac_objext conftest$ac_exeext
17735if { (ac_try="$ac_link"
17736case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739esac
17740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_link") 2>conftest.er1
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752esac
17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest$ac_exeext'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762esac
17763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 eval "$as_ac_var=yes"
17769else
17770 echo "$as_me: failed program was:" >&5
17771sed 's/^/| /' conftest.$ac_ext >&5
17772
17773 eval "$as_ac_var=no"
17774fi
17775
17776rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778fi
17779ac_res=`eval echo '${'$as_ac_var'}'`
17780 { echo "$as_me:$LINENO: result: $ac_res" >&5
17781echo "${ECHO_T}$ac_res" >&6; }
17782if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017783 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017785_ACEOF
17786
17787fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017788done
John Criswell7a73b802003-06-30 21:59:07 +000017789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017790
17791
17792
17793
Daniel Dunbar3e462932011-02-03 02:40:02 +000017794
17795for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017796do
17797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17798{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17800if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802else
17803 cat >conftest.$ac_ext <<_ACEOF
17804/* confdefs.h. */
17805_ACEOF
17806cat confdefs.h >>conftest.$ac_ext
17807cat >>conftest.$ac_ext <<_ACEOF
17808/* end confdefs.h. */
17809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17811#define $ac_func innocuous_$ac_func
17812
17813/* System header to define __stub macros and hopefully few prototypes,
17814 which can conflict with char $ac_func (); below.
17815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17816 <limits.h> exists even on freestanding compilers. */
17817
17818#ifdef __STDC__
17819# include <limits.h>
17820#else
17821# include <assert.h>
17822#endif
17823
17824#undef $ac_func
17825
17826/* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17829#ifdef __cplusplus
17830extern "C"
17831#endif
17832char $ac_func ();
17833/* The GNU C library defines this for functions which it implements
17834 to always fail with ENOSYS. Some functions are actually named
17835 something starting with __ and the normal name is an alias. */
17836#if defined __stub_$ac_func || defined __stub___$ac_func
17837choke me
17838#endif
17839
17840int
17841main ()
17842{
17843return $ac_func ();
17844 ;
17845 return 0;
17846}
17847_ACEOF
17848rm -f conftest.$ac_objext conftest$ac_exeext
17849if { (ac_try="$ac_link"
17850case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17853esac
17854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_link") 2>conftest.er1
17856 ac_status=$?
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17863 { (case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866esac
17867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_try") 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest$ac_exeext'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876esac
17877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 eval "$as_ac_var=yes"
17883else
17884 echo "$as_me: failed program was:" >&5
17885sed 's/^/| /' conftest.$ac_ext >&5
17886
17887 eval "$as_ac_var=no"
17888fi
17889
17890rm -f core conftest.err conftest.$ac_objext \
17891 conftest$ac_exeext conftest.$ac_ext
17892fi
17893ac_res=`eval echo '${'$as_ac_var'}'`
17894 { echo "$as_me:$LINENO: result: $ac_res" >&5
17895echo "${ECHO_T}$ac_res" >&6; }
17896if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017897 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017899_ACEOF
17900
17901fi
17902done
17903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017904{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17905echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17906if test "${llvm_cv_c_printf_a+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017908else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017909 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017910ac_cpp='$CPP $CPPFLAGS'
17911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017915 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017916 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017918 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017920 /* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017925
John Criswella0137d32003-10-13 16:22:01 +000017926#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017927#include <stdlib.h>
17928
John Criswella0137d32003-10-13 16:22:01 +000017929int
17930main ()
17931{
17932
Reid Spencer2706f8c2004-09-19 23:53:36 +000017933volatile double A, B;
17934char Buffer[100];
17935A = 1;
17936A /= 10.0;
17937sprintf(Buffer, "%a", A);
17938B = atof(Buffer);
17939if (A != B)
17940 return (1);
17941if (A != 0x1.999999999999ap-4)
17942 return (1);
17943return (0);
John Criswella0137d32003-10-13 16:22:01 +000017944 ;
17945 return 0;
17946}
17947_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017948rm -f conftest$ac_exeext
17949if { (ac_try="$ac_link"
17950case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953esac
17954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_link") 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17962esac
17963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_try") 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017968 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017970 echo "$as_me: program exited with status $ac_status" >&5
17971echo "$as_me: failed program was:" >&5
17972sed 's/^/| /' conftest.$ac_ext >&5
17973
17974( exit $ac_status )
17975llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017977rm -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 +000017978fi
Reid Spencera773bd52006-08-04 18:18:08 +000017979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017980
Reid Spencer2706f8c2004-09-19 23:53:36 +000017981 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017982ac_cpp='$CPP $CPPFLAGS'
17983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985ac_compiler_gnu=$ac_cv_c_compiler_gnu
17986
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017988{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17989echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017990 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017992cat >>confdefs.h <<\_ACEOF
17993#define HAVE_PRINTF_A 1
17994_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017995
Reid Spencer2706f8c2004-09-19 23:53:36 +000017996 fi
John Criswella0137d32003-10-13 16:22:01 +000017997
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017999{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18000echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18001if test "${ac_cv_func_rand48+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018003else
Reid Spencera773bd52006-08-04 18:18:08 +000018004 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018005ac_cpp='$CXXCPP $CPPFLAGS'
18006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018010 cat >conftest.$ac_ext <<_ACEOF
18011/* confdefs.h. */
18012_ACEOF
18013cat confdefs.h >>conftest.$ac_ext
18014cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018015/* end confdefs.h. */
18016#include <stdlib.h>
18017int
18018main ()
18019{
18020srand48(0);lrand48();drand48();
18021 ;
18022 return 0;
18023}
18024_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018025rm -f conftest.$ac_objext
18026if { (ac_try="$ac_compile"
18027case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_compile") 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18040 { (case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18043esac
18044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_try") 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest.$ac_objext'
18050 { (case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18053esac
18054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_try") 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018059 ac_cv_func_rand48=yes
18060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018061 echo "$as_me: failed program was:" >&5
18062sed 's/^/| /' conftest.$ac_ext >&5
18063
18064 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018066
Reid Spencera773bd52006-08-04 18:18:08 +000018067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018068 ac_ext=c
18069ac_cpp='$CPP $CPPFLAGS'
18070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18072ac_compiler_gnu=$ac_cv_c_compiler_gnu
18073
18074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018075{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18076echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018077
18078if test "$ac_cv_func_rand48" = "yes" ; then
18079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018080cat >>confdefs.h <<\_ACEOF
18081#define HAVE_RAND48 1
18082_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018083
18084fi
John Criswell0021c312004-02-13 21:57:29 +000018085
18086
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018087{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18088echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18089if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091else
18092 cat >conftest.$ac_ext <<_ACEOF
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098$ac_includes_default
18099int
18100main ()
18101{
18102#ifndef strerror_s
18103 char *p = (char *) strerror_s;
18104 return !p;
18105#endif
18106
18107 ;
18108 return 0;
18109}
18110_ACEOF
18111rm -f conftest.$ac_objext
18112if { (ac_try="$ac_compile"
18113case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18116esac
18117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_compile") 2>conftest.er1
18119 ac_status=$?
18120 grep -v '^ *+' conftest.er1 >conftest.err
18121 rm -f conftest.er1
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129esac
18130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; } &&
18135 { ac_try='test -s conftest.$ac_objext'
18136 { (case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18139esac
18140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_try") 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_cv_have_decl_strerror_s=yes
18146else
18147 echo "$as_me: failed program was:" >&5
18148sed 's/^/| /' conftest.$ac_ext >&5
18149
18150 ac_cv_have_decl_strerror_s=no
18151fi
18152
18153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18154fi
18155{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18156echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18157if test $ac_cv_have_decl_strerror_s = yes; then
18158
18159cat >>confdefs.h <<_ACEOF
18160#define HAVE_DECL_STRERROR_S 1
18161_ACEOF
18162
18163
18164else
18165 cat >>confdefs.h <<_ACEOF
18166#define HAVE_DECL_STRERROR_S 0
18167_ACEOF
18168
18169
18170fi
18171
18172
18173
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018174if test "$llvm_cv_os_type" = "MingW" ; then
18175 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18176echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18177if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18179else
18180 ac_check_lib_save_LIBS=$LIBS
18181LIBS="-lgcc $LIBS"
18182cat >conftest.$ac_ext <<_ACEOF
18183/* confdefs.h. */
18184_ACEOF
18185cat confdefs.h >>conftest.$ac_ext
18186cat >>conftest.$ac_ext <<_ACEOF
18187/* end confdefs.h. */
18188
18189/* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18192#ifdef __cplusplus
18193extern "C"
18194#endif
18195char _alloca ();
18196int
18197main ()
18198{
18199return _alloca ();
18200 ;
18201 return 0;
18202}
18203_ACEOF
18204rm -f conftest.$ac_objext conftest$ac_exeext
18205if { (ac_try="$ac_link"
18206case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18209esac
18210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_link") 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18219 { (case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18222esac
18223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_try") 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest$ac_exeext'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; }; then
18238 ac_cv_lib_gcc__alloca=yes
18239else
18240 echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243 ac_cv_lib_gcc__alloca=no
18244fi
18245
18246rm -f core conftest.err conftest.$ac_objext \
18247 conftest$ac_exeext conftest.$ac_ext
18248LIBS=$ac_check_lib_save_LIBS
18249fi
18250{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18251echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18252if test $ac_cv_lib_gcc__alloca = yes; then
18253
18254cat >>confdefs.h <<\_ACEOF
18255#define HAVE__ALLOCA 1
18256_ACEOF
18257
18258fi
18259
18260 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18261echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18262if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18264else
18265 ac_check_lib_save_LIBS=$LIBS
18266LIBS="-lgcc $LIBS"
18267cat >conftest.$ac_ext <<_ACEOF
18268/* confdefs.h. */
18269_ACEOF
18270cat confdefs.h >>conftest.$ac_ext
18271cat >>conftest.$ac_ext <<_ACEOF
18272/* end confdefs.h. */
18273
18274/* Override any GCC internal prototype to avoid an error.
18275 Use char because int might match the return type of a GCC
18276 builtin and then its argument prototype would still apply. */
18277#ifdef __cplusplus
18278extern "C"
18279#endif
18280char __alloca ();
18281int
18282main ()
18283{
18284return __alloca ();
18285 ;
18286 return 0;
18287}
18288_ACEOF
18289rm -f conftest.$ac_objext conftest$ac_exeext
18290if { (ac_try="$ac_link"
18291case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294esac
18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_link") 2>conftest.er1
18297 ac_status=$?
18298 grep -v '^ *+' conftest.er1 >conftest.err
18299 rm -f conftest.er1
18300 cat conftest.err >&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } &&
18303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18313 { ac_try='test -s conftest$ac_exeext'
18314 { (case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18317esac
18318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_try") 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; }; then
18323 ac_cv_lib_gcc___alloca=yes
18324else
18325 echo "$as_me: failed program was:" >&5
18326sed 's/^/| /' conftest.$ac_ext >&5
18327
18328 ac_cv_lib_gcc___alloca=no
18329fi
18330
18331rm -f core conftest.err conftest.$ac_objext \
18332 conftest$ac_exeext conftest.$ac_ext
18333LIBS=$ac_check_lib_save_LIBS
18334fi
18335{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18336echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18337if test $ac_cv_lib_gcc___alloca = yes; then
18338
18339cat >>confdefs.h <<\_ACEOF
18340#define HAVE___ALLOCA 1
18341_ACEOF
18342
18343fi
18344
18345 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18346echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18347if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18349else
18350 ac_check_lib_save_LIBS=$LIBS
18351LIBS="-lgcc $LIBS"
18352cat >conftest.$ac_ext <<_ACEOF
18353/* confdefs.h. */
18354_ACEOF
18355cat confdefs.h >>conftest.$ac_ext
18356cat >>conftest.$ac_ext <<_ACEOF
18357/* end confdefs.h. */
18358
18359/* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18362#ifdef __cplusplus
18363extern "C"
18364#endif
18365char __chkstk ();
18366int
18367main ()
18368{
18369return __chkstk ();
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext conftest$ac_exeext
18375if { (ac_try="$ac_link"
18376case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18379esac
18380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_link") 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18389 { (case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392esac
18393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_try") 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest$ac_exeext'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18402esac
18403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_lib_gcc___chkstk=yes
18409else
18410 echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_cv_lib_gcc___chkstk=no
18414fi
18415
18416rm -f core conftest.err conftest.$ac_objext \
18417 conftest$ac_exeext conftest.$ac_ext
18418LIBS=$ac_check_lib_save_LIBS
18419fi
18420{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18421echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18422if test $ac_cv_lib_gcc___chkstk = yes; then
18423
18424cat >>confdefs.h <<\_ACEOF
18425#define HAVE___CHKSTK 1
18426_ACEOF
18427
18428fi
18429
18430 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18431echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18432if test "${ac_cv_lib_gcc____chkstk+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 ___chkstk ();
18451int
18452main ()
18453{
18454return ___chkstk ();
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____chkstk=yes
18494else
18495 echo "$as_me: failed program was:" >&5
18496sed 's/^/| /' conftest.$ac_ext >&5
18497
18498 ac_cv_lib_gcc____chkstk=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____chkstk" >&5
18506echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18507if test $ac_cv_lib_gcc____chkstk = yes; then
18508
18509cat >>confdefs.h <<\_ACEOF
18510#define HAVE____CHKSTK 1
18511_ACEOF
18512
18513fi
18514
18515
18516 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18517echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18518if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18520else
18521 ac_check_lib_save_LIBS=$LIBS
18522LIBS="-lgcc $LIBS"
18523cat >conftest.$ac_ext <<_ACEOF
18524/* confdefs.h. */
18525_ACEOF
18526cat confdefs.h >>conftest.$ac_ext
18527cat >>conftest.$ac_ext <<_ACEOF
18528/* end confdefs.h. */
18529
18530/* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18533#ifdef __cplusplus
18534extern "C"
18535#endif
18536char __ashldi3 ();
18537int
18538main ()
18539{
18540return __ashldi3 ();
18541 ;
18542 return 0;
18543}
18544_ACEOF
18545rm -f conftest.$ac_objext conftest$ac_exeext
18546if { (ac_try="$ac_link"
18547case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18550esac
18551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_link") 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18560 { (case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563esac
18564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_try") 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; } &&
18569 { ac_try='test -s conftest$ac_exeext'
18570 { (case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573esac
18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_try") 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 ac_cv_lib_gcc___ashldi3=yes
18580else
18581 echo "$as_me: failed program was:" >&5
18582sed 's/^/| /' conftest.$ac_ext >&5
18583
18584 ac_cv_lib_gcc___ashldi3=no
18585fi
18586
18587rm -f core conftest.err conftest.$ac_objext \
18588 conftest$ac_exeext conftest.$ac_ext
18589LIBS=$ac_check_lib_save_LIBS
18590fi
18591{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18592echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18593if test $ac_cv_lib_gcc___ashldi3 = yes; then
18594
18595cat >>confdefs.h <<\_ACEOF
18596#define HAVE___ASHLDI3 1
18597_ACEOF
18598
18599fi
18600
18601 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18602echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18603if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18605else
18606 ac_check_lib_save_LIBS=$LIBS
18607LIBS="-lgcc $LIBS"
18608cat >conftest.$ac_ext <<_ACEOF
18609/* confdefs.h. */
18610_ACEOF
18611cat confdefs.h >>conftest.$ac_ext
18612cat >>conftest.$ac_ext <<_ACEOF
18613/* end confdefs.h. */
18614
18615/* Override any GCC internal prototype to avoid an error.
18616 Use char because int might match the return type of a GCC
18617 builtin and then its argument prototype would still apply. */
18618#ifdef __cplusplus
18619extern "C"
18620#endif
18621char __ashrdi3 ();
18622int
18623main ()
18624{
18625return __ashrdi3 ();
18626 ;
18627 return 0;
18628}
18629_ACEOF
18630rm -f conftest.$ac_objext conftest$ac_exeext
18631if { (ac_try="$ac_link"
18632case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635esac
18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_link") 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18645 { (case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648esac
18649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_try") 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest$ac_exeext'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658esac
18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; }; then
18664 ac_cv_lib_gcc___ashrdi3=yes
18665else
18666 echo "$as_me: failed program was:" >&5
18667sed 's/^/| /' conftest.$ac_ext >&5
18668
18669 ac_cv_lib_gcc___ashrdi3=no
18670fi
18671
18672rm -f core conftest.err conftest.$ac_objext \
18673 conftest$ac_exeext conftest.$ac_ext
18674LIBS=$ac_check_lib_save_LIBS
18675fi
18676{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18677echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18678if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18679
18680cat >>confdefs.h <<\_ACEOF
18681#define HAVE___ASHRDI3 1
18682_ACEOF
18683
18684fi
18685
18686 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18687echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18688if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691 ac_check_lib_save_LIBS=$LIBS
18692LIBS="-lgcc $LIBS"
18693cat >conftest.$ac_ext <<_ACEOF
18694/* confdefs.h. */
18695_ACEOF
18696cat confdefs.h >>conftest.$ac_ext
18697cat >>conftest.$ac_ext <<_ACEOF
18698/* end confdefs.h. */
18699
18700/* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18703#ifdef __cplusplus
18704extern "C"
18705#endif
18706char __divdi3 ();
18707int
18708main ()
18709{
18710return __divdi3 ();
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext conftest$ac_exeext
18716if { (ac_try="$ac_link"
18717case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18720esac
18721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_link") 2>conftest.er1
18723 ac_status=$?
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18730 { (case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733esac
18734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_try") 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; } &&
18739 { ac_try='test -s conftest$ac_exeext'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 ac_cv_lib_gcc___divdi3=yes
18750else
18751 echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
18754 ac_cv_lib_gcc___divdi3=no
18755fi
18756
18757rm -f core conftest.err conftest.$ac_objext \
18758 conftest$ac_exeext conftest.$ac_ext
18759LIBS=$ac_check_lib_save_LIBS
18760fi
18761{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18762echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18763if test $ac_cv_lib_gcc___divdi3 = yes; then
18764
18765cat >>confdefs.h <<\_ACEOF
18766#define HAVE___DIVDI3 1
18767_ACEOF
18768
18769fi
18770
18771 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18772echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18773if test "${ac_cv_lib_gcc___fixdfdi+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 __fixdfdi ();
18792int
18793main ()
18794{
18795return __fixdfdi ();
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___fixdfdi=yes
18835else
18836 echo "$as_me: failed program was:" >&5
18837sed 's/^/| /' conftest.$ac_ext >&5
18838
18839 ac_cv_lib_gcc___fixdfdi=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___fixdfdi" >&5
18847echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18848if test $ac_cv_lib_gcc___fixdfdi = yes; then
18849
18850cat >>confdefs.h <<\_ACEOF
18851#define HAVE___FIXDFDI 1
18852_ACEOF
18853
18854fi
18855
18856 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18857echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18858if test "${ac_cv_lib_gcc___fixsfdi+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 __fixsfdi ();
18877int
18878main ()
18879{
18880return __fixsfdi ();
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___fixsfdi=yes
18920else
18921 echo "$as_me: failed program was:" >&5
18922sed 's/^/| /' conftest.$ac_ext >&5
18923
18924 ac_cv_lib_gcc___fixsfdi=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___fixsfdi" >&5
18932echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18933if test $ac_cv_lib_gcc___fixsfdi = yes; then
18934
18935cat >>confdefs.h <<\_ACEOF
18936#define HAVE___FIXSFDI 1
18937_ACEOF
18938
18939fi
18940
18941 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18942echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18943if test "${ac_cv_lib_gcc___floatdidf+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 __floatdidf ();
18962int
18963main ()
18964{
18965return __floatdidf ();
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___floatdidf=yes
19005else
19006 echo "$as_me: failed program was:" >&5
19007sed 's/^/| /' conftest.$ac_ext >&5
19008
19009 ac_cv_lib_gcc___floatdidf=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___floatdidf" >&5
19017echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19018if test $ac_cv_lib_gcc___floatdidf = yes; then
19019
19020cat >>confdefs.h <<\_ACEOF
19021#define HAVE___FLOATDIDF 1
19022_ACEOF
19023
19024fi
19025
19026 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19027echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19028if test "${ac_cv_lib_gcc___lshrdi3+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 __lshrdi3 ();
19047int
19048main ()
19049{
19050return __lshrdi3 ();
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___lshrdi3=yes
19090else
19091 echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
19094 ac_cv_lib_gcc___lshrdi3=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___lshrdi3" >&5
19102echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19103if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19104
19105cat >>confdefs.h <<\_ACEOF
19106#define HAVE___LSHRDI3 1
19107_ACEOF
19108
19109fi
19110
19111 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19112echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19113if test "${ac_cv_lib_gcc___moddi3+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 __moddi3 ();
19132int
19133main ()
19134{
19135return __moddi3 ();
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___moddi3=yes
19175else
19176 echo "$as_me: failed program was:" >&5
19177sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 ac_cv_lib_gcc___moddi3=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___moddi3" >&5
19187echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19188if test $ac_cv_lib_gcc___moddi3 = yes; then
19189
19190cat >>confdefs.h <<\_ACEOF
19191#define HAVE___MODDI3 1
19192_ACEOF
19193
19194fi
19195
19196 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19197echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19198if test "${ac_cv_lib_gcc___udivdi3+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 __udivdi3 ();
19217int
19218main ()
19219{
19220return __udivdi3 ();
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___udivdi3=yes
19260else
19261 echo "$as_me: failed program was:" >&5
19262sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 ac_cv_lib_gcc___udivdi3=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___udivdi3" >&5
19272echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19273if test $ac_cv_lib_gcc___udivdi3 = yes; then
19274
19275cat >>confdefs.h <<\_ACEOF
19276#define HAVE___UDIVDI3 1
19277_ACEOF
19278
19279fi
19280
19281 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19282echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19283if test "${ac_cv_lib_gcc___umoddi3+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 __umoddi3 ();
19302int
19303main ()
19304{
19305return __umoddi3 ();
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___umoddi3=yes
19345else
19346 echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
19348
19349 ac_cv_lib_gcc___umoddi3=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___umoddi3" >&5
19357echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19358if test $ac_cv_lib_gcc___umoddi3 = yes; then
19359
19360cat >>confdefs.h <<\_ACEOF
19361#define HAVE___UMODDI3 1
19362_ACEOF
19363
19364fi
19365
19366
19367 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19368echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19369if test "${ac_cv_lib_gcc___main+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19371else
19372 ac_check_lib_save_LIBS=$LIBS
19373LIBS="-lgcc $LIBS"
19374cat >conftest.$ac_ext <<_ACEOF
19375/* confdefs.h. */
19376_ACEOF
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
19380
19381/* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19384#ifdef __cplusplus
19385extern "C"
19386#endif
19387char __main ();
19388int
19389main ()
19390{
19391return __main ();
19392 ;
19393 return 0;
19394}
19395_ACEOF
19396rm -f conftest.$ac_objext conftest$ac_exeext
19397if { (ac_try="$ac_link"
19398case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19401esac
19402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403 (eval "$ac_link") 2>conftest.er1
19404 ac_status=$?
19405 grep -v '^ *+' conftest.er1 >conftest.err
19406 rm -f conftest.er1
19407 cat conftest.err >&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
19410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19411 { (case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414esac
19415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_try") 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } &&
19420 { ac_try='test -s conftest$ac_exeext'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424esac
19425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 ac_cv_lib_gcc___main=yes
19431else
19432 echo "$as_me: failed program was:" >&5
19433sed 's/^/| /' conftest.$ac_ext >&5
19434
19435 ac_cv_lib_gcc___main=no
19436fi
19437
19438rm -f core conftest.err conftest.$ac_objext \
19439 conftest$ac_exeext conftest.$ac_ext
19440LIBS=$ac_check_lib_save_LIBS
19441fi
19442{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19443echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19444if test $ac_cv_lib_gcc___main = yes; then
19445
19446cat >>confdefs.h <<\_ACEOF
19447#define HAVE___MAIN 1
19448_ACEOF
19449
19450fi
19451
19452 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19453echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19454if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456else
19457 ac_check_lib_save_LIBS=$LIBS
19458LIBS="-lgcc $LIBS"
19459cat >conftest.$ac_ext <<_ACEOF
19460/* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h. */
19465
19466/* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19469#ifdef __cplusplus
19470extern "C"
19471#endif
19472char __cmpdi2 ();
19473int
19474main ()
19475{
19476return __cmpdi2 ();
19477 ;
19478 return 0;
19479}
19480_ACEOF
19481rm -f conftest.$ac_objext conftest$ac_exeext
19482if { (ac_try="$ac_link"
19483case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19486esac
19487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_link") 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19496 { (case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499esac
19500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_try") 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest$ac_exeext'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_lib_gcc___cmpdi2=yes
19516else
19517 echo "$as_me: failed program was:" >&5
19518sed 's/^/| /' conftest.$ac_ext >&5
19519
19520 ac_cv_lib_gcc___cmpdi2=no
19521fi
19522
19523rm -f core conftest.err conftest.$ac_objext \
19524 conftest$ac_exeext conftest.$ac_ext
19525LIBS=$ac_check_lib_save_LIBS
19526fi
19527{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19528echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19529if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19530
19531cat >>confdefs.h <<\_ACEOF
19532#define HAVE___CMPDI2 1
19533_ACEOF
19534
19535fi
19536
19537fi
19538
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019539if test "$llvm_cv_os_type" = "MingW" ; then
19540 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19541echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19542 cat >conftest.$ac_ext <<_ACEOF
19543#include <windows.h>
19544#include <imagehlp.h>
19545extern void foo(PENUMLOADED_MODULES_CALLBACK);
19546extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19547_ACEOF
19548rm -f conftest.$ac_objext
19549if { (ac_try="$ac_compile"
19550case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19553esac
19554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_compile") 2>conftest.er1
19556 ac_status=$?
19557 grep -v '^ *+' conftest.er1 >conftest.err
19558 rm -f conftest.er1
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19563 { (case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566esac
19567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_try") 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
19573 { (case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576esac
19577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_try") 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582
19583 { echo "$as_me:$LINENO: result: yes" >&5
19584echo "${ECHO_T}yes" >&6; }
19585 llvm_cv_win32_elmcb_pcstr="PCSTR"
19586
19587else
19588 echo "$as_me: failed program was:" >&5
19589sed 's/^/| /' conftest.$ac_ext >&5
19590
19591
19592 { echo "$as_me:$LINENO: result: no" >&5
19593echo "${ECHO_T}no" >&6; }
19594 llvm_cv_win32_elmcb_pcstr="PSTR"
19595
19596fi
19597
19598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599
19600cat >>confdefs.h <<_ACEOF
19601#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19602_ACEOF
19603
19604fi
19605
Torok Edwin871384f2010-01-26 08:50:50 +000019606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019607{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19608echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19609if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019611else
Reid Spencera773bd52006-08-04 18:18:08 +000019612 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019613ac_cpp='$CXXCPP $CPPFLAGS'
19614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019618 cat >conftest.$ac_ext <<_ACEOF
19619/* confdefs.h. */
19620_ACEOF
19621cat confdefs.h >>conftest.$ac_ext
19622cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019623/* end confdefs.h. */
19624#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019625int
19626main ()
19627{
19628float f; isnan(f);
19629 ;
19630 return 0;
19631}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019632_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019633rm -f conftest.$ac_objext
19634if { (ac_try="$ac_compile"
19635case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19638esac
19639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640 (eval "$ac_compile") 2>conftest.er1
19641 ac_status=$?
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19648 { (case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19651esac
19652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_try") 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
19658 { (case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661esac
19662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_try") 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019667 ac_cv_func_isnan_in_math_h=yes
19668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669 echo "$as_me: failed program was:" >&5
19670sed 's/^/| /' conftest.$ac_ext >&5
19671
19672 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019673fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019674
Reid Spencera773bd52006-08-04 18:18:08 +000019675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019676 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019677ac_cpp='$CPP $CPPFLAGS'
19678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19680ac_compiler_gnu=$ac_cv_c_compiler_gnu
19681
19682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019683{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19684echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019685
19686
19687if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019689cat >>confdefs.h <<\_ACEOF
19690#define HAVE_ISNAN_IN_MATH_H 1
19691_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019692
Reid Spencerabec8f92004-10-27 23:03:44 +000019693fi
19694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019695{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19696echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19697if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019699else
Reid Spencera773bd52006-08-04 18:18:08 +000019700 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019701ac_cpp='$CXXCPP $CPPFLAGS'
19702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019706 cat >conftest.$ac_ext <<_ACEOF
19707/* confdefs.h. */
19708_ACEOF
19709cat confdefs.h >>conftest.$ac_ext
19710cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019711/* end confdefs.h. */
19712#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019713int
19714main ()
19715{
19716float f; isnan(f);
19717 ;
19718 return 0;
19719}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019720_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019721rm -f conftest.$ac_objext
19722if { (ac_try="$ac_compile"
19723case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726esac
19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_compile") 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19736 { (case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19739esac
19740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_try") 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest.$ac_objext'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19749esac
19750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019755 ac_cv_func_isnan_in_cmath=yes
19756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762
Reid Spencera773bd52006-08-04 18:18:08 +000019763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019764 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019765ac_cpp='$CPP $CPPFLAGS'
19766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769
19770fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019771{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19772echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019773
19774if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019776cat >>confdefs.h <<\_ACEOF
19777#define HAVE_ISNAN_IN_CMATH 1
19778_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019779
Reid Spencerabec8f92004-10-27 23:03:44 +000019780fi
19781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019782{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19783echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19784if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019786else
Reid Spencera773bd52006-08-04 18:18:08 +000019787 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019788ac_cpp='$CXXCPP $CPPFLAGS'
19789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019793 cat >conftest.$ac_ext <<_ACEOF
19794/* confdefs.h. */
19795_ACEOF
19796cat confdefs.h >>conftest.$ac_ext
19797cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019798/* end confdefs.h. */
19799#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019800int
19801main ()
19802{
19803float f; std::isnan(f);
19804 ;
19805 return 0;
19806}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019807_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019808rm -f conftest.$ac_objext
19809if { (ac_try="$ac_compile"
19810case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_compile") 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826esac
19827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest.$ac_objext'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836esac
19837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019842 ac_cv_func_std_isnan_in_cmath=yes
19843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019844 echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019848fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019849
Reid Spencera773bd52006-08-04 18:18:08 +000019850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019851 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019852ac_cpp='$CPP $CPPFLAGS'
19853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19855ac_compiler_gnu=$ac_cv_c_compiler_gnu
19856
19857fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019858{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19859echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019860
19861if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019863cat >>confdefs.h <<\_ACEOF
19864#define HAVE_STD_ISNAN_IN_CMATH 1
19865_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019866
Reid Spencerabec8f92004-10-27 23:03:44 +000019867fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019868
19869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19871echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19872if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019874else
Reid Spencera773bd52006-08-04 18:18:08 +000019875 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019876ac_cpp='$CXXCPP $CPPFLAGS'
19877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881 cat >conftest.$ac_ext <<_ACEOF
19882/* confdefs.h. */
19883_ACEOF
19884cat confdefs.h >>conftest.$ac_ext
19885cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019886/* end confdefs.h. */
19887#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019888int
19889main ()
19890{
19891float f; isinf(f);
19892 ;
19893 return 0;
19894}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019895_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019896rm -f conftest.$ac_objext
19897if { (ac_try="$ac_compile"
19898case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19901esac
19902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_compile") 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest.$ac_objext'
19921 { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019930 ac_cv_func_isinf_in_math_h=yes
19931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019932 echo "$as_me: failed program was:" >&5
19933sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937
Reid Spencera773bd52006-08-04 18:18:08 +000019938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019939 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019940ac_cpp='$CPP $CPPFLAGS'
19941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19943ac_compiler_gnu=$ac_cv_c_compiler_gnu
19944
19945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019946{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19947echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019948
19949if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019951cat >>confdefs.h <<\_ACEOF
19952#define HAVE_ISINF_IN_MATH_H 1
19953_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019954
Reid Spencerabec8f92004-10-27 23:03:44 +000019955fi
19956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019957{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19958echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19959if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019961else
Reid Spencera773bd52006-08-04 18:18:08 +000019962 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019963ac_cpp='$CXXCPP $CPPFLAGS'
19964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019968 cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h. */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019973/* end confdefs.h. */
19974#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019975int
19976main ()
19977{
19978float f; isinf(f);
19979 ;
19980 return 0;
19981}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019983rm -f conftest.$ac_objext
19984if { (ac_try="$ac_compile"
19985case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19988esac
19989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_compile") 2>conftest.er1
19991 ac_status=$?
19992 grep -v '^ *+' conftest.er1 >conftest.err
19993 rm -f conftest.er1
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
19997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19998 { (case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20001esac
20002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_try") 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
20008 { (case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20011esac
20012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_try") 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020017 ac_cv_func_isinf_in_cmath=yes
20018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020019 echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020024
Reid Spencera773bd52006-08-04 18:18:08 +000020025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020026 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020027ac_cpp='$CPP $CPPFLAGS'
20028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030ac_compiler_gnu=$ac_cv_c_compiler_gnu
20031
20032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020033{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20034echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020035
20036if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038cat >>confdefs.h <<\_ACEOF
20039#define HAVE_ISINF_IN_CMATH 1
20040_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020041
Reid Spencerabec8f92004-10-27 23:03:44 +000020042fi
20043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020044{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20045echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20046if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020048else
Reid Spencera773bd52006-08-04 18:18:08 +000020049 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020050ac_cpp='$CXXCPP $CPPFLAGS'
20051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020055 cat >conftest.$ac_ext <<_ACEOF
20056/* confdefs.h. */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020060/* end confdefs.h. */
20061#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020062int
20063main ()
20064{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020065float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020066 ;
20067 return 0;
20068}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020069_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070rm -f conftest.$ac_objext
20071if { (ac_try="$ac_compile"
20072case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075esac
20076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_compile") 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20085 { (case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088esac
20089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_try") 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098esac
20099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_try") 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020104 ac_cv_func_std_isinf_in_cmath=yes
20105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106 echo "$as_me: failed program was:" >&5
20107sed 's/^/| /' conftest.$ac_ext >&5
20108
20109 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020111
Reid Spencera773bd52006-08-04 18:18:08 +000020112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020113 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020114ac_cpp='$CPP $CPPFLAGS'
20115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20117ac_compiler_gnu=$ac_cv_c_compiler_gnu
20118
20119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020120{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20121echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020122
20123if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020125cat >>confdefs.h <<\_ACEOF
20126#define HAVE_STD_ISINF_IN_CMATH 1
20127_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020128
Reid Spencerabec8f92004-10-27 23:03:44 +000020129fi
20130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020131{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20132echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20133if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020135else
Reid Spencera773bd52006-08-04 18:18:08 +000020136 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020137ac_cpp='$CXXCPP $CPPFLAGS'
20138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020142 cat >conftest.$ac_ext <<_ACEOF
20143/* confdefs.h. */
20144_ACEOF
20145cat confdefs.h >>conftest.$ac_ext
20146cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020147/* end confdefs.h. */
20148#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020149int
20150main ()
20151{
20152float f; finite(f);
20153 ;
20154 return 0;
20155}
Brian Gaeked59a6472004-07-21 03:33:58 +000020156_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020157rm -f conftest.$ac_objext
20158if { (ac_try="$ac_compile"
20159case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_compile") 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20172 { (case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20175esac
20176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177 (eval "$ac_try") 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try='test -s conftest.$ac_objext'
20182 { (case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185esac
20186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_try") 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020191 ac_cv_func_finite_in_ieeefp_h=yes
20192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020193 echo "$as_me: failed program was:" >&5
20194sed 's/^/| /' conftest.$ac_ext >&5
20195
20196 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020198
Reid Spencera773bd52006-08-04 18:18:08 +000020199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020200 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020201ac_cpp='$CPP $CPPFLAGS'
20202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20204ac_compiler_gnu=$ac_cv_c_compiler_gnu
20205
20206fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020207{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20208echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020209
Brian Gaeke6802b552004-10-28 05:06:45 +000020210if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020212cat >>confdefs.h <<\_ACEOF
20213#define HAVE_FINITE_IN_IEEEFP_H 1
20214_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020215
Reid Spencerabec8f92004-10-27 23:03:44 +000020216fi
20217
20218
20219
Reid Spencer30fe5262007-01-20 07:48:49 +000020220if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020221
20222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020223for ac_header in stdlib.h unistd.h
20224do
20225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231fi
20232ac_res=`eval echo '${'$as_ac_Header'}'`
20233 { echo "$as_me:$LINENO: result: $ac_res" >&5
20234echo "${ECHO_T}$ac_res" >&6; }
20235else
20236 # Is the header compilable?
20237{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20239cat >conftest.$ac_ext <<_ACEOF
20240/* confdefs.h. */
20241_ACEOF
20242cat confdefs.h >>conftest.$ac_ext
20243cat >>conftest.$ac_ext <<_ACEOF
20244/* end confdefs.h. */
20245$ac_includes_default
20246#include <$ac_header>
20247_ACEOF
20248rm -f conftest.$ac_objext
20249if { (ac_try="$ac_compile"
20250case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20253esac
20254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_compile") 2>conftest.er1
20256 ac_status=$?
20257 grep -v '^ *+' conftest.er1 >conftest.err
20258 rm -f conftest.er1
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
20262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20263 { (case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20266esac
20267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_try") 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276esac
20277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_header_compiler=yes
20283else
20284 echo "$as_me: failed program was:" >&5
20285sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020287 ac_header_compiler=no
20288fi
20289
20290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20292echo "${ECHO_T}$ac_header_compiler" >&6; }
20293
20294# Is the header present?
20295{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20297cat >conftest.$ac_ext <<_ACEOF
20298/* confdefs.h. */
20299_ACEOF
20300cat confdefs.h >>conftest.$ac_ext
20301cat >>conftest.$ac_ext <<_ACEOF
20302/* end confdefs.h. */
20303#include <$ac_header>
20304_ACEOF
20305if { (ac_try="$ac_cpp conftest.$ac_ext"
20306case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20309esac
20310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20312 ac_status=$?
20313 grep -v '^ *+' conftest.er1 >conftest.err
20314 rm -f conftest.er1
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } >/dev/null; then
20318 if test -s conftest.err; then
20319 ac_cpp_err=$ac_c_preproc_warn_flag
20320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20321 else
20322 ac_cpp_err=
20323 fi
20324else
20325 ac_cpp_err=yes
20326fi
20327if test -z "$ac_cpp_err"; then
20328 ac_header_preproc=yes
20329else
20330 echo "$as_me: failed program was:" >&5
20331sed 's/^/| /' conftest.$ac_ext >&5
20332
20333 ac_header_preproc=no
20334fi
20335
20336rm -f conftest.err conftest.$ac_ext
20337{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20338echo "${ECHO_T}$ac_header_preproc" >&6; }
20339
20340# So? What about this header?
20341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20342 yes:no: )
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20347 ac_header_preproc=yes
20348 ;;
20349 no:yes:* )
20350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20362 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020363## ------------------------------------ ##
20364## Report this to http://llvm.org/bugs/ ##
20365## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020366_ASBOX
20367 ) | sed "s/^/$as_me: WARNING: /" >&2
20368 ;;
20369esac
20370{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20374else
20375 eval "$as_ac_Header=\$ac_header_preproc"
20376fi
20377ac_res=`eval echo '${'$as_ac_Header'}'`
20378 { echo "$as_me:$LINENO: result: $ac_res" >&5
20379echo "${ECHO_T}$ac_res" >&6; }
20380
20381fi
20382if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020383 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020385_ACEOF
20386
20387fi
20388
20389done
20390
20391
20392for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020393do
20394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20395{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20397if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20399else
20400 cat >conftest.$ac_ext <<_ACEOF
20401/* confdefs.h. */
20402_ACEOF
20403cat confdefs.h >>conftest.$ac_ext
20404cat >>conftest.$ac_ext <<_ACEOF
20405/* end confdefs.h. */
20406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20408#define $ac_func innocuous_$ac_func
20409
20410/* System header to define __stub macros and hopefully few prototypes,
20411 which can conflict with char $ac_func (); below.
20412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413 <limits.h> exists even on freestanding compilers. */
20414
20415#ifdef __STDC__
20416# include <limits.h>
20417#else
20418# include <assert.h>
20419#endif
20420
20421#undef $ac_func
20422
20423/* Override any GCC internal prototype to avoid an error.
20424 Use char because int might match the return type of a GCC
20425 builtin and then its argument prototype would still apply. */
20426#ifdef __cplusplus
20427extern "C"
20428#endif
20429char $ac_func ();
20430/* The GNU C library defines this for functions which it implements
20431 to always fail with ENOSYS. Some functions are actually named
20432 something starting with __ and the normal name is an alias. */
20433#if defined __stub_$ac_func || defined __stub___$ac_func
20434choke me
20435#endif
20436
20437int
20438main ()
20439{
20440return $ac_func ();
20441 ;
20442 return 0;
20443}
20444_ACEOF
20445rm -f conftest.$ac_objext conftest$ac_exeext
20446if { (ac_try="$ac_link"
20447case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450esac
20451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_link") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20460 { (case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20463esac
20464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_try") 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest$ac_exeext'
20470 { (case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20473esac
20474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_try") 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 eval "$as_ac_var=yes"
20480else
20481 echo "$as_me: failed program was:" >&5
20482sed 's/^/| /' conftest.$ac_ext >&5
20483
20484 eval "$as_ac_var=no"
20485fi
20486
20487rm -f core conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
20489fi
20490ac_res=`eval echo '${'$as_ac_var'}'`
20491 { echo "$as_me:$LINENO: result: $ac_res" >&5
20492echo "${ECHO_T}$ac_res" >&6; }
20493if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020494 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020496_ACEOF
20497
20498fi
20499done
20500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020501{ echo "$as_me:$LINENO: checking for working mmap" >&5
20502echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20503if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020506 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020507 ac_cv_func_mmap_fixed_mapped=no
20508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509 cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020515$ac_includes_default
20516/* malloc might have been renamed as rpl_malloc. */
20517#undef malloc
20518
20519/* Thanks to Mike Haertel and Jim Avera for this test.
20520 Here is a matrix of mmap possibilities:
20521 mmap private not fixed
20522 mmap private fixed at somewhere currently unmapped
20523 mmap private fixed at somewhere already mapped
20524 mmap shared not fixed
20525 mmap shared fixed at somewhere currently unmapped
20526 mmap shared fixed at somewhere already mapped
20527 For private mappings, we should verify that changes cannot be read()
20528 back from the file, nor mmap's back from the file at a different
20529 address. (There have been systems where private was not correctly
20530 implemented like the infamous i386 svr4.0, and systems where the
20531 VM page cache was not coherent with the file system buffer cache
20532 like early versions of FreeBSD and possibly contemporary NetBSD.)
20533 For shared mappings, we should conversely verify that changes get
20534 propagated back to all the places they're supposed to be.
20535
20536 Grep wants private fixed already mapped.
20537 The main things grep needs to know about mmap are:
20538 * does it exist and is it safe to write into the mmap'd area
20539 * how to use it (BSD variants) */
20540
20541#include <fcntl.h>
20542#include <sys/mman.h>
20543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020544#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020545char *malloc ();
20546#endif
20547
20548/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020549#if !HAVE_GETPAGESIZE
20550/* Assume that all systems that can run configure have sys/param.h. */
20551# if !HAVE_SYS_PARAM_H
20552# define HAVE_SYS_PARAM_H 1
20553# endif
20554
John Criswell7a73b802003-06-30 21:59:07 +000020555# ifdef _SC_PAGESIZE
20556# define getpagesize() sysconf(_SC_PAGESIZE)
20557# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020558# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020559# include <sys/param.h>
20560# ifdef EXEC_PAGESIZE
20561# define getpagesize() EXEC_PAGESIZE
20562# else /* no EXEC_PAGESIZE */
20563# ifdef NBPG
20564# define getpagesize() NBPG * CLSIZE
20565# ifndef CLSIZE
20566# define CLSIZE 1
20567# endif /* no CLSIZE */
20568# else /* no NBPG */
20569# ifdef NBPC
20570# define getpagesize() NBPC
20571# else /* no NBPC */
20572# ifdef PAGESIZE
20573# define getpagesize() PAGESIZE
20574# endif /* PAGESIZE */
20575# endif /* no NBPC */
20576# endif /* no NBPG */
20577# endif /* no EXEC_PAGESIZE */
20578# else /* no HAVE_SYS_PARAM_H */
20579# define getpagesize() 8192 /* punt totally */
20580# endif /* no HAVE_SYS_PARAM_H */
20581# endif /* no _SC_PAGESIZE */
20582
20583#endif /* no HAVE_GETPAGESIZE */
20584
20585int
20586main ()
20587{
20588 char *data, *data2, *data3;
20589 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020590 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020591
20592 pagesize = getpagesize ();
20593
20594 /* First, make a file with some known garbage in it. */
20595 data = (char *) malloc (pagesize);
20596 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020597 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020598 for (i = 0; i < pagesize; ++i)
20599 *(data + i) = rand ();
20600 umask (0);
20601 fd = creat ("conftest.mmap", 0600);
20602 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020604 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020606 close (fd);
20607
20608 /* Next, try to mmap the file at a fixed address which already has
20609 something else allocated at it. If we can, also make sure that
20610 we see the same garbage. */
20611 fd = open ("conftest.mmap", O_RDWR);
20612 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613 return 1;
20614 data2 = (char *) malloc (2 * pagesize);
20615 if (!data2)
20616 return 1;
20617 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020618 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020619 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020620 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020621 for (i = 0; i < pagesize; ++i)
20622 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020623 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020624
20625 /* Finally, make sure that changes to the mapped area do not
20626 percolate back to the file as seen by read(). (This is a bug on
20627 some variants of i386 svr4.0.) */
20628 for (i = 0; i < pagesize; ++i)
20629 *(data2 + i) = *(data2 + i) + 1;
20630 data3 = (char *) malloc (pagesize);
20631 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020633 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020634 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020635 for (i = 0; i < pagesize; ++i)
20636 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020637 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020638 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020639 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020640}
20641_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020642rm -f conftest$ac_exeext
20643if { (ac_try="$ac_link"
20644case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647esac
20648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_link") 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20653 { (case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20656esac
20657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_try") 2>&5
20659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020662 ac_cv_func_mmap_fixed_mapped=yes
20663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020664 echo "$as_me: program exited with status $ac_status" >&5
20665echo "$as_me: failed program was:" >&5
20666sed 's/^/| /' conftest.$ac_ext >&5
20667
20668( exit $ac_status )
20669ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671rm -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 +000020672fi
Reid Spencera773bd52006-08-04 18:18:08 +000020673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020674
John Criswell7a73b802003-06-30 21:59:07 +000020675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020676{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20677echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020678if test $ac_cv_func_mmap_fixed_mapped = yes; then
20679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680cat >>confdefs.h <<\_ACEOF
20681#define HAVE_MMAP 1
20682_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020683
20684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020685rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20688echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20689if test "${ac_cv_func_mmap_file+set}" = set; then
20690 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020691else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020692 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020693ac_cpp='$CPP $CPPFLAGS'
20694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20696ac_compiler_gnu=$ac_cv_c_compiler_gnu
20697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020698 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020699 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020701 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020703 /* confdefs.h. */
20704_ACEOF
20705cat confdefs.h >>conftest.$ac_ext
20706cat >>conftest.$ac_ext <<_ACEOF
20707/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020708
John Criswell7a73b802003-06-30 21:59:07 +000020709#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020710#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020711#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020712
20713int
20714main ()
20715{
John Criswell7a73b802003-06-30 21:59:07 +000020716
20717 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020718 fd = creat ("foo",0777);
20719 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20720 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020721 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020722 ;
20723 return 0;
20724}
John Criswell7a73b802003-06-30 21:59:07 +000020725_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020726rm -f conftest$ac_exeext
20727if { (ac_try="$ac_link"
20728case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731esac
20732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_link") 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20737 { (case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20740esac
20741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_try") 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020746 ac_cv_func_mmap_file=yes
20747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748 echo "$as_me: program exited with status $ac_status" >&5
20749echo "$as_me: failed program was:" >&5
20750sed 's/^/| /' conftest.$ac_ext >&5
20751
20752( exit $ac_status )
20753ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020755rm -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 +000020756fi
Reid Spencera773bd52006-08-04 18:18:08 +000020757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020758
John Criswell7a73b802003-06-30 21:59:07 +000020759 ac_ext=c
20760ac_cpp='$CPP $CPPFLAGS'
20761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763ac_compiler_gnu=$ac_cv_c_compiler_gnu
20764
20765
20766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020767{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20768echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020769if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020771cat >>confdefs.h <<\_ACEOF
20772#define HAVE_MMAP_FILE
20773_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020774
20775 MMAP_FILE=yes
20776
20777fi
20778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020779 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20780echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20781if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020783else
Reid Spencer582a23c2004-12-29 07:07:57 +000020784 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020785 ac_cv_need_dev_zero_for_mmap=yes
20786 else
20787 ac_cv_need_dev_zero_for_mmap=no
20788 fi
20789
20790fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020791{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20792echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020793if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020795cat >>confdefs.h <<\_ACEOF
20796#define NEED_DEV_ZERO_FOR_MMAP 1
20797_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020798
20799fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020800
Reid Spencer30fe5262007-01-20 07:48:49 +000020801 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20802 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020803 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20804echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020805 fi
20806 if test "$ac_cv_func_mmap_file" = "no"
20807 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020808 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20809echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020810 fi
John Criswellb13092b2003-07-22 21:00:24 +000020811fi
John Criswell7a73b802003-06-30 21:59:07 +000020812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020813{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20814echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020815ac_ext=cpp
20816ac_cpp='$CXXCPP $CPPFLAGS'
20817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020821cat >conftest.$ac_ext <<_ACEOF
20822/* confdefs.h. */
20823_ACEOF
20824cat confdefs.h >>conftest.$ac_ext
20825cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020826/* end confdefs.h. */
20827int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020828 volatile unsigned long val = 1;
20829 __sync_synchronize();
20830 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020831 __sync_add_and_fetch(&val, 1);
20832 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020833 return 0;
20834 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020835
20836_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020837rm -f conftest.$ac_objext conftest$ac_exeext
20838if { (ac_try="$ac_link"
20839case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20842esac
20843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_link") 2>conftest.er1
20845 ac_status=$?
20846 grep -v '^ *+' conftest.er1 >conftest.err
20847 rm -f conftest.er1
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20852 { (case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855esac
20856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_try") 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest$ac_exeext'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865esac
20866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020871 ac_ext=c
20872ac_cpp='$CPP $CPPFLAGS'
20873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875ac_compiler_gnu=$ac_cv_c_compiler_gnu
20876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020877 { echo "$as_me:$LINENO: result: yes" >&5
20878echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020880cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020881#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020882_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020883
Owen Andersond4b272b2009-05-18 23:58:51 +000020884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020885 echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020888 { echo "$as_me:$LINENO: result: no" >&5
20889echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020891cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020892#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020893_ACEOF
20894
20895 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20896echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020897fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898
Owen Andersond4b272b2009-05-18 23:58:51 +000020899rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020900 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020901
John Criswell7a73b802003-06-30 21:59:07 +000020902
Nick Lewycky4372e692009-09-29 06:18:23 +000020903if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020904 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20905echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20906if test "${llvm_cv_linux_mixed+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020908else
20909 ac_ext=c
20910ac_cpp='$CPP $CPPFLAGS'
20911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913ac_compiler_gnu=$ac_cv_c_compiler_gnu
20914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020915 cat >conftest.$ac_ext <<_ACEOF
20916/* confdefs.h. */
20917_ACEOF
20918cat confdefs.h >>conftest.$ac_ext
20919cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020920/* end confdefs.h. */
20921#ifndef __x86_64__
20922 error: Not x86-64 even if uname says so!
20923 #endif
20924
20925int
20926main ()
20927{
20928
20929 ;
20930 return 0;
20931}
20932_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020933rm -f conftest.$ac_objext
20934if { (ac_try="$ac_compile"
20935case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938esac
20939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_compile") 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } &&
20947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20948 { (case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20951esac
20952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_try") 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest.$ac_objext'
20958 { (case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961esac
20962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_try") 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020967 llvm_cv_linux_mixed=no
20968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020969 echo "$as_me: failed program was:" >&5
20970sed 's/^/| /' conftest.$ac_ext >&5
20971
20972 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020974
Nick Lewycky4372e692009-09-29 06:18:23 +000020975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 ac_ext=c
20977ac_cpp='$CPP $CPPFLAGS'
20978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980ac_compiler_gnu=$ac_cv_c_compiler_gnu
20981
20982
20983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020984{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20985echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020986
20987 if test "$llvm_cv_linux_mixed" = "yes"; then
20988 llvm_cv_target_arch="x86"
20989 ARCH="x86"
20990 fi
20991fi
20992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020993
Reid Spencer9372f152007-07-30 20:13:24 +000020994for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995do
20996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20997{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20999if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21000 echo $ECHO_N "(cached) $ECHO_C" >&6
21001else
21002 cat >conftest.$ac_ext <<_ACEOF
21003/* confdefs.h. */
21004_ACEOF
21005cat confdefs.h >>conftest.$ac_ext
21006cat >>conftest.$ac_ext <<_ACEOF
21007/* end confdefs.h. */
21008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21010#define $ac_func innocuous_$ac_func
21011
21012/* System header to define __stub macros and hopefully few prototypes,
21013 which can conflict with char $ac_func (); below.
21014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21015 <limits.h> exists even on freestanding compilers. */
21016
21017#ifdef __STDC__
21018# include <limits.h>
21019#else
21020# include <assert.h>
21021#endif
21022
21023#undef $ac_func
21024
21025/* Override any GCC internal prototype to avoid an error.
21026 Use char because int might match the return type of a GCC
21027 builtin and then its argument prototype would still apply. */
21028#ifdef __cplusplus
21029extern "C"
21030#endif
21031char $ac_func ();
21032/* The GNU C library defines this for functions which it implements
21033 to always fail with ENOSYS. Some functions are actually named
21034 something starting with __ and the normal name is an alias. */
21035#if defined __stub_$ac_func || defined __stub___$ac_func
21036choke me
21037#endif
21038
21039int
21040main ()
21041{
21042return $ac_func ();
21043 ;
21044 return 0;
21045}
21046_ACEOF
21047rm -f conftest.$ac_objext conftest$ac_exeext
21048if { (ac_try="$ac_link"
21049case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052esac
21053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_link") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } &&
21061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065esac
21066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; } &&
21071 { ac_try='test -s conftest$ac_exeext'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21075esac
21076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 eval "$as_ac_var=yes"
21082else
21083 echo "$as_me: failed program was:" >&5
21084sed 's/^/| /' conftest.$ac_ext >&5
21085
21086 eval "$as_ac_var=no"
21087fi
21088
21089rm -f core conftest.err conftest.$ac_objext \
21090 conftest$ac_exeext conftest.$ac_ext
21091fi
21092ac_res=`eval echo '${'$as_ac_var'}'`
21093 { echo "$as_me:$LINENO: result: $ac_res" >&5
21094echo "${ECHO_T}$ac_res" >&6; }
21095if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021096 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021098_ACEOF
21099
21100fi
21101done
21102
21103
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021104SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021105
21106
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021107SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21108
21109
Jeff Cohen28783c32007-01-12 18:22:38 +000021110if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021111 prefix="/usr/local"
21112fi
Reid Spencere9de0912004-08-20 09:03:57 +000021113eval LLVM_PREFIX="${prefix}";
21114eval LLVM_BINDIR="${prefix}/bin";
21115eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021116eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021117eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021118eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021119eval LLVM_INCLUDEDIR="${prefix}/include";
21120eval LLVM_INFODIR="${prefix}/info";
21121eval LLVM_MANDIR="${prefix}/man";
21122LLVM_CONFIGTIME=`date`
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021134if test "${ENABLE_TIMESTAMPS}" = "0"; then
21135 LLVM_CONFIGTIME="(timestamp not enabled)"
21136fi
21137
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021138
Reid Spencere9de0912004-08-20 09:03:57 +000021139cat >>confdefs.h <<_ACEOF
21140#define LLVM_PREFIX "$LLVM_PREFIX"
21141_ACEOF
21142
21143
21144cat >>confdefs.h <<_ACEOF
21145#define LLVM_BINDIR "$LLVM_BINDIR"
21146_ACEOF
21147
21148
21149cat >>confdefs.h <<_ACEOF
21150#define LLVM_LIBDIR "$LLVM_LIBDIR"
21151_ACEOF
21152
21153
21154cat >>confdefs.h <<_ACEOF
21155#define LLVM_DATADIR "$LLVM_DATADIR"
21156_ACEOF
21157
21158
21159cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021160#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021161_ACEOF
21162
21163
21164cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021165#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021166_ACEOF
21167
21168
21169cat >>confdefs.h <<_ACEOF
21170#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21171_ACEOF
21172
21173
21174cat >>confdefs.h <<_ACEOF
21175#define LLVM_INFODIR "$LLVM_INFODIR"
21176_ACEOF
21177
21178
21179cat >>confdefs.h <<_ACEOF
21180#define LLVM_MANDIR "$LLVM_MANDIR"
21181_ACEOF
21182
21183
21184cat >>confdefs.h <<_ACEOF
21185#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21186_ACEOF
21187
21188
Eric Christopher790e11c2007-12-01 00:34:39 +000021189cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021190#define LLVM_HOSTTRIPLE "$host"
21191_ACEOF
21192
21193
21194cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021195#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021196_ACEOF
21197
21198
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021199if test "$BINDINGS_TO_BUILD" = auto ; then
21200 BINDINGS_TO_BUILD=""
21201 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21202 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21203 fi
21204fi
21205BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21206
21207
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021208ALL_BINDINGS=ocaml
21209
21210
Gordon Henriksenf0915682007-10-02 16:42:22 +000021211binding_prereqs_failed=0
21212for a_binding in $BINDINGS_TO_BUILD ; do
21213 case "$a_binding" in
21214 ocaml)
21215 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021216 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21217echo "$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 +000021218 binding_prereqs_failed=1
21219 fi
21220 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021221 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21222echo "$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 +000021223 binding_prereqs_failed=1
21224 fi
21225 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021226 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21227echo "$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 +000021228 fi
21229 if test "x$with_ocaml_libdir" != xauto ; then
21230 OCAML_LIBDIR=$with_ocaml_libdir
21231
21232 else
21233 ocaml_stdlib="`"$OCAMLC" -where`"
21234 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21235 then
21236 # ocaml stdlib is beneath our prefix; use stdlib
21237 OCAML_LIBDIR=$ocaml_stdlib
21238
21239 else
21240 # ocaml stdlib is outside our prefix; use libdir/ocaml
21241 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21242
21243 fi
21244 fi
21245 ;;
21246 esac
21247done
21248if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021249 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21250echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21251 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021252fi
21253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021254{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21255echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21256if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021258else
21259 ac_ext=cpp
21260ac_cpp='$CXXCPP $CPPFLAGS'
21261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21264
21265 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021266 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267 cat >conftest.$ac_ext <<_ACEOF
21268/* confdefs.h. */
21269_ACEOF
21270cat confdefs.h >>conftest.$ac_ext
21271cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021272/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021273template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021274int
21275main ()
21276{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021277X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021278 ;
21279 return 0;
21280}
21281_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021282rm -f conftest.$ac_objext
21283if { (ac_try="$ac_compile"
21284case "(($ac_try" in
21285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286 *) ac_try_echo=$ac_try;;
21287esac
21288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289 (eval "$ac_compile") 2>conftest.er1
21290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21297 { (case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300esac
21301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_try") 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; } &&
21306 { ac_try='test -s conftest.$ac_objext'
21307 { (case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21310esac
21311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_try") 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021316 llvm_cv_cxx_visibility_inlines_hidden=yes
21317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021318 echo "$as_me: failed program was:" >&5
21319sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021323
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 CXXFLAGS="$oldcxxflags"
21326 ac_ext=c
21327ac_cpp='$CPP $CPPFLAGS'
21328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330ac_compiler_gnu=$ac_cv_c_compiler_gnu
21331
21332
21333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021334{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21335echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021336if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21337 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21338
21339else
21340 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21341
21342fi
21343
Gordon Henriksenf0915682007-10-02 16:42:22 +000021344
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021345if test "$llvm_cv_link_use_r" = "yes" ; then
21346 RPATH="-Wl,-R"
21347else
21348 RPATH="-Wl,-rpath"
21349fi
21350
21351
21352if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21353 RDYNAMIC="-Wl,-export-dynamic"
21354else
21355 RDYNAMIC=""
21356fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021357
21358
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021359
Eric Christophera1cba682010-08-08 02:44:25 +000021360ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021361
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021362
21363
21364
21365
21366
Douglas Gregor1555a232009-06-16 20:12:29 +000021367ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21368
21369ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21370
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021371ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21372
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021373ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21374
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021375ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021376
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021377
Reid Spencera773bd52006-08-04 18:18:08 +000021378ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021379
Eric Christopher360fa9a2011-10-26 00:42:12 +000021380
Reid Spencerea949cf2006-08-16 00:45:38 +000021381ac_config_files="$ac_config_files llvm.spec"
21382
21383
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021384ac_config_files="$ac_config_files docs/doxygen.cfg"
21385
Eric Christopher63c09512012-02-02 00:16:55 +000021386
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021387if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021388 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021389fi
Eric Christopher63c09512012-02-02 00:16:55 +000021390if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021391 configh="include/clang/Config/config.h"
21392 doxy="docs/doxygen.cfg"
21393 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021394
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021395 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021396
21397fi
21398
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021399ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021400
Eric Christopher360fa9a2011-10-26 00:42:12 +000021401
Jordan Rose92080522012-10-01 18:40:32 +000021402test "x$program_prefix" = "xNONE" && program_prefix=""
21403
21404
21405
Reid Spencera773bd52006-08-04 18:18:08 +000021406ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021407
Reid Spencera773bd52006-08-04 18:18:08 +000021408ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021409
21410
Reid Spencera773bd52006-08-04 18:18:08 +000021411ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021412
21413
Reid Spencera773bd52006-08-04 18:18:08 +000021414ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021415
21416
Reid Spencera773bd52006-08-04 18:18:08 +000021417ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021418
21419
Reid Spencer8b2e1412006-11-17 03:32:33 +000021420ac_config_commands="$ac_config_commands runtime/Makefile"
21421
21422
Reid Spencera773bd52006-08-04 18:18:08 +000021423ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021424
21425
Reid Spencera773bd52006-08-04 18:18:08 +000021426ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021427
21428
Bill Wendlingf24eb392009-01-04 23:12:30 +000021429ac_config_commands="$ac_config_commands unittests/Makefile"
21430
21431
Reid Spencera773bd52006-08-04 18:18:08 +000021432ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021433
21434
Reid Spencera773bd52006-08-04 18:18:08 +000021435ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021436
21437
Reid Spencera773bd52006-08-04 18:18:08 +000021438ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021439
21440
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021441ac_config_commands="$ac_config_commands bindings/Makefile"
21442
21443
21444ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21445
21446
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021447
John Criswell7a73b802003-06-30 21:59:07 +000021448cat >confcache <<\_ACEOF
21449# This file is a shell script that caches the results of configure
21450# tests run on this system so they can be shared between configure
21451# scripts and configure runs, see configure's option --config-cache.
21452# It is not useful on other systems. If it contains results you don't
21453# want to keep, you may remove or edit it.
21454#
21455# config.status only pays attention to the cache file if you give it
21456# the --recheck option to rerun configure.
21457#
John Criswell0c38eaf2003-09-10 15:17:25 +000021458# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021459# loading this file, other *unset* `ac_cv_foo' will be assigned the
21460# following values.
21461
21462_ACEOF
21463
21464# The following way of writing the cache mishandles newlines in values,
21465# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021466# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021467# Ultrix sh set writes to stderr and can't be redirected directly,
21468# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021469(
21470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21471 eval ac_val=\$$ac_var
21472 case $ac_val in #(
21473 *${as_nl}*)
21474 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021475 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21476echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021477 esac
21478 case $ac_var in #(
21479 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021480 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021481 esac ;;
21482 esac
21483 done
21484
John Criswell7a73b802003-06-30 21:59:07 +000021485 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021486 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21487 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021488 # `set' does not quote correctly, so add quotes (double-quote
21489 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021490 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021491 "s/'/'\\\\''/g;
21492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021493 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021494 *)
21495 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021497 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021498 esac |
21499 sort
21500) |
John Criswell7a73b802003-06-30 21:59:07 +000021501 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021502 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021503 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021504 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21506 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21508 :end' >>confcache
21509if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21510 if test -w "$cache_file"; then
21511 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021512 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21513echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021514 cat confcache >$cache_file
21515 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21517echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021518 fi
21519fi
21520rm -f confcache
21521
21522test "x$prefix" = xNONE && prefix=$ac_default_prefix
21523# Let make expand exec_prefix.
21524test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21525
John Criswell7a73b802003-06-30 21:59:07 +000021526DEFS=-DHAVE_CONFIG_H
21527
John Criswell0c38eaf2003-09-10 15:17:25 +000021528ac_libobjs=
21529ac_ltlibobjs=
21530for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21531 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021532 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021534 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21535 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21537 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021538done
21539LIBOBJS=$ac_libobjs
21540
21541LTLIBOBJS=$ac_ltlibobjs
21542
21543
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021544if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021545 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21546Usually this means the macro was only invoked conditionally." >&5
21547echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21548Usually this means the macro was only invoked conditionally." >&2;}
21549 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021550fi
21551if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21553Usually this means the macro was only invoked conditionally." >&5
21554echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21555Usually this means the macro was only invoked conditionally." >&2;}
21556 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021557fi
John Criswell7a73b802003-06-30 21:59:07 +000021558
21559: ${CONFIG_STATUS=./config.status}
21560ac_clean_files_save=$ac_clean_files
21561ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21563echo "$as_me: creating $CONFIG_STATUS" >&6;}
21564cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021565#! $SHELL
21566# Generated by $as_me.
21567# Run this file to recreate the current configuration.
21568# Compiler output produced by configure, useful for debugging
21569# configure, is in config.log if it exists.
21570
21571debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021572ac_cs_recheck=false
21573ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021574SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021577cat >>$CONFIG_STATUS <<\_ACEOF
21578## --------------------- ##
21579## M4sh Initialization. ##
21580## --------------------- ##
21581
21582# Be Bourne compatible
21583if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021584 emulate sh
21585 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021587 # is contrary to our usage. Disable this feature.
21588 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021589 setopt NO_GLOB_SUBST
21590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021591 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021593BIN_SH=xpg4; export BIN_SH # for Tru64
21594DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021595
John Criswell7a73b802003-06-30 21:59:07 +000021596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597# PATH needs CR
21598# Avoid depending upon Character Ranges.
21599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21602as_cr_digits='0123456789'
21603as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021604
21605# The user is always right.
21606if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607 echo "#! /bin/sh" >conf$$.sh
21608 echo "exit 0" >>conf$$.sh
21609 chmod +x conf$$.sh
21610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21611 PATH_SEPARATOR=';'
21612 else
21613 PATH_SEPARATOR=:
21614 fi
21615 rm -f conf$$.sh
21616fi
21617
21618# Support unset when possible.
21619if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21620 as_unset=unset
21621else
21622 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021623fi
John Criswell7a73b802003-06-30 21:59:07 +000021624
Reid Spencera773bd52006-08-04 18:18:08 +000021625
21626# IFS
21627# We need space, tab and new line, in precisely that order. Quoting is
21628# there to prevent editors from complaining about space-tab.
21629# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21630# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021631as_nl='
21632'
Reid Spencera773bd52006-08-04 18:18:08 +000021633IFS=" "" $as_nl"
21634
21635# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021636case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021637 *[\\/]* ) as_myself=$0 ;;
21638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021639for as_dir in $PATH
21640do
21641 IFS=$as_save_IFS
21642 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21644done
Reid Spencera773bd52006-08-04 18:18:08 +000021645IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021646
Reid Spencera773bd52006-08-04 18:18:08 +000021647 ;;
21648esac
21649# We did not find ourselves, most probably we were run as `sh COMMAND'
21650# in which case we are not to be found in the path.
21651if test "x$as_myself" = x; then
21652 as_myself=$0
21653fi
21654if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21656 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021657fi
21658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659# Work around bugs in pre-3.0 UWIN ksh.
21660for as_var in ENV MAIL MAILPATH
21661do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021662done
21663PS1='$ '
21664PS2='> '
21665PS4='+ '
21666
21667# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021668for as_var in \
21669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21671 LC_TELEPHONE LC_TIME
21672do
21673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21674 eval $as_var=C; export $as_var
21675 else
21676 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021677 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678done
Torok Edwin871384f2010-01-26 08:50:50 +000021679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021680# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021681if expr a : '\(a\)' >/dev/null 2>&1 &&
21682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21683 as_expr=expr
21684else
21685 as_expr=false
21686fi
21687
21688if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21689 as_basename=basename
21690else
21691 as_basename=false
21692fi
21693
21694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021695# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021696as_me=`$as_basename -- "$0" ||
21697$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21698 X"$0" : 'X\(//\)$' \| \
21699 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021700echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021701 sed '/^.*\/\([^/][^/]*\)\/*$/{
21702 s//\1/
21703 q
21704 }
21705 /^X\/\(\/\/\)$/{
21706 s//\1/
21707 q
21708 }
21709 /^X\/\(\/\).*/{
21710 s//\1/
21711 q
21712 }
21713 s/.*/./; q'`
21714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021715# CDPATH.
21716$as_unset CDPATH
21717
21718
21719
21720 as_lineno_1=$LINENO
21721 as_lineno_2=$LINENO
21722 test "x$as_lineno_1" != "x$as_lineno_2" &&
21723 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21724
21725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21726 # uniformly replaced by the line number. The first 'sed' inserts a
21727 # line-number line after each line using $LINENO; the second 'sed'
21728 # does the real work. The second script uses 'N' to pair each
21729 # line-number line with the line containing $LINENO, and appends
21730 # trailing '-' during substitution so that $LINENO is not a special
21731 # case at line end.
21732 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21733 # scripts with optimization help from Paolo Bonzini. Blame Lee
21734 # E. McMahon (1931-1989) for sed's syntax. :-)
21735 sed -n '
21736 p
21737 /[$]LINENO/=
21738 ' <$as_myself |
21739 sed '
21740 s/[$]LINENO.*/&-/
21741 t lineno
21742 b
21743 :lineno
21744 N
21745 :loop
21746 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21747 t loop
21748 s/-\n.*//
21749 ' >$as_me.lineno &&
21750 chmod +x "$as_me.lineno" ||
21751 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21752 { (exit 1); exit 1; }; }
21753
21754 # Don't try to exec as it changes $[0], causing all sort of problems
21755 # (the dirname of $[0] is not the place where we might find the
21756 # original and so on. Autoconf is especially sensitive to this).
21757 . "./$as_me.lineno"
21758 # Exit status is that of the last command.
21759 exit
21760}
21761
21762
21763if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21764 as_dirname=dirname
21765else
21766 as_dirname=false
21767fi
Reid Spencera773bd52006-08-04 18:18:08 +000021768
21769ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021770case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021771-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021775 esac;;
21776*)
21777 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021778esac
21779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780if expr a : '\(a\)' >/dev/null 2>&1 &&
21781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21782 as_expr=expr
21783else
21784 as_expr=false
21785fi
21786
John Criswell7a73b802003-06-30 21:59:07 +000021787rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021788if test -d conf$$.dir; then
21789 rm -f conf$$.dir/conf$$.file
21790else
21791 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021794echo >conf$$.file
21795if ln -s conf$$.file conf$$ 2>/dev/null; then
21796 as_ln_s='ln -s'
21797 # ... but there are two gotchas:
21798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21800 # In both cases, we have to default to `cp -p'.
21801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021802 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803elif ln conf$$.file conf$$ 2>/dev/null; then
21804 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021805else
21806 as_ln_s='cp -p'
21807fi
Reid Spencera773bd52006-08-04 18:18:08 +000021808rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21809rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021810
John Criswell0c38eaf2003-09-10 15:17:25 +000021811if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021813else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021814 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021815 as_mkdir_p=false
21816fi
21817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021818# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21819# systems may use methods other than mode bits to determine executability.
21820cat >conf$$.file <<_ASEOF
21821#! /bin/sh
21822exit 0
21823_ASEOF
21824chmod +x conf$$.file
21825if test -x conf$$.file >/dev/null 2>&1; then
21826 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021830rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021831
21832# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021833as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021834
21835# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021836as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021837
21838
John Criswell7a73b802003-06-30 21:59:07 +000021839exec 6>&1
21840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021842# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021843# values after options handling.
21844ac_log="
Benjamin Kramer537d9a72012-11-17 22:01:08 +000021845This file was extended by LLVM $as_me 3.3svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021847
21848 CONFIG_FILES = $CONFIG_FILES
21849 CONFIG_HEADERS = $CONFIG_HEADERS
21850 CONFIG_LINKS = $CONFIG_LINKS
21851 CONFIG_COMMANDS = $CONFIG_COMMANDS
21852 $ $0 $@
21853
Reid Spencera773bd52006-08-04 18:18:08 +000021854on `(hostname || uname -n) 2>/dev/null | sed 1q`
21855"
21856
John Criswell7a73b802003-06-30 21:59:07 +000021857_ACEOF
21858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021859cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021860# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021861config_files="$ac_config_files"
21862config_headers="$ac_config_headers"
21863config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021864
Reid Spencera773bd52006-08-04 18:18:08 +000021865_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021868ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869\`$as_me' instantiates files from templates according to the
21870current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021873
21874 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875 -V, --version print version number, then exit
21876 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021877 -d, --debug don't remove temporary files
21878 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879 --file=FILE[:TEMPLATE]
21880 instantiate the configuration file FILE
21881 --header=FILE[:TEMPLATE]
21882 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021883
21884Configuration files:
21885$config_files
21886
21887Configuration headers:
21888$config_headers
21889
John Criswellc764fbc2003-09-06 15:17:13 +000021890Configuration commands:
21891$config_commands
21892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021894
Reid Spencera773bd52006-08-04 18:18:08 +000021895_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021896cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021897ac_cs_version="\\
Benjamin Kramer537d9a72012-11-17 22:01:08 +000021898LLVM config.status 3.3svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021899configured by $0, generated by GNU Autoconf 2.60,
21900 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021903This config.status script is free software; the Free Software Foundation
21904gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021905
21906ac_pwd='$ac_pwd'
21907srcdir='$srcdir'
21908INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021909_ACEOF
21910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021911cat >>$CONFIG_STATUS <<\_ACEOF
21912# If no file are specified by the user, then we need to provide default
21913# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021914ac_need_defaults=:
21915while test $# != 0
21916do
21917 case $1 in
21918 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021919 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21920 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021921 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021922 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021923 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021924 ac_option=$1
21925 ac_optarg=$2
21926 ac_shift=shift
21927 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021928 esac
21929
John Criswell0c38eaf2003-09-10 15:17:25 +000021930 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021931 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021932 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21933 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021934 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021935 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021936 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021937 debug=: ;;
21938 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021939 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021940 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021941 ac_need_defaults=false;;
21942 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021943 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021945 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021946 --he | --h)
21947 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021948 { echo "$as_me: error: ambiguous option: $1
21949Try \`$0 --help' for more information." >&2
21950 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021951 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21954 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21955 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021956
21957 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958 -*) { echo "$as_me: error: unrecognized option: $1
21959Try \`$0 --help' for more information." >&2
21960 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021962 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021963 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021964
21965 esac
21966 shift
21967done
21968
John Criswell0c38eaf2003-09-10 15:17:25 +000021969ac_configure_extra_args=
21970
21971if $ac_cs_silent; then
21972 exec 6>/dev/null
21973 ac_configure_extra_args="$ac_configure_extra_args --silent"
21974fi
21975
21976_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021977cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021978if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021979 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21980 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021981 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021982 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021983fi
21984
John Criswell7a73b802003-06-30 21:59:07 +000021985_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021986cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021987exec 5>>config.log
21988{
21989 echo
21990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21991## Running $as_me. ##
21992_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021993 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021994} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021995
Reid Spencera773bd52006-08-04 18:18:08 +000021996_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021997cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021998#
Reid Spencera773bd52006-08-04 18:18:08 +000021999# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000022000#
Reid Spencerc0682832005-02-24 19:05:19 +000022001llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000022002
22003_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022005cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022006
22007# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000022008for ac_config_target in $ac_config_targets
22009do
Reid Spencera773bd52006-08-04 18:18:08 +000022010 case $ac_config_target in
22011 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000022012 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000022013 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22014 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022015 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022016 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022017 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022018 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000022019 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022020 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000022021 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22022 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000022023 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022024 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22025 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22026 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22027 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22028 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022029 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022030 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22031 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022032 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022033 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22034 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22035 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022036 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22037 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22040echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22041 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022042 esac
22043done
22044
Reid Spencera773bd52006-08-04 18:18:08 +000022045
John Criswell7a73b802003-06-30 21:59:07 +000022046# If the user did not use the arguments to specify the items to instantiate,
22047# then the envvar interface is used. Set only those that are not.
22048# We use the long form for the default assignment because of an extremely
22049# bizarre bug on SunOS 4.1.3.
22050if $ac_need_defaults; then
22051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022054fi
22055
John Criswell0c38eaf2003-09-10 15:17:25 +000022056# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022057# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022058# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022059# Hook for its removal unless debugging.
22060# Note that there is a small window in which the directory will not be cleaned:
22061# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022062$debug ||
22063{
Reid Spencera773bd52006-08-04 18:18:08 +000022064 tmp=
22065 trap 'exit_status=$?
22066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22067' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022068 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022069}
John Criswell7a73b802003-06-30 21:59:07 +000022070# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022071
John Criswell7a73b802003-06-30 21:59:07 +000022072{
Reid Spencera773bd52006-08-04 18:18:08 +000022073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022074 test -n "$tmp" && test -d "$tmp"
22075} ||
22076{
Reid Spencera773bd52006-08-04 18:18:08 +000022077 tmp=./conf$$-$RANDOM
22078 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022079} ||
22080{
22081 echo "$me: cannot create a temporary directory in ." >&2
22082 { (exit 1); exit 1; }
22083}
John Criswell7a73b802003-06-30 21:59:07 +000022084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022085#
22086# Set up the sed scripts for CONFIG_FILES section.
22087#
22088
22089# No need to generate the scripts if there are no CONFIG_FILES.
22090# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022091if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022092
22093_ACEOF
22094
Reid Spencera773bd52006-08-04 18:18:08 +000022095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096
Reid Spencera773bd52006-08-04 18:18:08 +000022097ac_delim='%!_!# '
22098for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022099 cat >conf$$subs.sed <<_ACEOF
22100SHELL!$SHELL$ac_delim
22101PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22102PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22103PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22104PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22105PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22106PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22107exec_prefix!$exec_prefix$ac_delim
22108prefix!$prefix$ac_delim
22109program_transform_name!$program_transform_name$ac_delim
22110bindir!$bindir$ac_delim
22111sbindir!$sbindir$ac_delim
22112libexecdir!$libexecdir$ac_delim
22113datarootdir!$datarootdir$ac_delim
22114datadir!$datadir$ac_delim
22115sysconfdir!$sysconfdir$ac_delim
22116sharedstatedir!$sharedstatedir$ac_delim
22117localstatedir!$localstatedir$ac_delim
22118includedir!$includedir$ac_delim
22119oldincludedir!$oldincludedir$ac_delim
22120docdir!$docdir$ac_delim
22121infodir!$infodir$ac_delim
22122htmldir!$htmldir$ac_delim
22123dvidir!$dvidir$ac_delim
22124pdfdir!$pdfdir$ac_delim
22125psdir!$psdir$ac_delim
22126libdir!$libdir$ac_delim
22127localedir!$localedir$ac_delim
22128mandir!$mandir$ac_delim
22129DEFS!$DEFS$ac_delim
22130ECHO_C!$ECHO_C$ac_delim
22131ECHO_N!$ECHO_N$ac_delim
22132ECHO_T!$ECHO_T$ac_delim
22133LIBS!$LIBS$ac_delim
22134build_alias!$build_alias$ac_delim
22135host_alias!$host_alias$ac_delim
22136target_alias!$target_alias$ac_delim
22137LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022138CC!$CC$ac_delim
22139CFLAGS!$CFLAGS$ac_delim
22140LDFLAGS!$LDFLAGS$ac_delim
22141CPPFLAGS!$CPPFLAGS$ac_delim
22142ac_ct_CC!$ac_ct_CC$ac_delim
22143EXEEXT!$EXEEXT$ac_delim
22144OBJEXT!$OBJEXT$ac_delim
22145CXX!$CXX$ac_delim
22146CXXFLAGS!$CXXFLAGS$ac_delim
22147ac_ct_CXX!$ac_ct_CXX$ac_delim
22148CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022150ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22151LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022152build!$build$ac_delim
22153build_cpu!$build_cpu$ac_delim
22154build_vendor!$build_vendor$ac_delim
22155build_os!$build_os$ac_delim
22156host!$host$ac_delim
22157host_cpu!$host_cpu$ac_delim
22158host_vendor!$host_vendor$ac_delim
22159host_os!$host_os$ac_delim
22160target!$target$ac_delim
22161target_cpu!$target_cpu$ac_delim
22162target_vendor!$target_vendor$ac_delim
22163target_os!$target_os$ac_delim
22164OS!$OS$ac_delim
22165HOST_OS!$HOST_OS$ac_delim
22166TARGET_OS!$TARGET_OS$ac_delim
22167LINKALL!$LINKALL$ac_delim
22168NOLINKALL!$NOLINKALL$ac_delim
22169LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22170LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22171ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022172HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022173ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022174GREP!$GREP$ac_delim
22175EGREP!$EGREP$ac_delim
22176LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22177BUILD_CC!$BUILD_CC$ac_delim
22178BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22179BUILD_CXX!$BUILD_CXX$ac_delim
22180CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022181ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022182ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Roman Divackyd14baf42012-12-13 16:07:19 +000022183ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22184ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22185ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022186ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22187ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22188DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022189ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022190ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22191EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22192DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22193DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022194KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195JIT!$JIT$ac_delim
22196TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022197_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022199 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022200 break
22201 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022202 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22203echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22204 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022205 else
22206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022207 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022208done
22209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022210ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22211if test -n "$ac_eof"; then
22212 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22213 ac_eof=`expr $ac_eof + 1`
22214fi
22215
22216cat >>$CONFIG_STATUS <<_ACEOF
22217cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22218/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022219_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022220sed '
22221s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22222s/^/s,@/; s/!/@,|#_!!_#|/
22223:n
22224t n
22225s/'"$ac_delim"'$/,g/; t
22226s/$/\\/; p
22227N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22228' >>$CONFIG_STATUS <conf$$subs.sed
22229rm -f conf$$subs.sed
22230cat >>$CONFIG_STATUS <<_ACEOF
22231CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022232_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022233
22234
22235ac_delim='%!_!# '
22236for ac_last_try in false false false false false :; do
22237 cat >conf$$subs.sed <<_ACEOF
Roman Divackyd14baf42012-12-13 16:07:19 +000022238ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22239ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22240LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022241ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022242ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022243ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022244ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022245ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherf0b3b742012-11-19 19:31:02 +000022246ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022247TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22248LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22249LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022250LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022251LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022252OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022253EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022254EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022255CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022256BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022257INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022258NM!$NM$ac_delim
22259ifGNUmake!$ifGNUmake$ac_delim
22260LN_S!$LN_S$ac_delim
22261CMP!$CMP$ac_delim
22262CP!$CP$ac_delim
22263DATE!$DATE$ac_delim
22264FIND!$FIND$ac_delim
22265MKDIR!$MKDIR$ac_delim
22266MV!$MV$ac_delim
22267RANLIB!$RANLIB$ac_delim
22268AR!$AR$ac_delim
22269RM!$RM$ac_delim
22270SED!$SED$ac_delim
22271TAR!$TAR$ac_delim
22272BINPWD!$BINPWD$ac_delim
22273GRAPHVIZ!$GRAPHVIZ$ac_delim
22274DOT!$DOT$ac_delim
22275FDP!$FDP$ac_delim
22276NEATO!$NEATO$ac_delim
22277TWOPI!$TWOPI$ac_delim
22278CIRCO!$CIRCO$ac_delim
22279GV!$GV$ac_delim
22280DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022281XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022282INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22283INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22284INSTALL_DATA!$INSTALL_DATA$ac_delim
22285BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022286CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022288GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022289GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022290PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022291ZIP!$ZIP$ac_delim
22292OCAMLC!$OCAMLC$ac_delim
22293OCAMLOPT!$OCAMLOPT$ac_delim
22294OCAMLDEP!$OCAMLDEP$ac_delim
22295OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022296GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022297HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22299INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22300CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22301CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22302LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22304NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022305COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022306USE_UDIS86!$USE_UDIS86$ac_delim
22307USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022308USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022309XML2CONFIG!$XML2CONFIG$ac_delim
22310LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22311LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022312HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22313HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22314MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022315SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022316SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022317LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22318LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22319LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22320LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22321LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22322LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22323LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22324LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22325LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22326LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22327BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22328ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022329OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22330ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22331RPATH!$RPATH$ac_delim
22332RDYNAMIC!$RDYNAMIC$ac_delim
Jordan Rose92080522012-10-01 18:40:32 +000022333program_prefix!$program_prefix$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022334LIBOBJS!$LIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022335_ACEOF
22336
Roman Divackyd14baf42012-12-13 16:07:19 +000022337 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022338 break
22339 elif $ac_last_try; then
22340 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22341echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22342 { (exit 1); exit 1; }; }
22343 else
22344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22345 fi
22346done
22347
22348ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22349if test -n "$ac_eof"; then
22350 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22351 ac_eof=`expr $ac_eof + 1`
22352fi
22353
22354cat >>$CONFIG_STATUS <<_ACEOF
22355cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyd14baf42012-12-13 16:07:19 +000022356/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22357_ACEOF
22358sed '
22359s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22360s/^/s,@/; s/!/@,|#_!!_#|/
22361:n
22362t n
22363s/'"$ac_delim"'$/,g/; t
22364s/$/\\/; p
22365N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22366' >>$CONFIG_STATUS <conf$$subs.sed
22367rm -f conf$$subs.sed
22368cat >>$CONFIG_STATUS <<_ACEOF
22369CEOF$ac_eof
22370_ACEOF
22371
22372
22373ac_delim='%!_!# '
22374for ac_last_try in false false false false false :; do
22375 cat >conf$$subs.sed <<_ACEOF
22376LTLIBOBJS!$LTLIBOBJS$ac_delim
22377_ACEOF
22378
22379 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
22380 break
22381 elif $ac_last_try; then
22382 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22383echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22384 { (exit 1); exit 1; }; }
22385 else
22386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22387 fi
22388done
22389
22390ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22391if test -n "$ac_eof"; then
22392 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22393 ac_eof=`expr $ac_eof + 1`
22394fi
22395
22396cat >>$CONFIG_STATUS <<_ACEOF
22397cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose85042e62012-09-26 00:01:00 +000022398/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grossera84b5672010-11-10 16:31:34 +000022399_ACEOF
22400sed '
22401s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22402s/^/s,@/; s/!/@,|#_!!_#|/
22403:n
22404t n
22405s/'"$ac_delim"'$/,g/; t
22406s/$/\\/; p
22407N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22408' >>$CONFIG_STATUS <conf$$subs.sed
22409rm -f conf$$subs.sed
22410cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose85042e62012-09-26 00:01:00 +000022411:end
22412s/|#_!!_#|//g
Tobias Grossera84b5672010-11-10 16:31:34 +000022413CEOF$ac_eof
22414_ACEOF
22415
22416
Reid Spencera773bd52006-08-04 18:18:08 +000022417# VPATH may cause trouble with some makes, so we remove $(srcdir),
22418# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22419# trailing colons and then remove the whole line if VPATH becomes empty
22420# (actually we leave an empty line to preserve line numbers).
22421if test "x$srcdir" = x.; then
22422 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22423s/:*\$(srcdir):*/:/
22424s/:*\${srcdir}:*/:/
22425s/:*@srcdir@:*/:/
22426s/^\([^=]*=[ ]*\):*/\1/
22427s/:*$//
22428s/^[^=]*=[ ]*$//
22429}'
22430fi
22431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022432cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022433fi # test -n "$CONFIG_FILES"
22434
Reid Spencera773bd52006-08-04 18:18:08 +000022435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022436for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022437do
22438 case $ac_tag in
22439 :[FHLC]) ac_mode=$ac_tag; continue;;
22440 esac
22441 case $ac_mode$ac_tag in
22442 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022443 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22444echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22445 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022446 :[FH]-) ac_tag=-:-;;
22447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22448 esac
22449 ac_save_IFS=$IFS
22450 IFS=:
22451 set x $ac_tag
22452 IFS=$ac_save_IFS
22453 shift
22454 ac_file=$1
22455 shift
22456
22457 case $ac_mode in
22458 :L) ac_source=$1;;
22459 :[FH])
22460 ac_file_inputs=
22461 for ac_f
22462 do
22463 case $ac_f in
22464 -) ac_f="$tmp/stdin";;
22465 *) # Look for the file first in the build tree, then in the source tree
22466 # (if the path is not absolute). The absolute path cannot be DOS-style,
22467 # because $ac_f cannot contain `:'.
22468 test -f "$ac_f" ||
22469 case $ac_f in
22470 [\\/$]*) false;;
22471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22472 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022473 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22474echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22475 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022476 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022477 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022478 done
22479
22480 # Let's still pretend it is `configure' which instantiates (i.e., don't
22481 # use $as_me), people would be surprised to read:
22482 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022483 configure_input="Generated from "`IFS=:
22484 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022485 if test x"$ac_file" != x-; then
22486 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022487 { echo "$as_me:$LINENO: creating $ac_file" >&5
22488echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022489 fi
22490
22491 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022492 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022493 esac
22494 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022495 esac
22496
Reid Spencera773bd52006-08-04 18:18:08 +000022497 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022498$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022499 X"$ac_file" : 'X\(//\)[^/]' \| \
22500 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22504 s//\1/
22505 q
22506 }
22507 /^X\(\/\/\)[^/].*/{
22508 s//\1/
22509 q
22510 }
22511 /^X\(\/\/\)$/{
22512 s//\1/
22513 q
22514 }
22515 /^X\(\/\).*/{
22516 s//\1/
22517 q
22518 }
22519 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022520 { as_dir="$ac_dir"
22521 case $as_dir in #(
22522 -*) as_dir=./$as_dir;;
22523 esac
22524 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22525 as_dirs=
22526 while :; do
22527 case $as_dir in #(
22528 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22529 *) as_qdir=$as_dir;;
22530 esac
22531 as_dirs="'$as_qdir' $as_dirs"
22532 as_dir=`$as_dirname -- "$as_dir" ||
22533$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534 X"$as_dir" : 'X\(//\)[^/]' \| \
22535 X"$as_dir" : 'X\(//\)$' \| \
22536 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22537echo X"$as_dir" |
22538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22539 s//\1/
22540 q
22541 }
22542 /^X\(\/\/\)[^/].*/{
22543 s//\1/
22544 q
22545 }
22546 /^X\(\/\/\)$/{
22547 s//\1/
22548 q
22549 }
22550 /^X\(\/\).*/{
22551 s//\1/
22552 q
22553 }
22554 s/.*/./; q'`
22555 test -d "$as_dir" && break
22556 done
22557 test -z "$as_dirs" || eval "mkdir $as_dirs"
22558 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22559echo "$as_me: error: cannot create directory $as_dir" >&2;}
22560 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022561 ac_builddir=.
22562
Reid Spencera773bd52006-08-04 18:18:08 +000022563case "$ac_dir" in
22564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22565*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022567 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022568 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022569 case $ac_top_builddir_sub in
22570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22572 esac ;;
22573esac
22574ac_abs_top_builddir=$ac_pwd
22575ac_abs_builddir=$ac_pwd$ac_dir_suffix
22576# for backward compatibility:
22577ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022578
22579case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022580 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022581 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022582 ac_top_srcdir=$ac_top_builddir_sub
22583 ac_abs_top_srcdir=$ac_pwd ;;
22584 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022585 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022586 ac_top_srcdir=$srcdir
22587 ac_abs_top_srcdir=$srcdir ;;
22588 *) # Relative name.
22589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22590 ac_top_srcdir=$ac_top_build_prefix$srcdir
22591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022592esac
Reid Spencera773bd52006-08-04 18:18:08 +000022593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022594
John Criswell7a73b802003-06-30 21:59:07 +000022595
Reid Spencera773bd52006-08-04 18:18:08 +000022596 case $ac_mode in
22597 :F)
22598 #
22599 # CONFIG_FILE
22600 #
John Criswell7a73b802003-06-30 21:59:07 +000022601
22602 case $INSTALL in
22603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022604 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022605 esac
John Criswell7a73b802003-06-30 21:59:07 +000022606_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022608cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022609# If the template does not know about datarootdir, expand it.
22610# FIXME: This hack should be removed a few years after 2.60.
22611ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022612
22613case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022614 p
22615 q
22616}
22617/@datadir@/p
22618/@docdir@/p
22619/@infodir@/p
22620/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022621/@mandir@/p
22622' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022623*datarootdir*) ac_datarootdir_seen=yes;;
22624*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022625 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22626echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022628cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022629 ac_datarootdir_hack='
22630 s&@datadir@&$datadir&g
22631 s&@docdir@&$docdir&g
22632 s&@infodir@&$infodir&g
22633 s&@localedir@&$localedir&g
22634 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022635 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022636esac
22637_ACEOF
22638
22639# Neutralize VPATH when `$srcdir' = `.'.
22640# Shell code in configure.ac might set extrasub.
22641# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022642cat >>$CONFIG_STATUS <<_ACEOF
22643 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022644$extrasub
22645_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022646cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022647:t
22648/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022649s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022650s&@top_builddir@&$ac_top_builddir_sub&;t t
22651s&@srcdir@&$ac_srcdir&;t t
22652s&@abs_srcdir@&$ac_abs_srcdir&;t t
22653s&@top_srcdir@&$ac_top_srcdir&;t t
22654s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22655s&@builddir@&$ac_builddir&;t t
22656s&@abs_builddir@&$ac_abs_builddir&;t t
22657s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22658s&@INSTALL@&$ac_INSTALL&;t t
22659$ac_datarootdir_hack
Roman Divackyd14baf42012-12-13 16:07:19 +000022660" $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 +000022661
Reid Spencera773bd52006-08-04 18:18:08 +000022662test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022665 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022666which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022667echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022668which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022669
Reid Spencera773bd52006-08-04 18:18:08 +000022670 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022671 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022672 -) cat "$tmp/out"; rm -f "$tmp/out";;
22673 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22674 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022675 ;;
22676 :H)
22677 #
22678 # CONFIG_HEADER
22679 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022680_ACEOF
22681
22682# Transform confdefs.h into a sed script `conftest.defines', that
22683# substitutes the proper values into config.h.in to produce config.h.
22684rm -f conftest.defines conftest.tail
22685# First, append a space to every undef/define line, to ease matching.
22686echo 's/$/ /' >conftest.defines
22687# Then, protect against being on the right side of a sed subst, or in
22688# an unquoted here document, in config.status. If some macros were
22689# called several times there might be several #defines for the same
22690# symbol, which is useless. But do not sort them, since the last
22691# AC_DEFINE must be honored.
22692ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22693# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22694# NAME is the cpp macro being defined, VALUE is the value it is being given.
22695# PARAMS is the parameter list in the macro definition--in most cases, it's
22696# just an empty string.
22697ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22698ac_dB='\\)[ (].*,\\1define\\2'
22699ac_dC=' '
22700ac_dD=' ,'
22701
22702uniq confdefs.h |
22703 sed -n '
22704 t rset
22705 :rset
22706 s/^[ ]*#[ ]*define[ ][ ]*//
22707 t ok
22708 d
22709 :ok
22710 s/[\\&,]/\\&/g
22711 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22712 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22713 ' >>conftest.defines
22714
22715# Remove the space that was appended to ease matching.
22716# Then replace #undef with comments. This is necessary, for
22717# example, in the case of _POSIX_SOURCE, which is predefined and required
22718# on some systems where configure will not decide to define it.
22719# (The regexp can be short, since the line contains either #define or #undef.)
22720echo 's/ $//
22721s,^[ #]*u.*,/* & */,' >>conftest.defines
22722
22723# Break up conftest.defines:
22724ac_max_sed_lines=50
22725
22726# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22727# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22728# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22729# et cetera.
22730ac_in='$ac_file_inputs'
22731ac_out='"$tmp/out1"'
22732ac_nxt='"$tmp/out2"'
22733
22734while :
22735do
22736 # Write a here document:
22737 cat >>$CONFIG_STATUS <<_ACEOF
22738 # First, check the format of the line:
22739 cat >"\$tmp/defines.sed" <<\\CEOF
22740/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22741/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22742b
22743:def
22744_ACEOF
22745 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22746 echo 'CEOF
22747 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22748 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22749 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22750 grep . conftest.tail >/dev/null || break
22751 rm -f conftest.defines
22752 mv conftest.tail conftest.defines
22753done
22754rm -f conftest.defines conftest.tail
22755
22756echo "ac_result=$ac_in" >>$CONFIG_STATUS
22757cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022758 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022759 echo "/* $configure_input */" >"$tmp/config.h"
22760 cat "$ac_result" >>"$tmp/config.h"
22761 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22762 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22763echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022764 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022765 rm -f $ac_file
22766 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022767 fi
22768 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022769 echo "/* $configure_input */"
22770 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022771 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022772 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022773 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022775 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22776echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022777 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022778 esac
John Criswell7a73b802003-06-30 21:59:07 +000022779
Reid Spencera773bd52006-08-04 18:18:08 +000022780
22781 case $ac_file$ac_mode in
22782 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022783 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022784 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022785 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022786 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022787 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022788 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022789 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022790 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022791 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022792 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022793 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022794 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022795 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022796 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022797 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022798 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022799 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022800 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022801 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022802 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022803 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022804 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022805 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022806 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022807 ${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 +000022808
22809 esac
22810done # for ac_tag
22811
John Criswell7a73b802003-06-30 21:59:07 +000022812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022813{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022814_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022815chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022816ac_clean_files=$ac_clean_files_save
22817
22818
22819# configure is writing to config.log, and then calls config.status.
22820# config.status does its own redirection, appending to config.log.
22821# Unfortunately, on DOS this fails, as config.log is still kept open
22822# by configure, so config.status won't be able to write to it; its
22823# output is simply discarded. So we exec the FD to /dev/null,
22824# effectively closing config.log, so it can be properly (re)opened and
22825# appended to by config.status. When coming back to configure, we
22826# need to make the FD available again.
22827if test "$no_create" != yes; then
22828 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022829 ac_config_status_args=
22830 test "$silent" = yes &&
22831 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022832 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022834 exec 5>>config.log
22835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22836 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022837 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022838fi
22839
John Criswell12399a12003-09-30 15:55:44 +000022840#
22841# CONFIG_SUBDIRS section.
22842#
22843if test "$no_recursion" != yes; then
22844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022845 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022846 ac_sub_configure_args=
22847 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022848 eval "set x $ac_configure_args"
22849 shift
22850 for ac_arg
22851 do
John Criswell12399a12003-09-30 15:55:44 +000022852 if test -n "$ac_prev"; then
22853 ac_prev=
22854 continue
22855 fi
22856 case $ac_arg in
22857 -cache-file | --cache-file | --cache-fil | --cache-fi \
22858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22859 ac_prev=cache_file ;;
22860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22862 | --c=*)
22863 ;;
22864 --config-cache | -C)
22865 ;;
22866 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22867 ac_prev=srcdir ;;
22868 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22869 ;;
22870 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22871 ac_prev=prefix ;;
22872 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22873 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022874 *)
22875 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022876 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022877 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022878 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022879 esac
22880 done
22881
22882 # Always prepend --prefix to ensure using the same prefix
22883 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022884 ac_arg="--prefix=$prefix"
22885 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022886 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022887 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022888 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022889
22890 ac_popdir=`pwd`
22891 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22892
22893 # Do not complain, so a configure script can configure whichever
22894 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022895 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022896
Reid Spencera773bd52006-08-04 18:18:08 +000022897 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022898 echo "$as_me:$LINENO: $ac_msg" >&5
22899 echo "$ac_msg" >&6
22900 { as_dir="$ac_dir"
22901 case $as_dir in #(
22902 -*) as_dir=./$as_dir;;
22903 esac
22904 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22905 as_dirs=
22906 while :; do
22907 case $as_dir in #(
22908 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22909 *) as_qdir=$as_dir;;
22910 esac
22911 as_dirs="'$as_qdir' $as_dirs"
22912 as_dir=`$as_dirname -- "$as_dir" ||
22913$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22914 X"$as_dir" : 'X\(//\)[^/]' \| \
22915 X"$as_dir" : 'X\(//\)$' \| \
22916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22917echo X"$as_dir" |
22918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22919 s//\1/
22920 q
22921 }
22922 /^X\(\/\/\)[^/].*/{
22923 s//\1/
22924 q
22925 }
22926 /^X\(\/\/\)$/{
22927 s//\1/
22928 q
22929 }
22930 /^X\(\/\).*/{
22931 s//\1/
22932 q
22933 }
22934 s/.*/./; q'`
22935 test -d "$as_dir" && break
22936 done
22937 test -z "$as_dirs" || eval "mkdir $as_dirs"
22938 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22939echo "$as_me: error: cannot create directory $as_dir" >&2;}
22940 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022941 ac_builddir=.
22942
Reid Spencera773bd52006-08-04 18:18:08 +000022943case "$ac_dir" in
22944.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22945*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022947 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022948 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022949 case $ac_top_builddir_sub in
22950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22952 esac ;;
22953esac
22954ac_abs_top_builddir=$ac_pwd
22955ac_abs_builddir=$ac_pwd$ac_dir_suffix
22956# for backward compatibility:
22957ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022958
22959case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022960 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022961 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022962 ac_top_srcdir=$ac_top_builddir_sub
22963 ac_abs_top_srcdir=$ac_pwd ;;
22964 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022965 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022966 ac_top_srcdir=$srcdir
22967 ac_abs_top_srcdir=$srcdir ;;
22968 *) # Relative name.
22969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22970 ac_top_srcdir=$ac_top_build_prefix$srcdir
22971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022972esac
Reid Spencera773bd52006-08-04 18:18:08 +000022973ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022974
22975
Reid Spencera773bd52006-08-04 18:18:08 +000022976 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022977
22978 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022979 if test -f "$ac_srcdir/configure.gnu"; then
22980 ac_sub_configure=$ac_srcdir/configure.gnu
22981 elif test -f "$ac_srcdir/configure"; then
22982 ac_sub_configure=$ac_srcdir/configure
22983 elif test -f "$ac_srcdir/configure.in"; then
22984 # This should be Cygnus configure.
22985 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022986 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022987 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22988echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022989 ac_sub_configure=
22990 fi
22991
22992 # The recursion is here.
22993 if test -n "$ac_sub_configure"; then
22994 # Make the cache file name correct relative to the subdirectory.
22995 case $cache_file in
22996 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022997 *) # Relative name.
22998 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022999 esac
23000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023001 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23002echo "$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 +000023003 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000023004 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23005 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023006 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23007echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23008 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000023009 fi
23010
Reid Spencera773bd52006-08-04 18:18:08 +000023011 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000023012 done
23013fi
23014