blob: 9c89a334aba496558d0db5ab0572632812be7877 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000688ENABLE_OPTIMIZED
689ENABLE_PROFILING
690DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000691ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_EXPENSIVE_CHECKS
693EXPENSIVE_CHECKS
694DEBUG_RUNTIME
695DEBUG_SYMBOLS
696JIT
697TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000698ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000700LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000701ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000703ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000704ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000705ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706TARGETS_TO_BUILD
707LLVM_ENUM_TARGETS
708LLVM_ENUM_ASM_PRINTERS
709LLVM_ENUM_ASM_PARSERS
710LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711OPTIMIZE_OPTION
712EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000713EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000714CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000716INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000717NM
718ifGNUmake
719LN_S
720CMP
721CP
722DATE
723FIND
724MKDIR
725MV
726RANLIB
727AR
728RM
729SED
730TAR
731BINPWD
732GRAPHVIZ
733DOT
734FDP
735NEATO
736TWOPI
737CIRCO
738GV
739DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000740XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000749PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750ZIP
751OCAMLC
752OCAMLOPT
753OCAMLDEP
754OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000755GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000756HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000757INSTALL_LTDL_TRUE
758INSTALL_LTDL_FALSE
759CONVENIENCE_LTDL_TRUE
760CONVENIENCE_LTDL_FALSE
761LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000764COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765USE_UDIS86
766USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000767USE_INTEL_JITEVENTS
768INTEL_JITEVENTS_INCDIR
769INTEL_JITEVENTS_LIBDIR
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000770XML2CONFIG
771LIBXML2_LIBS
772LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773HAVE_PTHREAD
774HUGE_VAL_SANITY
775MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000777SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVM_PREFIX
779LLVM_BINDIR
780LLVM_LIBDIR
781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
789ALL_BINDINGS
790OCAML_LIBDIR
791ENABLE_VISIBILITY_INLINES_HIDDEN
792RPATH
793RDYNAMIC
794LIBOBJS
795LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000796ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000804CXX
805CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000806CCC
807CPP'
John Criswell0157f502010-03-19 21:31:39 +0000808ac_subdirs_all='projects/llvm-gcc
809projects/test-suite
810projects/llvm-test
811projects/poolalloc
812projects/llvm-poolalloc
813projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000815projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-java
818projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000819projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000820projects/llvm-kernel
821tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000848# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000857includedir='${prefix}/include'
858oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000868
869ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000870ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000871for ac_option
872do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000875 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000876 ac_prev=
877 continue
878 fi
879
Reid Spencera773bd52006-08-04 18:18:08 +0000880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
John Criswell7a73b802003-06-30 21:59:07 +0000884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
Reid Spencera773bd52006-08-04 18:18:08 +0000887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000912 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000914 datadir=$ac_optarg ;;
915
Reid Spencera773bd52006-08-04 18:18:08 +0000916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
John Criswell7a73b802003-06-30 21:59:07 +0000923 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000925 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000941
942 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000944 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
Reid Spencera773bd52006-08-04 18:18:08 +0000976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
John Criswell7a73b802003-06-30 21:59:07 +0000982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
Reid Spencera773bd52006-08-04 18:18:08 +00001006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
John Criswell7a73b802003-06-30 21:59:07 +00001011 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
Reid Spencera773bd52006-08-04 18:18:08 +00001080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
John Criswell7a73b802003-06-30 21:59:07 +00001090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001141 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001147
1148 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001186 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 ;;
1196
1197 esac
1198done
1199
1200if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001204fi
1205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001211do
Reid Spencera773bd52006-08-04 18:18:08 +00001212 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001213 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001216 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001219done
1220
1221# There might be people who depend on the old broken behavior: `$host'
1222# used to hold the argument of --host etc.
1223# FIXME: To remove some day.
1224build=$build_alias
1225host=$host_alias
1226target=$target_alias
1227
1228# FIXME: To remove some day.
1229if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1236 fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
Reid Spencera773bd52006-08-04 18:18:08 +00001245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001253
1254
John Criswell7a73b802003-06-30 21:59:07 +00001255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001258 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001259 ac_confdir=`$as_dirname -- "$0" ||
1260$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001283 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001293fi
Reid Spencera773bd52006-08-04 18:18:08 +00001294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
John Criswell7a73b802003-06-30 21:59:07 +00001315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001323\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
John Criswell7a73b802003-06-30 21:59:07 +00001343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001347 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001371 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001389 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001390 esac
1391 cat <<\_ACEOF
1392
1393Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001396 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001397 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001398 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1402 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001403 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001404 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001405 Compile with expensive debug checks enabled (default
1406 is NO)
1407 --enable-debug-runtime Build runtime libs with debug symbols (default is
1408 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001409 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1410 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001411 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001412 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001413 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001414 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001415 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001416 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001417 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001418 --enable-shared Build a shared library and link tools against it
1419 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001420 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001421 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001422 --enable-timestamps Enable embedding timestamp information in build
1423 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001424 --enable-targets Build specific host targets: all or
1425 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001426 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001427 xcore, msp430, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001428 --enable-bindings Build specific language bindings:
1429 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001430 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001431 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001432
1433Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001436 --with-optimize-option Select the compiler options to use for optimized
1437 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001438 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001439 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001440 --with-ocaml-libdir Specify install location for ocaml bindings (default
1441 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001442 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001443 --with-clang-resource-dir
1444 Relative directory from the Clang binary for
1445 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001446 --with-c-include-dirs Colon separated list of directories clang will
1447 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001448 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001449 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001450 --with-binutils-include Specify path to binutils/include/ containing
1451 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001452 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001453 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001454 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001455 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001456 --with-oprofile=<prefix>
1457 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001458 --with-intel-jitevents=<vtune-amplifier-dir>
1459 Specify location of run-time support library for
1460 Intel JIT API
1461 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001462
1463Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001464 CC C compiler command
1465 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001468 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001469 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001472 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
Eric Christopherf33ab862011-12-21 00:52:44 +00001477Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001478_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001479ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001485 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001486 ac_builddir=.
1487
Reid Spencera773bd52006-08-04 18:18:08 +00001488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001503
1504case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001505 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001510 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001517esac
Reid Spencera773bd52006-08-04 18:18:08 +00001518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001519
Reid Spencera773bd52006-08-04 18:18:08 +00001520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001528 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001532 done
1533fi
1534
Reid Spencera773bd52006-08-04 18:18:08 +00001535test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001536if $ac_init_version; then
1537 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001538LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001541Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15422002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001543This configure script is free software; the Free Software Foundation
1544gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001545
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001546Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001547_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001548 exit
John Criswell7a73b802003-06-30 21:59:07 +00001549fi
Reid Spencera773bd52006-08-04 18:18:08 +00001550cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001551This file contains any messages produced by compilers while
1552running configure, to aid debugging if configure makes a mistake.
1553
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001554It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001555generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001556
1557 $ $0 $@
1558
1559_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001560exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001561{
1562cat <<_ASUNAME
1563## --------- ##
1564## Platform. ##
1565## --------- ##
1566
1567hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1568uname -m = `(uname -m) 2>/dev/null || echo unknown`
1569uname -r = `(uname -r) 2>/dev/null || echo unknown`
1570uname -s = `(uname -s) 2>/dev/null || echo unknown`
1571uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572
1573/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1574/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1575
1576/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1577/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1578/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001579/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001580/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1581/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1582/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1583
1584_ASUNAME
1585
1586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587for as_dir in $PATH
1588do
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001591 echo "PATH: $as_dir"
1592done
Reid Spencera773bd52006-08-04 18:18:08 +00001593IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001594
1595} >&5
1596
1597cat >&5 <<_ACEOF
1598
1599
1600## ----------- ##
1601## Core tests. ##
1602## ----------- ##
1603
1604_ACEOF
1605
1606
1607# Keep a trace of the command line.
1608# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001610# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001611# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001612ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_configure_args0=
1614ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001615ac_must_keep_next=false
1616for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001617do
John Criswell0c38eaf2003-09-10 15:17:25 +00001618 for ac_arg
1619 do
1620 case $ac_arg in
1621 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1623 | -silent | --silent | --silen | --sile | --sil)
1624 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001625 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001626 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 esac
1628 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001631 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001635 case $ac_arg in
1636 *=* | --config-cache | -C | -disable-* | --disable-* \
1637 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1638 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1639 | -with-* | --with-* | -without-* | --without-* | --x)
1640 case "$ac_configure_args0 " in
1641 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 esac
1643 ;;
1644 -* ) ac_must_keep_next=true ;;
1645 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 ;;
1649 esac
1650 done
John Criswell7a73b802003-06-30 21:59:07 +00001651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001652$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1653$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 +00001654
1655# When interrupted or exit'd, cleanup temporary files, and complete
1656# config.log. We remove comments because anyway the quotes in there
1657# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001658# WARNING: Use '\'' to represent an apostrophe within the trap.
1659# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001660trap 'exit_status=$?
1661 # Save into config.log some information that might help in debugging.
1662 {
1663 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001664
John Criswell7a73b802003-06-30 21:59:07 +00001665 cat <<\_ASBOX
1666## ---------------- ##
1667## Cache variables. ##
1668## ---------------- ##
1669_ASBOX
1670 echo
1671 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001672(
1673 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1674 eval ac_val=\$$ac_var
1675 case $ac_val in #(
1676 *${as_nl}*)
1677 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001678 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1679echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001680 esac
1681 case $ac_var in #(
1682 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001683 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001684 esac ;;
1685 esac
1686 done
John Criswell7a73b802003-06-30 21:59:07 +00001687 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001688 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1689 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001690 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001691 "s/'\''/'\''\\\\'\'''\''/g;
1692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001694 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001695 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001696 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001697 esac |
1698 sort
1699)
John Criswell7a73b802003-06-30 21:59:07 +00001700 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001701
1702 cat <<\_ASBOX
1703## ----------------- ##
1704## Output variables. ##
1705## ----------------- ##
1706_ASBOX
1707 echo
1708 for ac_var in $ac_subst_vars
1709 do
Reid Spencera773bd52006-08-04 18:18:08 +00001710 eval ac_val=\$$ac_var
1711 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001713 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001714 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 done | sort
1716 echo
1717
1718 if test -n "$ac_subst_files"; then
1719 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001720## ------------------- ##
1721## File substitutions. ##
1722## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001723_ASBOX
1724 echo
1725 for ac_var in $ac_subst_files
1726 do
Reid Spencera773bd52006-08-04 18:18:08 +00001727 eval ac_val=\$$ac_var
1728 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001730 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001731 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001732 done | sort
1733 echo
1734 fi
1735
John Criswell7a73b802003-06-30 21:59:07 +00001736 if test -s confdefs.h; then
1737 cat <<\_ASBOX
1738## ----------- ##
1739## confdefs.h. ##
1740## ----------- ##
1741_ASBOX
1742 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001743 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001744 echo
1745 fi
1746 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 echo "$as_me: caught signal $ac_signal"
1748 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001749 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001750 rm -f core *.core core.conftest.* &&
1751 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001752 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001753' 0
John Criswell7a73b802003-06-30 21:59:07 +00001754for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001755 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001756done
1757ac_signal=0
1758
1759# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001760rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001761
1762# Predefined preprocessor variables.
1763
1764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_NAME "$PACKAGE_NAME"
1766_ACEOF
1767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768
John Criswell7a73b802003-06-30 21:59:07 +00001769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771_ACEOF
1772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773
John Criswell7a73b802003-06-30 21:59:07 +00001774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_VERSION "$PACKAGE_VERSION"
1776_ACEOF
1777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_STRING "$PACKAGE_STRING"
1781_ACEOF
1782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001783
John Criswell7a73b802003-06-30 21:59:07 +00001784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1786_ACEOF
1787
1788
1789# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001791if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001793elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 set x "$ac_default_prefix/share/config.site" \
1797 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799shift
1800for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001801do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001802 if test -r "$ac_site_file"; then
1803 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1804echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001805 sed 's/^/| /' "$ac_site_file" >&5
1806 . "$ac_site_file"
1807 fi
1808done
1809
1810if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001811 # Some versions of bash will fail to source /dev/null (special
1812 # files actually), so we avoid doing that.
1813 if test -f "$cache_file"; then
1814 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1815echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001816 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001817 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1818 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001819 esac
1820 fi
1821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001822 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1823echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001824 >$cache_file
1825fi
1826
1827# Check that the precious variables saved in the cache have kept the same
1828# value.
1829ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001830for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001831 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001833 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001835 case $ac_old_set,$ac_new_set in
1836 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1838echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001839 ac_cache_corrupted=: ;;
1840 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001841 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1842echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001843 ac_cache_corrupted=: ;;
1844 ,);;
1845 *)
1846 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001847 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1848echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1849 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1850echo "$as_me: former value: $ac_old_val" >&2;}
1851 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1852echo "$as_me: current value: $ac_new_val" >&2;}
1853 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001854 fi;;
1855 esac
1856 # Pass precious variables to config.status.
1857 if test "$ac_new_set" = set; then
1858 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001860 *) ac_arg=$ac_var=$ac_new_val ;;
1861 esac
1862 case " $ac_configure_args " in
1863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001865 esac
1866 fi
1867done
1868if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001869 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1870echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1871 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1872echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1873 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001874fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
Reid Spencera773bd52006-08-04 18:18:08 +00001899
John Criswell7a73b802003-06-30 21:59:07 +00001900ac_ext=c
1901ac_cpp='$CPP $CPPFLAGS'
1902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905
1906
1907
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001908cat >>confdefs.h <<\_ACEOF
1909#define LLVM_VERSION_MAJOR 3
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001914#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001915_ACEOF
1916
1917
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001918LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001919
1920
1921
1922
1923
1924
1925
John Criswell7a73b802003-06-30 21:59:07 +00001926ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001927for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001928 if test -f "$ac_dir/install-sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install-sh -c"
1931 break
1932 elif test -f "$ac_dir/install.sh"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/install.sh -c"
1935 break
1936 elif test -f "$ac_dir/shtool"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/shtool install -c"
1939 break
1940 fi
John Criswell7a73b802003-06-30 21:59:07 +00001941done
1942if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001943 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1944echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1945 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001946fi
Reid Spencera773bd52006-08-04 18:18:08 +00001947
1948# These three variables are undocumented and unsupported,
1949# and are intended to be withdrawn in a future Autoconf release.
1950# They can cause serious problems if a builder's source tree is in a directory
1951# whose full name contains unusual characters.
1952ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1953ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1954ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1955
John Criswell7a73b802003-06-30 21:59:07 +00001956
John Criswell392aaa32003-07-22 19:18:09 +00001957
Reid Spencer2706f8c2004-09-19 23:53:36 +00001958if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001959 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001960 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1961echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1962 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001963 fi
John Criswell93e1c722003-09-15 17:04:06 +00001964fi
1965
Nick Lewycky83fc4472009-09-29 05:48:51 +00001966ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967ac_cpp='$CPP $CPPFLAGS'
1968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001971if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001972 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001973 do
1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001980else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001983else
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 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 +00001991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001993 break 2
1994 fi
1995done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001996done
Reid Spencera773bd52006-08-04 18:18:08 +00001997IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001998
1999fi
2000fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002003 { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002006 { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002008fi
2009
Reid Spencera773bd52006-08-04 18:18:08 +00002010
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002011 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002012 done
2013fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002014if test -z "$CC"; then
2015 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002016 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002017do
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002024else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 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 +00002035 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002037 break 2
2038 fi
2039done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040done
Reid Spencera773bd52006-08-04 18:18:08 +00002041IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002042
2043fi
2044fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002049else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002050 { echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002052fi
2053
Reid Spencera773bd52006-08-04 18:18:08 +00002054
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002055 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002056done
John Criswell7a73b802003-06-30 21:59:07 +00002057
Reid Spencera773bd52006-08-04 18:18:08 +00002058 if test "x$ac_ct_CC" = x; then
2059 CC=""
2060 else
2061 case $cross_compiling:$ac_tool_warned in
2062yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002063{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064whose name does not start with the host triplet. If you think this
2065configuration is useful to you, please write to autoconf@gnu.org." >&5
2066echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet. If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002069ac_tool_warned=yes ;;
2070esac
2071 CC=$ac_ct_CC
2072 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073fi
2074
John Criswell7a73b802003-06-30 21:59:07 +00002075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: no acceptable C compiler found in \$PATH
2079See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081
John Criswell7a73b802003-06-30 21:59:07 +00002082# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083echo "$as_me:$LINENO: checking for C compiler version" >&5
2084ac_compiler=`set X $ac_compile; echo $2`
2085{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002086case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002092 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095{ (ac_try="$ac_compiler -v >&5"
2096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
2100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler -v >&5") 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105{ (ac_try="$ac_compiler -V >&5"
2106case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109esac
2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -V >&5") 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002116cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h. */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002122
John Criswell7a73b802003-06-30 21:59:07 +00002123int
2124main ()
2125{
2126
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002132ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002133# Try to create an executable without -o first, disregard a.out.
2134# It will help us diagnose broken compilers, and finding out an intuition
2135# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002136{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139#
2140# List of possible output files, starting from the most likely.
2141# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142# only as a last resort. b.out is created by i960 compilers.
2143ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2144#
2145# The IRIX 6 linker writes into existing files which may not be
2146# executable, retaining their permissions. Remove them first so a
2147# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002148ac_rmfiles=
2149for ac_file in $ac_files
2150do
2151 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154 esac
2155done
2156rm -f $ac_rmfiles
2157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002159case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002164 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002165 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170# in a Makefile. We should not override ac_cv_exeext if it was cached,
2171# so that the user can short-circuit this test for compilers unknown to
2172# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002174do
2175 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002176 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002178 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002180 # We found the default executable, but exeext='' is most
2181 # certainly right.
2182 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002183 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002185 then :; else
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 fi
2188 # We set ac_cv_exeext here because the later test for it is not
2189 # safe: cross compilers may not add the suffix if given an `-o'
2190 # argument, so we may need to know it at that point already.
2191 # Even if this section looks crufty: it has the advantage of
2192 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002193 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002195 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002196 esac
2197done
Reid Spencera773bd52006-08-04 18:18:08 +00002198test "$ac_cv_exeext" = no && ac_cv_exeext=
2199
John Criswell7a73b802003-06-30 21:59:07 +00002200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002201 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002202sed 's/^/| /' conftest.$ac_ext >&5
2203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002204{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: C compiler cannot create executables
2207See \`config.log' for more details." >&2;}
2208 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002209fi
John Criswell7a73b802003-06-30 21:59:07 +00002210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002211ac_exeext=$ac_cv_exeext
2212{ echo "$as_me:$LINENO: result: $ac_file" >&5
2213echo "${ECHO_T}$ac_file" >&6; }
2214
2215# Check that the compiler produces executables we can run. If not, either
2216# the compiler is broken, or we cross compile.
2217{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2219# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220# If not cross compiling, check that we can run a simple program.
2221if test "$cross_compiling" != yes; then
2222 if { ac_try='./$ac_file'
2223 { (case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226esac
2227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_try") 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2232 cross_compiling=no
2233 else
2234 if test "$cross_compiling" = maybe; then
2235 cross_compiling=yes
2236 else
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
2240echo "$as_me: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2244 fi
2245 fi
2246fi
2247{ echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6; }
2249
2250rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002251ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002252# Check that the compiler produces executables we can run. If not, either
2253# the compiler is broken, or we cross compile.
2254{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2256{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6; }
2258
2259{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2261if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002262case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002267 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002268 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002275for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002277 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002280 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002281 * ) break;;
2282 esac
2283done
2284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002285 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002291
2292rm -f conftest$ac_cv_exeext
2293{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002295
2296rm -f conftest.$ac_ext
2297EXEEXT=$ac_cv_exeext
2298ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2301if test "${ac_cv_objext+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002303else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304 cat >conftest.$ac_ext <<_ACEOF
2305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002310
John Criswell7a73b802003-06-30 21:59:07 +00002311int
2312main ()
2313{
2314
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002320if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002321case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002326 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002327 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002330 for ac_file in conftest.o conftest.obj conftest.*; do
2331 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002332 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335 break;;
2336 esac
2337done
2338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002340sed 's/^/| /' conftest.$ac_ext >&5
2341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002342{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&5
2344echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348
John Criswell7a73b802003-06-30 21:59:07 +00002349rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002351{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002353OBJEXT=$ac_cv_objext
2354ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2357if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002360 cat >conftest.$ac_ext <<_ACEOF
2361/* confdefs.h. */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002366
John Criswell7a73b802003-06-30 21:59:07 +00002367int
2368main ()
2369{
2370#ifndef __GNUC__
2371 choke me
2372#endif
2373
2374 ;
2375 return 0;
2376}
2377_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002378rm -f conftest.$ac_objext
2379if { (ac_try="$ac_compile"
2380case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383esac
2384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compile") 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (case "(($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_try") 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406esac
2407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002412 ac_compiler_gnu=yes
2413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419
Reid Spencera773bd52006-08-04 18:18:08 +00002420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002422
2423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002433else
Reid Spencera773bd52006-08-04 18:18:08 +00002434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2436 ac_cv_prog_cc_g=no
2437 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002444
John Criswell7a73b802003-06-30 21:59:07 +00002445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453rm -f conftest.$ac_objext
2454if { (ac_try="$ac_compile"
2455case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458esac
2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (case "(($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_try") 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002487 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 CFLAGS=""
2493 cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h. */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002498/* end confdefs.h. */
2499
2500int
2501main ()
2502{
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002508rm -f conftest.$ac_objext
2509if { (ac_try="$ac_compile"
2510case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513esac
2514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523 { (case "(($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_try") 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 :
Torok Edwin871384f2010-01-26 08:50:50 +00002543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002548 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002549 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002554/* end confdefs.h. */
2555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002564rm -f conftest.$ac_objext
2565if { (ac_try="$ac_compile"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579 { (case "(($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_try") 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002598 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599else
2600 echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603
John Criswell7a73b802003-06-30 21:59:07 +00002604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605
Reid Spencera773bd52006-08-04 18:18:08 +00002606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608
Reid Spencera773bd52006-08-04 18:18:08 +00002609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611
Reid Spencera773bd52006-08-04 18:18:08 +00002612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_c_werror_flag=$ac_save_c_werror_flag
2614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617if test "$ac_test_CFLAGS" = set; then
2618 CFLAGS=$ac_save_CFLAGS
2619elif test $ac_cv_prog_cc_g = yes; then
2620 if test "$GCC" = yes; then
2621 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002622 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002624 fi
2625else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 if test "$GCC" = yes; then
2627 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002628 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002630 fi
2631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002632{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2633echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_cc_c89+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636else
Reid Spencera773bd52006-08-04 18:18:08 +00002637 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002639cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644/* end confdefs.h. */
2645#include <stdarg.h>
2646#include <stdio.h>
2647#include <sys/types.h>
2648#include <sys/stat.h>
2649/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650struct buf { int x; };
2651FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652static char *e (p, i)
2653 char **p;
2654 int i;
2655{
2656 return p[i];
2657}
2658static char *f (char * (*g) (char **, int), char **p, ...)
2659{
2660 char *s;
2661 va_list v;
2662 va_start (v,p);
2663 s = g (p, va_arg (v,int));
2664 va_end (v);
2665 return s;
2666}
2667
2668/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669 function prototypes and stuff, but not '\xHH' hex character constants.
2670 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002671 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002674 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676
Reid Spencera773bd52006-08-04 18:18:08 +00002677/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2678 inside strings and character constants. */
2679#define FOO(x) 'x'
2680int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2681
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682int test (int i, double x);
2683struct s1 {int (*f) (int a);};
2684struct s2 {int (*f) (double a);};
2685int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686int argc;
2687char **argv;
2688int
2689main ()
2690{
2691return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 ;
2693 return 0;
2694}
2695_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002696for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698do
2699 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700 rm -f conftest.$ac_objext
2701if { (ac_try="$ac_compile"
2702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715 { (case "(($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_try") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002734 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002735else
2736 echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002741
Reid Spencera773bd52006-08-04 18:18:08 +00002742rm -f core conftest.err conftest.$ac_objext
2743 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002744done
Reid Spencera773bd52006-08-04 18:18:08 +00002745rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002746CC=$ac_save_CC
2747
2748fi
Reid Spencera773bd52006-08-04 18:18:08 +00002749# AC_CACHE_VAL
2750case "x$ac_cv_prog_cc_c89" in
2751 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752 { echo "$as_me:$LINENO: result: none needed" >&5
2753echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002754 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 { echo "$as_me:$LINENO: result: unsupported" >&5
2756echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002758 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2760echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002761esac
2762
John Criswell0c38eaf2003-09-10 15:17:25 +00002763
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
Eric Christopherffee5722011-09-16 20:36:25 +00002770ac_ext=cpp
2771ac_cpp='$CXXCPP $CPPFLAGS'
2772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775if test -z "$CXX"; then
2776 if test -n "$CCC"; then
2777 CXX=$CCC
2778 else
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in clang++ llvm-g++ g++
2781 do
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786if test "${ac_cv_prog_CXX+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788else
2789 if test -n "$CXX"; then
2790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809CXX=$ac_cv_prog_CXX
2810if test -n "$CXX"; then
2811 { echo "$as_me:$LINENO: result: $CXX" >&5
2812echo "${ECHO_T}$CXX" >&6; }
2813else
2814 { echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6; }
2816fi
2817
2818
2819 test -n "$CXX" && break
2820 done
2821fi
2822if test -z "$CXX"; then
2823 ac_ct_CXX=$CXX
2824 for ac_prog in clang++ llvm-g++ g++
2825do
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827set dummy $ac_prog; ac_word=$2
2828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833 if test -n "$ac_ct_CXX"; then
2834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2835else
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CXX="$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2846 fi
2847done
2848done
2849IFS=$as_save_IFS
2850
2851fi
2852fi
2853ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2854if test -n "$ac_ct_CXX"; then
2855 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2856echo "${ECHO_T}$ac_ct_CXX" >&6; }
2857else
2858 { echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6; }
2860fi
2861
2862
2863 test -n "$ac_ct_CXX" && break
2864done
2865
2866 if test "x$ac_ct_CXX" = x; then
2867 CXX="g++"
2868 else
2869 case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2872whose name does not start with the host triplet. If you think this
2873configuration is useful to you, please write to autoconf@gnu.org." >&5
2874echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet. If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2877ac_tool_warned=yes ;;
2878esac
2879 CXX=$ac_ct_CXX
2880 fi
2881fi
2882
2883 fi
2884fi
2885# Provide some information about the compiler.
2886echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2887ac_compiler=`set X $ac_compile; echo $2`
2888{ (ac_try="$ac_compiler --version >&5"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compiler --version >&5") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898{ (ac_try="$ac_compiler -v >&5"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler -v >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908{ (ac_try="$ac_compiler -V >&5"
2909case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912esac
2913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -V >&5") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918
2919{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2920echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2921if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 cat >conftest.$ac_ext <<_ACEOF
2925/* confdefs.h. */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h. */
2930
2931int
2932main ()
2933{
2934#ifndef __GNUC__
2935 choke me
2936#endif
2937
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (ac_try="$ac_compile"
2944case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2957 { (case "(($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_try") 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_compiler_gnu=yes
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 ac_compiler_gnu=no
2982fi
2983
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986
2987fi
2988{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2989echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2990GXX=`test $ac_compiler_gnu = yes && echo yes`
2991ac_test_CXXFLAGS=${CXXFLAGS+set}
2992ac_save_CXXFLAGS=$CXXFLAGS
2993{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2994echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2995if test "${ac_cv_prog_cxx_g+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2999 ac_cxx_werror_flag=yes
3000 ac_cv_prog_cxx_g=no
3001 CXXFLAGS="-g"
3002 cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017rm -f conftest.$ac_objext
3018if { (ac_try="$ac_compile"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3032 { (case "(($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_try") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3052else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 CXXFLAGS=""
3057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
3063
3064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext
3073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3087 { (case "(($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_try") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 :
3107else
3108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3112 CXXFLAGS="-g"
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119
3120int
3121main ()
3122{
3123
3124 ;
3125 return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3143 { (case "(($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_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_prog_cxx_g=yes
3163else
3164 echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167
3168fi
3169
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178fi
3179{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3180echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3181if test "$ac_test_CXXFLAGS" = set; then
3182 CXXFLAGS=$ac_save_CXXFLAGS
3183elif test $ac_cv_prog_cxx_g = yes; then
3184 if test "$GXX" = yes; then
3185 CXXFLAGS="-g -O2"
3186 else
3187 CXXFLAGS="-g"
3188 fi
3189else
3190 if test "$GXX" = yes; then
3191 CXXFLAGS="-O2"
3192 else
3193 CXXFLAGS=
3194 fi
3195fi
3196ac_ext=c
3197ac_cpp='$CPP $CPPFLAGS'
3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003201
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003202ac_ext=c
3203ac_cpp='$CPP $CPPFLAGS'
3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003207{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209# On Suns, sometimes $CPP names a directory.
3210if test -n "$CPP" && test -d "$CPP"; then
3211 CPP=
3212fi
3213if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214 if test "${ac_cv_prog_CPP+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216else
3217 # Double quotes because CPP needs to be expanded
3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219 do
3220 ac_preproc_ok=false
3221for ac_c_preproc_warn_flag in '' yes
3222do
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003229 cat >conftest.$ac_ext <<_ACEOF
3230/* confdefs.h. */
3231_ACEOF
3232cat confdefs.h >>conftest.$ac_ext
3233cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234/* end confdefs.h. */
3235#ifdef __STDC__
3236# include <limits.h>
3237#else
3238# include <assert.h>
3239#endif
3240 Syntax error
3241_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003242if { (ac_try="$ac_cpp conftest.$ac_ext"
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249 ac_status=$?
3250 grep -v '^ *+' conftest.er1 >conftest.err
3251 rm -f conftest.er1
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null; then
3255 if test -s conftest.err; then
3256 ac_cpp_err=$ac_c_preproc_warn_flag
3257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3258 else
3259 ac_cpp_err=
3260 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003262 ac_cpp_err=yes
3263fi
3264if test -z "$ac_cpp_err"; then
3265 :
3266else
3267 echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270 # Broken: fails on valid input.
3271continue
3272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003273
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003274rm -f conftest.err conftest.$ac_ext
3275
Reid Spencera773bd52006-08-04 18:18:08 +00003276 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003278 cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283/* end confdefs.h. */
3284#include <ac_nonexistent.h>
3285_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003286if { (ac_try="$ac_cpp conftest.$ac_ext"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302 else
3303 ac_cpp_err=
3304 fi
3305else
3306 ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309 # Broken: success on invalid input.
3310continue
3311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003312 echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315 # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003319
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003325if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003326 break
3327fi
3328
3329 done
3330 ac_cv_prog_CPP=$CPP
3331
3332fi
3333 CPP=$ac_cv_prog_CPP
3334else
3335 ac_cv_prog_CPP=$CPP
3336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003337{ echo "$as_me:$LINENO: result: $CPP" >&5
3338echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339ac_preproc_ok=false
3340for ac_c_preproc_warn_flag in '' yes
3341do
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353/* end confdefs.h. */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359 Syntax error
3360_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003361if { (ac_try="$ac_cpp conftest.$ac_ext"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_c_preproc_warn_flag
3376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3377 else
3378 ac_cpp_err=
3379 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003381 ac_cpp_err=yes
3382fi
3383if test -z "$ac_cpp_err"; then
3384 :
3385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389 # Broken: fails on valid input.
3390continue
3391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393rm -f conftest.err conftest.$ac_ext
3394
Reid Spencera773bd52006-08-04 18:18:08 +00003395 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003397 cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402/* end confdefs.h. */
3403#include <ac_nonexistent.h>
3404_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405if { (ac_try="$ac_cpp conftest.$ac_ext"
3406case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 else
3422 ac_cpp_err=
3423 fi
3424else
3425 ac_cpp_err=yes
3426fi
3427if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428 # Broken: success on invalid input.
3429continue
3430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431 echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434 # Passes both tests.
3435ac_preproc_ok=:
3436break
3437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003438
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439rm -f conftest.err conftest.$ac_ext
3440
3441done
3442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003444if $ac_preproc_ok; then
3445 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&5
3449echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003452fi
3453
John Criswell7a73b802003-06-30 21:59:07 +00003454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
John Criswell7a73b802003-06-30 21:59:07 +00003460
Eric Christopherffee5722011-09-16 20:36:25 +00003461
3462
3463if test -d ${srcdir}/projects/llvm-gcc ; then
3464 subdirs="$subdirs projects/llvm-gcc"
3465
3466fi
3467
3468if test -d ${srcdir}/projects/test-suite ; then
3469 subdirs="$subdirs projects/test-suite"
3470
3471fi
3472
3473if test -d ${srcdir}/projects/llvm-test ; then
3474 subdirs="$subdirs projects/llvm-test"
3475
3476fi
3477
3478if test -d ${srcdir}/projects/poolalloc ; then
3479 subdirs="$subdirs projects/poolalloc"
3480
3481fi
3482
3483if test -d ${srcdir}/projects/llvm-poolalloc ; then
3484 subdirs="$subdirs projects/llvm-poolalloc"
3485
3486fi
3487
3488for i in `ls ${srcdir}/projects`
3489do
3490 if test -d ${srcdir}/projects/${i} ; then
3491 case ${i} in
3492 sample) subdirs="$subdirs projects/sample"
3493 ;;
3494 privbracket) subdirs="$subdirs projects/privbracket"
3495 ;;
3496 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3497 ;;
3498 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3499;;
3500 llvm-java) subdirs="$subdirs projects/llvm-java"
3501 ;;
3502 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3503 ;;
3504 safecode) subdirs="$subdirs projects/safecode"
3505 ;;
3506 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3507 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003508 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003509 llvm-gcc) ;;
3510 test-suite) ;;
3511 llvm-test) ;;
3512 poolalloc) ;;
3513 llvm-poolalloc) ;;
3514 *)
3515 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3516echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3517 ;;
3518 esac
3519 fi
3520done
3521
3522# Check whether --enable-polly was given.
3523if test "${enable_polly+set}" = set; then
3524 enableval=$enable_polly;
3525else
3526 enableval=default
3527fi
3528
3529case "$enableval" in
3530 yes) ENABLE_POLLY=1
3531 ;;
3532 no) ENABLE_POLLY=0
3533 ;;
3534 default) ENABLE_POLLY=1
3535 ;;
3536 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3537echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3538 { (exit 1); exit 1; }; } ;;
3539esac
3540
3541
3542if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3543 LLVM_HAS_POLLY=1
3544
3545 subdirs="$subdirs tools/polly"
3546
3547fi
3548
3549
3550# Make sure we can run config.sub.
3551$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3552 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3553echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3554 { (exit 1); exit 1; }; }
3555
3556{ echo "$as_me:$LINENO: checking build system type" >&5
3557echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3558if test "${ac_cv_build+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560else
3561 ac_build_alias=$build_alias
3562test "x$ac_build_alias" = x &&
3563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3564test "x$ac_build_alias" = x &&
3565 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3566echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3567 { (exit 1); exit 1; }; }
3568ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3569 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3570echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3571 { (exit 1); exit 1; }; }
3572
3573fi
3574{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3575echo "${ECHO_T}$ac_cv_build" >&6; }
3576case $ac_cv_build in
3577*-*-*) ;;
3578*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3579echo "$as_me: error: invalid value of canonical build" >&2;}
3580 { (exit 1); exit 1; }; };;
3581esac
3582build=$ac_cv_build
3583ac_save_IFS=$IFS; IFS='-'
3584set x $ac_cv_build
3585shift
3586build_cpu=$1
3587build_vendor=$2
3588shift; shift
3589# Remember, the first character of IFS is used to create $*,
3590# except with old shells:
3591build_os=$*
3592IFS=$ac_save_IFS
3593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3594
3595
3596{ echo "$as_me:$LINENO: checking host system type" >&5
3597echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3598if test "${ac_cv_host+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601 if test "x$host_alias" = x; then
3602 ac_cv_host=$ac_cv_build
3603else
3604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3605 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3606echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3607 { (exit 1); exit 1; }; }
3608fi
3609
3610fi
3611{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3612echo "${ECHO_T}$ac_cv_host" >&6; }
3613case $ac_cv_host in
3614*-*-*) ;;
3615*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3616echo "$as_me: error: invalid value of canonical host" >&2;}
3617 { (exit 1); exit 1; }; };;
3618esac
3619host=$ac_cv_host
3620ac_save_IFS=$IFS; IFS='-'
3621set x $ac_cv_host
3622shift
3623host_cpu=$1
3624host_vendor=$2
3625shift; shift
3626# Remember, the first character of IFS is used to create $*,
3627# except with old shells:
3628host_os=$*
3629IFS=$ac_save_IFS
3630case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3631
3632
3633{ echo "$as_me:$LINENO: checking target system type" >&5
3634echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3635if test "${ac_cv_target+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638 if test "x$target_alias" = x; then
3639 ac_cv_target=$ac_cv_host
3640else
3641 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3642 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3643echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3644 { (exit 1); exit 1; }; }
3645fi
3646
3647fi
3648{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3649echo "${ECHO_T}$ac_cv_target" >&6; }
3650case $ac_cv_target in
3651*-*-*) ;;
3652*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3653echo "$as_me: error: invalid value of canonical target" >&2;}
3654 { (exit 1); exit 1; }; };;
3655esac
3656target=$ac_cv_target
3657ac_save_IFS=$IFS; IFS='-'
3658set x $ac_cv_target
3659shift
3660target_cpu=$1
3661target_vendor=$2
3662shift; shift
3663# Remember, the first character of IFS is used to create $*,
3664# except with old shells:
3665target_os=$*
3666IFS=$ac_save_IFS
3667case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3668
3669
3670# The aliases save the names the user supplied, while $host etc.
3671# will get canonicalized.
3672test -n "$target_alias" &&
3673 test "$program_prefix$program_suffix$program_transform_name" = \
3674 NONENONEs,x,x, &&
3675 program_prefix=${target_alias}-
3676
3677{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3678echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3679if test "${llvm_cv_os_type+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682 case $host in
3683 *-*-aix*)
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="AIX"
3687 llvm_cv_platform_type="Unix" ;;
3688 *-*-irix*)
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="IRIX"
3692 llvm_cv_platform_type="Unix" ;;
3693 *-*-cygwin*)
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="Cygwin"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-darwin*)
3699 llvm_cv_link_all_option="-Wl,-all_load"
3700 llvm_cv_no_link_all_option="-Wl,-noall_load"
3701 llvm_cv_os_type="Darwin"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-minix*)
3704 llvm_cv_link_all_option="-Wl,-all_load"
3705 llvm_cv_no_link_all_option="-Wl,-noall_load"
3706 llvm_cv_os_type="Minix"
3707 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003708 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="FreeBSD"
3712 llvm_cv_platform_type="Unix" ;;
3713 *-*-openbsd*)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="OpenBSD"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-*-netbsd*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="NetBSD"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-*-dragonfly*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="DragonFly"
3727 llvm_cv_platform_type="Unix" ;;
3728 *-*-hpux*)
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="HP-UX"
3732 llvm_cv_platform_type="Unix" ;;
3733 *-*-interix*)
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="Interix"
3737 llvm_cv_platform_type="Unix" ;;
3738 *-*-linux*)
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="Linux"
3742 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003743 *-*-gnu*)
3744 llvm_cv_link_all_option="-Wl,--whole-archive"
3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746 llvm_cv_os_type="GNU"
3747 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003748 *-*-solaris*)
3749 llvm_cv_link_all_option="-Wl,-z,allextract"
3750 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3751 llvm_cv_os_type="SunOS"
3752 llvm_cv_platform_type="Unix" ;;
3753 *-*-auroraux*)
3754 llvm_cv_link_all_option="-Wl,-z,allextract"
3755 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3756 llvm_cv_os_type="AuroraUX"
3757 llvm_cv_platform_type="Unix" ;;
3758 *-*-win32*)
3759 llvm_cv_link_all_option="-Wl,--whole-archive"
3760 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761 llvm_cv_os_type="Win32"
3762 llvm_cv_platform_type="Win32" ;;
3763 *-*-mingw*)
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="MingW"
3767 llvm_cv_platform_type="Win32" ;;
3768 *-*-haiku*)
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="Haiku"
3772 llvm_cv_platform_type="Unix" ;;
3773 *-unknown-eabi*)
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Freestanding"
3777 llvm_cv_platform_type="Unix" ;;
3778 *-unknown-elf*)
3779 llvm_cv_link_all_option="-Wl,--whole-archive"
3780 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3781 llvm_cv_os_type="Freestanding"
3782 llvm_cv_platform_type="Unix" ;;
3783 *)
3784 llvm_cv_link_all_option=""
3785 llvm_cv_no_link_all_option=""
3786 llvm_cv_os_type="Unknown"
3787 llvm_cv_platform_type="Unknown" ;;
3788esac
3789fi
3790{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3791echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3792
3793{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3794echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3795if test "${llvm_cv_target_os_type+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 case $target in
3799 *-*-aix*)
3800 llvm_cv_target_os_type="AIX" ;;
3801 *-*-irix*)
3802 llvm_cv_target_os_type="IRIX" ;;
3803 *-*-cygwin*)
3804 llvm_cv_target_os_type="Cygwin" ;;
3805 *-*-darwin*)
3806 llvm_cv_target_os_type="Darwin" ;;
3807 *-*-minix*)
3808 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003809 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003810 llvm_cv_target_os_type="FreeBSD" ;;
3811 *-*-openbsd*)
3812 llvm_cv_target_os_type="OpenBSD" ;;
3813 *-*-netbsd*)
3814 llvm_cv_target_os_type="NetBSD" ;;
3815 *-*-dragonfly*)
3816 llvm_cv_target_os_type="DragonFly" ;;
3817 *-*-hpux*)
3818 llvm_cv_target_os_type="HP-UX" ;;
3819 *-*-interix*)
3820 llvm_cv_target_os_type="Interix" ;;
3821 *-*-linux*)
3822 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003823 *-*-gnu*)
3824 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003825 *-*-solaris*)
3826 llvm_cv_target_os_type="SunOS" ;;
3827 *-*-auroraux*)
3828 llvm_cv_target_os_type="AuroraUX" ;;
3829 *-*-win32*)
3830 llvm_cv_target_os_type="Win32" ;;
3831 *-*-mingw*)
3832 llvm_cv_target_os_type="MingW" ;;
3833 *-*-haiku*)
3834 llvm_cv_target_os_type="Haiku" ;;
3835 *-*-rtems*)
3836 llvm_cv_target_os_type="RTEMS" ;;
3837 *-*-nacl*)
3838 llvm_cv_target_os_type="NativeClient" ;;
3839 *-unknown-eabi*)
3840 llvm_cv_target_os_type="Freestanding" ;;
3841 *)
3842 llvm_cv_target_os_type="Unknown" ;;
3843esac
3844fi
3845{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3846echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3847
3848if test "$llvm_cv_os_type" = "Unknown" ; then
3849 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3850echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3851 { (exit 1); exit 1; }; }
3852fi
3853
3854OS=$llvm_cv_os_type
3855
3856HOST_OS=$llvm_cv_os_type
3857
3858TARGET_OS=$llvm_cv_target_os_type
3859
3860
3861LINKALL=$llvm_cv_link_all_option
3862
3863NOLINKALL=$llvm_cv_no_link_all_option
3864
3865
3866case $llvm_cv_platform_type in
3867 Unix)
3868
3869cat >>confdefs.h <<\_ACEOF
3870#define LLVM_ON_UNIX 1
3871_ACEOF
3872
3873 LLVM_ON_UNIX=1
3874
3875 LLVM_ON_WIN32=0
3876
3877 ;;
3878 Win32)
3879
3880cat >>confdefs.h <<\_ACEOF
3881#define LLVM_ON_WIN32 1
3882_ACEOF
3883
3884 LLVM_ON_UNIX=0
3885
3886 LLVM_ON_WIN32=1
3887
3888 ;;
3889esac
3890
3891{ echo "$as_me:$LINENO: checking target architecture" >&5
3892echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3893if test "${llvm_cv_target_arch+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896 case $target in
3897 i?86-*) llvm_cv_target_arch="x86" ;;
3898 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3899 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3900 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003901 arm*-*) llvm_cv_target_arch="ARM" ;;
3902 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003903 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003904 xcore-*) llvm_cv_target_arch="XCore" ;;
3905 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003906 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003907 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003908 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003909 *) llvm_cv_target_arch="Unknown" ;;
3910esac
3911fi
3912{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3913echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3914
3915if test "$llvm_cv_target_arch" = "Unknown" ; then
3916 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3917echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3918fi
3919
Eric Christopherffee5722011-09-16 20:36:25 +00003920case "$llvm_cv_target_arch" in
3921 x86) LLVM_NATIVE_ARCH="X86" ;;
3922 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3923 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3924esac
3925
3926ARCH=$llvm_cv_target_arch
3927
3928
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003929case $host in
3930 i?86-*) host_arch="x86" ;;
3931 amd64-* | x86_64-*) host_arch="x86_64" ;;
3932 sparc*-*) host_arch="Sparc" ;;
3933 powerpc*-*) host_arch="PowerPC" ;;
3934 arm*-*) host_arch="ARM" ;;
3935 mips-*) host_arch="Mips" ;;
3936 mipsel-*) host_arch="Mips" ;;
3937 xcore-*) host_arch="XCore" ;;
3938 msp430-*) host_arch="MSP430" ;;
3939 hexagon-*) host_arch="Hexagon" ;;
3940 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003941 *) host_arch="Unknown" ;;
3942esac
3943
3944if test "$host_arch" = "Unknown" ; then
3945 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3946echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3947fi
3948
3949HOST_ARCH=$host_arch
3950
3951
Eric Christopherffee5722011-09-16 20:36:25 +00003952
3953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003954{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3955echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3956if test "${ac_cv_path_GREP+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959 # Extract the first word of "grep ggrep" to use in msg output
3960if test -z "$GREP"; then
3961set dummy grep ggrep; ac_prog_name=$2
3962if test "${ac_cv_path_GREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
Reid Spencera773bd52006-08-04 18:18:08 +00003965 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966# Loop through the user's path and test for each of PROGNAME-LIST
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003968for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003972 for ac_prog in grep ggrep; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3975 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3976 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003977 # Check for GNU $ac_path_GREP
3978case `"$ac_path_GREP" --version 2>&1` in
3979*GNU*)
3980 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3981*)
3982 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003983 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003984 while :
3985 do
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003993 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_GREP="$ac_path_GREP"
3996 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003997 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4000 done
4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002esac
4003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004
4005 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004006 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004007done
4008
4009done
Reid Spencera773bd52006-08-04 18:18:08 +00004010IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011
4012
4013fi
4014
4015GREP="$ac_cv_path_GREP"
4016if test -z "$GREP"; then
4017 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019 { (exit 1); exit 1; }; }
4020fi
4021
Reid Spencera773bd52006-08-04 18:18:08 +00004022else
4023 ac_cv_path_GREP=$GREP
4024fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026
Reid Spencera773bd52006-08-04 18:18:08 +00004027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4029echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004030 GREP="$ac_cv_path_GREP"
4031
4032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033{ echo "$as_me:$LINENO: checking for egrep" >&5
4034echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4035if test "${ac_cv_path_EGREP+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004037else
4038 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4039 then ac_cv_path_EGREP="$GREP -E"
4040 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041 # Extract the first word of "egrep" to use in msg output
4042if test -z "$EGREP"; then
4043set dummy egrep; ac_prog_name=$2
4044if test "${ac_cv_path_EGREP+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046else
Reid Spencera773bd52006-08-04 18:18:08 +00004047 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048# Loop through the user's path and test for each of PROGNAME-LIST
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004050for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004054 for ac_prog in egrep; do
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4057 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4058 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004059 # Check for GNU $ac_path_EGREP
4060case `"$ac_path_EGREP" --version 2>&1` in
4061*GNU*)
4062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4063*)
4064 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004066 while :
4067 do
4068 cat "conftest.in" "conftest.in" >"conftest.tmp"
4069 mv "conftest.tmp" "conftest.in"
4070 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004071 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4076 # Best one so far, save it but keep looking for a better one
4077 ac_cv_path_EGREP="$ac_path_EGREP"
4078 ac_path_EGREP_max=$ac_count
4079 fi
4080 # 10*(2^10) chars as input seems more than enough
4081 test $ac_count -gt 10 && break
4082 done
4083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084esac
4085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004086
4087 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004088 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089done
4090
4091done
Reid Spencera773bd52006-08-04 18:18:08 +00004092IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093
4094
4095fi
4096
4097EGREP="$ac_cv_path_EGREP"
4098if test -z "$EGREP"; then
4099 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4100echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4101 { (exit 1); exit 1; }; }
4102fi
4103
Reid Spencera773bd52006-08-04 18:18:08 +00004104else
4105 ac_cv_path_EGREP=$EGREP
4106fi
4107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004108
Reid Spencera773bd52006-08-04 18:18:08 +00004109 fi
4110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4112echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004113 EGREP="$ac_cv_path_EGREP"
4114
4115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4117echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4118if test "${ac_cv_header_stdc+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121 cat >conftest.$ac_ext <<_ACEOF
4122/* confdefs.h. */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004126/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004127#include <stdlib.h>
4128#include <stdarg.h>
4129#include <string.h>
4130#include <float.h>
4131
John Criswell0c38eaf2003-09-10 15:17:25 +00004132int
4133main ()
4134{
4135
4136 ;
4137 return 0;
4138}
John Criswell7a73b802003-06-30 21:59:07 +00004139_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140rm -f conftest.$ac_objext
4141if { (ac_try="$ac_compile"
4142case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; } &&
4164 { ac_try='test -s conftest.$ac_objext'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004174 ac_cv_header_stdc=yes
4175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004176 echo "$as_me: failed program was:" >&5
4177sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181
Reid Spencera773bd52006-08-04 18:18:08 +00004182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004183
4184if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004186 cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004192#include <string.h>
4193
4194_ACEOF
4195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004196 $EGREP "memchr" >/dev/null 2>&1; then
4197 :
John Criswell7a73b802003-06-30 21:59:07 +00004198else
4199 ac_cv_header_stdc=no
4200fi
4201rm -f conftest*
4202
4203fi
4204
4205if test $ac_cv_header_stdc = yes; then
4206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004207 cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h. */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004212/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004213#include <stdlib.h>
4214
4215_ACEOF
4216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004217 $EGREP "free" >/dev/null 2>&1; then
4218 :
John Criswell7a73b802003-06-30 21:59:07 +00004219else
4220 ac_cv_header_stdc=no
4221fi
4222rm -f conftest*
4223
4224fi
4225
4226if test $ac_cv_header_stdc = yes; then
4227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004228 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004229 :
4230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231 cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004237#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004238#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004239#if ((' ' & 0x0FF) == 0x020)
4240# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4241# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4242#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004243# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004244 (('a' <= (c) && (c) <= 'i') \
4245 || ('j' <= (c) && (c) <= 'r') \
4246 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004247# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4248#endif
4249
4250#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4251int
4252main ()
4253{
4254 int i;
4255 for (i = 0; i < 256; i++)
4256 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004257 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004258 return 2;
4259 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004260}
4261_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004262rm -f conftest$ac_exeext
4263if { (ac_try="$ac_link"
4264case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_link") 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 :
John Criswell7a73b802003-06-30 21:59:07 +00004283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004284 echo "$as_me: program exited with status $ac_status" >&5
4285echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288( exit $ac_status )
4289ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291rm -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 +00004292fi
4293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004294
John Criswell7a73b802003-06-30 21:59:07 +00004295fi
4296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004297{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4298echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004299if test $ac_cv_header_stdc = yes; then
4300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301cat >>confdefs.h <<\_ACEOF
4302#define STDC_HEADERS 1
4303_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004304
4305fi
4306
Reid Spencera773bd52006-08-04 18:18:08 +00004307# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004308
4309
4310
4311
4312
4313
4314
4315
4316
Reid Spencera773bd52006-08-04 18:18:08 +00004317for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4318 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004319do
4320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326 cat >conftest.$ac_ext <<_ACEOF
4327/* confdefs.h. */
4328_ACEOF
4329cat confdefs.h >>conftest.$ac_ext
4330cat >>conftest.$ac_ext <<_ACEOF
4331/* end confdefs.h. */
4332$ac_includes_default
4333
4334#include <$ac_header>
4335_ACEOF
4336rm -f conftest.$ac_objext
4337if { (ac_try="$ac_compile"
4338case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_compile") 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4351 { (case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354esac
4355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_try") 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364esac
4365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_try") 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 eval "$as_ac_Header=yes"
4371else
4372 echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 eval "$as_ac_Header=no"
4376fi
4377
4378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379fi
4380ac_res=`eval echo '${'$as_ac_Header'}'`
4381 { echo "$as_me:$LINENO: result: $ac_res" >&5
4382echo "${ECHO_T}$ac_res" >&6; }
4383if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004384 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004386_ACEOF
4387
4388fi
4389
4390done
4391
4392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004393{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4394echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4395if test "${ac_cv_c_bigendian+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398 # See if sys/param.h defines the BYTE_ORDER macro.
4399cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004401_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004404/* end confdefs.h. */
4405#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004407
4408int
4409main ()
4410{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004411#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4412 bogus endian macros
4413#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004414
4415 ;
4416 return 0;
4417}
4418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419rm -f conftest.$ac_objext
4420if { (ac_try="$ac_compile"
4421case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424esac
4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4427 ac_status=$?
4428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4434 { (case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437esac
4438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_try") 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447esac
4448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_try") 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004453 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h. */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004459/* end confdefs.h. */
4460#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004462
4463int
4464main ()
4465{
4466#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 not big endian
4468#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004469
4470 ;
4471 return 0;
4472}
4473_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474rm -f conftest.$ac_objext
4475if { (ac_try="$ac_compile"
4476case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4479esac
4480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4482 ac_status=$?
4483 grep -v '^ *+' conftest.er1 >conftest.err
4484 rm -f conftest.er1
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4489 { (case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492esac
4493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_try") 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502esac
4503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_try") 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004508 ac_cv_c_bigendian=yes
4509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004510 echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513 ac_cv_c_bigendian=no
4514fi
4515
4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517else
4518 echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
4520
4521 # It does not; compile a test program.
4522if test "$cross_compiling" = yes; then
4523 # try to guess the endianness by grepping values into an object file
4524 ac_cv_c_bigendian=unknown
4525 cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h. */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h. */
4531short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4532short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4533void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4534short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4535short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4536void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004537int
4538main ()
4539{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004540 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004541 ;
4542 return 0;
4543}
4544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545rm -f conftest.$ac_objext
4546if { (ac_try="$ac_compile"
4547case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550esac
4551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_compile") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4560 { (case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563esac
4564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_try") 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (case "(($ac_try" in
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4573esac
4574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4575 (eval "$ac_try") 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004580 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581fi
4582if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4583 if test "$ac_cv_c_bigendian" = unknown; then
4584 ac_cv_c_bigendian=no
4585 else
4586 # finding both strings is unlikely to happen, but who knows?
4587 ac_cv_c_bigendian=unknown
4588 fi
4589fi
Reid Spencera773bd52006-08-04 18:18:08 +00004590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591 echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594
Torok Edwin871384f2010-01-26 08:50:50 +00004595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004596
Reid Spencera773bd52006-08-04 18:18:08 +00004597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599 cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004604/* end confdefs.h. */
4605$ac_includes_default
4606int
4607main ()
4608{
4609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610 /* Are we little or big endian? From Harbison&Steele. */
4611 union
4612 {
4613 long int l;
4614 char c[sizeof (long int)];
4615 } u;
4616 u.l = 1;
4617 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004618
4619 ;
4620 return 0;
4621}
4622_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623rm -f conftest$ac_exeext
4624if { (ac_try="$ac_link"
4625case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628esac
4629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_link") 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4634 { (case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
4638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_try") 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004643 ac_cv_c_bigendian=no
4644else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004645 echo "$as_me: program exited with status $ac_status" >&5
4646echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649( exit $ac_status )
4650ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004651fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652rm -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 +00004653fi
4654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655
Reid Spencera773bd52006-08-04 18:18:08 +00004656fi
4657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659fi
4660{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4661echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4662case $ac_cv_c_bigendian in
4663 yes)
4664 ENDIAN=big
4665 ;;
4666 no)
4667 ENDIAN=little
4668 ;;
4669 *)
4670 { { echo "$as_me:$LINENO: error: unknown endianness
4671presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4672echo "$as_me: error: unknown endianness
4673presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4675esac
Reid Spencera773bd52006-08-04 18:18:08 +00004676
4677
4678if test "$cross_compiling" = yes; then
4679 LLVM_CROSS_COMPILING=1
4680
4681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004682{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4683echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4684if test "${ac_cv_build_exeext+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004686else
4687 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4688 ac_cv_build_exeext=.exe
4689else
4690 ac_build_prefix=${build_alias}-
4691
4692 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4693set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004698else
4699 if test -n "$BUILD_CC"; then
4700 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 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 +00004709 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004711 break 2
4712 fi
4713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714done
Reid Spencera773bd52006-08-04 18:18:08 +00004715IFS=$as_save_IFS
4716
4717fi
4718fi
4719BUILD_CC=$ac_cv_prog_BUILD_CC
4720if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4722echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724 { echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004726fi
4727
4728
4729 if test -z "$BUILD_CC"; then
4730 # Extract the first word of "gcc", so it can be a program name with args.
4731set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004736else
4737 if test -n "$BUILD_CC"; then
4738 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 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 +00004747 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004749 break 2
4750 fi
4751done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752done
Reid Spencera773bd52006-08-04 18:18:08 +00004753IFS=$as_save_IFS
4754
4755fi
4756fi
4757BUILD_CC=$ac_cv_prog_BUILD_CC
4758if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4760echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004761else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004762 { echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004764fi
4765
4766
4767 if test -z "$BUILD_CC"; then
4768 # Extract the first word of "cc", so it can be a program name with args.
4769set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004774else
4775 if test -n "$BUILD_CC"; then
4776 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4777else
4778 ac_prog_rejected=no
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 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 +00004786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4787 ac_prog_rejected=yes
4788 continue
4789 fi
4790 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004792 break 2
4793 fi
4794done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795done
Reid Spencera773bd52006-08-04 18:18:08 +00004796IFS=$as_save_IFS
4797
4798if test $ac_prog_rejected = yes; then
4799 # We found a bogon in the path, so make sure we never use it.
4800 set dummy $ac_cv_prog_BUILD_CC
4801 shift
4802 if test $# != 0; then
4803 # We chose a different compiler from the bogus one.
4804 # However, it has the same basename, so the bogon will be chosen
4805 # first if we set BUILD_CC to just the basename; use the full file name.
4806 shift
4807 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4808 fi
4809fi
4810fi
4811fi
4812BUILD_CC=$ac_cv_prog_BUILD_CC
4813if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004814 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4815echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817 { echo "$as_me:$LINENO: result: no" >&5
4818echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004819fi
4820
4821
4822 fi
4823 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004824 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4825echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4826 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004827 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4828 rm -f conftest*
4829 echo 'int main () { return 0; }' > conftest.$ac_ext
4830 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004832 (eval $ac_build_link) 2>&5
4833 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004836 for file in conftest.*; do
4837 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004838 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004839 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4840 esac
4841 done
4842 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004843 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4844echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4845 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004846 fi
4847 rm -f conftest*
4848 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4849fi
4850fi
4851
4852BUILD_EXEEXT=""
4853test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4855echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004856ac_build_exeext=$BUILD_EXEEXT
4857
Jim Grosbach673612e2008-10-02 22:56:44 +00004858 ac_build_prefix=${build_alias}-
4859 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4860set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004865else
4866 if test -n "$BUILD_CXX"; then
4867 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 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 +00004876 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004878 break 2
4879 fi
4880done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881done
Jim Grosbach673612e2008-10-02 22:56:44 +00004882IFS=$as_save_IFS
4883
4884fi
4885fi
4886BUILD_CXX=$ac_cv_prog_BUILD_CXX
4887if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004888 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4889echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891 { echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004893fi
4894
4895
4896 if test -z "$BUILD_CXX"; then
4897 # Extract the first word of "g++", so it can be a program name with args.
4898set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4901if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004903else
4904 if test -n "$BUILD_CXX"; then
4905 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4906else
4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 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 +00004914 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004916 break 2
4917 fi
4918done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004919done
Jim Grosbach673612e2008-10-02 22:56:44 +00004920IFS=$as_save_IFS
4921
4922fi
4923fi
4924BUILD_CXX=$ac_cv_prog_BUILD_CXX
4925if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4927echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004928else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004929 { echo "$as_me:$LINENO: result: no" >&5
4930echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004931fi
4932
4933
4934 if test -z "$BUILD_CXX"; then
4935 # Extract the first word of "c++", so it can be a program name with args.
4936set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004941else
4942 if test -n "$BUILD_CXX"; then
4943 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4944else
4945 ac_prog_rejected=no
4946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH
4948do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 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 +00004953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4954 ac_prog_rejected=yes
4955 continue
4956 fi
4957 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004959 break 2
4960 fi
4961done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004962done
Jim Grosbach673612e2008-10-02 22:56:44 +00004963IFS=$as_save_IFS
4964
4965if test $ac_prog_rejected = yes; then
4966 # We found a bogon in the path, so make sure we never use it.
4967 set dummy $ac_cv_prog_BUILD_CXX
4968 shift
4969 if test $# != 0; then
4970 # We chose a different compiler from the bogus one.
4971 # However, it has the same basename, so the bogon will be chosen
4972 # first if we set BUILD_CXX to just the basename; use the full file name.
4973 shift
4974 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4975 fi
4976fi
4977fi
4978fi
4979BUILD_CXX=$ac_cv_prog_BUILD_CXX
4980if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004981 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4982echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004983else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004984 { echo "$as_me:$LINENO: result: no" >&5
4985echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004986fi
4987
4988
4989 fi
4990 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004991else
4992 LLVM_CROSS_COMPILING=0
4993
4994fi
4995
Dan Gohman56fb5f92010-08-04 16:25:01 +00004996if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004997 cvsbuild="yes"
4998 optimize="no"
4999 CVSBUILD=CVSBUILD=1
5000
5001else
5002 cvsbuild="no"
5003 optimize="yes"
5004fi
5005
5006
Eric Christopherbee515f2011-11-11 22:51:42 +00005007# Check whether --enable-libcpp was given.
5008if test "${enable_libcpp+set}" = set; then
5009 enableval=$enable_libcpp;
5010else
5011 enableval=default
5012fi
5013
5014case "$enableval" in
5015 yes) ENABLE_LIBCPP=1
5016 ;;
5017 no) ENABLE_LIBCPP=0
5018 ;;
5019 default) ENABLE_LIBCPP=0
5020;;
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5022echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5024esac
5025
Eric Christopher82120022012-08-03 19:47:14 +00005026# Check whether --enable-cxx11 was given.
5027if test "${enable_cxx11+set}" = set; then
5028 enableval=$enable_cxx11;
5029else
5030 enableval=default
5031fi
5032
5033case "$enableval" in
5034 yes) ENABLE_CXX11=1
5035 ;;
5036 no) ENABLE_CXX11=0
5037 ;;
5038 default) ENABLE_CXX11=0
5039;;
5040 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5041echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5042 { (exit 1); exit 1; }; } ;;
5043esac
5044
Reid Spencera773bd52006-08-04 18:18:08 +00005045# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005046if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005047 enableval=$enable_optimized;
5048else
5049 enableval=$optimize
5050fi
5051
5052if test ${enableval} = "no" ; then
5053 ENABLE_OPTIMIZED=
5054
5055else
5056 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5057
5058fi
5059
David Greene2a5a12c2009-04-17 14:50:39 +00005060# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005061if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005062 enableval=$enable_profiling;
5063else
5064 enableval="no"
5065fi
5066
5067if test ${enableval} = "no" ; then
5068 ENABLE_PROFILING=
5069
5070else
5071 ENABLE_PROFILING=ENABLE_PROFILING=1
5072
5073fi
5074
Reid Spencera773bd52006-08-04 18:18:08 +00005075# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005076if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005077 enableval=$enable_assertions;
5078else
5079 enableval="yes"
5080fi
5081
5082if test ${enableval} = "yes" ; then
5083 DISABLE_ASSERTIONS=
5084
5085else
5086 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5087
5088fi
5089
Eric Christopher09a88732012-08-03 19:58:20 +00005090# Check whether --enable-werror was given.
5091if test "${enable_werror+set}" = set; then
5092 enableval=$enable_werror;
5093else
5094 enableval="no"
5095fi
5096
5097case "$enableval" in
5098 yes) ENABLE_WERROR=1
5099 ;;
5100 no) ENABLE_WERROR=0
5101 ;;
5102 default) ENABLE_WERROR=0
5103;;
5104 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5105echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5106 { (exit 1); exit 1; }; } ;;
5107esac
5108
David Greenea696d242007-06-28 19:36:08 +00005109# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005110if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005111 enableval=$enable_expensive_checks;
5112else
5113 enableval="no"
5114fi
5115
5116if test ${enableval} = "yes" ; then
5117 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5118
5119 EXPENSIVE_CHECKS=yes
5120
5121else
5122 ENABLE_EXPENSIVE_CHECKS=
5123
5124 EXPENSIVE_CHECKS=no
5125
5126fi
5127
Reid Spencer8b2e1412006-11-17 03:32:33 +00005128# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005129if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005130 enableval=$enable_debug_runtime;
5131else
5132 enableval=no
5133fi
5134
5135if test ${enableval} = "no" ; then
5136 DEBUG_RUNTIME=
5137
5138else
5139 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5140
5141fi
5142
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005143# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005144if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005145 enableval=$enable_debug_symbols;
5146else
5147 enableval=no
5148fi
5149
5150if test ${enableval} = "no" ; then
5151 DEBUG_SYMBOLS=
5152
5153else
5154 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5155
5156fi
5157
Reid Spencera773bd52006-08-04 18:18:08 +00005158# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005159if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005160 enableval=$enable_jit;
5161else
5162 enableval=default
5163fi
5164
5165if test ${enableval} = "no"
5166then
5167 JIT=
5168
5169else
5170 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005171 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005172 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005173 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005174 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005175 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005176 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005177 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005178 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005179 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005180 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005181 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005182 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005183 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005184 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005185 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005186 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005187 Hexagon) TARGET_HAS_JIT=0
5188 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005189 MBlaze) TARGET_HAS_JIT=0
5190 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005191 NVPTX) TARGET_HAS_JIT=0
5192 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005193 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005194 ;;
5195 esac
5196fi
5197
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005198# Check whether --enable-docs was given.
5199if test "${enable_docs+set}" = set; then
5200 enableval=$enable_docs;
5201else
5202 enableval=default
5203fi
5204
5205case "$enableval" in
5206 yes) ENABLE_DOCS=1
5207 ;;
5208 no) ENABLE_DOCS=0
5209 ;;
5210 default) ENABLE_DOCS=1
5211 ;;
5212 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5213echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5215esac
5216
Reid Spencera773bd52006-08-04 18:18:08 +00005217# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005218if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005219 enableval=$enable_doxygen;
5220else
5221 enableval=default
5222fi
5223
5224case "$enableval" in
5225 yes) ENABLE_DOXYGEN=1
5226 ;;
5227 no) ENABLE_DOXYGEN=0
5228 ;;
5229 default) ENABLE_DOXYGEN=0
5230 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5232echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005234esac
5235
5236# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005237if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005238 enableval=$enable_threads;
5239else
Reid Spencer65c5d752006-11-05 17:08:18 +00005240 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005241fi
5242
5243case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005244 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005245 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005246 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005247 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005248 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005249 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5251echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005253esac
5254
Owen Andersona8603702009-05-19 22:18:56 +00005255cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005256#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005257_ACEOF
5258
5259
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005260# Check whether --enable-pthreads was given.
5261if test "${enable_pthreads+set}" = set; then
5262 enableval=$enable_pthreads;
5263else
5264 enableval=default
5265fi
5266
5267case "$enableval" in
5268 yes) ENABLE_PTHREADS=1
5269 ;;
5270 no) ENABLE_PTHREADS=0
5271 ;;
5272 default) ENABLE_PTHREADS=1
5273 ;;
5274 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5275echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5276 { (exit 1); exit 1; }; } ;;
5277esac
5278
Reid Spencer89b0d992006-12-16 22:07:52 +00005279# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005280if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005281 enableval=$enable_pic;
5282else
5283 enableval=default
5284fi
5285
5286case "$enableval" in
5287 yes) ENABLE_PIC=1
5288 ;;
5289 no) ENABLE_PIC=0
5290 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005291 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005292 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5294echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005296esac
5297
5298cat >>confdefs.h <<_ACEOF
5299#define ENABLE_PIC $ENABLE_PIC
5300_ACEOF
5301
5302
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005303# Check whether --enable-shared was given.
5304if test "${enable_shared+set}" = set; then
5305 enableval=$enable_shared;
5306else
5307 enableval=default
5308fi
5309
5310case "$enableval" in
5311 yes) ENABLE_SHARED=1
5312 ;;
5313 no) ENABLE_SHARED=0
5314 ;;
5315 default) ENABLE_SHARED=0
5316 ;;
5317 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5318echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5319 { (exit 1); exit 1; }; } ;;
5320esac
5321
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005322# Check whether --enable-embed-stdcxx was given.
5323if test "${enable_embed_stdcxx+set}" = set; then
5324 enableval=$enable_embed_stdcxx;
5325else
5326 enableval=default
5327fi
5328
5329case "$enableval" in
5330 yes) ENABLE_EMBED_STDCXX=1
5331 ;;
5332 no) ENABLE_EMBED_STDCXX=0
5333 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005334 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005335 ;;
5336 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5337echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5339esac
5340
Daniel Dunbardd464df2010-05-10 20:11:56 +00005341# Check whether --enable-timestamps was given.
5342if test "${enable_timestamps+set}" = set; then
5343 enableval=$enable_timestamps;
5344else
5345 enableval=default
5346fi
5347
5348case "$enableval" in
5349 yes) ENABLE_TIMESTAMPS=1
5350 ;;
5351 no) ENABLE_TIMESTAMPS=0
5352 ;;
5353 default) ENABLE_TIMESTAMPS=1
5354 ;;
5355 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5356echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5357 { (exit 1); exit 1; }; } ;;
5358esac
5359
5360cat >>confdefs.h <<_ACEOF
5361#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5362_ACEOF
5363
5364
Reid Spencera773bd52006-08-04 18:18:08 +00005365TARGETS_TO_BUILD=""
5366# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005367if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005368 enableval=$enable_targets;
5369else
5370 enableval=all
5371fi
5372
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005373if test "$enableval" = host-only ; then
5374 enableval=host
5375fi
Reid Spencera773bd52006-08-04 18:18:08 +00005376case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005377 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005378 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5379 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005380 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5381 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5382 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5383 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005384 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5385 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005386 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005387 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005388 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5389 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005390 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005391 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005392 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005393 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005394 host) case "$llvm_cv_target_arch" in
5395 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5396 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5397 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5398 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005399 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5400 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005401 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005402 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005403 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5404 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005405 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005406 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005407 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5408echo "$as_me: error: Can not set target to build" >&2;}
5409 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005410 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5412echo "$as_me: error: Unrecognized target $a_target" >&2;}
5413 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005414 esac
5415 done
5416 ;;
5417esac
Reid Spencera773bd52006-08-04 18:18:08 +00005418TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5419
5420
Douglas Gregor0711c302009-06-17 00:43:20 +00005421for a_target in $TARGETS_TO_BUILD; do
5422 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5423
5424cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005425#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5426_ACEOF
5427
5428 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5429 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005430 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005431 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005432 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5433 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5434 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005435 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5436 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5437 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005438
5439cat >>confdefs.h <<_ACEOF
5440#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005441_ACEOF
5442
5443
5444cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005445#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5446_ACEOF
5447
5448
5449cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005450#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005451_ACEOF
5452
5453
5454cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005455#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005456_ACEOF
5457
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005458 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005459
5460cat >>confdefs.h <<_ACEOF
5461#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5462_ACEOF
5463
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005464 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005465 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5466
5467cat >>confdefs.h <<_ACEOF
5468#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5469_ACEOF
5470
5471 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005472 fi
5473done
5474
Douglas Gregor1555a232009-06-16 20:12:29 +00005475LLVM_ENUM_TARGETS=""
5476LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005477LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005478LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005479for target_to_build in $TARGETS_TO_BUILD; do
5480 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005481 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005482 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5483 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005484 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5485 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5486 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005487 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5488 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5489 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005490done
5491
5492
5493
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005494
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005495
Reid Spencera773bd52006-08-04 18:18:08 +00005496
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005497# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005498if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005499 withval=$with_optimize_option;
5500else
5501 withval=default
5502fi
5503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005504{ echo "$as_me:$LINENO: checking optimization flags" >&5
5505echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005506case "$withval" in
5507 default)
5508 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005509 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005510 MingW) optimize_option=-O2 ;;
5511 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005512 esac ;;
5513 *) optimize_option="$withval" ;;
5514esac
5515OPTIMIZE_OPTION=$optimize_option
5516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005517{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5518echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005519
5520
Reid Spencera773bd52006-08-04 18:18:08 +00005521# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005522if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005523 withval=$with_extra_options;
5524else
5525 withval=default
5526fi
5527
5528case "$withval" in
5529 default) EXTRA_OPTIONS= ;;
5530 *) EXTRA_OPTIONS=$withval ;;
5531esac
5532EXTRA_OPTIONS=$EXTRA_OPTIONS
5533
5534
Daniel Dunbared344d22011-06-16 22:30:41 +00005535
5536# Check whether --with-extra-ld-options was given.
5537if test "${with_extra_ld_options+set}" = set; then
5538 withval=$with_extra_ld_options;
5539else
5540 withval=default
5541fi
5542
5543case "$withval" in
5544 default) EXTRA_LD_OPTIONS= ;;
5545 *) EXTRA_LD_OPTIONS=$withval ;;
5546esac
5547EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5548
5549
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005550# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005551if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005552 enableval=$enable_bindings;
5553else
5554 enableval=default
5555fi
5556
5557BINDINGS_TO_BUILD=""
5558case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005559 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005560 all ) BINDINGS_TO_BUILD="ocaml" ;;
5561 none | no) BINDINGS_TO_BUILD="" ;;
5562 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5563 case "$a_binding" in
5564 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5566echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5567 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005568 esac
5569 done
5570 ;;
5571esac
5572
Reid Spencera773bd52006-08-04 18:18:08 +00005573
Gordon Henriksenf0915682007-10-02 16:42:22 +00005574# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005575if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005576 withval=$with_ocaml_libdir;
5577else
5578 withval=auto
5579fi
5580
5581case "$withval" in
5582 auto) with_ocaml_libdir="$withval" ;;
5583 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005584 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5585echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5586 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005587esac
5588
5589
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005590# Check whether --with-clang-srcdir was given.
5591if test "${with_clang_srcdir+set}" = set; then
5592 withval=$with_clang_srcdir;
5593else
5594 withval="-"
5595fi
5596
5597case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005598 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005599 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5600 *) clang_src_root="$ac_pwd/$withval" ;;
5601esac
5602CLANG_SRC_ROOT=$clang_src_root
5603
5604
5605
Chandler Carruth6b241162010-10-19 08:21:25 +00005606# Check whether --with-clang-resource-dir was given.
5607if test "${with_clang_resource_dir+set}" = set; then
5608 withval=$with_clang_resource_dir;
5609else
5610 withval=""
5611fi
5612
5613
5614cat >>confdefs.h <<_ACEOF
5615#define CLANG_RESOURCE_DIR "$withval"
5616_ACEOF
5617
5618
5619
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005620# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005622 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005623else
5624 withval=""
5625fi
5626
5627
5628cat >>confdefs.h <<_ACEOF
5629#define C_INCLUDE_DIRS "$withval"
5630_ACEOF
5631
5632
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005633# Clang normally uses the system c++ headers and libraries. With this option,
5634# clang will use the ones provided by a gcc installation instead. This option should
5635# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005636
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005637# Check whether --with-gcc-toolchain was given.
5638if test "${with_gcc_toolchain+set}" = set; then
5639 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005640else
5641 withval=""
5642fi
5643
5644
5645cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005646#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005647_ACEOF
5648
5649
5650
Sebastian Pope4f1b372012-04-30 20:06:58 +00005651# Check whether --with-default-sysroot was given.
5652if test "${with_default_sysroot+set}" = set; then
5653 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005654else
5655 withval=""
5656fi
5657
5658
5659cat >>confdefs.h <<_ACEOF
5660#define DEFAULT_SYSROOT "$withval"
5661_ACEOF
5662
5663
5664
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005665# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005666if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005667 withval=$with_binutils_include;
5668else
5669 withval=default
5670fi
5671
5672case "$withval" in
5673 default) WITH_BINUTILS_INCDIR=default ;;
5674 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005675 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5676echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5677 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005678esac
5679if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5680 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5681
5682 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5683 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005684 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5685echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5686 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005687 fi
5688fi
5689
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005690
5691# Check whether --with-bug-report-url was given.
5692if test "${with_bug_report_url+set}" = set; then
5693 withval=$with_bug_report_url;
5694else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005695 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005696fi
5697
5698
5699cat >>confdefs.h <<_ACEOF
5700#define BUG_REPORT_URL "$withval"
5701_ACEOF
5702
5703
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005704# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005705if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005706 enableval=$enable_libffi; case "$enableval" in
5707 yes) llvm_cv_enable_libffi="yes" ;;
5708 no) llvm_cv_enable_libffi="no" ;;
5709 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005710echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5711 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005712 esac
5713else
5714 llvm_cv_enable_libffi=no
5715fi
5716
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005717
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005718
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005719# Check whether --with-internal-prefix was given.
5720if test "${with_internal_prefix+set}" = set; then
5721 withval=$with_internal_prefix;
5722else
5723 withval=""
5724fi
5725
5726INTERNAL_PREFIX=$withval
5727
5728
5729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005730{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5731echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5732if test "${lt_cv_path_NM+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005734else
5735 if test -n "$NM"; then
5736 # Let the user override the test.
5737 lt_cv_path_NM="$NM"
5738else
5739 lt_nm_to_check="${ac_tool_prefix}nm"
5740 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5741 lt_nm_to_check="$lt_nm_to_check nm"
5742 fi
5743 for lt_tmp_nm in $lt_nm_to_check; do
5744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5745 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5746 IFS="$lt_save_ifs"
5747 test -z "$ac_dir" && ac_dir=.
5748 tmp_nm="$ac_dir/$lt_tmp_nm"
5749 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5750 # Check to see if the nm accepts a BSD-compat flag.
5751 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5752 # nm: unknown option "B" ignored
5753 # Tru64's nm complains that /dev/null is an invalid object file
5754 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5755 */dev/null* | *'Invalid file or object type'*)
5756 lt_cv_path_NM="$tmp_nm -B"
5757 break
5758 ;;
5759 *)
5760 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5761 */dev/null*)
5762 lt_cv_path_NM="$tmp_nm -p"
5763 break
5764 ;;
5765 *)
5766 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5767 continue # so that we can try to find one that supports BSD flags
5768 ;;
5769 esac
5770 ;;
5771 esac
5772 fi
5773 done
5774 IFS="$lt_save_ifs"
5775 done
5776 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5777fi
5778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5780echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005781NM="$lt_cv_path_NM"
5782
5783
5784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785{ echo "$as_me:$LINENO: checking for GNU make" >&5
5786echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5787if test "${llvm_cv_gnu_make_command+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005789else
5790 llvm_cv_gnu_make_command=''
5791 for a in "$MAKE" make gmake gnumake ; do
5792 if test -z "$a" ; then continue ; fi ;
5793 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5794 then
5795 llvm_cv_gnu_make_command=$a ;
5796 break;
5797 fi
5798 done
5799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5801echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005802 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5803 ifGNUmake='' ;
5804 else
5805 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5807echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005808 fi
5809
5810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5812echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005813LN_S=$as_ln_s
5814if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815 { echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5819echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005820fi
5821
5822# Extract the first word of "cmp", so it can be a program name with args.
5823set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826if test "${ac_cv_path_CMP+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005828else
5829 case $CMP in
5830 [\\/]* | ?:[\\/]*)
5831 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5832 ;;
5833 *)
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 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 +00005841 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005843 break 2
5844 fi
5845done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005846done
Reid Spencera773bd52006-08-04 18:18:08 +00005847IFS=$as_save_IFS
5848
5849 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5850 ;;
5851esac
5852fi
5853CMP=$ac_cv_path_CMP
5854if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855 { echo "$as_me:$LINENO: result: $CMP" >&5
5856echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858 { echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005860fi
5861
5862
5863# Extract the first word of "cp", so it can be a program name with args.
5864set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867if test "${ac_cv_path_CP+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005869else
5870 case $CP in
5871 [\\/]* | ?:[\\/]*)
5872 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5873 ;;
5874 *)
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876for as_dir in $PATH
5877do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 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 +00005882 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005884 break 2
5885 fi
5886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005887done
Reid Spencera773bd52006-08-04 18:18:08 +00005888IFS=$as_save_IFS
5889
5890 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5891 ;;
5892esac
5893fi
5894CP=$ac_cv_path_CP
5895if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896 { echo "$as_me:$LINENO: result: $CP" >&5
5897echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899 { echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005901fi
5902
5903
5904# Extract the first word of "date", so it can be a program name with args.
5905set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908if test "${ac_cv_path_DATE+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005910else
5911 case $DATE in
5912 [\\/]* | ?:[\\/]*)
5913 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5914 ;;
5915 *)
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 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 +00005923 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005925 break 2
5926 fi
5927done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005928done
Reid Spencera773bd52006-08-04 18:18:08 +00005929IFS=$as_save_IFS
5930
5931 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5932 ;;
5933esac
5934fi
5935DATE=$ac_cv_path_DATE
5936if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937 { echo "$as_me:$LINENO: result: $DATE" >&5
5938echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940 { echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005942fi
5943
5944
5945# Extract the first word of "find", so it can be a program name with args.
5946set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949if test "${ac_cv_path_FIND+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005951else
5952 case $FIND in
5953 [\\/]* | ?:[\\/]*)
5954 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5955 ;;
5956 *)
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 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 +00005964 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005966 break 2
5967 fi
5968done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005969done
Reid Spencera773bd52006-08-04 18:18:08 +00005970IFS=$as_save_IFS
5971
5972 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5973 ;;
5974esac
5975fi
5976FIND=$ac_cv_path_FIND
5977if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978 { echo "$as_me:$LINENO: result: $FIND" >&5
5979echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981 { echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005983fi
5984
5985
5986# Extract the first word of "grep", so it can be a program name with args.
5987set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5990if test "${ac_cv_path_GREP+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005992else
5993 case $GREP in
5994 [\\/]* | ?:[\\/]*)
5995 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5996 ;;
5997 *)
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 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 +00006005 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006007 break 2
6008 fi
6009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006010done
Reid Spencera773bd52006-08-04 18:18:08 +00006011IFS=$as_save_IFS
6012
6013 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6014 ;;
6015esac
6016fi
6017GREP=$ac_cv_path_GREP
6018if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006019 { echo "$as_me:$LINENO: result: $GREP" >&5
6020echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022 { echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006024fi
6025
6026
6027# Extract the first word of "mkdir", so it can be a program name with args.
6028set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6031if test "${ac_cv_path_MKDIR+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006033else
6034 case $MKDIR in
6035 [\\/]* | ?:[\\/]*)
6036 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6037 ;;
6038 *)
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 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 +00006046 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006048 break 2
6049 fi
6050done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051done
Reid Spencera773bd52006-08-04 18:18:08 +00006052IFS=$as_save_IFS
6053
6054 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6055 ;;
6056esac
6057fi
6058MKDIR=$ac_cv_path_MKDIR
6059if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6061echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006063 { echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006065fi
6066
6067
6068# Extract the first word of "mv", so it can be a program name with args.
6069set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072if test "${ac_cv_path_MV+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006074else
6075 case $MV in
6076 [\\/]* | ?:[\\/]*)
6077 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6078 ;;
6079 *)
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081for as_dir in $PATH
6082do
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 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 +00006087 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006089 break 2
6090 fi
6091done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006092done
Reid Spencera773bd52006-08-04 18:18:08 +00006093IFS=$as_save_IFS
6094
6095 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6096 ;;
6097esac
6098fi
6099MV=$ac_cv_path_MV
6100if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101 { echo "$as_me:$LINENO: result: $MV" >&5
6102echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104 { echo "$as_me:$LINENO: result: no" >&5
6105echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006106fi
6107
6108
6109if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6111set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6114if test "${ac_cv_prog_RANLIB+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006116else
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 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 +00006127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006129 break 2
6130 fi
6131done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006132done
Reid Spencera773bd52006-08-04 18:18:08 +00006133IFS=$as_save_IFS
6134
6135fi
6136fi
6137RANLIB=$ac_cv_prog_RANLIB
6138if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006139 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6140echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142 { echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006144fi
6145
6146
6147fi
6148if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB=$RANLIB
6150 # Extract the first word of "ranlib", so it can be a program name with args.
6151set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006156else
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 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 +00006167 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006169 break 2
6170 fi
6171done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172done
Reid Spencera773bd52006-08-04 18:18:08 +00006173IFS=$as_save_IFS
6174
6175fi
6176fi
6177ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6180echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182 { echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006184fi
6185
6186 if test "x$ac_ct_RANLIB" = x; then
6187 RANLIB=":"
6188 else
6189 case $cross_compiling:$ac_tool_warned in
6190yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6192whose name does not start with the host triplet. If you think this
6193configuration is useful to you, please write to autoconf@gnu.org." >&5
6194echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6195whose name does not start with the host triplet. If you think this
6196configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006197ac_tool_warned=yes ;;
6198esac
6199 RANLIB=$ac_ct_RANLIB
6200 fi
6201else
6202 RANLIB="$ac_cv_prog_RANLIB"
6203fi
6204
Torok Edwin871384f2010-01-26 08:50:50 +00006205if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6207set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210if test "${ac_cv_prog_AR+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006212else
6213 if test -n "$AR"; then
6214 ac_cv_prog_AR="$AR" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 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 +00006223 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006225 break 2
6226 fi
6227done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228done
Torok Edwin871384f2010-01-26 08:50:50 +00006229IFS=$as_save_IFS
6230
6231fi
6232fi
6233AR=$ac_cv_prog_AR
6234if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006235 { echo "$as_me:$LINENO: result: $AR" >&5
6236echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006238 { echo "$as_me:$LINENO: result: no" >&5
6239echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006240fi
6241
6242
6243fi
6244if test -z "$ac_cv_prog_AR"; then
6245 ac_ct_AR=$AR
6246 # Extract the first word of "ar", so it can be a program name with args.
6247set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006252else
6253 if test -n "$ac_ct_AR"; then
6254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 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 +00006263 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006265 break 2
6266 fi
6267done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268done
Torok Edwin871384f2010-01-26 08:50:50 +00006269IFS=$as_save_IFS
6270
6271fi
6272fi
6273ac_ct_AR=$ac_cv_prog_ac_ct_AR
6274if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006275 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6276echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278 { echo "$as_me:$LINENO: result: no" >&5
6279echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006280fi
6281
6282 if test "x$ac_ct_AR" = x; then
6283 AR="false"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6288whose name does not start with the host triplet. If you think this
6289configuration is useful to you, please write to autoconf@gnu.org." >&5
6290echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6291whose name does not start with the host triplet. If you think this
6292configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006293ac_tool_warned=yes ;;
6294esac
6295 AR=$ac_ct_AR
6296 fi
6297else
6298 AR="$ac_cv_prog_AR"
6299fi
6300
Reid Spencera773bd52006-08-04 18:18:08 +00006301# Extract the first word of "rm", so it can be a program name with args.
6302set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305if test "${ac_cv_path_RM+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006307else
6308 case $RM in
6309 [\\/]* | ?:[\\/]*)
6310 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6311 ;;
6312 *)
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 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 +00006320 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006322 break 2
6323 fi
6324done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325done
Reid Spencera773bd52006-08-04 18:18:08 +00006326IFS=$as_save_IFS
6327
6328 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6329 ;;
6330esac
6331fi
6332RM=$ac_cv_path_RM
6333if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 { echo "$as_me:$LINENO: result: $RM" >&5
6335echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 { echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006339fi
6340
6341
6342# Extract the first word of "sed", so it can be a program name with args.
6343set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346if test "${ac_cv_path_SED+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006348else
6349 case $SED in
6350 [\\/]* | ?:[\\/]*)
6351 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6352 ;;
6353 *)
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006361 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006363 break 2
6364 fi
6365done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006366done
Reid Spencera773bd52006-08-04 18:18:08 +00006367IFS=$as_save_IFS
6368
6369 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6370 ;;
6371esac
6372fi
6373SED=$ac_cv_path_SED
6374if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375 { echo "$as_me:$LINENO: result: $SED" >&5
6376echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378 { echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006380fi
6381
6382
6383# Extract the first word of "tar", so it can be a program name with args.
6384set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387if test "${ac_cv_path_TAR+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006389else
6390 case $TAR in
6391 [\\/]* | ?:[\\/]*)
6392 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6393 ;;
6394 *)
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 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 +00006402 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006404 break 2
6405 fi
6406done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407done
Reid Spencera773bd52006-08-04 18:18:08 +00006408IFS=$as_save_IFS
6409
6410 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6411 ;;
6412esac
6413fi
6414TAR=$ac_cv_path_TAR
6415if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416 { echo "$as_me:$LINENO: result: $TAR" >&5
6417echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006419 { echo "$as_me:$LINENO: result: no" >&5
6420echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006421fi
6422
6423
6424# Extract the first word of "pwd", so it can be a program name with args.
6425set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428if test "${ac_cv_path_BINPWD+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006430else
6431 case $BINPWD in
6432 [\\/]* | ?:[\\/]*)
6433 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6434 ;;
6435 *)
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 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 +00006443 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006445 break 2
6446 fi
6447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448done
Reid Spencera773bd52006-08-04 18:18:08 +00006449IFS=$as_save_IFS
6450
6451 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6452 ;;
6453esac
6454fi
6455BINPWD=$ac_cv_path_BINPWD
6456if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6458echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460 { echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006462fi
6463
6464
6465
6466# Extract the first word of "Graphviz", so it can be a program name with args.
6467set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006472else
6473 case $GRAPHVIZ in
6474 [\\/]* | ?:[\\/]*)
6475 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6476 ;;
6477 *)
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 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 +00006485 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006487 break 2
6488 fi
6489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006490done
Reid Spencera773bd52006-08-04 18:18:08 +00006491IFS=$as_save_IFS
6492
6493 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6494 ;;
6495esac
6496fi
6497GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6498if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006499 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6500echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006504fi
6505
6506
6507if test "$GRAPHVIZ" != "echo Graphviz" ; then
6508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509cat >>confdefs.h <<\_ACEOF
6510#define HAVE_GRAPHVIZ 1
6511_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006512
Jeff Cohen28783c32007-01-12 18:22:38 +00006513 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006514 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515 fi
6516
6517cat >>confdefs.h <<_ACEOF
6518#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6519_ACEOF
6520
6521fi
6522# Extract the first word of "dot", so it can be a program name with args.
6523set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526if test "${ac_cv_path_DOT+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006528else
6529 case $DOT in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6532 ;;
6533 *)
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 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 +00006541 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006543 break 2
6544 fi
6545done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546done
Reid Spencera773bd52006-08-04 18:18:08 +00006547IFS=$as_save_IFS
6548
6549 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6550 ;;
6551esac
6552fi
6553DOT=$ac_cv_path_DOT
6554if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555 { echo "$as_me:$LINENO: result: $DOT" >&5
6556echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558 { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006560fi
6561
6562
6563if test "$DOT" != "echo dot" ; then
6564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006565cat >>confdefs.h <<\_ACEOF
6566#define HAVE_DOT 1
6567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006568
Jeff Cohen28783c32007-01-12 18:22:38 +00006569 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006570 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571 fi
6572
6573cat >>confdefs.h <<_ACEOF
6574#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6575_ACEOF
6576
6577fi
David Greenef0b9eff2009-07-09 17:16:26 +00006578# Extract the first word of "fdp", so it can be a program name with args.
6579set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582if test "${ac_cv_path_FDP+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006584else
6585 case $FDP in
6586 [\\/]* | ?:[\\/]*)
6587 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6588 ;;
6589 *)
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 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 +00006597 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006599 break 2
6600 fi
6601done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602done
David Greenef0b9eff2009-07-09 17:16:26 +00006603IFS=$as_save_IFS
6604
6605 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6606 ;;
6607esac
6608fi
6609FDP=$ac_cv_path_FDP
6610if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006611 { echo "$as_me:$LINENO: result: $FDP" >&5
6612echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614 { echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006616fi
6617
6618
6619if test "$FDP" != "echo fdp" ; then
6620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621cat >>confdefs.h <<\_ACEOF
6622#define HAVE_FDP 1
6623_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006624
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627 fi
6628
6629cat >>confdefs.h <<_ACEOF
6630#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6631_ACEOF
6632
6633fi
6634# Extract the first word of "neato", so it can be a program name with args.
6635set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638if test "${ac_cv_path_NEATO+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006640else
6641 case $NEATO in
6642 [\\/]* | ?:[\\/]*)
6643 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6644 ;;
6645 *)
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 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 +00006653 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006655 break 2
6656 fi
6657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658done
David Greenef0b9eff2009-07-09 17:16:26 +00006659IFS=$as_save_IFS
6660
6661 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6662 ;;
6663esac
6664fi
6665NEATO=$ac_cv_path_NEATO
6666if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006667 { echo "$as_me:$LINENO: result: $NEATO" >&5
6668echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670 { echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006672fi
6673
6674
6675if test "$NEATO" != "echo neato" ; then
6676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677cat >>confdefs.h <<\_ACEOF
6678#define HAVE_NEATO 1
6679_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006680
6681 if test "$llvm_cv_os_type" = "MingW" ; then
6682 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6683 fi
6684
6685cat >>confdefs.h <<_ACEOF
6686#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6687_ACEOF
6688
6689fi
6690# Extract the first word of "twopi", so it can be a program name with args.
6691set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694if test "${ac_cv_path_TWOPI+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006696else
6697 case $TWOPI in
6698 [\\/]* | ?:[\\/]*)
6699 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6700 ;;
6701 *)
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 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 +00006709 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006711 break 2
6712 fi
6713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714done
David Greenef0b9eff2009-07-09 17:16:26 +00006715IFS=$as_save_IFS
6716
6717 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6718 ;;
6719esac
6720fi
6721TWOPI=$ac_cv_path_TWOPI
6722if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006723 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6724echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726 { echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006728fi
6729
6730
6731if test "$TWOPI" != "echo twopi" ; then
6732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733cat >>confdefs.h <<\_ACEOF
6734#define HAVE_TWOPI 1
6735_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006736
6737 if test "$llvm_cv_os_type" = "MingW" ; then
6738 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6739 fi
6740
6741cat >>confdefs.h <<_ACEOF
6742#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6743_ACEOF
6744
6745fi
6746# Extract the first word of "circo", so it can be a program name with args.
6747set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750if test "${ac_cv_path_CIRCO+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006752else
6753 case $CIRCO in
6754 [\\/]* | ?:[\\/]*)
6755 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6756 ;;
6757 *)
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 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 +00006765 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006767 break 2
6768 fi
6769done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770done
David Greenef0b9eff2009-07-09 17:16:26 +00006771IFS=$as_save_IFS
6772
6773 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6774 ;;
6775esac
6776fi
6777CIRCO=$ac_cv_path_CIRCO
6778if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006779 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6780echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 { echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006784fi
6785
6786
6787if test "$CIRCO" != "echo circo" ; then
6788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789cat >>confdefs.h <<\_ACEOF
6790#define HAVE_CIRCO 1
6791_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006792
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795 fi
6796
6797cat >>confdefs.h <<_ACEOF
6798#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6799_ACEOF
6800
6801fi
Reid Spencera773bd52006-08-04 18:18:08 +00006802for ac_prog in gv gsview32
6803do
6804 # Extract the first word of "$ac_prog", so it can be a program name with args.
6805set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808if test "${ac_cv_path_GV+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006810else
6811 case $GV in
6812 [\\/]* | ?:[\\/]*)
6813 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6814 ;;
6815 *)
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 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 +00006823 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006825 break 2
6826 fi
6827done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828done
Reid Spencera773bd52006-08-04 18:18:08 +00006829IFS=$as_save_IFS
6830
6831 ;;
6832esac
6833fi
6834GV=$ac_cv_path_GV
6835if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006836 { echo "$as_me:$LINENO: result: $GV" >&5
6837echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 { echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006841fi
6842
6843
6844 test -n "$GV" && break
6845done
6846test -n "$GV" || GV="echo gv"
6847
6848if test "$GV" != "echo gv" ; then
6849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850cat >>confdefs.h <<\_ACEOF
6851#define HAVE_GV 1
6852_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006853
Jeff Cohen28783c32007-01-12 18:22:38 +00006854 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006855 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856 fi
6857
6858cat >>confdefs.h <<_ACEOF
6859#define LLVM_PATH_GV "$GV${EXEEXT}"
6860_ACEOF
6861
6862fi
6863# Extract the first word of "dotty", so it can be a program name with args.
6864set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_path_DOTTY+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006869else
6870 case $DOTTY in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6873 ;;
6874 *)
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 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 +00006882 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006884 break 2
6885 fi
6886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887done
Reid Spencera773bd52006-08-04 18:18:08 +00006888IFS=$as_save_IFS
6889
6890 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6891 ;;
6892esac
6893fi
6894DOTTY=$ac_cv_path_DOTTY
6895if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006896 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6897echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006901fi
6902
6903
6904if test "$DOTTY" != "echo dotty" ; then
6905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906cat >>confdefs.h <<\_ACEOF
6907#define HAVE_DOTTY 1
6908_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006909
Jeff Cohen28783c32007-01-12 18:22:38 +00006910 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006911 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6912 fi
6913
6914cat >>confdefs.h <<_ACEOF
6915#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6916_ACEOF
6917
6918fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006919# Extract the first word of "xdot.py", so it can be a program name with args.
6920set dummy xdot.py; ac_word=$2
6921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923if test "${ac_cv_path_XDOT_PY+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926 case $XDOT_PY in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6929 ;;
6930 *)
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942done
6943done
6944IFS=$as_save_IFS
6945
6946 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6947 ;;
6948esac
6949fi
6950XDOT_PY=$ac_cv_path_XDOT_PY
6951if test -n "$XDOT_PY"; then
6952 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6953echo "${ECHO_T}$XDOT_PY" >&6; }
6954else
6955 { echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6; }
6957fi
6958
6959
6960if test "$XDOT_PY" != "echo xdot.py" ; then
6961
6962cat >>confdefs.h <<\_ACEOF
6963#define HAVE_XDOT_PY 1
6964_ACEOF
6965
6966 if test "$llvm_cv_os_type" = "MingW" ; then
6967 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6968 fi
6969
6970cat >>confdefs.h <<_ACEOF
6971#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6972_ACEOF
6973
6974fi
Reid Spencera773bd52006-08-04 18:18:08 +00006975
Reid Spencera773bd52006-08-04 18:18:08 +00006976# Find a good install program. We prefer a C program (faster),
6977# so one script is as good as another. But avoid the broken or
6978# incompatible versions:
6979# SysV /etc/install, /usr/sbin/install
6980# SunOS /usr/etc/install
6981# IRIX /sbin/install
6982# AIX /bin/install
6983# AmigaOS /C/install, which installs bootblocks on floppy discs
6984# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6985# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6986# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6987# OS/2's system install, which has a completely different semantic
6988# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006989{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6990echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006991if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006992if test "${ac_cv_path_install+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006994else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996for as_dir in $PATH
6997do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000 # Account for people who put trailing slashes in PATH elements.
7001case $as_dir/ in
7002 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007005 /usr/ucb/* ) ;;
7006 *)
7007 # OSF1 and SCO ODT 3.0 have their own names for install.
7008 # Don't use installbsd from OSF since it installs stuff as root
7009 # by default.
7010 for ac_prog in ginstall scoinst install; do
7011 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007012 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 +00007013 if test $ac_prog = install &&
7014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015 # AIX install. It has an incompatible calling convention.
7016 :
7017 elif test $ac_prog = install &&
7018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7019 # program-specific install script used by HP pwplus--don't use.
7020 :
7021 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7023 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007024 fi
7025 fi
7026 done
7027 done
7028 ;;
7029esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030done
Reid Spencera773bd52006-08-04 18:18:08 +00007031IFS=$as_save_IFS
7032
7033
7034fi
7035 if test "${ac_cv_path_install+set}" = set; then
7036 INSTALL=$ac_cv_path_install
7037 else
7038 # As a last resort, use the slow shell script. Don't cache a
7039 # value for INSTALL within a source directory, because that will
7040 # break other packages using the cache if that directory is
7041 # removed, or if the value is a relative name.
7042 INSTALL=$ac_install_sh
7043 fi
7044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7046echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007047
7048# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7049# It thinks the first close brace ends the variable substitution.
7050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7051
7052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7053
7054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7055
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007056case "$INSTALL" in
7057 [\\/$]* | ?:[\\/]* ) ;;
7058 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7059esac
Reid Spencera773bd52006-08-04 18:18:08 +00007060
7061# Extract the first word of "bzip2", so it can be a program name with args.
7062set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065if test "${ac_cv_path_BZIP2+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007067else
7068 case $BZIP2 in
7069 [\\/]* | ?:[\\/]*)
7070 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7071 ;;
7072 *)
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 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 +00007080 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007082 break 2
7083 fi
7084done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007085done
Reid Spencera773bd52006-08-04 18:18:08 +00007086IFS=$as_save_IFS
7087
Reid Spencera773bd52006-08-04 18:18:08 +00007088 ;;
7089esac
7090fi
7091BZIP2=$ac_cv_path_BZIP2
7092if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007093 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7094echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007096 { echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007098fi
7099
7100
mike-m68cb3192010-05-06 23:45:43 +00007101# Extract the first word of "cat", so it can be a program name with args.
7102set dummy cat; ac_word=$2
7103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105if test "${ac_cv_path_CAT+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108 case $CAT in
7109 [\\/]* | ?:[\\/]*)
7110 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7111 ;;
7112 *)
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126IFS=$as_save_IFS
7127
7128 ;;
7129esac
7130fi
7131CAT=$ac_cv_path_CAT
7132if test -n "$CAT"; then
7133 { echo "$as_me:$LINENO: result: $CAT" >&5
7134echo "${ECHO_T}$CAT" >&6; }
7135else
7136 { echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6; }
7138fi
7139
7140
Reid Spencera773bd52006-08-04 18:18:08 +00007141# Extract the first word of "doxygen", so it can be a program name with args.
7142set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145if test "${ac_cv_path_DOXYGEN+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007147else
7148 case $DOXYGEN in
7149 [\\/]* | ?:[\\/]*)
7150 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7151 ;;
7152 *)
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154for as_dir in $PATH
7155do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 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 +00007160 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007162 break 2
7163 fi
7164done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165done
Reid Spencera773bd52006-08-04 18:18:08 +00007166IFS=$as_save_IFS
7167
Reid Spencera773bd52006-08-04 18:18:08 +00007168 ;;
7169esac
7170fi
7171DOXYGEN=$ac_cv_path_DOXYGEN
7172if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007173 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7174echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007176 { echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007178fi
7179
7180
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007181# Extract the first word of "groff", so it can be a program name with args.
7182set dummy groff; ac_word=$2
7183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185if test "${ac_cv_path_GROFF+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188 case $GROFF in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7191 ;;
7192 *)
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206IFS=$as_save_IFS
7207
7208 ;;
7209esac
7210fi
7211GROFF=$ac_cv_path_GROFF
7212if test -n "$GROFF"; then
7213 { echo "$as_me:$LINENO: result: $GROFF" >&5
7214echo "${ECHO_T}$GROFF" >&6; }
7215else
7216 { echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6; }
7218fi
7219
7220
Reid Spencera773bd52006-08-04 18:18:08 +00007221# Extract the first word of "gzip", so it can be a program name with args.
7222set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007225if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007227else
Eric Christopher031d3072010-12-10 01:31:51 +00007228 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007229 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007230 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007231 ;;
7232 *)
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 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 +00007240 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007242 break 2
7243 fi
7244done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245done
Reid Spencera773bd52006-08-04 18:18:08 +00007246IFS=$as_save_IFS
7247
Reid Spencera773bd52006-08-04 18:18:08 +00007248 ;;
7249esac
7250fi
Eric Christopher031d3072010-12-10 01:31:51 +00007251GZIPBIN=$ac_cv_path_GZIPBIN
7252if test -n "$GZIPBIN"; then
7253 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7254echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256 { echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007258fi
7259
7260
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007261# Extract the first word of "pdfroff", so it can be a program name with args.
7262set dummy pdfroff; ac_word=$2
7263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265if test "${ac_cv_path_PDFROFF+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268 case $PDFROFF in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7271 ;;
7272 *)
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288 ;;
7289esac
7290fi
7291PDFROFF=$ac_cv_path_PDFROFF
7292if test -n "$PDFROFF"; then
7293 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7294echo "${ECHO_T}$PDFROFF" >&6; }
7295else
7296 { echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
7298fi
7299
7300
Reid Spencera773bd52006-08-04 18:18:08 +00007301# Extract the first word of "zip", so it can be a program name with args.
7302set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305if test "${ac_cv_path_ZIP+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007307else
7308 case $ZIP in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7311 ;;
7312 *)
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 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 +00007320 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007322 break 2
7323 fi
7324done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325done
Reid Spencera773bd52006-08-04 18:18:08 +00007326IFS=$as_save_IFS
7327
Reid Spencera773bd52006-08-04 18:18:08 +00007328 ;;
7329esac
7330fi
7331ZIP=$ac_cv_path_ZIP
7332if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007333 { echo "$as_me:$LINENO: result: $ZIP" >&5
7334echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007338fi
7339
7340
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007341for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007342do
7343 # Extract the first word of "$ac_prog", so it can be a program name with args.
7344set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347if test "${ac_cv_path_OCAMLC+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007349else
7350 case $OCAMLC in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 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 +00007362 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007364 break 2
7365 fi
7366done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007367done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007368IFS=$as_save_IFS
7369
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007370 ;;
7371esac
7372fi
7373OCAMLC=$ac_cv_path_OCAMLC
7374if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7376echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378 { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007380fi
7381
7382
Gordon Henriksene7072162008-03-07 18:20:01 +00007383 test -n "$OCAMLC" && break
7384done
7385
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007386for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007387do
7388 # Extract the first word of "$ac_prog", so it can be a program name with args.
7389set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007394else
7395 case $OCAMLOPT in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7398 ;;
7399 *)
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 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 +00007407 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007409 break 2
7410 fi
7411done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007413IFS=$as_save_IFS
7414
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007415 ;;
7416esac
7417fi
7418OCAMLOPT=$ac_cv_path_OCAMLOPT
7419if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7421echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 { echo "$as_me:$LINENO: result: no" >&5
7424echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007425fi
7426
7427
Gordon Henriksene7072162008-03-07 18:20:01 +00007428 test -n "$OCAMLOPT" && break
7429done
7430
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007431for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007432do
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007439else
7440 case $OCAMLDEP in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 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 +00007452 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007454 break 2
7455 fi
7456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007458IFS=$as_save_IFS
7459
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007460 ;;
7461esac
7462fi
7463OCAMLDEP=$ac_cv_path_OCAMLDEP
7464if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7466echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007470fi
7471
7472
Gordon Henriksene7072162008-03-07 18:20:01 +00007473 test -n "$OCAMLDEP" && break
7474done
7475
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007476for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007477do
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007484else
7485 case $OCAMLDOC in
7486 [\\/]* | ?:[\\/]*)
7487 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7488 ;;
7489 *)
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 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 +00007497 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007499 break 2
7500 fi
7501done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007502done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007503IFS=$as_save_IFS
7504
7505 ;;
7506esac
7507fi
7508OCAMLDOC=$ac_cv_path_OCAMLDOC
7509if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7511echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007515fi
7516
7517
7518 test -n "$OCAMLDOC" && break
7519done
7520
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007521for ac_prog in gas as
7522do
7523 # Extract the first word of "$ac_prog", so it can be a program name with args.
7524set dummy $ac_prog; ac_word=$2
7525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527if test "${ac_cv_path_GAS+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530 case $GAS in
7531 [\\/]* | ?:[\\/]*)
7532 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7533 ;;
7534 *)
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548IFS=$as_save_IFS
7549
7550 ;;
7551esac
7552fi
7553GAS=$ac_cv_path_GAS
7554if test -n "$GAS"; then
7555 { echo "$as_me:$LINENO: result: $GAS" >&5
7556echo "${ECHO_T}$GAS" >&6; }
7557else
7558 { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
7560fi
7561
7562
7563 test -n "$GAS" && break
7564done
7565
Reid Spencera773bd52006-08-04 18:18:08 +00007566
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007567{ echo "$as_me:$LINENO: checking for linker version" >&5
7568echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7569if test "${llvm_cv_link_version+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572
7573 version_string="$(ld -v 2>&1 | head -1)"
7574
7575 # Check for ld64.
7576 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007577 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007578 else
7579 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7580 fi
7581
7582fi
7583{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7584echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7585
7586cat >>confdefs.h <<_ACEOF
7587#define HOST_LINK_VERSION "$llvm_cv_link_version"
7588_ACEOF
7589
7590
7591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7593echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7594if test "${llvm_cv_link_use_r+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007596else
7597 ac_ext=c
7598ac_cpp='$CPP $CPPFLAGS'
7599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
7603 oldcflags="$CFLAGS"
7604 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007610/* end confdefs.h. */
7611
7612int
7613main ()
7614{
Dan Gohman39ed6782010-04-25 00:12:20 +00007615
Reid Spencera773bd52006-08-04 18:18:08 +00007616 ;
7617 return 0;
7618}
7619_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620rm -f conftest.$ac_objext conftest$ac_exeext
7621if { (ac_try="$ac_link"
7622case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625esac
7626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7638esac
7639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_try") 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest$ac_exeext'
7645 { (case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648esac
7649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_try") 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007654 llvm_cv_link_use_r=yes
7655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007656 echo "$as_me: failed program was:" >&5
7657sed 's/^/| /' conftest.$ac_ext >&5
7658
7659 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661
Bill Wendlingebcceee2009-04-18 11:20:33 +00007662rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007664 CFLAGS="$oldcflags"
7665 ac_ext=c
7666ac_cpp='$CPP $CPPFLAGS'
7667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670
7671
7672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7674echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007675if test "$llvm_cv_link_use_r" = yes ; then
7676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677cat >>confdefs.h <<\_ACEOF
7678#define HAVE_LINK_R 1
7679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007680
7681 fi
7682
7683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7685echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7686if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007688else
7689 ac_ext=c
7690ac_cpp='$CPP $CPPFLAGS'
7691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693ac_compiler_gnu=$ac_cv_c_compiler_gnu
7694
7695 oldcflags="$CFLAGS"
7696 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697 cat >conftest.$ac_ext <<_ACEOF
7698/* confdefs.h. */
7699_ACEOF
7700cat confdefs.h >>conftest.$ac_ext
7701cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007702/* end confdefs.h. */
7703
7704int
7705main ()
7706{
Dan Gohman39ed6782010-04-25 00:12:20 +00007707
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007708 ;
7709 return 0;
7710}
7711_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007712rm -f conftest.$ac_objext conftest$ac_exeext
7713if { (ac_try="$ac_link"
7714case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717esac
7718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_link") 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7727 { (case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730esac
7731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_try") 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740esac
7741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_try") 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007746 llvm_cv_link_use_export_dynamic=yes
7747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 echo "$as_me: failed program was:" >&5
7749sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753
Bill Wendlingebcceee2009-04-18 11:20:33 +00007754rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007756 CFLAGS="$oldcflags"
7757 ac_ext=c
7758ac_cpp='$CPP $CPPFLAGS'
7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763
7764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7766echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007767if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007769cat >>confdefs.h <<\_ACEOF
7770#define HAVE_LINK_EXPORT_DYNAMIC 1
7771_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007772
7773 fi
7774
7775
Dan Gohmanda612d62010-06-01 14:56:56 +00007776{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7777echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7778if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781 ac_ext=c
7782ac_cpp='$CPP $CPPFLAGS'
7783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787 oldcflags="$CFLAGS"
7788
7789 # The following code is from the autoconf manual,
7790 # "11.13: Limitations of Usual Tools".
7791 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7792 # Use mktemp if possible; otherwise fall back on mkdir,
7793 # with $RANDOM to make collisions less likely.
7794 : ${TMPDIR=/tmp}
7795 {
7796 tmp=`
7797 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7798 ` &&
7799 test -n "$tmp" && test -d "$tmp"
7800 } || {
7801 tmp=$TMPDIR/foo$$-$RANDOM
7802 (umask 077 && mkdir "$tmp")
7803 } || exit $?
7804
Dan Gohmanda612d62010-06-01 14:56:56 +00007805 echo "{" > "$tmp/export.map"
7806 echo " global: main;" >> "$tmp/export.map"
7807 echo " local: *;" >> "$tmp/export.map"
7808 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007809
Dan Gohmanda612d62010-06-01 14:56:56 +00007810 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007811 cat >conftest.$ac_ext <<_ACEOF
7812/* confdefs.h. */
7813_ACEOF
7814cat confdefs.h >>conftest.$ac_ext
7815cat >>conftest.$ac_ext <<_ACEOF
7816/* end confdefs.h. */
7817
7818int
7819main ()
7820{
Dan Gohman39ed6782010-04-25 00:12:20 +00007821
Dan Gohman391569c2010-04-16 22:59:06 +00007822 ;
7823 return 0;
7824}
7825_ACEOF
7826rm -f conftest.$ac_objext conftest$ac_exeext
7827if { (ac_try="$ac_link"
7828case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831esac
7832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7841 { (case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
7845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_try") 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try='test -s conftest$ac_exeext'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007860 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007861else
7862 echo "$as_me: failed program was:" >&5
7863sed 's/^/| /' conftest.$ac_ext >&5
7864
Dan Gohman943005e2010-06-01 16:22:27 +00007865 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007866fi
7867
7868rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007870 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007871 rmdir "$tmp"
7872 CFLAGS="$oldcflags"
7873 ac_ext=c
7874ac_cpp='$CPP $CPPFLAGS'
7875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879
7880fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007881{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7882echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7883if test "$llvm_cv_link_use_version_script" = yes ; then
7884 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007885
7886 fi
7887
7888
Reid Spencera773bd52006-08-04 18:18:08 +00007889
7890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7892echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7893if test "${ac_cv_c_const+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007896 cat >conftest.$ac_ext <<_ACEOF
7897/* confdefs.h. */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007901/* end confdefs.h. */
7902
7903int
7904main ()
7905{
7906/* FIXME: Include the comments suggested by Paul. */
7907#ifndef __cplusplus
7908 /* Ultrix mips cc rejects this. */
7909 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007911 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912 char const *const *ccp;
7913 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007914 /* NEC SVR4.0.2 mips cc rejects this. */
7915 struct point {int x, y;};
7916 static struct point const zero = {0,0};
7917 /* AIX XL C 1.02.0.0 rejects this.
7918 It does not let you subtract one const X* pointer from another in
7919 an arm of an if-expression whose if-part is not a constant
7920 expression */
7921 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007922 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007923 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007924 ++ccp;
7925 p = (char**) ccp;
7926 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007927 { /* SCO 3.2v4 cc rejects this. */
7928 char *t;
7929 char const *s = 0 ? (char *) 0 : (char const *) 0;
7930
7931 *t++ = 0;
7932 if (s) return 0;
7933 }
7934 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7935 int x[] = {25, 17};
7936 const int *foo = &x[0];
7937 ++foo;
7938 }
7939 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7940 typedef const int *iptr;
7941 iptr p = 0;
7942 ++p;
7943 }
7944 { /* AIX XL C 1.02.0.0 rejects this saying
7945 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7946 struct s { int j; const int *ap[3]; };
7947 struct s *b; b->j = 5;
7948 }
7949 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7950 const int foo = 10;
7951 if (!foo) return 0;
7952 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00007954#endif
7955
7956 ;
7957 return 0;
7958}
7959_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007960rm -f conftest.$ac_objext
7961if { (ac_try="$ac_compile"
7962case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965esac
7966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978esac
7979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest.$ac_objext'
7985 { (case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988esac
7989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_try") 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007994 ac_cv_c_const=yes
7995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007996 echo "$as_me: failed program was:" >&5
7997sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001
Reid Spencera773bd52006-08-04 18:18:08 +00008002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008004{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8005echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008006if test $ac_cv_c_const = no; then
8007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008cat >>confdefs.h <<\_ACEOF
8009#define const
8010_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008011
8012fi
8013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014
8015
8016
8017
8018
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008019ac_header_dirent=no
8020for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8022{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8023echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008027 cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008032/* end confdefs.h. */
8033#include <sys/types.h>
8034#include <$ac_hdr>
8035
8036int
8037main ()
8038{
8039if ((DIR *) 0)
8040return 0;
8041 ;
8042 return 0;
8043}
8044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008045rm -f conftest.$ac_objext
8046if { (ac_try="$ac_compile"
8047case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050esac
8051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073esac
8074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_try") 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008079 eval "$as_ac_Header=yes"
8080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081 echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008086
Reid Spencera773bd52006-08-04 18:18:08 +00008087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008088fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089ac_res=`eval echo '${'$as_ac_Header'}'`
8090 { echo "$as_me:$LINENO: result: $ac_res" >&5
8091echo "${ECHO_T}$ac_res" >&6; }
8092if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008093 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008095_ACEOF
8096
8097ac_header_dirent=$ac_hdr; break
8098fi
8099
8100done
8101# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8102if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008103 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8104echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8105if test "${ac_cv_search_opendir+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008107else
8108 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008109cat >conftest.$ac_ext <<_ACEOF
8110/* confdefs.h. */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008114/* end confdefs.h. */
8115
Reid Spencera773bd52006-08-04 18:18:08 +00008116/* Override any GCC internal prototype to avoid an error.
8117 Use char because int might match the return type of a GCC
8118 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008119#ifdef __cplusplus
8120extern "C"
8121#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008122char opendir ();
8123int
8124main ()
8125{
Reid Spencera773bd52006-08-04 18:18:08 +00008126return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008127 ;
8128 return 0;
8129}
8130_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008131for ac_lib in '' dir; do
8132 if test -z "$ac_lib"; then
8133 ac_res="none required"
8134 else
8135 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008137 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138 rm -f conftest.$ac_objext conftest$ac_exeext
8139if { (ac_try="$ac_link"
8140case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_link") 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8156esac
8157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest$ac_exeext'
8163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008172 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008173else
8174 echo "$as_me: failed program was:" >&5
8175sed 's/^/| /' conftest.$ac_ext >&5
8176
8177
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008179
Bill Wendlingebcceee2009-04-18 11:20:33 +00008180rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181 conftest$ac_exeext
8182 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008183 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008184fi
John Criswell7a73b802003-06-30 21:59:07 +00008185done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008186if test "${ac_cv_search_opendir+set}" = set; then
8187 :
Reid Spencera773bd52006-08-04 18:18:08 +00008188else
8189 ac_cv_search_opendir=no
8190fi
8191rm conftest.$ac_ext
8192LIBS=$ac_func_search_save_LIBS
8193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8195echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008196ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008197if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008199
Reid Spencera773bd52006-08-04 18:18:08 +00008200fi
8201
8202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8204echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8205if test "${ac_cv_search_opendir+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008207else
8208 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008214/* end confdefs.h. */
8215
8216/* Override any GCC internal prototype to avoid an error.
8217 Use char because int might match the return type of a GCC
8218 builtin and then its argument prototype would still apply. */
8219#ifdef __cplusplus
8220extern "C"
8221#endif
8222char opendir ();
8223int
8224main ()
8225{
8226return opendir ();
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231for ac_lib in '' x; do
8232 if test -z "$ac_lib"; then
8233 ac_res="none required"
8234 else
8235 ac_res=-l$ac_lib
8236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8237 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238 rm -f conftest.$ac_objext conftest$ac_exeext
8239if { (ac_try="$ac_link"
8240case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8243esac
8244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_link") 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8253 { (case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256esac
8257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_try") 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest$ac_exeext'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266esac
8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008272 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008273else
8274 echo "$as_me: failed program was:" >&5
8275sed 's/^/| /' conftest.$ac_ext >&5
8276
8277
Reid Spencera773bd52006-08-04 18:18:08 +00008278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279
Bill Wendlingebcceee2009-04-18 11:20:33 +00008280rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281 conftest$ac_exeext
8282 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008283 break
8284fi
8285done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008286if test "${ac_cv_search_opendir+set}" = set; then
8287 :
Reid Spencera773bd52006-08-04 18:18:08 +00008288else
8289 ac_cv_search_opendir=no
8290fi
8291rm conftest.$ac_ext
8292LIBS=$ac_func_search_save_LIBS
8293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8295echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008296ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8299
8300fi
8301
8302fi
John Criswell7a73b802003-06-30 21:59:07 +00008303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008304
John Criswell7a73b802003-06-30 21:59:07 +00008305for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008306do
8307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313fi
8314ac_res=`eval echo '${'$as_ac_Header'}'`
8315 { echo "$as_me:$LINENO: result: $ac_res" >&5
8316echo "${ECHO_T}$ac_res" >&6; }
8317else
8318 # Is the header compilable?
8319{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8321cat >conftest.$ac_ext <<_ACEOF
8322/* confdefs.h. */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h. */
8327$ac_includes_default
8328#include <$ac_header>
8329_ACEOF
8330rm -f conftest.$ac_objext
8331if { (ac_try="$ac_compile"
8332case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335esac
8336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8338 ac_status=$?
8339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345 { (case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348esac
8349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_try") 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358esac
8359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_try") 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_header_compiler=yes
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_header_compiler=no
8370fi
8371
8372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8374echo "${ECHO_T}$ac_header_compiler" >&6; }
8375
8376# Is the header present?
8377{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8378echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8379cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h. */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h. */
8385#include <$ac_header>
8386_ACEOF
8387if { (ac_try="$ac_cpp conftest.$ac_ext"
8388case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391esac
8392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } >/dev/null; then
8400 if test -s conftest.err; then
8401 ac_cpp_err=$ac_c_preproc_warn_flag
8402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8403 else
8404 ac_cpp_err=
8405 fi
8406else
8407 ac_cpp_err=yes
8408fi
8409if test -z "$ac_cpp_err"; then
8410 ac_header_preproc=yes
8411else
8412 echo "$as_me: failed program was:" >&5
8413sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ac_header_preproc=no
8416fi
8417
8418rm -f conftest.err conftest.$ac_ext
8419{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8420echo "${ECHO_T}$ac_header_preproc" >&6; }
8421
8422# So? What about this header?
8423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8424 yes:no: )
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8429 ac_header_preproc=yes
8430 ;;
8431 no:yes:* )
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8444 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008445## ------------------------------------ ##
8446## Report this to http://llvm.org/bugs/ ##
8447## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008448_ASBOX
8449 ) | sed "s/^/$as_me: WARNING: /" >&2
8450 ;;
8451esac
8452{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457 eval "$as_ac_Header=\$ac_header_preproc"
8458fi
8459ac_res=`eval echo '${'$as_ac_Header'}'`
8460 { echo "$as_me:$LINENO: result: $ac_res" >&5
8461echo "${ECHO_T}$ac_res" >&6; }
8462
8463fi
8464if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008465 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008467_ACEOF
8468
8469fi
8470
8471done
8472
Reid Spencera773bd52006-08-04 18:18:08 +00008473# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008474if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008475 enableval=$enable_ltdl_install;
8476fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008477
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479
8480
8481if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008482 INSTALL_LTDL_TRUE=
8483 INSTALL_LTDL_FALSE='#'
8484else
8485 INSTALL_LTDL_TRUE='#'
8486 INSTALL_LTDL_FALSE=
8487fi
8488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008489
8490
8491if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008492 CONVENIENCE_LTDL_TRUE=
8493 CONVENIENCE_LTDL_FALSE='#'
8494else
8495 CONVENIENCE_LTDL_TRUE='#'
8496 CONVENIENCE_LTDL_FALSE=
8497fi
8498
8499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008500{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8501echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008502library_names_spec=
8503libname_spec='lib$name'
8504soname_spec=
8505shrext_cmds=".so"
8506postinstall_cmds=
8507postuninstall_cmds=
8508finish_cmds=
8509finish_eval=
8510shlibpath_var=
8511shlibpath_overrides_runpath=unknown
8512version_type=none
8513dynamic_linker="$host_os ld.so"
8514sys_lib_dlsearch_path_spec="/lib /usr/lib"
8515if test "$GCC" = yes; then
8516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8517 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8518 # if the path contains ";" then we assume it to be the separator
8519 # otherwise default to the standard path separator (i.e. ":") - it is
8520 # assumed that no part of a normal pathname contains ";" but that should
8521 # okay in the real world where ";" in dirpaths is itself problematic.
8522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8523 else
8524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8525 fi
8526else
8527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8528fi
8529need_lib_prefix=unknown
8530hardcode_into_libs=no
8531
8532# when you set need_version to no, make sure it does not cause -set_version
8533# flags to be left without arguments
8534need_version=unknown
8535
8536case $host_os in
8537aix3*)
8538 version_type=linux
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8540 shlibpath_var=LIBPATH
8541
8542 # AIX 3 has no versioning support, so we append a major version to the name.
8543 soname_spec='${libname}${release}${shared_ext}$major'
8544 ;;
8545
8546aix4* | aix5*)
8547 version_type=linux
8548 need_lib_prefix=no
8549 need_version=no
8550 hardcode_into_libs=yes
8551 if test "$host_cpu" = ia64; then
8552 # AIX 5 supports IA64
8553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8554 shlibpath_var=LD_LIBRARY_PATH
8555 else
8556 # With GCC up to 2.95.x, collect2 would create an import file
8557 # for dependence libraries. The import file would start with
8558 # the line `#! .'. This would cause the generated library to
8559 # depend on `.', always an invalid library. This was fixed in
8560 # development snapshots of GCC prior to 3.0.
8561 case $host_os in
8562 aix4 | aix4.[01] | aix4.[01].*)
8563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8564 echo ' yes '
8565 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8566 :
8567 else
8568 can_build_shared=no
8569 fi
8570 ;;
8571 esac
8572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8573 # soname into executable. Probably we can add versioning support to
8574 # collect2, so additional links can be useful in future.
8575 if test "$aix_use_runtimelinking" = yes; then
8576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8577 # instead of lib<name>.a to let people know that these are not
8578 # typical AIX shared libraries.
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580 else
8581 # We preserve .a as extension for shared libraries through AIX4.2
8582 # and later when we are not doing run time linking.
8583 library_names_spec='${libname}${release}.a $libname.a'
8584 soname_spec='${libname}${release}${shared_ext}$major'
8585 fi
8586 shlibpath_var=LIBPATH
8587 fi
8588 ;;
8589
8590amigaos*)
8591 library_names_spec='$libname.ixlibrary $libname.a'
8592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8593 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'
8594 ;;
8595
8596beos*)
8597 library_names_spec='${libname}${shared_ext}'
8598 dynamic_linker="$host_os ld.so"
8599 shlibpath_var=LIBRARY_PATH
8600 ;;
8601
8602bsdi[45]*)
8603 version_type=linux
8604 need_version=no
8605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8606 soname_spec='${libname}${release}${shared_ext}$major'
8607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8608 shlibpath_var=LD_LIBRARY_PATH
8609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8611 # the default ld.so.conf also contains /usr/contrib/lib and
8612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8613 # libtool to hard-code these into programs
8614 ;;
8615
8616cygwin* | mingw* | pw32*)
8617 version_type=windows
8618 shrext_cmds=".dll"
8619 need_version=no
8620 need_lib_prefix=no
8621
8622 case $GCC,$host_os in
8623 yes,cygwin* | yes,mingw* | yes,pw32*)
8624 library_names_spec='$libname.dll.a'
8625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8626 postinstall_cmds='base_file=`basename \${file}`~
8627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8628 dldir=$destdir/`dirname \$dlpath`~
8629 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008630 $install_prog $dir/$dlname \$dldir/$dlname~
8631 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8633 dlpath=$dir/\$dldll~
8634 $rm \$dlpath'
8635 shlibpath_overrides_runpath=yes
8636
8637 case $host_os in
8638 cygwin*)
8639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8642 ;;
8643 mingw*)
8644 # MinGW DLLs use traditional 'lib' prefix
8645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8648 # It is most probably a Windows format PATH printed by
8649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8650 # path with ; separators, and with drive letters. We can handle the
8651 # drive letters (cygwin fileutils understands them), so leave them,
8652 # especially as we might pass files found there to a mingw objdump,
8653 # which wouldn't understand a cygwinified path. Ahh.
8654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8655 else
8656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8657 fi
8658 ;;
8659 pw32*)
8660 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008661 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 +00008662 ;;
8663 esac
8664 ;;
8665
8666 *)
8667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8668 ;;
8669 esac
8670 dynamic_linker='Win32 ld.exe'
8671 # FIXME: first we should search . and the directory the executable is in
8672 shlibpath_var=PATH
8673 ;;
8674
8675darwin* | rhapsody*)
8676 dynamic_linker="$host_os dyld"
8677 version_type=darwin
8678 need_lib_prefix=no
8679 need_version=no
8680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8681 soname_spec='${libname}${release}${major}$shared_ext'
8682 shlibpath_overrides_runpath=yes
8683 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008684 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8686 if test "$GCC" = yes; then
8687 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"`
8688 else
8689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8690 fi
8691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8692 ;;
8693
8694dgux*)
8695 version_type=linux
8696 need_lib_prefix=no
8697 need_version=no
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 shlibpath_var=LD_LIBRARY_PATH
8701 ;;
8702
Eric Christopher360fa9a2011-10-26 00:42:12 +00008703freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008704 dynamic_linker=no
8705 ;;
8706
8707kfreebsd*-gnu)
8708 version_type=linux
8709 need_lib_prefix=no
8710 need_version=no
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 shlibpath_var=LD_LIBRARY_PATH
8714 shlibpath_overrides_runpath=no
8715 hardcode_into_libs=yes
8716 dynamic_linker='GNU ld.so'
8717 ;;
8718
Reid Spencera773bd52006-08-04 18:18:08 +00008719freebsd* | dragonfly*)
8720 # DragonFly does not have aout. When/if they implement a new
8721 # versioning mechanism, adjust this.
8722 if test -x /usr/bin/objformat; then
8723 objformat=`/usr/bin/objformat`
8724 else
8725 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008726 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008727 *) objformat=elf ;;
8728 esac
8729 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008730 version_type=freebsd-$objformat
8731 case $version_type in
8732 freebsd-elf*)
8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8734 need_version=no
8735 need_lib_prefix=no
8736 ;;
8737 freebsd-*)
8738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8739 need_version=yes
8740 ;;
8741 esac
8742 shlibpath_var=LD_LIBRARY_PATH
8743 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008744 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008745 shlibpath_overrides_runpath=yes
8746 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008747 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008748 shlibpath_overrides_runpath=yes
8749 hardcode_into_libs=yes
8750 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008751 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8752 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008753 shlibpath_overrides_runpath=no
8754 hardcode_into_libs=yes
8755 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008756 freebsd*) # from 4.6 on
8757 shlibpath_overrides_runpath=yes
8758 hardcode_into_libs=yes
8759 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008760 esac
8761 ;;
8762
8763gnu*)
8764 version_type=linux
8765 need_lib_prefix=no
8766 need_version=no
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 hardcode_into_libs=yes
8771 ;;
8772
8773hpux9* | hpux10* | hpux11*)
8774 # Give a soname corresponding to the major version so that dld.sl refuses to
8775 # link against other versions.
8776 version_type=sunos
8777 need_lib_prefix=no
8778 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008779 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780 ia64*)
8781 shrext_cmds='.so'
8782 hardcode_into_libs=yes
8783 dynamic_linker="$host_os dld.so"
8784 shlibpath_var=LD_LIBRARY_PATH
8785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 if test "X$HPUX_IA64_MODE" = X32; then
8789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8790 else
8791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8792 fi
8793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8794 ;;
8795 hppa*64*)
8796 shrext_cmds='.sl'
8797 hardcode_into_libs=yes
8798 dynamic_linker="$host_os dld.sl"
8799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8805 ;;
8806 *)
8807 shrext_cmds='.sl'
8808 dynamic_linker="$host_os dld.sl"
8809 shlibpath_var=SHLIB_PATH
8810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 ;;
8814 esac
8815 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8816 postinstall_cmds='chmod 555 $lib'
8817 ;;
8818
Reid Spencera773bd52006-08-04 18:18:08 +00008819interix3*)
8820 version_type=linux
8821 need_lib_prefix=no
8822 need_version=no
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 shlibpath_overrides_runpath=no
8828 hardcode_into_libs=yes
8829 ;;
8830
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831irix5* | irix6* | nonstopux*)
8832 case $host_os in
8833 nonstopux*) version_type=nonstopux ;;
8834 *)
8835 if test "$lt_cv_prog_gnu_ld" = yes; then
8836 version_type=linux
8837 else
8838 version_type=irix
8839 fi ;;
8840 esac
8841 need_lib_prefix=no
8842 need_version=no
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8845 case $host_os in
8846 irix5* | nonstopux*)
8847 libsuff= shlibsuff=
8848 ;;
8849 *)
8850 case $LD in # libtool.m4 will add one of these switches to LD
8851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8852 libsuff= shlibsuff= libmagic=32-bit;;
8853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8854 libsuff=32 shlibsuff=N32 libmagic=N32;;
8855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8856 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8857 *) libsuff= shlibsuff= libmagic=never-match;;
8858 esac
8859 ;;
8860 esac
8861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8862 shlibpath_overrides_runpath=no
8863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8865 hardcode_into_libs=yes
8866 ;;
8867
8868# No shared lib support for Linux oldld, aout, or coff.
8869linux*oldld* | linux*aout* | linux*coff*)
8870 dynamic_linker=no
8871 ;;
8872
8873# This must be Linux ELF.
8874linux*)
8875 version_type=linux
8876 need_lib_prefix=no
8877 need_version=no
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 shlibpath_overrides_runpath=no
8883 # This implies no fast_install, which is unacceptable.
8884 # Some rework will be needed to allow for fast_install
8885 # before this can be enabled.
8886 hardcode_into_libs=yes
8887
8888 # Append ld.so.conf contents to the search path
8889 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008890 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 +00008891 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8892 fi
8893
8894 # We used to test for /lib/ld.so.1 and disable shared libraries on
8895 # powerpc, because MkLinux only supported shared libraries with the
8896 # GNU dynamic linker. Since this was broken with cross compilers,
8897 # most powerpc-linux boxes support dynamic linking these days and
8898 # people can always --disable-shared, the test was removed, and we
8899 # assume the GNU/Linux dynamic linker is in use.
8900 dynamic_linker='GNU/Linux ld.so'
8901 ;;
8902
8903knetbsd*-gnu)
8904 version_type=linux
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 shlibpath_overrides_runpath=no
8911 hardcode_into_libs=yes
8912 dynamic_linker='GNU ld.so'
8913 ;;
8914
8915netbsd*)
8916 version_type=sunos
8917 need_lib_prefix=no
8918 need_version=no
8919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8922 dynamic_linker='NetBSD (a.out) ld.so'
8923 else
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 dynamic_linker='NetBSD ld.elf_so'
8927 fi
8928 shlibpath_var=LD_LIBRARY_PATH
8929 shlibpath_overrides_runpath=yes
8930 hardcode_into_libs=yes
8931 ;;
8932
8933newsos6)
8934 version_type=linux
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=yes
8938 ;;
8939
8940nto-qnx*)
8941 version_type=linux
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=yes
8948 ;;
8949
8950openbsd*)
8951 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008952 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008953 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8955 case $host_os in
8956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8957 *) need_version=no ;;
8958 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8961 shlibpath_var=LD_LIBRARY_PATH
8962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8963 case $host_os in
8964 openbsd2.[89] | openbsd2.[89].*)
8965 shlibpath_overrides_runpath=no
8966 ;;
8967 *)
8968 shlibpath_overrides_runpath=yes
8969 ;;
8970 esac
8971 else
8972 shlibpath_overrides_runpath=yes
8973 fi
8974 ;;
8975
8976os2*)
8977 libname_spec='$name'
8978 shrext_cmds=".dll"
8979 need_lib_prefix=no
8980 library_names_spec='$libname${shared_ext} $libname.a'
8981 dynamic_linker='OS/2 ld.exe'
8982 shlibpath_var=LIBPATH
8983 ;;
8984
8985osf3* | osf4* | osf5*)
8986 version_type=osf
8987 need_lib_prefix=no
8988 need_version=no
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8994 ;;
8995
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008996solaris*)
8997 version_type=linux
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9004 hardcode_into_libs=yes
9005 # ldd complains unless libraries are executable
9006 postinstall_cmds='chmod +x $lib'
9007 ;;
9008
9009sunos4*)
9010 version_type=sunos
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9015 if test "$with_gnu_ld" = yes; then
9016 need_lib_prefix=no
9017 fi
9018 need_version=yes
9019 ;;
9020
Reid Spencera773bd52006-08-04 18:18:08 +00009021sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009022 version_type=linux
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 case $host_vendor in
9027 sni)
9028 shlibpath_overrides_runpath=no
9029 need_lib_prefix=no
9030 export_dynamic_flag_spec='${wl}-Blargedynsym'
9031 runpath_var=LD_RUN_PATH
9032 ;;
9033 siemens)
9034 need_lib_prefix=no
9035 ;;
9036 motorola)
9037 need_lib_prefix=no
9038 need_version=no
9039 shlibpath_overrides_runpath=no
9040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9041 ;;
9042 esac
9043 ;;
9044
9045sysv4*MP*)
9046 if test -d /usr/nec ;then
9047 version_type=linux
9048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9049 soname_spec='$libname${shared_ext}.$major'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 fi
9052 ;;
9053
Reid Spencera773bd52006-08-04 18:18:08 +00009054sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9055 version_type=freebsd-elf
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 hardcode_into_libs=yes
9062 if test "$with_gnu_ld" = yes; then
9063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9064 shlibpath_overrides_runpath=no
9065 else
9066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9067 shlibpath_overrides_runpath=yes
9068 case $host_os in
9069 sco3.2v5*)
9070 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9071 ;;
9072 esac
9073 fi
9074 sys_lib_dlsearch_path_spec='/usr/lib'
9075 ;;
9076
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009077uts4*)
9078 version_type=linux
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 ;;
9083
9084*)
9085 dynamic_linker=no
9086 ;;
9087esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009088{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9089echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009090test "$dynamic_linker" = no && can_build_shared=no
9091
Reid Spencera773bd52006-08-04 18:18:08 +00009092variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9093if test "$GCC" = yes; then
9094 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9095fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009096
Reid Spencera773bd52006-08-04 18:18:08 +00009097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009098{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9099echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9100if test "${libltdl_cv_shlibext+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009102else
9103
9104module=yes
9105eval libltdl_cv_shlibext=$shrext_cmds
9106
9107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009108{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9109echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009110if test -n "$libltdl_cv_shlibext"; then
9111
9112cat >>confdefs.h <<_ACEOF
9113#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9114_ACEOF
9115
9116fi
9117
9118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009119{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9120echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9121if test "${libltdl_cv_shlibpath_var+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009123else
9124 libltdl_cv_shlibpath_var="$shlibpath_var"
9125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009126{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9127echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009128if test -n "$libltdl_cv_shlibpath_var"; then
9129
9130cat >>confdefs.h <<_ACEOF
9131#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9132_ACEOF
9133
9134fi
9135
9136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009137{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9138echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9139if test "${libltdl_cv_sys_search_path+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009141else
9142 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009144{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9145echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146if test -n "$libltdl_cv_sys_search_path"; then
9147 sys_search_path=
9148 for dir in $libltdl_cv_sys_search_path; do
9149 if test -z "$sys_search_path"; then
9150 sys_search_path="$dir"
9151 else
9152 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9153 fi
9154 done
9155
9156cat >>confdefs.h <<_ACEOF
9157#define LTDL_SYSSEARCHPATH "$sys_search_path"
9158_ACEOF
9159
9160fi
9161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009162{ echo "$as_me:$LINENO: checking for objdir" >&5
9163echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9164if test "${libltdl_cv_objdir+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009166else
9167 libltdl_cv_objdir="$objdir"
9168 if test -n "$objdir"; then
9169 :
9170 else
9171 rm -f .libs 2>/dev/null
9172 mkdir .libs 2>/dev/null
9173 if test -d .libs; then
9174 libltdl_cv_objdir=.libs
9175 else
9176 # MS-DOS does not allow filenames that begin with a dot.
9177 libltdl_cv_objdir=_libs
9178 fi
9179 rmdir .libs 2>/dev/null
9180 fi
9181
9182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009183{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9184echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009185
9186cat >>confdefs.h <<_ACEOF
9187#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9188_ACEOF
9189
9190
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009191
9192
9193
9194
9195# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009196{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9197echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9198if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009200else
9201
9202# These are sane defaults that work on at least a few old systems.
9203# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9204
9205# Character class describing NM global symbol codes.
9206symcode='[BCDEGRST]'
9207
9208# Regexp to match symbols that can be accessed directly from C.
9209sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9210
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211# Transform an extracted symbol line into a proper C declaration
9212lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9213
9214# Transform an extracted symbol line into symbol name and symbol address
9215lt_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'"
9216
9217# Define system-specific variables.
9218case $host_os in
9219aix*)
9220 symcode='[BCDT]'
9221 ;;
9222cygwin* | mingw* | pw32*)
9223 symcode='[ABCDGISTW]'
9224 ;;
9225hpux*) # Its linker distinguishes data from code symbols
9226 if test "$host_cpu" = ia64; then
9227 symcode='[ABCDEGRST]'
9228 fi
9229 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9230 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'"
9231 ;;
9232linux*)
9233 if test "$host_cpu" = ia64; then
9234 symcode='[ABCDGIRSTW]'
9235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9236 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'"
9237 fi
9238 ;;
9239irix* | nonstopux*)
9240 symcode='[BCDEGRST]'
9241 ;;
9242osf*)
9243 symcode='[BCDEGQRST]'
9244 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009245solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009246 symcode='[BDRT]'
9247 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009248sco3.2v5*)
9249 symcode='[DT]'
9250 ;;
9251sysv4.2uw2*)
9252 symcode='[DT]'
9253 ;;
9254sysv5* | sco5v6* | unixware* | OpenUNIX*)
9255 symcode='[ABDT]'
9256 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257sysv4)
9258 symcode='[DFNSTU]'
9259 ;;
9260esac
9261
9262# Handle CRLF in mingw tool chain
9263opt_cr=
9264case $build_os in
9265mingw*)
9266 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9267 ;;
9268esac
9269
9270# If we're using GNU nm, then use its standard symbol codes.
9271case `$NM -V 2>&1` in
9272*GNU* | *'with BFD'*)
9273 symcode='[ABCDGIRSTW]' ;;
9274esac
9275
9276# Try without a prefix undercore, then with it.
9277for ac_symprfx in "" "_"; do
9278
Reid Spencera773bd52006-08-04 18:18:08 +00009279 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9280 symxfrm="\\1 $ac_symprfx\\2 \\2"
9281
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009283 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 +00009284
9285 # Check to see that the pipe works correctly.
9286 pipe_works=no
9287
9288 rm -f conftest*
9289 cat > conftest.$ac_ext <<EOF
9290#ifdef __cplusplus
9291extern "C" {
9292#endif
9293char nm_test_var;
9294void nm_test_func(){}
9295#ifdef __cplusplus
9296}
9297#endif
9298int main(){nm_test_var='a';nm_test_func();return(0);}
9299EOF
9300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009302 (eval $ac_compile) 2>&5
9303 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009306 # Now try to grab the symbols.
9307 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009308 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 +00009309 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9310 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009313 # Try sorting and uniquifying the output.
9314 if sort "$nlist" | uniq > "$nlist"T; then
9315 mv -f "$nlist"T "$nlist"
9316 else
9317 rm -f "$nlist"T
9318 fi
9319
9320 # Make sure that we snagged all the symbols we need.
9321 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9322 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9323 cat <<EOF > conftest.$ac_ext
9324#ifdef __cplusplus
9325extern "C" {
9326#endif
9327
9328EOF
9329 # Now generate the symbol file.
9330 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9331
9332 cat <<EOF >> conftest.$ac_ext
9333#if defined (__STDC__) && __STDC__
9334# define lt_ptr_t void *
9335#else
9336# define lt_ptr_t char *
9337# define const
9338#endif
9339
9340/* The mapping between symbol names and symbols. */
9341const struct {
9342 const char *name;
9343 lt_ptr_t address;
9344}
9345lt_preloaded_symbols[] =
9346{
9347EOF
9348 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9349 cat <<\EOF >> conftest.$ac_ext
9350 {0, (lt_ptr_t) 0}
9351};
9352
9353#ifdef __cplusplus
9354}
9355#endif
9356EOF
9357 # Now try linking the two files.
9358 mv conftest.$ac_objext conftstm.$ac_objext
9359 lt_save_LIBS="$LIBS"
9360 lt_save_CFLAGS="$CFLAGS"
9361 LIBS="conftstm.$ac_objext"
9362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009364 (eval $ac_link) 2>&5
9365 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009368 pipe_works=yes
9369 fi
9370 LIBS="$lt_save_LIBS"
9371 CFLAGS="$lt_save_CFLAGS"
9372 else
9373 echo "cannot find nm_test_func in $nlist" >&5
9374 fi
9375 else
9376 echo "cannot find nm_test_var in $nlist" >&5
9377 fi
9378 else
9379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9380 fi
9381 else
9382 echo "$progname: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 fi
9385 rm -f conftest* conftst*
9386
9387 # Do not use the global_symbol_pipe unless it works.
9388 if test "$pipe_works" = yes; then
9389 break
9390 else
9391 lt_cv_sys_global_symbol_pipe=
9392 fi
9393done
9394
9395fi
9396
9397if test -z "$lt_cv_sys_global_symbol_pipe"; then
9398 lt_cv_sys_global_symbol_to_cdecl=
9399fi
9400if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009401 { echo "$as_me:$LINENO: result: failed" >&5
9402echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404 { echo "$as_me:$LINENO: result: ok" >&5
9405echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406fi
9407
9408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009409{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9410echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9411if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009413else
9414 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9415 libltdl_cv_preloaded_symbols=yes
9416 else
9417 libltdl_cv_preloaded_symbols=no
9418 fi
9419
9420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009421{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9422echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009423if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009425cat >>confdefs.h <<\_ACEOF
9426#define HAVE_PRELOADED_SYMBOLS 1
9427_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009428
9429fi
9430
9431LIBADD_DL=
9432
9433ac_ext=c
9434ac_cpp='$CPP $CPPFLAGS'
9435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9437ac_compiler_gnu=$ac_cv_c_compiler_gnu
9438
9439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009440{ echo "$as_me:$LINENO: checking for shl_load" >&5
9441echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9442if test "${ac_cv_func_shl_load+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444else
9445 cat >conftest.$ac_ext <<_ACEOF
9446/* confdefs.h. */
9447_ACEOF
9448cat confdefs.h >>conftest.$ac_ext
9449cat >>conftest.$ac_ext <<_ACEOF
9450/* end confdefs.h. */
9451/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009455/* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char shl_load (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9459
9460#ifdef __STDC__
9461# include <limits.h>
9462#else
9463# include <assert.h>
9464#endif
9465
9466#undef shl_load
9467
9468/* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9471#ifdef __cplusplus
9472extern "C"
9473#endif
9474char shl_load ();
9475/* The GNU C library defines this for functions which it implements
9476 to always fail with ENOSYS. Some functions are actually named
9477 something starting with __ and the normal name is an alias. */
9478#if defined __stub_shl_load || defined __stub___shl_load
9479choke me
9480#endif
9481
9482int
9483main ()
9484{
9485return shl_load ();
9486 ;
9487 return 0;
9488}
9489_ACEOF
9490rm -f conftest.$ac_objext conftest$ac_exeext
9491if { (ac_try="$ac_link"
9492case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495esac
9496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_link") 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9505 { (case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508esac
9509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_try") 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest$ac_exeext'
9515 { (case "(($ac_try" in
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9518esac
9519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_try") 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 ac_cv_func_shl_load=yes
9525else
9526 echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 ac_cv_func_shl_load=no
9530fi
9531
9532rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534fi
9535{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9536echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9537if test $ac_cv_func_shl_load = yes; then
9538
9539cat >>confdefs.h <<\_ACEOF
9540#define HAVE_SHL_LOAD 1
9541_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542
9543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9545echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9546if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548else
9549 ac_check_lib_save_LIBS=$LIBS
9550LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009551cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009556/* end confdefs.h. */
9557
Reid Spencera773bd52006-08-04 18:18:08 +00009558/* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009561#ifdef __cplusplus
9562extern "C"
9563#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009564char shl_load ();
9565int
9566main ()
9567{
Reid Spencera773bd52006-08-04 18:18:08 +00009568return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009569 ;
9570 return 0;
9571}
9572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009573rm -f conftest.$ac_objext conftest$ac_exeext
9574if { (ac_try="$ac_link"
9575case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578esac
9579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591esac
9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601esac
9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607 ac_cv_lib_dld_shl_load=yes
9608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009609 echo "$as_me: failed program was:" >&5
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
9612 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009614
Bill Wendlingebcceee2009-04-18 11:20:33 +00009615rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009616 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617LIBS=$ac_check_lib_save_LIBS
9618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009619{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9620echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9621if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009623cat >>confdefs.h <<\_ACEOF
9624#define HAVE_SHL_LOAD 1
9625_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626
9627 LIBADD_DL="$LIBADD_DL -ldld"
9628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009629 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9630echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9631if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633else
9634 ac_check_lib_save_LIBS=$LIBS
9635LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009636cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h. */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641/* end confdefs.h. */
9642
Reid Spencera773bd52006-08-04 18:18:08 +00009643/* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009646#ifdef __cplusplus
9647extern "C"
9648#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649char dlopen ();
9650int
9651main ()
9652{
Reid Spencera773bd52006-08-04 18:18:08 +00009653return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654 ;
9655 return 0;
9656}
9657_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009658rm -f conftest.$ac_objext conftest$ac_exeext
9659if { (ac_try="$ac_link"
9660case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676esac
9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686esac
9687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_try") 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692 ac_cv_lib_dl_dlopen=yes
9693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009694 echo "$as_me: failed program was:" >&5
9695sed 's/^/| /' conftest.$ac_ext >&5
9696
9697 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009699
Bill Wendlingebcceee2009-04-18 11:20:33 +00009700rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009701 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009702LIBS=$ac_check_lib_save_LIBS
9703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009704{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9706if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009708cat >>confdefs.h <<\_ACEOF
9709#define HAVE_LIBDL 1
9710_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711
9712 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009714 cat >conftest.$ac_ext <<_ACEOF
9715/* confdefs.h. */
9716_ACEOF
9717cat confdefs.h >>conftest.$ac_ext
9718cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009719/* end confdefs.h. */
9720#if HAVE_DLFCN_H
9721# include <dlfcn.h>
9722#endif
9723
9724int
9725main ()
9726{
9727dlopen(0, 0);
9728 ;
9729 return 0;
9730}
9731_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009732rm -f conftest.$ac_objext conftest$ac_exeext
9733if { (ac_try="$ac_link"
9734case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9737esac
9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9740 ac_status=$?
9741 grep -v '^ *+' conftest.er1 >conftest.err
9742 rm -f conftest.er1
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750esac
9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760esac
9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009767cat >>confdefs.h <<\_ACEOF
9768#define HAVE_LIBDL 1
9769_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770 libltdl_cv_func_dlopen="yes"
9771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009772 echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9776echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9777if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779else
9780 ac_check_lib_save_LIBS=$LIBS
9781LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009782cat >conftest.$ac_ext <<_ACEOF
9783/* confdefs.h. */
9784_ACEOF
9785cat confdefs.h >>conftest.$ac_ext
9786cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787/* end confdefs.h. */
9788
Reid Spencera773bd52006-08-04 18:18:08 +00009789/* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009792#ifdef __cplusplus
9793extern "C"
9794#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795char dlopen ();
9796int
9797main ()
9798{
Reid Spencera773bd52006-08-04 18:18:08 +00009799return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800 ;
9801 return 0;
9802}
9803_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009804rm -f conftest.$ac_objext conftest$ac_exeext
9805if { (ac_try="$ac_link"
9806case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809esac
9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_link") 2>conftest.er1
9812 ac_status=$?
9813 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832esac
9833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838 ac_cv_lib_svld_dlopen=yes
9839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009840 echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
9843 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009845
Bill Wendlingebcceee2009-04-18 11:20:33 +00009846rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009847 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848LIBS=$ac_check_lib_save_LIBS
9849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009850{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9851echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9852if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009854cat >>confdefs.h <<\_ACEOF
9855#define HAVE_LIBDL 1
9856_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857
9858 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009860 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9861echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9862if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864else
9865 ac_check_lib_save_LIBS=$LIBS
9866LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009867cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872/* end confdefs.h. */
9873
Reid Spencera773bd52006-08-04 18:18:08 +00009874/* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877#ifdef __cplusplus
9878extern "C"
9879#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880char dld_link ();
9881int
9882main ()
9883{
Reid Spencera773bd52006-08-04 18:18:08 +00009884return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009885 ;
9886 return 0;
9887}
9888_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009889rm -f conftest.$ac_objext conftest$ac_exeext
9890if { (ac_try="$ac_link"
9891case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894esac
9895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9904 { (case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_try") 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest$ac_exeext'
9914 { (case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917esac
9918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_try") 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923 ac_cv_lib_dld_dld_link=yes
9924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009925 echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009930
Bill Wendlingebcceee2009-04-18 11:20:33 +00009931rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009932 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933LIBS=$ac_check_lib_save_LIBS
9934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009935{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9936echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9937if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009939cat >>confdefs.h <<\_ACEOF
9940#define HAVE_DLD 1
9941_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942
9943 LIBADD_DL="$LIBADD_DL -ldld"
9944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009945 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9946echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9947if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949else
9950 cat >conftest.$ac_ext <<_ACEOF
9951/* confdefs.h. */
9952_ACEOF
9953cat confdefs.h >>conftest.$ac_ext
9954cat >>conftest.$ac_ext <<_ACEOF
9955/* end confdefs.h. */
9956/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9958#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009960/* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char _dyld_func_lookup (); below.
9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009965#ifdef __STDC__
9966# include <limits.h>
9967#else
9968# include <assert.h>
9969#endif
9970
9971#undef _dyld_func_lookup
9972
9973/* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9976#ifdef __cplusplus
9977extern "C"
9978#endif
9979char _dyld_func_lookup ();
9980/* The GNU C library defines this for functions which it implements
9981 to always fail with ENOSYS. Some functions are actually named
9982 something starting with __ and the normal name is an alias. */
9983#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9984choke me
9985#endif
9986
9987int
9988main ()
9989{
9990return _dyld_func_lookup ();
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995rm -f conftest.$ac_objext conftest$ac_exeext
9996if { (ac_try="$ac_link"
9997case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000esac
10001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_link") 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10010 { (case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10013esac
10014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_try") 2>&5
10016 ac_status=$?
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10023esac
10024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_try") 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_func__dyld_func_lookup=yes
10030else
10031 echo "$as_me: failed program was:" >&5
10032sed 's/^/| /' conftest.$ac_ext >&5
10033
10034 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035fi
Reid Spencera773bd52006-08-04 18:18:08 +000010036
Bill Wendlingebcceee2009-04-18 11:20:33 +000010037rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010038 conftest$ac_exeext conftest.$ac_ext
10039fi
10040{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10041echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10042if test $ac_cv_func__dyld_func_lookup = yes; then
10043
10044cat >>confdefs.h <<\_ACEOF
10045#define HAVE_DYLD 1
10046_ACEOF
10047
10048fi
10049
10050
10051fi
10052
10053
10054fi
10055
10056
10057fi
10058
10059rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061
10062fi
10063
10064
10065fi
10066
10067
10068fi
10069
10070
10071if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10072then
10073 lt_save_LIBS="$LIBS"
10074 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010075
10076for ac_func in dlerror
10077do
10078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10079{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10081if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083else
10084 cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h. */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h. */
10090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10092#define $ac_func innocuous_$ac_func
10093
10094/* System header to define __stub macros and hopefully few prototypes,
10095 which can conflict with char $ac_func (); below.
10096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10097 <limits.h> exists even on freestanding compilers. */
10098
10099#ifdef __STDC__
10100# include <limits.h>
10101#else
10102# include <assert.h>
10103#endif
10104
10105#undef $ac_func
10106
10107/* Override any GCC internal prototype to avoid an error.
10108 Use char because int might match the return type of a GCC
10109 builtin and then its argument prototype would still apply. */
10110#ifdef __cplusplus
10111extern "C"
10112#endif
10113char $ac_func ();
10114/* The GNU C library defines this for functions which it implements
10115 to always fail with ENOSYS. Some functions are actually named
10116 something starting with __ and the normal name is an alias. */
10117#if defined __stub_$ac_func || defined __stub___$ac_func
10118choke me
10119#endif
10120
10121int
10122main ()
10123{
10124return $ac_func ();
10125 ;
10126 return 0;
10127}
10128_ACEOF
10129rm -f conftest.$ac_objext conftest$ac_exeext
10130if { (ac_try="$ac_link"
10131case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157esac
10158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 eval "$as_ac_var=yes"
10164else
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 eval "$as_ac_var=no"
10169fi
10170
10171rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173fi
10174ac_res=`eval echo '${'$as_ac_var'}'`
10175 { echo "$as_me:$LINENO: result: $ac_res" >&5
10176echo "${ECHO_T}$ac_res" >&6; }
10177if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010179#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180_ACEOF
10181
10182fi
10183done
10184
10185 LIBS="$lt_save_LIBS"
10186fi
10187ac_ext=c
10188ac_cpp='$CPP $CPPFLAGS'
10189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191ac_compiler_gnu=$ac_cv_c_compiler_gnu
10192
10193
10194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010195{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10196echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10197if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199else
10200 ac_cv_sys_symbol_underscore=no
10201 cat > conftest.$ac_ext <<EOF
10202void nm_test_func(){}
10203int main(){nm_test_func;return 0;}
10204EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010206 (eval $ac_compile) 2>&5
10207 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210 # Now try to grab the symbols.
10211 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010212 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 +000010213 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10214 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217 # See whether the symbols have a leading underscore.
10218 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10219 ac_cv_sys_symbol_underscore=yes
10220 else
10221 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10222 :
10223 else
10224 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10225 fi
10226 fi
10227 else
10228 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10229 fi
10230 else
10231 echo "configure: failed program was:" >&5
10232 cat conftest.c >&5
10233 fi
10234 rm -rf conftest*
10235
10236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010237{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10238echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239
10240
10241if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10242 if test x"$libltdl_cv_func_dlopen" = xyes ||
10243 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010244 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10245echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10246if test "${libltdl_cv_need_uscore+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010248else
10249 libltdl_cv_need_uscore=unknown
10250 save_LIBS="$LIBS"
10251 LIBS="$LIBS $LIBADD_DL"
10252 if test "$cross_compiling" = yes; then :
10253 libltdl_cv_need_uscore=cross
10254else
10255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10256 lt_status=$lt_dlunknown
10257 cat > conftest.$ac_ext <<EOF
Eric Christopher09a88732012-08-03 19:58:20 +000010258#line 10258 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259#include "confdefs.h"
10260
10261#if HAVE_DLFCN_H
10262#include <dlfcn.h>
10263#endif
10264
10265#include <stdio.h>
10266
10267#ifdef RTLD_GLOBAL
10268# define LT_DLGLOBAL RTLD_GLOBAL
10269#else
10270# ifdef DL_GLOBAL
10271# define LT_DLGLOBAL DL_GLOBAL
10272# else
10273# define LT_DLGLOBAL 0
10274# endif
10275#endif
10276
10277/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10278 find out it does not work in some platform. */
10279#ifndef LT_DLLAZY_OR_NOW
10280# ifdef RTLD_LAZY
10281# define LT_DLLAZY_OR_NOW RTLD_LAZY
10282# else
10283# ifdef DL_LAZY
10284# define LT_DLLAZY_OR_NOW DL_LAZY
10285# else
10286# ifdef RTLD_NOW
10287# define LT_DLLAZY_OR_NOW RTLD_NOW
10288# else
10289# ifdef DL_NOW
10290# define LT_DLLAZY_OR_NOW DL_NOW
10291# else
10292# define LT_DLLAZY_OR_NOW 0
10293# endif
10294# endif
10295# endif
10296# endif
10297#endif
10298
10299#ifdef __cplusplus
10300extern "C" void exit (int);
10301#endif
10302
10303void fnord() { int i=42;}
10304int main ()
10305{
10306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10307 int status = $lt_dlunknown;
10308
10309 if (self)
10310 {
10311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10313 /* dlclose (self); */
10314 }
Reid Spencera773bd52006-08-04 18:18:08 +000010315 else
10316 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317
10318 exit (status);
10319}
10320EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322 (eval $ac_link) 2>&5
10323 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010326 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327 lt_status=$?
10328 case x$lt_status in
10329 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10330 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010331 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332 esac
10333 else :
10334 # compilation failed
10335
10336 fi
10337fi
10338rm -fr conftest*
10339
10340 LIBS="$save_LIBS"
10341
10342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010343{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10344echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345 fi
10346fi
10347
10348if test x"$libltdl_cv_need_uscore" = xyes; then
10349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010350cat >>confdefs.h <<\_ACEOF
10351#define NEED_USCORE 1
10352_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353
10354fi
10355
10356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010357{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10358echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10359if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010361else
10362 # PORTME does your system automatically load deplibs for dlopen?
10363 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10364 # For now, we just catch OSes we know something about -- in the
10365 # future, we'll try test this programmatically.
10366 libltdl_cv_sys_dlopen_deplibs=unknown
10367 case "$host_os" in
10368 aix3*|aix4.1.*|aix4.2.*)
10369 # Unknown whether this is true for these versions of AIX, but
10370 # we want this `case' here to explicitly catch those versions.
10371 libltdl_cv_sys_dlopen_deplibs=unknown
10372 ;;
10373 aix[45]*)
10374 libltdl_cv_sys_dlopen_deplibs=yes
10375 ;;
10376 darwin*)
10377 # Assuming the user has installed a libdl from somewhere, this is true
10378 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10379 libltdl_cv_sys_dlopen_deplibs=yes
10380 ;;
10381 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10382 # GNU and its variants, using gnu ld.so (Glibc)
10383 libltdl_cv_sys_dlopen_deplibs=yes
10384 ;;
10385 hpux10*|hpux11*)
10386 libltdl_cv_sys_dlopen_deplibs=yes
10387 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010388 interix*)
10389 libltdl_cv_sys_dlopen_deplibs=yes
10390 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010391 irix[12345]*|irix6.[01]*)
10392 # Catch all versions of IRIX before 6.2, and indicate that we don't
10393 # know how it worked for any of those versions.
10394 libltdl_cv_sys_dlopen_deplibs=unknown
10395 ;;
10396 irix*)
10397 # The case above catches anything before 6.2, and it's known that
10398 # at 6.2 and later dlopen does load deplibs.
10399 libltdl_cv_sys_dlopen_deplibs=yes
10400 ;;
10401 netbsd*)
10402 libltdl_cv_sys_dlopen_deplibs=yes
10403 ;;
10404 openbsd*)
10405 libltdl_cv_sys_dlopen_deplibs=yes
10406 ;;
10407 osf[1234]*)
10408 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10409 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010410 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 libltdl_cv_sys_dlopen_deplibs=no
10412 ;;
10413 osf5.0|osf5.0a|osf5.1)
10414 # dlopen *does* load deplibs and with the right loader patch applied
10415 # it even uses RPATH in a shared library to search for shared objects
10416 # that the library depends on, but there's no easy way to know if that
10417 # patch is installed. Since this is the case, all we can really
10418 # say is unknown -- it depends on the patch being installed. If
10419 # it is, this changes to `yes'. Without it, it would be `no'.
10420 libltdl_cv_sys_dlopen_deplibs=unknown
10421 ;;
10422 osf*)
10423 # the two cases above should catch all versions of osf <= 5.1. Read
10424 # the comments above for what we know about them.
10425 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10426 # is used to find them so we can finally say `yes'.
10427 libltdl_cv_sys_dlopen_deplibs=yes
10428 ;;
10429 solaris*)
10430 libltdl_cv_sys_dlopen_deplibs=yes
10431 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433 libltdl_cv_sys_dlopen_deplibs=yes
10434 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435 esac
10436
10437fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010438{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10439echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442cat >>confdefs.h <<\_ACEOF
10443#define LTDL_DLOPEN_DEPLIBS 1
10444_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445
10446fi
10447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010448
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450do
10451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10457fi
10458ac_res=`eval echo '${'$as_ac_Header'}'`
10459 { echo "$as_me:$LINENO: result: $ac_res" >&5
10460echo "${ECHO_T}$ac_res" >&6; }
10461else
10462 # Is the header compilable?
10463{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10465cat >conftest.$ac_ext <<_ACEOF
10466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
10470/* end confdefs.h. */
10471$ac_includes_default
10472#include <$ac_header>
10473_ACEOF
10474rm -f conftest.$ac_objext
10475if { (ac_try="$ac_compile"
10476case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_compile") 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492esac
10493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest.$ac_objext'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502esac
10503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_header_compiler=yes
10509else
10510 echo "$as_me: failed program was:" >&5
10511sed 's/^/| /' conftest.$ac_ext >&5
10512
10513 ac_header_compiler=no
10514fi
10515
10516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10518echo "${ECHO_T}$ac_header_compiler" >&6; }
10519
10520# Is the header present?
10521{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10523cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h. */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h. */
10529#include <$ac_header>
10530_ACEOF
10531if { (ac_try="$ac_cpp conftest.$ac_ext"
10532case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } >/dev/null; then
10544 if test -s conftest.err; then
10545 ac_cpp_err=$ac_c_preproc_warn_flag
10546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10547 else
10548 ac_cpp_err=
10549 fi
10550else
10551 ac_cpp_err=yes
10552fi
10553if test -z "$ac_cpp_err"; then
10554 ac_header_preproc=yes
10555else
10556 echo "$as_me: failed program was:" >&5
10557sed 's/^/| /' conftest.$ac_ext >&5
10558
10559 ac_header_preproc=no
10560fi
10561
10562rm -f conftest.err conftest.$ac_ext
10563{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10564echo "${ECHO_T}$ac_header_preproc" >&6; }
10565
10566# So? What about this header?
10567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10568 yes:no: )
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10573 ac_header_preproc=yes
10574 ;;
10575 no:yes:* )
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10583echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10588 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010589## ------------------------------------ ##
10590## Report this to http://llvm.org/bugs/ ##
10591## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010592_ASBOX
10593 ) | sed "s/^/$as_me: WARNING: /" >&2
10594 ;;
10595esac
10596{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10600else
10601 eval "$as_ac_Header=\$ac_header_preproc"
10602fi
10603ac_res=`eval echo '${'$as_ac_Header'}'`
10604 { echo "$as_me:$LINENO: result: $ac_res" >&5
10605echo "${ECHO_T}$ac_res" >&6; }
10606
10607fi
10608if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010611_ACEOF
10612
10613fi
10614
10615done
10616
10617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010618{ echo "$as_me:$LINENO: checking for error_t" >&5
10619echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10620if test "${ac_cv_type_error_t+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h. */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h. */
10629#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630# include <argz.h>
10631#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010632
10633typedef error_t ac__type_new_;
10634int
10635main ()
10636{
10637if ((ac__type_new_ *) 0)
10638 return 0;
10639if (sizeof (ac__type_new_))
10640 return 0;
10641 ;
10642 return 0;
10643}
10644_ACEOF
10645rm -f conftest.$ac_objext
10646if { (ac_try="$ac_compile"
10647case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650esac
10651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_compile") 2>conftest.er1
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10660 { (case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10663esac
10664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_try") 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest.$ac_objext'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673esac
10674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_cv_type_error_t=yes
10680else
10681 echo "$as_me: failed program was:" >&5
10682sed 's/^/| /' conftest.$ac_ext >&5
10683
10684 ac_cv_type_error_t=no
10685fi
10686
10687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688fi
10689{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10690echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10691if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692
10693cat >>confdefs.h <<_ACEOF
10694#define HAVE_ERROR_T 1
10695_ACEOF
10696
10697
10698else
10699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010700cat >>confdefs.h <<\_ACEOF
10701#define error_t int
10702_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703
10704fi
10705
10706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010707
10708
10709
10710
10711
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010713do
10714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10715{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719else
10720 cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h. */
10726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10728#define $ac_func innocuous_$ac_func
10729
10730/* System header to define __stub macros and hopefully few prototypes,
10731 which can conflict with char $ac_func (); below.
10732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733 <limits.h> exists even on freestanding compilers. */
10734
10735#ifdef __STDC__
10736# include <limits.h>
10737#else
10738# include <assert.h>
10739#endif
10740
10741#undef $ac_func
10742
10743/* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10746#ifdef __cplusplus
10747extern "C"
10748#endif
10749char $ac_func ();
10750/* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753#if defined __stub_$ac_func || defined __stub___$ac_func
10754choke me
10755#endif
10756
10757int
10758main ()
10759{
10760return $ac_func ();
10761 ;
10762 return 0;
10763}
10764_ACEOF
10765rm -f conftest.$ac_objext conftest$ac_exeext
10766if { (ac_try="$ac_link"
10767case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10770esac
10771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_link") 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10780 { (case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783esac
10784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_try") 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest$ac_exeext'
10790 { (case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793esac
10794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_try") 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 eval "$as_ac_var=yes"
10800else
10801 echo "$as_me: failed program was:" >&5
10802sed 's/^/| /' conftest.$ac_ext >&5
10803
10804 eval "$as_ac_var=no"
10805fi
10806
10807rm -f core conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809fi
10810ac_res=`eval echo '${'$as_ac_var'}'`
10811 { echo "$as_me:$LINENO: result: $ac_res" >&5
10812echo "${ECHO_T}$ac_res" >&6; }
10813if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816_ACEOF
10817
10818fi
10819done
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840
10841
10842
10843
10844
10845
10846
10847
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10849 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010850do
10851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857fi
10858ac_res=`eval echo '${'$as_ac_Header'}'`
10859 { echo "$as_me:$LINENO: result: $ac_res" >&5
10860echo "${ECHO_T}$ac_res" >&6; }
10861else
10862 # Is the header compilable?
10863{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10865cat >conftest.$ac_ext <<_ACEOF
10866/* confdefs.h. */
10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */
10871$ac_includes_default
10872#include <$ac_header>
10873_ACEOF
10874rm -f conftest.$ac_objext
10875if { (ac_try="$ac_compile"
10876case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879esac
10880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_compile") 2>conftest.er1
10882 ac_status=$?
10883 grep -v '^ *+' conftest.er1 >conftest.err
10884 rm -f conftest.er1
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10889 { (case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892esac
10893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_try") 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest.$ac_objext'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902esac
10903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_header_compiler=yes
10909else
10910 echo "$as_me: failed program was:" >&5
10911sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_header_compiler=no
10914fi
10915
10916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10918echo "${ECHO_T}$ac_header_compiler" >&6; }
10919
10920# Is the header present?
10921{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10923cat >conftest.$ac_ext <<_ACEOF
10924/* confdefs.h. */
10925_ACEOF
10926cat confdefs.h >>conftest.$ac_ext
10927cat >>conftest.$ac_ext <<_ACEOF
10928/* end confdefs.h. */
10929#include <$ac_header>
10930_ACEOF
10931if { (ac_try="$ac_cpp conftest.$ac_ext"
10932case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935esac
10936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } >/dev/null; then
10944 if test -s conftest.err; then
10945 ac_cpp_err=$ac_c_preproc_warn_flag
10946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10947 else
10948 ac_cpp_err=
10949 fi
10950else
10951 ac_cpp_err=yes
10952fi
10953if test -z "$ac_cpp_err"; then
10954 ac_header_preproc=yes
10955else
10956 echo "$as_me: failed program was:" >&5
10957sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 ac_header_preproc=no
10960fi
10961
10962rm -f conftest.err conftest.$ac_ext
10963{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10964echo "${ECHO_T}$ac_header_preproc" >&6; }
10965
10966# So? What about this header?
10967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10968 yes:no: )
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10973 ac_header_preproc=yes
10974 ;;
10975 no:yes:* )
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10988 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010989## ------------------------------------ ##
10990## Report this to http://llvm.org/bugs/ ##
10991## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010992_ASBOX
10993 ) | sed "s/^/$as_me: WARNING: /" >&2
10994 ;;
10995esac
10996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000else
11001 eval "$as_ac_Header=\$ac_header_preproc"
11002fi
11003ac_res=`eval echo '${'$as_ac_Header'}'`
11004 { echo "$as_me:$LINENO: result: $ac_res" >&5
11005echo "${ECHO_T}$ac_res" >&6; }
11006
11007fi
11008if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011_ACEOF
11012
11013fi
11014
11015done
11016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011017
11018
11019
11020
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011021for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011022do
11023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029fi
11030ac_res=`eval echo '${'$as_ac_Header'}'`
11031 { echo "$as_me:$LINENO: result: $ac_res" >&5
11032echo "${ECHO_T}$ac_res" >&6; }
11033else
11034 # Is the header compilable?
11035{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11037cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h. */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h. */
11043$ac_includes_default
11044#include <$ac_header>
11045_ACEOF
11046rm -f conftest.$ac_objext
11047if { (ac_try="$ac_compile"
11048case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051esac
11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11064esac
11065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_header_compiler=yes
11081else
11082 echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 ac_header_compiler=no
11086fi
11087
11088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090echo "${ECHO_T}$ac_header_compiler" >&6; }
11091
11092# Is the header present?
11093{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
11102_ACEOF
11103if { (ac_try="$ac_cpp conftest.$ac_ext"
11104case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11110 ac_status=$?
11111 grep -v '^ *+' conftest.er1 >conftest.err
11112 rm -f conftest.er1
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } >/dev/null; then
11116 if test -s conftest.err; then
11117 ac_cpp_err=$ac_c_preproc_warn_flag
11118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11119 else
11120 ac_cpp_err=
11121 fi
11122else
11123 ac_cpp_err=yes
11124fi
11125if test -z "$ac_cpp_err"; then
11126 ac_header_preproc=yes
11127else
11128 echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
11131 ac_header_preproc=no
11132fi
11133
11134rm -f conftest.err conftest.$ac_ext
11135{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11136echo "${ECHO_T}$ac_header_preproc" >&6; }
11137
11138# So? What about this header?
11139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11140 yes:no: )
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11142echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11144echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11145 ac_header_preproc=yes
11146 ;;
11147 no:yes:* )
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11151echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11153echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11155echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11159echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11160 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011161## ------------------------------------ ##
11162## Report this to http://llvm.org/bugs/ ##
11163## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011164_ASBOX
11165 ) | sed "s/^/$as_me: WARNING: /" >&2
11166 ;;
11167esac
11168{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172else
11173 eval "$as_ac_Header=\$ac_header_preproc"
11174fi
11175ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177echo "${ECHO_T}$ac_res" >&6; }
11178
11179fi
11180if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183_ACEOF
11184
11185fi
11186
11187done
11188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011189
11190
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011192do
11193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199fi
11200ac_res=`eval echo '${'$as_ac_Header'}'`
11201 { echo "$as_me:$LINENO: result: $ac_res" >&5
11202echo "${ECHO_T}$ac_res" >&6; }
11203else
11204 # Is the header compilable?
11205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11207cat >conftest.$ac_ext <<_ACEOF
11208/* confdefs.h. */
11209_ACEOF
11210cat confdefs.h >>conftest.$ac_ext
11211cat >>conftest.$ac_ext <<_ACEOF
11212/* end confdefs.h. */
11213$ac_includes_default
11214#include <$ac_header>
11215_ACEOF
11216rm -f conftest.$ac_objext
11217if { (ac_try="$ac_compile"
11218case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221esac
11222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_compile") 2>conftest.er1
11224 ac_status=$?
11225 grep -v '^ *+' conftest.er1 >conftest.err
11226 rm -f conftest.er1
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11231 { (case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234esac
11235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_try") 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest.$ac_objext'
11241 { (case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244esac
11245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_try") 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; }; then
11250 ac_header_compiler=yes
11251else
11252 echo "$as_me: failed program was:" >&5
11253sed 's/^/| /' conftest.$ac_ext >&5
11254
11255 ac_header_compiler=no
11256fi
11257
11258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11260echo "${ECHO_T}$ac_header_compiler" >&6; }
11261
11262# Is the header present?
11263{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11265cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
11271#include <$ac_header>
11272_ACEOF
11273if { (ac_try="$ac_cpp conftest.$ac_ext"
11274case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277esac
11278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } >/dev/null; then
11286 if test -s conftest.err; then
11287 ac_cpp_err=$ac_c_preproc_warn_flag
11288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11289 else
11290 ac_cpp_err=
11291 fi
11292else
11293 ac_cpp_err=yes
11294fi
11295if test -z "$ac_cpp_err"; then
11296 ac_header_preproc=yes
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_header_preproc=no
11302fi
11303
11304rm -f conftest.err conftest.$ac_ext
11305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11306echo "${ECHO_T}$ac_header_preproc" >&6; }
11307
11308# So? What about this header?
11309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11310 yes:no: )
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11315 ac_header_preproc=yes
11316 ;;
11317 no:yes:* )
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11330 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011331## ------------------------------------ ##
11332## Report this to http://llvm.org/bugs/ ##
11333## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011334_ASBOX
11335 ) | sed "s/^/$as_me: WARNING: /" >&2
11336 ;;
11337esac
11338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342else
11343 eval "$as_ac_Header=\$ac_header_preproc"
11344fi
11345ac_res=`eval echo '${'$as_ac_Header'}'`
11346 { echo "$as_me:$LINENO: result: $ac_res" >&5
11347echo "${ECHO_T}$ac_res" >&6; }
11348
11349fi
11350if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353_ACEOF
11354 break
11355fi
11356
11357done
11358
11359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011360
11361
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011363do
11364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11365{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11367if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370 cat >conftest.$ac_ext <<_ACEOF
11371/* confdefs.h. */
11372_ACEOF
11373cat confdefs.h >>conftest.$ac_ext
11374cat >>conftest.$ac_ext <<_ACEOF
11375/* end confdefs.h. */
11376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11378#define $ac_func innocuous_$ac_func
11379
11380/* System header to define __stub macros and hopefully few prototypes,
11381 which can conflict with char $ac_func (); below.
11382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11383 <limits.h> exists even on freestanding compilers. */
11384
11385#ifdef __STDC__
11386# include <limits.h>
11387#else
11388# include <assert.h>
11389#endif
11390
11391#undef $ac_func
11392
11393/* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396#ifdef __cplusplus
11397extern "C"
11398#endif
11399char $ac_func ();
11400/* The GNU C library defines this for functions which it implements
11401 to always fail with ENOSYS. Some functions are actually named
11402 something starting with __ and the normal name is an alias. */
11403#if defined __stub_$ac_func || defined __stub___$ac_func
11404choke me
11405#endif
11406
11407int
11408main ()
11409{
11410return $ac_func ();
11411 ;
11412 return 0;
11413}
11414_ACEOF
11415rm -f conftest.$ac_objext conftest$ac_exeext
11416if { (ac_try="$ac_link"
11417case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420esac
11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_link") 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11430 { (case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11433esac
11434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_try") 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest$ac_exeext'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443esac
11444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 eval "$as_ac_var=yes"
11450else
11451 echo "$as_me: failed program was:" >&5
11452sed 's/^/| /' conftest.$ac_ext >&5
11453
11454 eval "$as_ac_var=no"
11455fi
11456
11457rm -f core conftest.err conftest.$ac_objext \
11458 conftest$ac_exeext conftest.$ac_ext
11459fi
11460ac_res=`eval echo '${'$as_ac_var'}'`
11461 { echo "$as_me:$LINENO: result: $ac_res" >&5
11462echo "${ECHO_T}$ac_res" >&6; }
11463if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466_ACEOF
11467 break
11468fi
11469done
11470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011471
11472
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011474do
11475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11489#define $ac_func innocuous_$ac_func
11490
11491/* System header to define __stub macros and hopefully few prototypes,
11492 which can conflict with char $ac_func (); below.
11493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 <limits.h> exists even on freestanding compilers. */
11495
11496#ifdef __STDC__
11497# include <limits.h>
11498#else
11499# include <assert.h>
11500#endif
11501
11502#undef $ac_func
11503
11504/* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507#ifdef __cplusplus
11508extern "C"
11509#endif
11510char $ac_func ();
11511/* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514#if defined __stub_$ac_func || defined __stub___$ac_func
11515choke me
11516#endif
11517
11518int
11519main ()
11520{
11521return $ac_func ();
11522 ;
11523 return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext conftest$ac_exeext
11527if { (ac_try="$ac_link"
11528case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_link") 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest$ac_exeext'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 eval "$as_ac_var=yes"
11561else
11562 echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 eval "$as_ac_var=no"
11566fi
11567
11568rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11570fi
11571ac_res=`eval echo '${'$as_ac_var'}'`
11572 { echo "$as_me:$LINENO: result: $ac_res" >&5
11573echo "${ECHO_T}$ac_res" >&6; }
11574if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011575 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577_ACEOF
11578 break
11579fi
11580done
11581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011582
11583
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011584for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011585do
11586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592 cat >conftest.$ac_ext <<_ACEOF
11593/* confdefs.h. */
11594_ACEOF
11595cat confdefs.h >>conftest.$ac_ext
11596cat >>conftest.$ac_ext <<_ACEOF
11597/* end confdefs.h. */
11598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600#define $ac_func innocuous_$ac_func
11601
11602/* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11606
11607#ifdef __STDC__
11608# include <limits.h>
11609#else
11610# include <assert.h>
11611#endif
11612
11613#undef $ac_func
11614
11615/* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618#ifdef __cplusplus
11619extern "C"
11620#endif
11621char $ac_func ();
11622/* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625#if defined __stub_$ac_func || defined __stub___$ac_func
11626choke me
11627#endif
11628
11629int
11630main ()
11631{
11632return $ac_func ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (ac_try="$ac_link"
11639case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642esac
11643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_link") 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11672else
11673 echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676 eval "$as_ac_var=no"
11677fi
11678
11679rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681fi
11682ac_res=`eval echo '${'$as_ac_var'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684echo "${ECHO_T}$ac_res" >&6; }
11685if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688_ACEOF
11689 break
11690fi
11691done
11692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011693
11694
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011696do
11697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703 cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
11709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11711#define $ac_func innocuous_$ac_func
11712
11713/* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char $ac_func (); below.
11715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716 <limits.h> exists even on freestanding compilers. */
11717
11718#ifdef __STDC__
11719# include <limits.h>
11720#else
11721# include <assert.h>
11722#endif
11723
11724#undef $ac_func
11725
11726/* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729#ifdef __cplusplus
11730extern "C"
11731#endif
11732char $ac_func ();
11733/* The GNU C library defines this for functions which it implements
11734 to always fail with ENOSYS. Some functions are actually named
11735 something starting with __ and the normal name is an alias. */
11736#if defined __stub_$ac_func || defined __stub___$ac_func
11737choke me
11738#endif
11739
11740int
11741main ()
11742{
11743return $ac_func ();
11744 ;
11745 return 0;
11746}
11747_ACEOF
11748rm -f conftest.$ac_objext conftest$ac_exeext
11749if { (ac_try="$ac_link"
11750case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763 { (case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766esac
11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_try") 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 eval "$as_ac_var=yes"
11783else
11784 echo "$as_me: failed program was:" >&5
11785sed 's/^/| /' conftest.$ac_ext >&5
11786
11787 eval "$as_ac_var=no"
11788fi
11789
11790rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792fi
11793ac_res=`eval echo '${'$as_ac_var'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795echo "${ECHO_T}$ac_res" >&6; }
11796if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799_ACEOF
11800
11801fi
11802done
11803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011804
11805
11806
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011808do
11809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11810{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814else
11815 cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h. */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h. */
11821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11823#define $ac_func innocuous_$ac_func
11824
11825/* System header to define __stub macros and hopefully few prototypes,
11826 which can conflict with char $ac_func (); below.
11827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828 <limits.h> exists even on freestanding compilers. */
11829
11830#ifdef __STDC__
11831# include <limits.h>
11832#else
11833# include <assert.h>
11834#endif
11835
11836#undef $ac_func
11837
11838/* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11841#ifdef __cplusplus
11842extern "C"
11843#endif
11844char $ac_func ();
11845/* The GNU C library defines this for functions which it implements
11846 to always fail with ENOSYS. Some functions are actually named
11847 something starting with __ and the normal name is an alias. */
11848#if defined __stub_$ac_func || defined __stub___$ac_func
11849choke me
11850#endif
11851
11852int
11853main ()
11854{
11855return $ac_func ();
11856 ;
11857 return 0;
11858}
11859_ACEOF
11860rm -f conftest.$ac_objext conftest$ac_exeext
11861if { (ac_try="$ac_link"
11862case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865esac
11866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_link") 2>conftest.er1
11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11875 { (case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878esac
11879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_try") 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888esac
11889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_try") 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 eval "$as_ac_var=yes"
11895else
11896 echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 eval "$as_ac_var=no"
11900fi
11901
11902rm -f core conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext conftest.$ac_ext
11904fi
11905ac_res=`eval echo '${'$as_ac_var'}'`
11906 { echo "$as_me:$LINENO: result: $ac_res" >&5
11907echo "${ECHO_T}$ac_res" >&6; }
11908if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011909 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011911_ACEOF
11912
11913fi
11914done
11915
11916
Douglas Gregor01746742009-05-11 18:05:52 +000011917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011918{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11919echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011920
Reid Spencer86901802004-12-08 23:07:27 +000011921ICC=no
11922IXX=no
11923case $CC in
11924 icc*|icpc*)
11925 ICC=yes
11926 IXX=yes
11927 ;;
11928 *)
11929 ;;
11930esac
11931
Duraid Madina937c60a2006-02-15 07:57:42 +000011932if test "$GCC" != "yes" && test "$ICC" != "yes"
11933then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011934 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11935echo "$as_me: error: gcc|icc required but not found" >&2;}
11936 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011937fi
11938
11939if test "$GXX" != "yes" && test "$IXX" != "yes"
11940then
Eric Christopher73e36da2010-12-08 02:02:14 +000011941 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11942echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011943 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011944fi
11945
Reid Spencer86901802004-12-08 23:07:27 +000011946if test "$GCC" = "yes"
11947then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011948 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000011949#if !defined(__GNUC__) || __GNUC__ < 3
11950#error Unsupported GCC version
11951#endif
11952
11953_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011954rm -f conftest.$ac_objext
11955if { (ac_try="$ac_compile"
11956case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 :
Chris Lattner399c7c72008-02-05 19:43:53 +000011989else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11994echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11995 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000011996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011997
Chris Lattner399c7c72008-02-05 19:43:53 +000011998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011999fi
12000
12001if test -z "$llvm_cv_gnu_make_command"
12002then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012003 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12004echo "$as_me: error: GNU Make required but not found" >&2;}
12005 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012006fi
12007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012008{ echo "$as_me:$LINENO: result: ok" >&5
12009echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012011{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12012echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012013NO_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 +000012014
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012015NO_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 +000012016
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012017COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12018
12019{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12020echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012021
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012023
12024{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12025echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12026if test "${ac_cv_lib_m_sin+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012028else
12029 ac_check_lib_save_LIBS=$LIBS
12030LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012031cat >conftest.$ac_ext <<_ACEOF
12032/* confdefs.h. */
12033_ACEOF
12034cat confdefs.h >>conftest.$ac_ext
12035cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012036/* end confdefs.h. */
12037
Reid Spencera773bd52006-08-04 18:18:08 +000012038/* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012041#ifdef __cplusplus
12042extern "C"
12043#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012044char sin ();
12045int
12046main ()
12047{
Reid Spencera773bd52006-08-04 18:18:08 +000012048return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012049 ;
12050 return 0;
12051}
12052_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012053rm -f conftest.$ac_objext conftest$ac_exeext
12054if { (ac_try="$ac_link"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081esac
12082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012087 ac_cv_lib_m_sin=yes
12088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012089 echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
12092 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012094
Bill Wendlingebcceee2009-04-18 11:20:33 +000012095rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012096 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012097LIBS=$ac_check_lib_save_LIBS
12098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012099{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12100echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12101if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012102 cat >>confdefs.h <<_ACEOF
12103#define HAVE_LIBM 1
12104_ACEOF
12105
12106 LIBS="-lm $LIBS"
12107
12108fi
12109
Jeff Cohen28783c32007-01-12 18:22:38 +000012110if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012111
12112{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12113echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12114if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012116else
12117 ac_check_lib_save_LIBS=$LIBS
12118LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012119cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012124/* end confdefs.h. */
12125
Reid Spencer48fdf912006-06-01 19:03:21 +000012126
Reid Spencer484fc8e2006-06-01 16:55:59 +000012127int
12128main ()
12129{
Reid Spencera773bd52006-08-04 18:18:08 +000012130return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012131 ;
12132 return 0;
12133}
12134_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012135rm -f conftest.$ac_objext conftest$ac_exeext
12136if { (ac_try="$ac_link"
12137case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140esac
12141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_link") 2>conftest.er1
12143 ac_status=$?
12144 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12150 { (case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_try") 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12163esac
12164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_try") 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012169 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012171 echo "$as_me: failed program was:" >&5
12172sed 's/^/| /' conftest.$ac_ext >&5
12173
12174 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012176
Bill Wendlingebcceee2009-04-18 11:20:33 +000012177rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012178 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012179LIBS=$ac_check_lib_save_LIBS
12180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012181{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12182echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12183if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012184 cat >>confdefs.h <<_ACEOF
12185#define HAVE_LIBIMAGEHLP 1
12186_ACEOF
12187
12188 LIBS="-limagehlp $LIBS"
12189
12190fi
12191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012192
12193{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12194echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12195if test "${ac_cv_lib_psapi_main+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012197else
12198 ac_check_lib_save_LIBS=$LIBS
12199LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012200cat >conftest.$ac_ext <<_ACEOF
12201/* confdefs.h. */
12202_ACEOF
12203cat confdefs.h >>conftest.$ac_ext
12204cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012205/* end confdefs.h. */
12206
Reid Spencer48fdf912006-06-01 19:03:21 +000012207
Reid Spencer484fc8e2006-06-01 16:55:59 +000012208int
12209main ()
12210{
Reid Spencera773bd52006-08-04 18:18:08 +000012211return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012212 ;
12213 return 0;
12214}
12215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012216rm -f conftest.$ac_objext conftest$ac_exeext
12217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12231 { (case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_try") 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest$ac_exeext'
12241 { (case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244esac
12245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_try") 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012250 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012257
Bill Wendlingebcceee2009-04-18 11:20:33 +000012258rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012259 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012260LIBS=$ac_check_lib_save_LIBS
12261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012262{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12263echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12264if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012265 cat >>confdefs.h <<_ACEOF
12266#define HAVE_LIBPSAPI 1
12267_ACEOF
12268
12269 LIBS="-lpsapi $LIBS"
12270
12271fi
12272
12273fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012275{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12276echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12277if test "${ac_cv_search_dlopen+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012279else
12280 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012281cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012287
Reid Spencera773bd52006-08-04 18:18:08 +000012288/* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012291#ifdef __cplusplus
12292extern "C"
12293#endif
John Criswell7a73b802003-06-30 21:59:07 +000012294char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012295int
12296main ()
12297{
Reid Spencera773bd52006-08-04 18:18:08 +000012298return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012299 ;
12300 return 0;
12301}
12302_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012303for ac_lib in '' dl; do
12304 if test -z "$ac_lib"; then
12305 ac_res="none required"
12306 else
12307 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012309 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012310 rm -f conftest.$ac_objext conftest$ac_exeext
12311if { (ac_try="$ac_link"
12312case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315esac
12316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_try") 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest$ac_exeext'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012344 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012345else
12346 echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
12349
John Criswell7a73b802003-06-30 21:59:07 +000012350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351
Bill Wendlingebcceee2009-04-18 11:20:33 +000012352rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012353 conftest$ac_exeext
12354 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012355 break
John Criswell7a73b802003-06-30 21:59:07 +000012356fi
Reid Spencera773bd52006-08-04 18:18:08 +000012357done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012358if test "${ac_cv_search_dlopen+set}" = set; then
12359 :
Reid Spencera773bd52006-08-04 18:18:08 +000012360else
12361 ac_cv_search_dlopen=no
12362fi
12363rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012364LIBS=$ac_func_search_save_LIBS
12365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012366{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12367echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012368ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012369if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012372cat >>confdefs.h <<\_ACEOF
12373#define HAVE_DLOPEN 1
12374_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012375
12376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012377 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12378echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012379fi
12380
12381
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012382if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012383 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12384echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12385if test "${ac_cv_search_ffi_call+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012387else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012388 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012389cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012394/* end confdefs.h. */
12395
12396/* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399#ifdef __cplusplus
12400extern "C"
12401#endif
12402char ffi_call ();
12403int
12404main ()
12405{
12406return ffi_call ();
12407 ;
12408 return 0;
12409}
12410_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012411for ac_lib in '' ffi; do
12412 if test -z "$ac_lib"; then
12413 ac_res="none required"
12414 else
12415 ac_res=-l$ac_lib
12416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12417 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012418 rm -f conftest.$ac_objext conftest$ac_exeext
12419if { (ac_try="$ac_link"
12420case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12436esac
12437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446esac
12447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012452 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012453else
12454 echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012459
Bill Wendlingebcceee2009-04-18 11:20:33 +000012460rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012461 conftest$ac_exeext
12462 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012463 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012464fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012465done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012466if test "${ac_cv_search_ffi_call+set}" = set; then
12467 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012468else
12469 ac_cv_search_ffi_call=no
12470fi
12471rm conftest.$ac_ext
12472LIBS=$ac_func_search_save_LIBS
12473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012474{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12475echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012476ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012480cat >>confdefs.h <<\_ACEOF
12481#define HAVE_FFI_CALL 1
12482_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012483
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012484else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012485 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12486echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12487 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012488fi
12489
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012490fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012492{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12493echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12494if test "${ac_cv_search_mallinfo+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012496else
12497 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498cat >conftest.$ac_ext <<_ACEOF
12499/* confdefs.h. */
12500_ACEOF
12501cat confdefs.h >>conftest.$ac_ext
12502cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012504
Reid Spencera773bd52006-08-04 18:18:08 +000012505/* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012508#ifdef __cplusplus
12509extern "C"
12510#endif
John Criswell7a73b802003-06-30 21:59:07 +000012511char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012512int
12513main ()
12514{
Reid Spencera773bd52006-08-04 18:18:08 +000012515return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012516 ;
12517 return 0;
12518}
12519_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012520for ac_lib in '' malloc; do
12521 if test -z "$ac_lib"; then
12522 ac_res="none required"
12523 else
12524 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012526 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012527 rm -f conftest.$ac_objext conftest$ac_exeext
12528if { (ac_try="$ac_link"
12529case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12532esac
12533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_link") 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542 { (case "(($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_try") 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555esac
12556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012561 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566
John Criswell7a73b802003-06-30 21:59:07 +000012567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012568
Bill Wendlingebcceee2009-04-18 11:20:33 +000012569rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012570 conftest$ac_exeext
12571 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012572 break
John Criswell7a73b802003-06-30 21:59:07 +000012573fi
Reid Spencera773bd52006-08-04 18:18:08 +000012574done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575if test "${ac_cv_search_mallinfo+set}" = set; then
12576 :
Reid Spencera773bd52006-08-04 18:18:08 +000012577else
12578 ac_cv_search_mallinfo=no
12579fi
12580rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012581LIBS=$ac_func_search_save_LIBS
12582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012583{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12584echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012585ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012586if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012589cat >>confdefs.h <<\_ACEOF
12590#define HAVE_MALLINFO 1
12591_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012592
12593fi
12594
12595
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012596if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012597
12598{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12599echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12600if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012602else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012603 ac_check_lib_save_LIBS=$LIBS
12604LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012605cat >conftest.$ac_ext <<_ACEOF
12606/* confdefs.h. */
12607_ACEOF
12608cat confdefs.h >>conftest.$ac_ext
12609cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012610/* end confdefs.h. */
12611
Reid Spencera773bd52006-08-04 18:18:08 +000012612/* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012615#ifdef __cplusplus
12616extern "C"
12617#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012618char pthread_mutex_init ();
12619int
12620main ()
12621{
Reid Spencera773bd52006-08-04 18:18:08 +000012622return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012623 ;
12624 return 0;
12625}
12626_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012627rm -f conftest.$ac_objext conftest$ac_exeext
12628if { (ac_try="$ac_link"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12645esac
12646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest$ac_exeext'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012661 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012668
Bill Wendlingebcceee2009-04-18 11:20:33 +000012669rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012670 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012671LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012673{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12674echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12675if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012676 cat >>confdefs.h <<_ACEOF
12677#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012678_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012679
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012680 LIBS="-lpthread $LIBS"
12681
Reid Spencer22177fe2005-07-12 15:24:20 +000012682fi
12683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012684 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12685echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12686if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012688else
12689 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012690cat >conftest.$ac_ext <<_ACEOF
12691/* confdefs.h. */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012695/* end confdefs.h. */
12696
Reid Spencera773bd52006-08-04 18:18:08 +000012697/* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012700#ifdef __cplusplus
12701extern "C"
12702#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012703char pthread_mutex_lock ();
12704int
12705main ()
12706{
Reid Spencera773bd52006-08-04 18:18:08 +000012707return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012708 ;
12709 return 0;
12710}
12711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012712for ac_lib in '' pthread; do
12713 if test -z "$ac_lib"; then
12714 ac_res="none required"
12715 else
12716 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012718 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012719 rm -f conftest.$ac_objext conftest$ac_exeext
12720if { (ac_try="$ac_link"
12721case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12724esac
12725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_link") 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734 { (case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737esac
12738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_try") 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12747esac
12748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_try") 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012753 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012754else
12755 echo "$as_me: failed program was:" >&5
12756sed 's/^/| /' conftest.$ac_ext >&5
12757
12758
Brian Gaeke5f268f72003-12-05 19:29:01 +000012759fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012760
Bill Wendlingebcceee2009-04-18 11:20:33 +000012761rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012762 conftest$ac_exeext
12763 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012764 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012765fi
Reid Spencera773bd52006-08-04 18:18:08 +000012766done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012767if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12768 :
Reid Spencera773bd52006-08-04 18:18:08 +000012769else
12770 ac_cv_search_pthread_mutex_lock=no
12771fi
12772rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012773LIBS=$ac_func_search_save_LIBS
12774fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012775{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12776echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012777ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012781cat >>confdefs.h <<\_ACEOF
12782#define HAVE_PTHREAD_MUTEX_LOCK 1
12783_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012784
12785fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012787 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12788echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12789if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012791else
12792 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012793cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012798/* end confdefs.h. */
12799
12800/* Override any GCC internal prototype to avoid an error.
12801 Use char because int might match the return type of a GCC
12802 builtin and then its argument prototype would still apply. */
12803#ifdef __cplusplus
12804extern "C"
12805#endif
12806char pthread_rwlock_init ();
12807int
12808main ()
12809{
12810return pthread_rwlock_init ();
12811 ;
12812 return 0;
12813}
12814_ACEOF
12815for ac_lib in '' pthread; do
12816 if test -z "$ac_lib"; then
12817 ac_res="none required"
12818 else
12819 ac_res=-l$ac_lib
12820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12821 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012822 rm -f conftest.$ac_objext conftest$ac_exeext
12823if { (ac_try="$ac_link"
12824case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827esac
12828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12837 { (case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840esac
12841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_try") 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest$ac_exeext'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850esac
12851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012856 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012857else
12858 echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
12861
Owen Andersonde8aed22009-06-16 18:20:20 +000012862fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012863
Owen Andersonde8aed22009-06-16 18:20:20 +000012864rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012865 conftest$ac_exeext
12866 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012867 break
12868fi
12869done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012870if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12871 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012872else
12873 ac_cv_search_pthread_rwlock_init=no
12874fi
12875rm conftest.$ac_ext
12876LIBS=$ac_func_search_save_LIBS
12877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012878{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12879echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012880ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012881if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012884cat >>confdefs.h <<\_ACEOF
12885#define HAVE_PTHREAD_RWLOCK_INIT 1
12886_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012887
12888fi
12889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012890 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12891echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12892if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012894else
12895 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012896cat >conftest.$ac_ext <<_ACEOF
12897/* confdefs.h. */
12898_ACEOF
12899cat confdefs.h >>conftest.$ac_ext
12900cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012901/* end confdefs.h. */
12902
12903/* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
12906#ifdef __cplusplus
12907extern "C"
12908#endif
12909char pthread_getspecific ();
12910int
12911main ()
12912{
12913return pthread_getspecific ();
12914 ;
12915 return 0;
12916}
12917_ACEOF
12918for ac_lib in '' pthread; do
12919 if test -z "$ac_lib"; then
12920 ac_res="none required"
12921 else
12922 ac_res=-l$ac_lib
12923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12924 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012925 rm -f conftest.$ac_objext conftest$ac_exeext
12926if { (ac_try="$ac_link"
12927case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930esac
12931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_link") 2>conftest.er1
12933 ac_status=$?
12934 grep -v '^ *+' conftest.er1 >conftest.err
12935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943esac
12944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12953esac
12954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_try") 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012959 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012960else
12961 echo "$as_me: failed program was:" >&5
12962sed 's/^/| /' conftest.$ac_ext >&5
12963
12964
Owen Anderson27fcfe12009-06-25 23:10:26 +000012965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966
Owen Anderson27fcfe12009-06-25 23:10:26 +000012967rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012968 conftest$ac_exeext
12969 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012970 break
12971fi
12972done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012973if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12974 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000012975else
12976 ac_cv_search_pthread_getspecific=no
12977fi
12978rm conftest.$ac_ext
12979LIBS=$ac_func_search_save_LIBS
12980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012981{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12982echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000012983ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000012985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012987cat >>confdefs.h <<\_ACEOF
12988#define HAVE_PTHREAD_GETSPECIFIC 1
12989_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012990
12991fi
12992
Reid Spencer0a262ba2005-08-24 10:07:20 +000012993fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000012994
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012995
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012996# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012997if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012998 withval=$with_udis86;
12999 USE_UDIS86=1
13000
13001 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013002 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013003 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13004 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005
13006{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13007echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13008if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013010else
13011 ac_check_lib_save_LIBS=$LIBS
13012LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013013cat >conftest.$ac_ext <<_ACEOF
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013018/* end confdefs.h. */
13019
13020/* Override any GCC internal prototype to avoid an error.
13021 Use char because int might match the return type of a GCC
13022 builtin and then its argument prototype would still apply. */
13023#ifdef __cplusplus
13024extern "C"
13025#endif
13026char ud_init ();
13027int
13028main ()
13029{
13030return ud_init ();
13031 ;
13032 return 0;
13033}
13034_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013035rm -f conftest.$ac_objext conftest$ac_exeext
13036if { (ac_try="$ac_link"
13037case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13040esac
13041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_link") 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053esac
13054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try='test -s conftest$ac_exeext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063esac
13064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013069 ac_cv_lib_udis86_ud_init=yes
13070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013071 echo "$as_me: failed program was:" >&5
13072sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013076
Bill Wendlingebcceee2009-04-18 11:20:33 +000013077rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013078 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013079LIBS=$ac_check_lib_save_LIBS
13080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013081{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13082echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13083if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013084 cat >>confdefs.h <<_ACEOF
13085#define HAVE_LIBUDIS86 1
13086_ACEOF
13087
13088 LIBS="-ludis86 $LIBS"
13089
13090else
13091
13092 echo "Error! You need to have libudis86 around."
13093 exit -1
13094
13095fi
13096
13097
13098else
13099 USE_UDIS86=0
13100
13101fi
13102
13103
13104cat >>confdefs.h <<_ACEOF
13105#define USE_UDIS86 $USE_UDIS86
13106_ACEOF
13107
13108
13109
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013110# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013111if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013112 withval=$with_oprofile;
13113 USE_OPROFILE=1
13114
13115 case "$withval" in
13116 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013117 no) llvm_cv_oppath=
13118 USE_OPROFILE=0
13119 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013120 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013121 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013122 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013123 case $llvm_cv_os_type in
13124 Linux)
13125 if test -n "$llvm_cv_oppath" ; then
13126 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13127 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13129if test "${ac_cv_search_bfd_init+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013131else
13132 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013133cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013138/* end confdefs.h. */
13139
13140/* Override any GCC internal prototype to avoid an error.
13141 Use char because int might match the return type of a GCC
13142 builtin and then its argument prototype would still apply. */
13143#ifdef __cplusplus
13144extern "C"
13145#endif
13146char bfd_init ();
13147int
13148main ()
13149{
13150return bfd_init ();
13151 ;
13152 return 0;
13153}
13154_ACEOF
13155for ac_lib in '' bfd; do
13156 if test -z "$ac_lib"; then
13157 ac_res="none required"
13158 else
13159 ac_res=-l$ac_lib
13160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13161 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013162 rm -f conftest.$ac_objext conftest$ac_exeext
13163if { (ac_try="$ac_link"
13164case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167esac
13168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_link") 2>conftest.er1
13170 ac_status=$?
13171 grep -v '^ *+' conftest.er1 >conftest.err
13172 rm -f conftest.er1
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13186 { ac_try='test -s conftest$ac_exeext'
13187 { (case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190esac
13191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_try") 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013196 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197else
13198 echo "$as_me: failed program was:" >&5
13199sed 's/^/| /' conftest.$ac_ext >&5
13200
13201
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013204rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013205 conftest$ac_exeext
13206 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013207 break
13208fi
13209done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013210if test "${ac_cv_search_bfd_init+set}" = set; then
13211 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013212else
13213 ac_cv_search_bfd_init=no
13214fi
13215rm conftest.$ac_ext
13216LIBS=$ac_func_search_save_LIBS
13217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013218{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13219echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013220ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013221if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13223
13224fi
13225
Eli Bendersky61b18512012-03-13 08:33:15 +000013226 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13228if test "${ac_cv_search_op_open_agent+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013230else
13231 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013232cat >conftest.$ac_ext <<_ACEOF
13233/* confdefs.h. */
13234_ACEOF
13235cat confdefs.h >>conftest.$ac_ext
13236cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013237/* end confdefs.h. */
13238
13239/* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242#ifdef __cplusplus
13243extern "C"
13244#endif
13245char op_open_agent ();
13246int
13247main ()
13248{
13249return op_open_agent ();
13250 ;
13251 return 0;
13252}
13253_ACEOF
13254for ac_lib in '' opagent; do
13255 if test -z "$ac_lib"; then
13256 ac_res="none required"
13257 else
13258 ac_res=-l$ac_lib
13259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13260 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013261 rm -f conftest.$ac_objext conftest$ac_exeext
13262if { (ac_try="$ac_link"
13263case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266esac
13267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_link") 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13276 { (case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279esac
13280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_try") 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; } &&
13285 { ac_try='test -s conftest$ac_exeext'
13286 { (case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13289esac
13290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_try") 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013295 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296else
13297 echo "$as_me: failed program was:" >&5
13298sed 's/^/| /' conftest.$ac_ext >&5
13299
13300
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013302
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013303rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013304 conftest$ac_exeext
13305 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013306 break
13307fi
13308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013309if test "${ac_cv_search_op_open_agent+set}" = set; then
13310 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013311else
13312 ac_cv_search_op_open_agent=no
13313fi
13314rm conftest.$ac_ext
13315LIBS=$ac_func_search_save_LIBS
13316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013317{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13318echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013319ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13322
13323else
13324
Eli Bendersky61b18512012-03-13 08:33:15 +000013325 echo "Error! You need to have libopagent around."
13326 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013327
13328fi
13329
Eli Bendersky61b18512012-03-13 08:33:15 +000013330 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013331 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13332echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13333if test "${ac_cv_header_opagent_h+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335fi
13336{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13337echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13338else
13339 # Is the header compilable?
13340{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13341echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13342cat >conftest.$ac_ext <<_ACEOF
13343/* confdefs.h. */
13344_ACEOF
13345cat confdefs.h >>conftest.$ac_ext
13346cat >>conftest.$ac_ext <<_ACEOF
13347/* end confdefs.h. */
13348$ac_includes_default
13349#include <opagent.h>
13350_ACEOF
13351rm -f conftest.$ac_objext
13352if { (ac_try="$ac_compile"
13353case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356esac
13357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_compile") 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13366 { (case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369esac
13370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_try") 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13379esac
13380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_try") 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; }; then
13385 ac_header_compiler=yes
13386else
13387 echo "$as_me: failed program was:" >&5
13388sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013390 ac_header_compiler=no
13391fi
13392
13393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13394{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13395echo "${ECHO_T}$ac_header_compiler" >&6; }
13396
13397# Is the header present?
13398{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13399echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13400cat >conftest.$ac_ext <<_ACEOF
13401/* confdefs.h. */
13402_ACEOF
13403cat confdefs.h >>conftest.$ac_ext
13404cat >>conftest.$ac_ext <<_ACEOF
13405/* end confdefs.h. */
13406#include <opagent.h>
13407_ACEOF
13408if { (ac_try="$ac_cpp conftest.$ac_ext"
13409case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } >/dev/null; then
13421 if test -s conftest.err; then
13422 ac_cpp_err=$ac_c_preproc_warn_flag
13423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13424 else
13425 ac_cpp_err=
13426 fi
13427else
13428 ac_cpp_err=yes
13429fi
13430if test -z "$ac_cpp_err"; then
13431 ac_header_preproc=yes
13432else
13433 echo "$as_me: failed program was:" >&5
13434sed 's/^/| /' conftest.$ac_ext >&5
13435
13436 ac_header_preproc=no
13437fi
13438
13439rm -f conftest.err conftest.$ac_ext
13440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13441echo "${ECHO_T}$ac_header_preproc" >&6; }
13442
13443# So? What about this header?
13444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13445 yes:no: )
13446 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13447echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13449echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13450 ac_header_preproc=yes
13451 ;;
13452 no:yes:* )
13453 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13454echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13456echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13458echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13460echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13462echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13464echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13465 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013466## ------------------------------------ ##
13467## Report this to http://llvm.org/bugs/ ##
13468## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013469_ASBOX
13470 ) | sed "s/^/$as_me: WARNING: /" >&2
13471 ;;
13472esac
13473{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13474echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13475if test "${ac_cv_header_opagent_h+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
13478 ac_cv_header_opagent_h=$ac_header_preproc
13479fi
13480{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13481echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13482
13483fi
13484if test $ac_cv_header_opagent_h = yes; then
13485 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013486else
13487
Eli Bendersky61b18512012-03-13 08:33:15 +000013488 echo "Error! You need to have opagent.h around."
13489 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013490
13491fi
13492
13493
Eli Bendersky61b18512012-03-13 08:33:15 +000013494 fi ;;
13495 *)
13496 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13497echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13498 { (exit 1); exit 1; }; } ;;
13499 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013500
13501else
13502
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013503 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013504
13505
13506fi
13507
13508
13509cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013510#define LLVM_USE_OPROFILE $USE_OPROFILE
13511_ACEOF
13512
13513
13514
13515# Check whether --with-intel-jitevents was given.
13516if test "${with_intel_jitevents+set}" = set; then
13517 withval=$with_intel_jitevents;
13518 case $llvm_cv_os_type in
13519 Linux|Win32|Cygwin|MingW) ;;
13520 *)
13521 { { echo "$as_me:$LINENO: error:
13522 Intel JIT API support is available on Linux and Windows only.\"" >&5
13523echo "$as_me: error:
13524 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13525 { (exit 1); exit 1; }; } ;;
13526 esac
13527
13528 USE_INTEL_JITEVENTS=1
13529
13530 case "$llvm_cv_target_arch" in
13531 x86) llvm_intel_jitevents_archdir="lib32";;
13532 x86_64) llvm_intel_jitevents_archdir="lib64";;
13533 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13534 exit -1;;
13535 esac
13536 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13537 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13538 case "$withval" in
13539 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13540 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13541 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013542 esac
13543
13544
13545
13546
13547 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christopher42dffa52012-08-03 17:45:31 +000013548 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013549
13550 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13551echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13552if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554else
13555 ac_func_search_save_LIBS=$LIBS
13556cat >conftest.$ac_ext <<_ACEOF
13557/* confdefs.h. */
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
13562
13563/* Override any GCC internal prototype to avoid an error.
13564 Use char because int might match the return type of a GCC
13565 builtin and then its argument prototype would still apply. */
13566#ifdef __cplusplus
13567extern "C"
13568#endif
13569char iJIT_IsProfilingActive ();
13570int
13571main ()
13572{
13573return iJIT_IsProfilingActive ();
13574 ;
13575 return 0;
13576}
13577_ACEOF
13578for ac_lib in '' jitprofiling; do
13579 if test -z "$ac_lib"; then
13580 ac_res="none required"
13581 else
13582 ac_res=-l$ac_lib
13583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13584 fi
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586if { (ac_try="$ac_link"
13587case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13590esac
13591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603esac
13604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; } &&
13609 { ac_try='test -s conftest$ac_exeext'
13610 { (case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613esac
13614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_try") 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13620else
13621 echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624
13625fi
13626
13627rm -f core conftest.err conftest.$ac_objext \
13628 conftest$ac_exeext
13629 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13630 break
13631fi
13632done
13633if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13634 :
13635else
13636 ac_cv_search_iJIT_IsProfilingActive=no
13637fi
13638rm conftest.$ac_ext
13639LIBS=$ac_func_search_save_LIBS
13640fi
13641{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13642echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13643ac_res=$ac_cv_search_iJIT_IsProfilingActive
13644if test "$ac_res" != no; then
13645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13646
13647else
13648
13649 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13650 exit -1
13651
13652fi
13653
13654 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13655 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13656echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13657if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659fi
13660{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13661echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13662else
13663 # Is the header compilable?
13664{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13665echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13666cat >conftest.$ac_ext <<_ACEOF
13667/* confdefs.h. */
13668_ACEOF
13669cat confdefs.h >>conftest.$ac_ext
13670cat >>conftest.$ac_ext <<_ACEOF
13671/* end confdefs.h. */
13672$ac_includes_default
13673#include <jitprofiling.h>
13674_ACEOF
13675rm -f conftest.$ac_objext
13676if { (ac_try="$ac_compile"
13677case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680esac
13681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } &&
13689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13690 { (case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13693esac
13694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_try") 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; } &&
13699 { ac_try='test -s conftest.$ac_objext'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703esac
13704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_header_compiler=yes
13710else
13711 echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_header_compiler=no
13715fi
13716
13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13719echo "${ECHO_T}$ac_header_compiler" >&6; }
13720
13721# Is the header present?
13722{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13723echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13724cat >conftest.$ac_ext <<_ACEOF
13725/* confdefs.h. */
13726_ACEOF
13727cat confdefs.h >>conftest.$ac_ext
13728cat >>conftest.$ac_ext <<_ACEOF
13729/* end confdefs.h. */
13730#include <jitprofiling.h>
13731_ACEOF
13732if { (ac_try="$ac_cpp conftest.$ac_ext"
13733case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13736esac
13737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } >/dev/null; then
13745 if test -s conftest.err; then
13746 ac_cpp_err=$ac_c_preproc_warn_flag
13747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13748 else
13749 ac_cpp_err=
13750 fi
13751else
13752 ac_cpp_err=yes
13753fi
13754if test -z "$ac_cpp_err"; then
13755 ac_header_preproc=yes
13756else
13757 echo "$as_me: failed program was:" >&5
13758sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 ac_header_preproc=no
13761fi
13762
13763rm -f conftest.err conftest.$ac_ext
13764{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13765echo "${ECHO_T}$ac_header_preproc" >&6; }
13766
13767# So? What about this header?
13768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13769 yes:no: )
13770 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13771echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13773echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13774 ac_header_preproc=yes
13775 ;;
13776 no:yes:* )
13777 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13778echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13780echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13782echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13784echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13786echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13788echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13789 ( cat <<\_ASBOX
13790## ------------------------------------ ##
13791## Report this to http://llvm.org/bugs/ ##
13792## ------------------------------------ ##
13793_ASBOX
13794 ) | sed "s/^/$as_me: WARNING: /" >&2
13795 ;;
13796esac
13797{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13798echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13799if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13801else
13802 ac_cv_header_jitprofiling_h=$ac_header_preproc
13803fi
13804{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13805echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13806
13807fi
13808if test $ac_cv_header_jitprofiling_h = yes; then
13809 :
13810else
13811
13812 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13813 exit -1
13814
13815fi
13816
13817
13818
13819
13820else
13821
13822 USE_INTEL_JITEVENTS=0
13823
13824
13825fi
13826
13827
13828cat >>confdefs.h <<_ACEOF
13829#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013830_ACEOF
13831
13832
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013833for ac_prog in xml2-config
13834do
13835 # Extract the first word of "$ac_prog", so it can be a program name with args.
13836set dummy $ac_prog; ac_word=$2
13837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13839if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841else
13842 if test -n "$XML2CONFIG"; then
13843 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13844else
13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13852 ac_cv_prog_XML2CONFIG="$ac_prog"
13853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 break 2
13855 fi
13856done
13857done
13858IFS=$as_save_IFS
13859
13860fi
13861fi
13862XML2CONFIG=$ac_cv_prog_XML2CONFIG
13863if test -n "$XML2CONFIG"; then
13864 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13865echo "${ECHO_T}$XML2CONFIG" >&6; }
13866else
13867 { echo "$as_me:$LINENO: result: no" >&5
13868echo "${ECHO_T}no" >&6; }
13869fi
13870
13871
13872 test -n "$XML2CONFIG" && break
13873done
13874
13875
13876{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13877echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13878if test "x$XML2CONFIG" = "x"; then
13879 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13880echo "${ECHO_T}xml2-config not found" >&6; }
13881else
13882 LIBXML2_INC=`$XML2CONFIG --cflags`
13883 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13884echo "${ECHO_T}$LIBXML2_INC" >&6; }
13885 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13886echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13887if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890 ac_check_lib_save_LIBS=$LIBS
13891LIBS="-lxml2 $LIBS"
13892cat >conftest.$ac_ext <<_ACEOF
13893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
13898
13899/* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13902#ifdef __cplusplus
13903extern "C"
13904#endif
13905char xmlReadFile ();
13906int
13907main ()
13908{
13909return xmlReadFile ();
13910 ;
13911 return 0;
13912}
13913_ACEOF
13914rm -f conftest.$ac_objext conftest$ac_exeext
13915if { (ac_try="$ac_link"
13916case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919esac
13920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_link") 2>conftest.er1
13922 ac_status=$?
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13932esac
13933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; } &&
13938 { ac_try='test -s conftest$ac_exeext'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942esac
13943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_lib_xml2_xmlReadFile=yes
13949else
13950 echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_cv_lib_xml2_xmlReadFile=no
13954fi
13955
13956rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958LIBS=$ac_check_lib_save_LIBS
13959fi
13960{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13961echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13962if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13963
13964cat >>confdefs.h <<\_ACEOF
13965#define CLANG_HAVE_LIBXML 1
13966_ACEOF
13967
13968 LIBXML2_LIBS="-lxml2"
13969fi
13970
13971fi
13972
13973
13974
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013976
13977
13978
13979
13980
Reid Spencer59473af2004-12-25 07:31:29 +000013981ac_header_dirent=no
13982for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013983 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13984{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13985echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989 cat >conftest.$ac_ext <<_ACEOF
13990/* confdefs.h. */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013994/* end confdefs.h. */
13995#include <sys/types.h>
13996#include <$ac_hdr>
13997
13998int
13999main ()
14000{
14001if ((DIR *) 0)
14002return 0;
14003 ;
14004 return 0;
14005}
14006_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007rm -f conftest.$ac_objext
14008if { (ac_try="$ac_compile"
14009case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14012esac
14013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_compile") 2>conftest.er1
14015 ac_status=$?
14016 grep -v '^ *+' conftest.er1 >conftest.err
14017 rm -f conftest.er1
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14022 { (case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14025esac
14026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_try") 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035esac
14036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014041 eval "$as_ac_Header=yes"
14042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014043 echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014047fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048
Reid Spencera773bd52006-08-04 18:18:08 +000014049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014051ac_res=`eval echo '${'$as_ac_Header'}'`
14052 { echo "$as_me:$LINENO: result: $ac_res" >&5
14053echo "${ECHO_T}$ac_res" >&6; }
14054if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014055 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014056#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014057_ACEOF
14058
14059ac_header_dirent=$ac_hdr; break
14060fi
14061
14062done
14063# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14064if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14066echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14067if test "${ac_cv_search_opendir+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014069else
14070 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071cat >conftest.$ac_ext <<_ACEOF
14072/* confdefs.h. */
14073_ACEOF
14074cat confdefs.h >>conftest.$ac_ext
14075cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014076/* end confdefs.h. */
14077
Reid Spencera773bd52006-08-04 18:18:08 +000014078/* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014081#ifdef __cplusplus
14082extern "C"
14083#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014084char opendir ();
14085int
14086main ()
14087{
Reid Spencera773bd52006-08-04 18:18:08 +000014088return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014089 ;
14090 return 0;
14091}
14092_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014093for ac_lib in '' dir; do
14094 if test -z "$ac_lib"; then
14095 ac_res="none required"
14096 else
14097 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014099 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100 rm -f conftest.$ac_objext conftest$ac_exeext
14101if { (ac_try="$ac_link"
14102case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105esac
14106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14118esac
14119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014134 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135else
14136 echo "$as_me: failed program was:" >&5
14137sed 's/^/| /' conftest.$ac_ext >&5
14138
14139
Reid Spencer59473af2004-12-25 07:31:29 +000014140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141
Bill Wendlingebcceee2009-04-18 11:20:33 +000014142rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014143 conftest$ac_exeext
14144 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014145 break
Reid Spencer59473af2004-12-25 07:31:29 +000014146fi
Reid Spencera773bd52006-08-04 18:18:08 +000014147done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148if test "${ac_cv_search_opendir+set}" = set; then
14149 :
Reid Spencera773bd52006-08-04 18:18:08 +000014150else
14151 ac_cv_search_opendir=no
14152fi
14153rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014154LIBS=$ac_func_search_save_LIBS
14155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014156{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14157echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014158ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014161
14162fi
14163
14164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14166echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14167if test "${ac_cv_search_opendir+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014169else
14170 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171cat >conftest.$ac_ext <<_ACEOF
14172/* confdefs.h. */
14173_ACEOF
14174cat confdefs.h >>conftest.$ac_ext
14175cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014176/* end confdefs.h. */
14177
Reid Spencera773bd52006-08-04 18:18:08 +000014178/* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014181#ifdef __cplusplus
14182extern "C"
14183#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014184char opendir ();
14185int
14186main ()
14187{
Reid Spencera773bd52006-08-04 18:18:08 +000014188return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014189 ;
14190 return 0;
14191}
14192_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014193for ac_lib in '' x; do
14194 if test -z "$ac_lib"; then
14195 ac_res="none required"
14196 else
14197 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014199 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014200 rm -f conftest.$ac_objext conftest$ac_exeext
14201if { (ac_try="$ac_link"
14202case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205esac
14206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218esac
14219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest$ac_exeext'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228esac
14229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014234 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235else
14236 echo "$as_me: failed program was:" >&5
14237sed 's/^/| /' conftest.$ac_ext >&5
14238
14239
Reid Spencer59473af2004-12-25 07:31:29 +000014240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241
Bill Wendlingebcceee2009-04-18 11:20:33 +000014242rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243 conftest$ac_exeext
14244 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014245 break
Reid Spencer59473af2004-12-25 07:31:29 +000014246fi
Reid Spencera773bd52006-08-04 18:18:08 +000014247done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248if test "${ac_cv_search_opendir+set}" = set; then
14249 :
Reid Spencera773bd52006-08-04 18:18:08 +000014250else
14251 ac_cv_search_opendir=no
14252fi
14253rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014254LIBS=$ac_func_search_save_LIBS
14255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14257echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014258ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014261
14262fi
14263
14264fi
14265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14267echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14268if test "${ac_cv_header_mmap_anon+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014270else
14271 ac_ext=c
14272ac_cpp='$CPP $CPPFLAGS'
14273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275ac_compiler_gnu=$ac_cv_c_compiler_gnu
14276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014277 cat >conftest.$ac_ext <<_ACEOF
14278/* confdefs.h. */
14279_ACEOF
14280cat confdefs.h >>conftest.$ac_ext
14281cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014282/* end confdefs.h. */
14283#include <sys/mman.h>
14284#include <unistd.h>
14285#include <fcntl.h>
14286int
14287main ()
14288{
14289mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14290 ;
14291 return 0;
14292}
14293_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014294rm -f conftest.$ac_objext
14295if { (ac_try="$ac_compile"
14296case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14299esac
14300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_compile") 2>conftest.er1
14302 ac_status=$?
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14309 { (case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312esac
14313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_try") 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest.$ac_objext'
14319 { (case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322esac
14323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_try") 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014328 ac_cv_header_mmap_anon=yes
14329else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014330 echo "$as_me: failed program was:" >&5
14331sed 's/^/| /' conftest.$ac_ext >&5
14332
14333 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014335
Reid Spencera773bd52006-08-04 18:18:08 +000014336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014337 ac_ext=c
14338ac_cpp='$CPP $CPPFLAGS'
14339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14341ac_compiler_gnu=$ac_cv_c_compiler_gnu
14342
14343
14344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014345{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14346echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014347if test "$ac_cv_header_mmap_anon" = yes; then
14348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349cat >>confdefs.h <<\_ACEOF
14350#define HAVE_MMAP_ANONYMOUS 1
14351_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014352
14353fi
14354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14356echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14357if test "${ac_cv_header_stat_broken+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014360 cat >conftest.$ac_ext <<_ACEOF
14361/* confdefs.h. */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014365/* end confdefs.h. */
14366#include <sys/types.h>
14367#include <sys/stat.h>
14368
Reid Spencera773bd52006-08-04 18:18:08 +000014369#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014370# if S_ISBLK (S_IFDIR)
14371You lose.
14372# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014373#endif
14374
Reid Spencera773bd52006-08-04 18:18:08 +000014375#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014376# if S_ISBLK (S_IFCHR)
14377You lose.
14378# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014379#endif
14380
Reid Spencera773bd52006-08-04 18:18:08 +000014381#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382# if S_ISLNK (S_IFREG)
14383You lose.
14384# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014385#endif
14386
Reid Spencera773bd52006-08-04 18:18:08 +000014387#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014388# if S_ISSOCK (S_IFREG)
14389You lose.
14390# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014391#endif
14392
14393_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14395 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014396 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397else
14398 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014400rm -f conftest*
14401
Reid Spencer59473af2004-12-25 07:31:29 +000014402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14404echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014405if test $ac_cv_header_stat_broken = yes; then
14406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014407cat >>confdefs.h <<\_ACEOF
14408#define STAT_MACROS_BROKEN 1
14409_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014410
14411fi
14412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014413{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14414echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14415if test "${ac_cv_header_sys_wait_h+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014418 cat >conftest.$ac_ext <<_ACEOF
14419/* confdefs.h. */
14420_ACEOF
14421cat confdefs.h >>conftest.$ac_ext
14422cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014424#include <sys/types.h>
14425#include <sys/wait.h>
14426#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014427# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014428#endif
14429#ifndef WIFEXITED
14430# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14431#endif
14432
John Criswell7a73b802003-06-30 21:59:07 +000014433int
14434main ()
14435{
14436 int s;
14437 wait (&s);
14438 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14439 ;
14440 return 0;
14441}
14442_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014443rm -f conftest.$ac_objext
14444if { (ac_try="$ac_compile"
14445case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448esac
14449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_compile") 2>conftest.er1
14451 ac_status=$?
14452 grep -v '^ *+' conftest.er1 >conftest.err
14453 rm -f conftest.er1
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } &&
14457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14458 { (case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14461esac
14462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_try") 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest.$ac_objext'
14468 { (case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14471esac
14472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_try") 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014477 ac_cv_header_sys_wait_h=yes
14478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479 echo "$as_me: failed program was:" >&5
14480sed 's/^/| /' conftest.$ac_ext >&5
14481
14482 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484
Reid Spencera773bd52006-08-04 18:18:08 +000014485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014487{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14488echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014489if test $ac_cv_header_sys_wait_h = yes; then
14490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014491cat >>confdefs.h <<\_ACEOF
14492#define HAVE_SYS_WAIT_H 1
14493_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014494
14495fi
14496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014497{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14498echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14499if test "${ac_cv_header_time+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014502 cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014507/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014508#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014509#include <sys/time.h>
14510#include <time.h>
14511
14512int
14513main ()
14514{
14515if ((struct tm *) 0)
14516return 0;
14517 ;
14518 return 0;
14519}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014521rm -f conftest.$ac_objext
14522if { (ac_try="$ac_compile"
14523case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526esac
14527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_compile") 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14536 { (case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14539esac
14540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_try") 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; } &&
14545 { ac_try='test -s conftest.$ac_objext'
14546 { (case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549esac
14550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_try") 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014555 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014557 echo "$as_me: failed program was:" >&5
14558sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014562
Reid Spencera773bd52006-08-04 18:18:08 +000014563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014565{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14566echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014567if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014569cat >>confdefs.h <<\_ACEOF
14570#define TIME_WITH_SYS_TIME 1
14571_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014572
14573fi
14574
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576
14577
14578
14579
14580
14581
Reid Spencer59473af2004-12-25 07:31:29 +000014582for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014583do
14584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590fi
14591ac_res=`eval echo '${'$as_ac_Header'}'`
14592 { echo "$as_me:$LINENO: result: $ac_res" >&5
14593echo "${ECHO_T}$ac_res" >&6; }
14594else
14595 # Is the header compilable?
14596{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14598cat >conftest.$ac_ext <<_ACEOF
14599/* confdefs.h. */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h. */
14604$ac_includes_default
14605#include <$ac_header>
14606_ACEOF
14607rm -f conftest.$ac_objext
14608if { (ac_try="$ac_compile"
14609case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612esac
14613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_compile") 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14622 { (case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625esac
14626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_try") 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
14632 { (case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635esac
14636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_try") 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_header_compiler=yes
14642else
14643 echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
14646 ac_header_compiler=no
14647fi
14648
14649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14651echo "${ECHO_T}$ac_header_compiler" >&6; }
14652
14653# Is the header present?
14654{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14656cat >conftest.$ac_ext <<_ACEOF
14657/* confdefs.h. */
14658_ACEOF
14659cat confdefs.h >>conftest.$ac_ext
14660cat >>conftest.$ac_ext <<_ACEOF
14661/* end confdefs.h. */
14662#include <$ac_header>
14663_ACEOF
14664if { (ac_try="$ac_cpp conftest.$ac_ext"
14665case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14668esac
14669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14671 ac_status=$?
14672 grep -v '^ *+' conftest.er1 >conftest.err
14673 rm -f conftest.er1
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } >/dev/null; then
14677 if test -s conftest.err; then
14678 ac_cpp_err=$ac_c_preproc_warn_flag
14679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14680 else
14681 ac_cpp_err=
14682 fi
14683else
14684 ac_cpp_err=yes
14685fi
14686if test -z "$ac_cpp_err"; then
14687 ac_header_preproc=yes
14688else
14689 echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_header_preproc=no
14693fi
14694
14695rm -f conftest.err conftest.$ac_ext
14696{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697echo "${ECHO_T}$ac_header_preproc" >&6; }
14698
14699# So? What about this header?
14700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701 yes:no: )
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14706 ac_header_preproc=yes
14707 ;;
14708 no:yes:* )
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14721 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014722## ------------------------------------ ##
14723## Report this to http://llvm.org/bugs/ ##
14724## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014725_ASBOX
14726 ) | sed "s/^/$as_me: WARNING: /" >&2
14727 ;;
14728esac
14729{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14733else
14734 eval "$as_ac_Header=\$ac_header_preproc"
14735fi
14736ac_res=`eval echo '${'$as_ac_Header'}'`
14737 { echo "$as_me:$LINENO: result: $ac_res" >&5
14738echo "${ECHO_T}$ac_res" >&6; }
14739
14740fi
14741if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014742 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014744_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014745
14746fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014747
Reid Spencer59473af2004-12-25 07:31:29 +000014748done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014750
14751
14752
14753
14754
14755
Douglas Gregor071d73d2009-05-18 17:21:34 +000014756for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014757do
14758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764fi
14765ac_res=`eval echo '${'$as_ac_Header'}'`
14766 { echo "$as_me:$LINENO: result: $ac_res" >&5
14767echo "${ECHO_T}$ac_res" >&6; }
14768else
14769 # Is the header compilable?
14770{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14772cat >conftest.$ac_ext <<_ACEOF
14773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
14778$ac_includes_default
14779#include <$ac_header>
14780_ACEOF
14781rm -f conftest.$ac_objext
14782if { (ac_try="$ac_compile"
14783case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14786esac
14787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799esac
14800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; } &&
14805 { ac_try='test -s conftest.$ac_objext'
14806 { (case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14809esac
14810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_try") 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 ac_header_compiler=yes
14816else
14817 echo "$as_me: failed program was:" >&5
14818sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 ac_header_compiler=no
14821fi
14822
14823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14825echo "${ECHO_T}$ac_header_compiler" >&6; }
14826
14827# Is the header present?
14828{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14830cat >conftest.$ac_ext <<_ACEOF
14831/* confdefs.h. */
14832_ACEOF
14833cat confdefs.h >>conftest.$ac_ext
14834cat >>conftest.$ac_ext <<_ACEOF
14835/* end confdefs.h. */
14836#include <$ac_header>
14837_ACEOF
14838if { (ac_try="$ac_cpp conftest.$ac_ext"
14839case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14842esac
14843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14845 ac_status=$?
14846 grep -v '^ *+' conftest.er1 >conftest.err
14847 rm -f conftest.er1
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } >/dev/null; then
14851 if test -s conftest.err; then
14852 ac_cpp_err=$ac_c_preproc_warn_flag
14853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14854 else
14855 ac_cpp_err=
14856 fi
14857else
14858 ac_cpp_err=yes
14859fi
14860if test -z "$ac_cpp_err"; then
14861 ac_header_preproc=yes
14862else
14863 echo "$as_me: failed program was:" >&5
14864sed 's/^/| /' conftest.$ac_ext >&5
14865
14866 ac_header_preproc=no
14867fi
14868
14869rm -f conftest.err conftest.$ac_ext
14870{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14871echo "${ECHO_T}$ac_header_preproc" >&6; }
14872
14873# So? What about this header?
14874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14875 yes:no: )
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14880 ac_header_preproc=yes
14881 ;;
14882 no:yes:* )
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14890echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14895 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014896## ------------------------------------ ##
14897## Report this to http://llvm.org/bugs/ ##
14898## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014899_ASBOX
14900 ) | sed "s/^/$as_me: WARNING: /" >&2
14901 ;;
14902esac
14903{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14907else
14908 eval "$as_ac_Header=\$ac_header_preproc"
14909fi
14910ac_res=`eval echo '${'$as_ac_Header'}'`
14911 { echo "$as_me:$LINENO: result: $ac_res" >&5
14912echo "${ECHO_T}$ac_res" >&6; }
14913
14914fi
14915if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014916 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014918_ACEOF
14919
14920fi
14921
14922done
14923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014924
14925
Douglas Gregor071d73d2009-05-18 17:21:34 +000014926for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014927do
14928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934fi
14935ac_res=`eval echo '${'$as_ac_Header'}'`
14936 { echo "$as_me:$LINENO: result: $ac_res" >&5
14937echo "${ECHO_T}$ac_res" >&6; }
14938else
14939 # Is the header compilable?
14940{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14942cat >conftest.$ac_ext <<_ACEOF
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
14947/* end confdefs.h. */
14948$ac_includes_default
14949#include <$ac_header>
14950_ACEOF
14951rm -f conftest.$ac_objext
14952if { (ac_try="$ac_compile"
14953case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14956esac
14957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_compile") 2>conftest.er1
14959 ac_status=$?
14960 grep -v '^ *+' conftest.er1 >conftest.err
14961 rm -f conftest.er1
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14966 { (case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14969esac
14970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_try") 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest.$ac_objext'
14976 { (case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979esac
14980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_try") 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_header_compiler=yes
14986else
14987 echo "$as_me: failed program was:" >&5
14988sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_header_compiler=no
14991fi
14992
14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995echo "${ECHO_T}$ac_header_compiler" >&6; }
14996
14997# Is the header present?
14998{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15000cat >conftest.$ac_ext <<_ACEOF
15001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h. */
15006#include <$ac_header>
15007_ACEOF
15008if { (ac_try="$ac_cpp conftest.$ac_ext"
15009case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012esac
15013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } >/dev/null; then
15021 if test -s conftest.err; then
15022 ac_cpp_err=$ac_c_preproc_warn_flag
15023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15024 else
15025 ac_cpp_err=
15026 fi
15027else
15028 ac_cpp_err=yes
15029fi
15030if test -z "$ac_cpp_err"; then
15031 ac_header_preproc=yes
15032else
15033 echo "$as_me: failed program was:" >&5
15034sed 's/^/| /' conftest.$ac_ext >&5
15035
15036 ac_header_preproc=no
15037fi
15038
15039rm -f conftest.err conftest.$ac_ext
15040{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041echo "${ECHO_T}$ac_header_preproc" >&6; }
15042
15043# So? What about this header?
15044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15045 yes:no: )
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15047echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15049echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15050 ac_header_preproc=yes
15051 ;;
15052 no:yes:* )
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15056echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15058echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15060echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15064echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15065 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015066## ------------------------------------ ##
15067## Report this to http://llvm.org/bugs/ ##
15068## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015069_ASBOX
15070 ) | sed "s/^/$as_me: WARNING: /" >&2
15071 ;;
15072esac
15073{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15077else
15078 eval "$as_ac_Header=\$ac_header_preproc"
15079fi
15080ac_res=`eval echo '${'$as_ac_Header'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082echo "${ECHO_T}$ac_res" >&6; }
15083
15084fi
15085if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015086 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015088_ACEOF
15089
15090fi
15091
15092done
Reid Spencer59473af2004-12-25 07:31:29 +000015093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015094
15095
15096
15097
Daniel Dunbar3e462932011-02-03 02:40:02 +000015098
15099for 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 +000015100do
15101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107fi
15108ac_res=`eval echo '${'$as_ac_Header'}'`
15109 { echo "$as_me:$LINENO: result: $ac_res" >&5
15110echo "${ECHO_T}$ac_res" >&6; }
15111else
15112 # Is the header compilable?
15113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15115cat >conftest.$ac_ext <<_ACEOF
15116/* confdefs.h. */
15117_ACEOF
15118cat confdefs.h >>conftest.$ac_ext
15119cat >>conftest.$ac_ext <<_ACEOF
15120/* end confdefs.h. */
15121$ac_includes_default
15122#include <$ac_header>
15123_ACEOF
15124rm -f conftest.$ac_objext
15125if { (ac_try="$ac_compile"
15126case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129esac
15130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_compile") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142esac
15143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152esac
15153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_header_compiler=yes
15159else
15160 echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
15163 ac_header_compiler=no
15164fi
15165
15166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15168echo "${ECHO_T}$ac_header_compiler" >&6; }
15169
15170# Is the header present?
15171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15173cat >conftest.$ac_ext <<_ACEOF
15174/* confdefs.h. */
15175_ACEOF
15176cat confdefs.h >>conftest.$ac_ext
15177cat >>conftest.$ac_ext <<_ACEOF
15178/* end confdefs.h. */
15179#include <$ac_header>
15180_ACEOF
15181if { (ac_try="$ac_cpp conftest.$ac_ext"
15182case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185esac
15186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15188 ac_status=$?
15189 grep -v '^ *+' conftest.er1 >conftest.err
15190 rm -f conftest.er1
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } >/dev/null; then
15194 if test -s conftest.err; then
15195 ac_cpp_err=$ac_c_preproc_warn_flag
15196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15197 else
15198 ac_cpp_err=
15199 fi
15200else
15201 ac_cpp_err=yes
15202fi
15203if test -z "$ac_cpp_err"; then
15204 ac_header_preproc=yes
15205else
15206 echo "$as_me: failed program was:" >&5
15207sed 's/^/| /' conftest.$ac_ext >&5
15208
15209 ac_header_preproc=no
15210fi
15211
15212rm -f conftest.err conftest.$ac_ext
15213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15214echo "${ECHO_T}$ac_header_preproc" >&6; }
15215
15216# So? What about this header?
15217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15218 yes:no: )
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15223 ac_header_preproc=yes
15224 ;;
15225 no:yes:* )
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15238 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015239## ------------------------------------ ##
15240## Report this to http://llvm.org/bugs/ ##
15241## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015242_ASBOX
15243 ) | sed "s/^/$as_me: WARNING: /" >&2
15244 ;;
15245esac
15246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15250else
15251 eval "$as_ac_Header=\$ac_header_preproc"
15252fi
15253ac_res=`eval echo '${'$as_ac_Header'}'`
15254 { echo "$as_me:$LINENO: result: $ac_res" >&5
15255echo "${ECHO_T}$ac_res" >&6; }
15256
15257fi
15258if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015261_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015262
15263fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015264
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015265done
15266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015267
15268
15269
15270
Douglas Gregor01746742009-05-11 18:05:52 +000015271for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015272do
15273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279fi
15280ac_res=`eval echo '${'$as_ac_Header'}'`
15281 { echo "$as_me:$LINENO: result: $ac_res" >&5
15282echo "${ECHO_T}$ac_res" >&6; }
15283else
15284 # Is the header compilable?
15285{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15287cat >conftest.$ac_ext <<_ACEOF
15288/* confdefs.h. */
15289_ACEOF
15290cat confdefs.h >>conftest.$ac_ext
15291cat >>conftest.$ac_ext <<_ACEOF
15292/* end confdefs.h. */
15293$ac_includes_default
15294#include <$ac_header>
15295_ACEOF
15296rm -f conftest.$ac_objext
15297if { (ac_try="$ac_compile"
15298case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301esac
15302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_compile") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15311 { (case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15314esac
15315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_try") 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15324esac
15325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_try") 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_header_compiler=yes
15331else
15332 echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ac_header_compiler=no
15336fi
15337
15338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15340echo "${ECHO_T}$ac_header_compiler" >&6; }
15341
15342# Is the header present?
15343{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15345cat >conftest.$ac_ext <<_ACEOF
15346/* confdefs.h. */
15347_ACEOF
15348cat confdefs.h >>conftest.$ac_ext
15349cat >>conftest.$ac_ext <<_ACEOF
15350/* end confdefs.h. */
15351#include <$ac_header>
15352_ACEOF
15353if { (ac_try="$ac_cpp conftest.$ac_ext"
15354case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357esac
15358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } >/dev/null; then
15366 if test -s conftest.err; then
15367 ac_cpp_err=$ac_c_preproc_warn_flag
15368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15369 else
15370 ac_cpp_err=
15371 fi
15372else
15373 ac_cpp_err=yes
15374fi
15375if test -z "$ac_cpp_err"; then
15376 ac_header_preproc=yes
15377else
15378 echo "$as_me: failed program was:" >&5
15379sed 's/^/| /' conftest.$ac_ext >&5
15380
15381 ac_header_preproc=no
15382fi
15383
15384rm -f conftest.err conftest.$ac_ext
15385{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15386echo "${ECHO_T}$ac_header_preproc" >&6; }
15387
15388# So? What about this header?
15389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15390 yes:no: )
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15392echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15394echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15395 ac_header_preproc=yes
15396 ;;
15397 no:yes:* )
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15403echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15405echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15409echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15410 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015411## ------------------------------------ ##
15412## Report this to http://llvm.org/bugs/ ##
15413## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015414_ASBOX
15415 ) | sed "s/^/$as_me: WARNING: /" >&2
15416 ;;
15417esac
15418{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422else
15423 eval "$as_ac_Header=\$ac_header_preproc"
15424fi
15425ac_res=`eval echo '${'$as_ac_Header'}'`
15426 { echo "$as_me:$LINENO: result: $ac_res" >&5
15427echo "${ECHO_T}$ac_res" >&6; }
15428
15429fi
15430if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015431 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015433_ACEOF
15434
15435fi
15436
15437done
15438
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015439
15440for ac_header in valgrind/valgrind.h
15441do
15442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15448fi
15449ac_res=`eval echo '${'$as_ac_Header'}'`
15450 { echo "$as_me:$LINENO: result: $ac_res" >&5
15451echo "${ECHO_T}$ac_res" >&6; }
15452else
15453 # Is the header compilable?
15454{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15456cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463#include <$ac_header>
15464_ACEOF
15465rm -f conftest.$ac_objext
15466if { (ac_try="$ac_compile"
15467case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470esac
15471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_compile") 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15480 { (case "(($ac_try" in
15481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482 *) ac_try_echo=$ac_try;;
15483esac
15484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485 (eval "$ac_try") 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest.$ac_objext'
15490 { (case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493esac
15494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_try") 2>&5
15496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499 ac_header_compiler=yes
15500else
15501 echo "$as_me: failed program was:" >&5
15502sed 's/^/| /' conftest.$ac_ext >&5
15503
15504 ac_header_compiler=no
15505fi
15506
15507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15509echo "${ECHO_T}$ac_header_compiler" >&6; }
15510
15511# Is the header present?
15512{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15514cat >conftest.$ac_ext <<_ACEOF
15515/* confdefs.h. */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
15519/* end confdefs.h. */
15520#include <$ac_header>
15521_ACEOF
15522if { (ac_try="$ac_cpp conftest.$ac_ext"
15523case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526esac
15527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev/null; then
15535 if test -s conftest.err; then
15536 ac_cpp_err=$ac_c_preproc_warn_flag
15537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15538 else
15539 ac_cpp_err=
15540 fi
15541else
15542 ac_cpp_err=yes
15543fi
15544if test -z "$ac_cpp_err"; then
15545 ac_header_preproc=yes
15546else
15547 echo "$as_me: failed program was:" >&5
15548sed 's/^/| /' conftest.$ac_ext >&5
15549
15550 ac_header_preproc=no
15551fi
15552
15553rm -f conftest.err conftest.$ac_ext
15554{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15555echo "${ECHO_T}$ac_header_preproc" >&6; }
15556
15557# So? What about this header?
15558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15559 yes:no: )
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15561echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15563echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15564 ac_header_preproc=yes
15565 ;;
15566 no:yes:* )
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15572echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15574echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15578echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15579 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015580## ------------------------------------ ##
15581## Report this to http://llvm.org/bugs/ ##
15582## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015583_ASBOX
15584 ) | sed "s/^/$as_me: WARNING: /" >&2
15585 ;;
15586esac
15587{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591else
15592 eval "$as_ac_Header=\$ac_header_preproc"
15593fi
15594ac_res=`eval echo '${'$as_ac_Header'}'`
15595 { echo "$as_me:$LINENO: result: $ac_res" >&5
15596echo "${ECHO_T}$ac_res" >&6; }
15597
15598fi
15599if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600 cat >>confdefs.h <<_ACEOF
15601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15602_ACEOF
15603
15604fi
15605
15606done
15607
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015608
15609for ac_header in fenv.h
15610do
15611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15617fi
15618ac_res=`eval echo '${'$as_ac_Header'}'`
15619 { echo "$as_me:$LINENO: result: $ac_res" >&5
15620echo "${ECHO_T}$ac_res" >&6; }
15621else
15622 # Is the header compilable?
15623{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15625cat >conftest.$ac_ext <<_ACEOF
15626/* confdefs.h. */
15627_ACEOF
15628cat confdefs.h >>conftest.$ac_ext
15629cat >>conftest.$ac_ext <<_ACEOF
15630/* end confdefs.h. */
15631$ac_includes_default
15632#include <$ac_header>
15633_ACEOF
15634rm -f conftest.$ac_objext
15635if { (ac_try="$ac_compile"
15636case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15639esac
15640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_compile") 2>conftest.er1
15642 ac_status=$?
15643 grep -v '^ *+' conftest.er1 >conftest.err
15644 rm -f conftest.er1
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15649 { (case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15652esac
15653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_try") 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest.$ac_objext'
15659 { (case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15662esac
15663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_try") 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_header_compiler=yes
15669else
15670 echo "$as_me: failed program was:" >&5
15671sed 's/^/| /' conftest.$ac_ext >&5
15672
15673 ac_header_compiler=no
15674fi
15675
15676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15678echo "${ECHO_T}$ac_header_compiler" >&6; }
15679
15680# Is the header present?
15681{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15683cat >conftest.$ac_ext <<_ACEOF
15684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
15689#include <$ac_header>
15690_ACEOF
15691if { (ac_try="$ac_cpp conftest.$ac_ext"
15692case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695esac
15696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } >/dev/null; then
15704 if test -s conftest.err; then
15705 ac_cpp_err=$ac_c_preproc_warn_flag
15706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15707 else
15708 ac_cpp_err=
15709 fi
15710else
15711 ac_cpp_err=yes
15712fi
15713if test -z "$ac_cpp_err"; then
15714 ac_header_preproc=yes
15715else
15716 echo "$as_me: failed program was:" >&5
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_header_preproc=no
15720fi
15721
15722rm -f conftest.err conftest.$ac_ext
15723{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15724echo "${ECHO_T}$ac_header_preproc" >&6; }
15725
15726# So? What about this header?
15727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15728 yes:no: )
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15733 ac_header_preproc=yes
15734 ;;
15735 no:yes:* )
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15748 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015749## ------------------------------------ ##
15750## Report this to http://llvm.org/bugs/ ##
15751## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015752_ASBOX
15753 ) | sed "s/^/$as_me: WARNING: /" >&2
15754 ;;
15755esac
15756{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15760else
15761 eval "$as_ac_Header=\$ac_header_preproc"
15762fi
15763ac_res=`eval echo '${'$as_ac_Header'}'`
15764 { echo "$as_me:$LINENO: result: $ac_res" >&5
15765echo "${ECHO_T}$ac_res" >&6; }
15766
15767fi
15768if test `eval echo '${'$as_ac_Header'}'` = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15771_ACEOF
15772
15773fi
15774
15775done
15776
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015777if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015778
15779for ac_header in pthread.h
15780do
15781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787fi
15788ac_res=`eval echo '${'$as_ac_Header'}'`
15789 { echo "$as_me:$LINENO: result: $ac_res" >&5
15790echo "${ECHO_T}$ac_res" >&6; }
15791else
15792 # Is the header compilable?
15793{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15795cat >conftest.$ac_ext <<_ACEOF
15796/* confdefs.h. */
15797_ACEOF
15798cat confdefs.h >>conftest.$ac_ext
15799cat >>conftest.$ac_ext <<_ACEOF
15800/* end confdefs.h. */
15801$ac_includes_default
15802#include <$ac_header>
15803_ACEOF
15804rm -f conftest.$ac_objext
15805if { (ac_try="$ac_compile"
15806case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15809esac
15810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_compile") 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15819 { (case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15822esac
15823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_try") 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
15829 { (case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15832esac
15833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_try") 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_header_compiler=yes
15839else
15840 echo "$as_me: failed program was:" >&5
15841sed 's/^/| /' conftest.$ac_ext >&5
15842
15843 ac_header_compiler=no
15844fi
15845
15846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15848echo "${ECHO_T}$ac_header_compiler" >&6; }
15849
15850# Is the header present?
15851{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15853cat >conftest.$ac_ext <<_ACEOF
15854/* confdefs.h. */
15855_ACEOF
15856cat confdefs.h >>conftest.$ac_ext
15857cat >>conftest.$ac_ext <<_ACEOF
15858/* end confdefs.h. */
15859#include <$ac_header>
15860_ACEOF
15861if { (ac_try="$ac_cpp conftest.$ac_ext"
15862case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865esac
15866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } >/dev/null; then
15874 if test -s conftest.err; then
15875 ac_cpp_err=$ac_c_preproc_warn_flag
15876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15877 else
15878 ac_cpp_err=
15879 fi
15880else
15881 ac_cpp_err=yes
15882fi
15883if test -z "$ac_cpp_err"; then
15884 ac_header_preproc=yes
15885else
15886 echo "$as_me: failed program was:" >&5
15887sed 's/^/| /' conftest.$ac_ext >&5
15888
15889 ac_header_preproc=no
15890fi
15891
15892rm -f conftest.err conftest.$ac_ext
15893{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15894echo "${ECHO_T}$ac_header_preproc" >&6; }
15895
15896# So? What about this header?
15897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15898 yes:no: )
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15903 ac_header_preproc=yes
15904 ;;
15905 no:yes:* )
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15918 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015919## ------------------------------------ ##
15920## Report this to http://llvm.org/bugs/ ##
15921## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015922_ASBOX
15923 ) | sed "s/^/$as_me: WARNING: /" >&2
15924 ;;
15925esac
15926{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930else
15931 eval "$as_ac_Header=\$ac_header_preproc"
15932fi
15933ac_res=`eval echo '${'$as_ac_Header'}'`
15934 { echo "$as_me:$LINENO: result: $ac_res" >&5
15935echo "${ECHO_T}$ac_res" >&6; }
15936
15937fi
15938if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015939 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015941_ACEOF
15942 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015943
15944else
15945 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015946
15947fi
15948
Reid Spencerbe3e4192007-08-17 05:45:26 +000015949done
Reid Spencer1000b732006-12-01 00:37:14 +000015950
15951else
15952 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015953
15954fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015955
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015956if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015957
15958
15959for ac_header in ffi.h ffi/ffi.h
15960do
15961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15967fi
15968ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970echo "${ECHO_T}$ac_res" >&6; }
15971else
15972 # Is the header compilable?
15973{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15975cat >conftest.$ac_ext <<_ACEOF
15976/* confdefs.h. */
15977_ACEOF
15978cat confdefs.h >>conftest.$ac_ext
15979cat >>conftest.$ac_ext <<_ACEOF
15980/* end confdefs.h. */
15981$ac_includes_default
15982#include <$ac_header>
15983_ACEOF
15984rm -f conftest.$ac_objext
15985if { (ac_try="$ac_compile"
15986case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15989esac
15990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15992 ac_status=$?
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
15998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15999 { (case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16002esac
16003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_try") 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012esac
16013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_header_compiler=yes
16019else
16020 echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 ac_header_compiler=no
16024fi
16025
16026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028echo "${ECHO_T}$ac_header_compiler" >&6; }
16029
16030# Is the header present?
16031{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h. */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h. */
16039#include <$ac_header>
16040_ACEOF
16041if { (ac_try="$ac_cpp conftest.$ac_ext"
16042case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16045esac
16046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16048 ac_status=$?
16049 grep -v '^ *+' conftest.er1 >conftest.err
16050 rm -f conftest.er1
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } >/dev/null; then
16054 if test -s conftest.err; then
16055 ac_cpp_err=$ac_c_preproc_warn_flag
16056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16057 else
16058 ac_cpp_err=
16059 fi
16060else
16061 ac_cpp_err=yes
16062fi
16063if test -z "$ac_cpp_err"; then
16064 ac_header_preproc=yes
16065else
16066 echo "$as_me: failed program was:" >&5
16067sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 ac_header_preproc=no
16070fi
16071
16072rm -f conftest.err conftest.$ac_ext
16073{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16074echo "${ECHO_T}$ac_header_preproc" >&6; }
16075
16076# So? What about this header?
16077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16078 yes:no: )
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16083 ac_header_preproc=yes
16084 ;;
16085 no:yes:* )
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16098 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016099## ------------------------------------ ##
16100## Report this to http://llvm.org/bugs/ ##
16101## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016102_ASBOX
16103 ) | sed "s/^/$as_me: WARNING: /" >&2
16104 ;;
16105esac
16106{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16110else
16111 eval "$as_ac_Header=\$ac_header_preproc"
16112fi
16113ac_res=`eval echo '${'$as_ac_Header'}'`
16114 { echo "$as_me:$LINENO: result: $ac_res" >&5
16115echo "${ECHO_T}$ac_res" >&6; }
16116
16117fi
16118if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016119 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016121_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016122
16123fi
16124
16125done
16126
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016127fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016128
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016129
Eric Christopher654dee42010-06-22 21:01:04 +000016130for ac_header in CrashReporterClient.h
16131do
16132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16138fi
16139ac_res=`eval echo '${'$as_ac_Header'}'`
16140 { echo "$as_me:$LINENO: result: $ac_res" >&5
16141echo "${ECHO_T}$ac_res" >&6; }
16142else
16143 # Is the header compilable?
16144{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16146cat >conftest.$ac_ext <<_ACEOF
16147/* confdefs.h. */
16148_ACEOF
16149cat confdefs.h >>conftest.$ac_ext
16150cat >>conftest.$ac_ext <<_ACEOF
16151/* end confdefs.h. */
16152$ac_includes_default
16153#include <$ac_header>
16154_ACEOF
16155rm -f conftest.$ac_objext
16156if { (ac_try="$ac_compile"
16157case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16160esac
16161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_compile") 2>conftest.er1
16163 ac_status=$?
16164 grep -v '^ *+' conftest.er1 >conftest.err
16165 rm -f conftest.er1
16166 cat conftest.err >&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } &&
16169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16170 { (case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16173esac
16174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_try") 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest.$ac_objext'
16180 { (case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16183esac
16184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_try") 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 ac_header_compiler=yes
16190else
16191 echo "$as_me: failed program was:" >&5
16192sed 's/^/| /' conftest.$ac_ext >&5
16193
16194 ac_header_compiler=no
16195fi
16196
16197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16199echo "${ECHO_T}$ac_header_compiler" >&6; }
16200
16201# Is the header present?
16202{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16204cat >conftest.$ac_ext <<_ACEOF
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
16209/* end confdefs.h. */
16210#include <$ac_header>
16211_ACEOF
16212if { (ac_try="$ac_cpp conftest.$ac_ext"
16213case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216esac
16217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16219 ac_status=$?
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } >/dev/null; then
16225 if test -s conftest.err; then
16226 ac_cpp_err=$ac_c_preproc_warn_flag
16227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16228 else
16229 ac_cpp_err=
16230 fi
16231else
16232 ac_cpp_err=yes
16233fi
16234if test -z "$ac_cpp_err"; then
16235 ac_header_preproc=yes
16236else
16237 echo "$as_me: failed program was:" >&5
16238sed 's/^/| /' conftest.$ac_ext >&5
16239
16240 ac_header_preproc=no
16241fi
16242
16243rm -f conftest.err conftest.$ac_ext
16244{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16245echo "${ECHO_T}$ac_header_preproc" >&6; }
16246
16247# So? What about this header?
16248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16249 yes:no: )
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16254 ac_header_preproc=yes
16255 ;;
16256 no:yes:* )
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16269 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016270## ------------------------------------ ##
16271## Report this to http://llvm.org/bugs/ ##
16272## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016273_ASBOX
16274 ) | sed "s/^/$as_me: WARNING: /" >&2
16275 ;;
16276esac
16277{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16281else
16282 eval "$as_ac_Header=\$ac_header_preproc"
16283fi
16284ac_res=`eval echo '${'$as_ac_Header'}'`
16285 { echo "$as_me:$LINENO: result: $ac_res" >&5
16286echo "${ECHO_T}$ac_res" >&6; }
16287
16288fi
16289if test `eval echo '${'$as_ac_Header'}'` = yes; then
16290 cat >>confdefs.h <<_ACEOF
16291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16292_ACEOF
16293
16294fi
16295
16296done
16297
16298
Eric Christopher51e57132010-12-07 02:05:42 +000016299{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16300echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016301cat >conftest.$ac_ext <<_ACEOF
16302/* confdefs.h. */
16303_ACEOF
16304cat confdefs.h >>conftest.$ac_ext
16305cat >>conftest.$ac_ext <<_ACEOF
16306/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016307extern const char *__crashreporter_info__;
16308 int main() {
16309 __crashreporter_info__ = "test";
16310 return 0;
16311 }
Eric Christopher481d4022010-12-03 07:45:22 +000016312
Eric Christopher481d4022010-12-03 07:45:22 +000016313_ACEOF
16314rm -f conftest.$ac_objext conftest$ac_exeext
16315if { (ac_try="$ac_link"
16316case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319esac
16320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_link") 2>conftest.er1
16322 ac_status=$?
16323 grep -v '^ *+' conftest.er1 >conftest.err
16324 rm -f conftest.er1
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } &&
16328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16329 { (case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16332esac
16333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_try") 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest$ac_exeext'
16339 { (case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16342esac
16343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_try") 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016348 { echo "$as_me:$LINENO: result: yes" >&5
16349echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016350
16351cat >>confdefs.h <<\_ACEOF
16352#define HAVE_CRASHREPORTER_INFO 1
16353_ACEOF
16354
Eric Christopher51e57132010-12-07 02:05:42 +000016355else
16356 echo "$as_me: failed program was:" >&5
16357sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 { echo "$as_me:$LINENO: result: no" >&5
16360echo "${ECHO_T}no" >&6; }
16361
16362cat >>confdefs.h <<\_ACEOF
16363#define HAVE_CRASHREPORTER_INFO 0
16364_ACEOF
16365
Eric Christopher481d4022010-12-03 07:45:22 +000016366fi
Eric Christopher654dee42010-06-22 21:01:04 +000016367
Eric Christopher51e57132010-12-07 02:05:42 +000016368rm -f core conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
16370
16371
Reid Spencer8085cff2005-01-16 02:58:39 +000016372
Torok Edwin871384f2010-01-26 08:50:50 +000016373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016374 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16375echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16376if test "${ac_cv_huge_val_sanity+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016378else
16379
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016380 ac_ext=cpp
16381ac_cpp='$CXXCPP $CPPFLAGS'
16382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016385
Eric Christopherc7718502010-03-02 05:06:54 +000016386 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016387 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016388 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016389 ac_cv_huge_val_sanity=yes
16390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016391 cat >conftest.$ac_ext <<_ACEOF
16392/* confdefs.h. */
16393_ACEOF
16394cat confdefs.h >>conftest.$ac_ext
16395cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016396/* end confdefs.h. */
16397#include <math.h>
16398int
16399main ()
16400{
16401double x = HUGE_VAL; return x != x;
16402 ;
16403 return 0;
16404}
16405_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016406rm -f conftest$ac_exeext
16407if { (ac_try="$ac_link"
16408case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411esac
16412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_link") 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16417 { (case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16420esac
16421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_try") 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016426 ac_cv_huge_val_sanity=yes
16427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016428 echo "$as_me: program exited with status $ac_status" >&5
16429echo "$as_me: failed program was:" >&5
16430sed 's/^/| /' conftest.$ac_ext >&5
16431
16432( exit $ac_status )
16433ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016435rm -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 +000016436fi
16437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016438
Eric Christopherc7718502010-03-02 05:06:54 +000016439 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016440 ac_ext=c
16441ac_cpp='$CPP $CPPFLAGS'
16442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16444ac_compiler_gnu=$ac_cv_c_compiler_gnu
16445
16446
16447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016448{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16449echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016450 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16451
16452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016453{ echo "$as_me:$LINENO: checking for pid_t" >&5
16454echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16455if test "${ac_cv_type_pid_t+set}" = set; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16457else
16458 cat >conftest.$ac_ext <<_ACEOF
16459/* confdefs.h. */
16460_ACEOF
16461cat confdefs.h >>conftest.$ac_ext
16462cat >>conftest.$ac_ext <<_ACEOF
16463/* end confdefs.h. */
16464$ac_includes_default
16465typedef pid_t ac__type_new_;
16466int
16467main ()
16468{
16469if ((ac__type_new_ *) 0)
16470 return 0;
16471if (sizeof (ac__type_new_))
16472 return 0;
16473 ;
16474 return 0;
16475}
16476_ACEOF
16477rm -f conftest.$ac_objext
16478if { (ac_try="$ac_compile"
16479case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482esac
16483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_compile") 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16492 { (case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495esac
16496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_try") 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try='test -s conftest.$ac_objext'
16502 { (case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505esac
16506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_try") 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_type_pid_t=yes
16512else
16513 echo "$as_me: failed program was:" >&5
16514sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016516 ac_cv_type_pid_t=no
16517fi
16518
16519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520fi
16521{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16522echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16523if test $ac_cv_type_pid_t = yes; then
16524 :
John Criswell7a73b802003-06-30 21:59:07 +000016525else
16526
16527cat >>confdefs.h <<_ACEOF
16528#define pid_t int
16529_ACEOF
16530
16531fi
16532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016533{ echo "$as_me:$LINENO: checking for size_t" >&5
16534echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16535if test "${ac_cv_type_size_t+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537else
16538 cat >conftest.$ac_ext <<_ACEOF
16539/* confdefs.h. */
16540_ACEOF
16541cat confdefs.h >>conftest.$ac_ext
16542cat >>conftest.$ac_ext <<_ACEOF
16543/* end confdefs.h. */
16544$ac_includes_default
16545typedef size_t ac__type_new_;
16546int
16547main ()
16548{
16549if ((ac__type_new_ *) 0)
16550 return 0;
16551if (sizeof (ac__type_new_))
16552 return 0;
16553 ;
16554 return 0;
16555}
16556_ACEOF
16557rm -f conftest.$ac_objext
16558if { (ac_try="$ac_compile"
16559case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562esac
16563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_compile") 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16572 { (case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575esac
16576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_try") 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; } &&
16581 { ac_try='test -s conftest.$ac_objext'
16582 { (case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16585esac
16586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_try") 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_cv_type_size_t=yes
16592else
16593 echo "$as_me: failed program was:" >&5
16594sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016596 ac_cv_type_size_t=no
16597fi
16598
16599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16600fi
16601{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16602echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16603if test $ac_cv_type_size_t = yes; then
16604 :
John Criswell7a73b802003-06-30 21:59:07 +000016605else
16606
16607cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016608#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016609_ACEOF
16610
16611fi
16612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016613
16614cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016615#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016616_ACEOF
16617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016618{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16619echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16620if test "${ac_cv_struct_tm+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016623 cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016628/* end confdefs.h. */
16629#include <sys/types.h>
16630#include <time.h>
16631
16632int
16633main ()
16634{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016635struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016636 ;
16637 return 0;
16638}
16639_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016640rm -f conftest.$ac_objext
16641if { (ac_try="$ac_compile"
16642case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645esac
16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_compile") 2>conftest.er1
16648 ac_status=$?
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
16654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16655 { (case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16658esac
16659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_try") 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; } &&
16664 { ac_try='test -s conftest.$ac_objext'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668esac
16669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016674 ac_cv_struct_tm=time.h
16675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016676 echo "$as_me: failed program was:" >&5
16677sed 's/^/| /' conftest.$ac_ext >&5
16678
16679 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016681
Reid Spencera773bd52006-08-04 18:18:08 +000016682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016684{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16685echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016686if test $ac_cv_struct_tm = sys/time.h; then
16687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016688cat >>confdefs.h <<\_ACEOF
16689#define TM_IN_SYS_TIME 1
16690_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016691
16692fi
16693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016694{ echo "$as_me:$LINENO: checking for int64_t" >&5
16695echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16696if test "${ac_cv_type_int64_t+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698else
16699 cat >conftest.$ac_ext <<_ACEOF
16700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
16705$ac_includes_default
16706typedef int64_t ac__type_new_;
16707int
16708main ()
16709{
16710if ((ac__type_new_ *) 0)
16711 return 0;
16712if (sizeof (ac__type_new_))
16713 return 0;
16714 ;
16715 return 0;
16716}
16717_ACEOF
16718rm -f conftest.$ac_objext
16719if { (ac_try="$ac_compile"
16720case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736esac
16737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
16743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746esac
16747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_type_int64_t=yes
16753else
16754 echo "$as_me: failed program was:" >&5
16755sed 's/^/| /' conftest.$ac_ext >&5
16756
16757 ac_cv_type_int64_t=no
16758fi
16759
16760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761fi
16762{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16763echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16764if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016765
16766cat >>confdefs.h <<_ACEOF
16767#define HAVE_INT64_T 1
16768_ACEOF
16769
16770
16771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016772 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16773echo "$as_me: error: Type int64_t required but not found" >&2;}
16774 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016775fi
16776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016777{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16778echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16779if test "${ac_cv_type_uint64_t+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781else
16782 cat >conftest.$ac_ext <<_ACEOF
16783/* confdefs.h. */
16784_ACEOF
16785cat confdefs.h >>conftest.$ac_ext
16786cat >>conftest.$ac_ext <<_ACEOF
16787/* end confdefs.h. */
16788$ac_includes_default
16789typedef uint64_t ac__type_new_;
16790int
16791main ()
16792{
16793if ((ac__type_new_ *) 0)
16794 return 0;
16795if (sizeof (ac__type_new_))
16796 return 0;
16797 ;
16798 return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (ac_try="$ac_compile"
16803case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806esac
16807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_compile") 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816 { (case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819esac
16820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_try") 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest.$ac_objext'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_cv_type_uint64_t=yes
16836else
16837 echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840 ac_cv_type_uint64_t=no
16841fi
16842
16843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844fi
16845{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16846echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16847if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016848
16849cat >>confdefs.h <<_ACEOF
16850#define HAVE_UINT64_T 1
16851_ACEOF
16852
16853
16854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016855 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16856echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16857if test "${ac_cv_type_u_int64_t+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16859else
16860 cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h. */
16866$ac_includes_default
16867typedef u_int64_t ac__type_new_;
16868int
16869main ()
16870{
16871if ((ac__type_new_ *) 0)
16872 return 0;
16873if (sizeof (ac__type_new_))
16874 return 0;
16875 ;
16876 return 0;
16877}
16878_ACEOF
16879rm -f conftest.$ac_objext
16880if { (ac_try="$ac_compile"
16881case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_cv_type_u_int64_t=yes
16914else
16915 echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 ac_cv_type_u_int64_t=no
16919fi
16920
16921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922fi
16923{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16924echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16925if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016926
16927cat >>confdefs.h <<_ACEOF
16928#define HAVE_U_INT64_T 1
16929_ACEOF
16930
16931
Misha Brukmanceca9042004-09-02 23:02:30 +000016932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016933 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16934echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16935 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016936fi
16937
John Criswell679ff312004-09-02 18:44:44 +000016938fi
16939
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016940
16941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016942
16943
16944
16945
16946
16947
16948
Reid Spencerdf3be822006-01-23 08:15:53 +000016949for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016950do
16951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16952{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956else
16957 cat >conftest.$ac_ext <<_ACEOF
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16965#define $ac_func innocuous_$ac_func
16966
16967/* System header to define __stub macros and hopefully few prototypes,
16968 which can conflict with char $ac_func (); below.
16969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970 <limits.h> exists even on freestanding compilers. */
16971
16972#ifdef __STDC__
16973# include <limits.h>
16974#else
16975# include <assert.h>
16976#endif
16977
16978#undef $ac_func
16979
16980/* Override any GCC internal prototype to avoid an error.
16981 Use char because int might match the return type of a GCC
16982 builtin and then its argument prototype would still apply. */
16983#ifdef __cplusplus
16984extern "C"
16985#endif
16986char $ac_func ();
16987/* The GNU C library defines this for functions which it implements
16988 to always fail with ENOSYS. Some functions are actually named
16989 something starting with __ and the normal name is an alias. */
16990#if defined __stub_$ac_func || defined __stub___$ac_func
16991choke me
16992#endif
16993
16994int
16995main ()
16996{
16997return $ac_func ();
16998 ;
16999 return 0;
17000}
17001_ACEOF
17002rm -f conftest.$ac_objext conftest$ac_exeext
17003if { (ac_try="$ac_link"
17004case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007esac
17008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_link") 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020esac
17021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_try") 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest$ac_exeext'
17027 { (case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030esac
17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_try") 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 eval "$as_ac_var=yes"
17037else
17038 echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041 eval "$as_ac_var=no"
17042fi
17043
17044rm -f core conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17046fi
17047ac_res=`eval echo '${'$as_ac_var'}'`
17048 { echo "$as_me:$LINENO: result: $ac_res" >&5
17049echo "${ECHO_T}$ac_res" >&6; }
17050if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017051 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017053_ACEOF
17054
17055fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017056done
John Criswell7a73b802003-06-30 21:59:07 +000017057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017058
17059
17060
17061
Reid Spencer96cf5872007-07-13 10:05:30 +000017062for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017063do
17064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17065{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17067if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17069else
17070 cat >conftest.$ac_ext <<_ACEOF
17071/* confdefs.h. */
17072_ACEOF
17073cat confdefs.h >>conftest.$ac_ext
17074cat >>conftest.$ac_ext <<_ACEOF
17075/* end confdefs.h. */
17076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17078#define $ac_func innocuous_$ac_func
17079
17080/* System header to define __stub macros and hopefully few prototypes,
17081 which can conflict with char $ac_func (); below.
17082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083 <limits.h> exists even on freestanding compilers. */
17084
17085#ifdef __STDC__
17086# include <limits.h>
17087#else
17088# include <assert.h>
17089#endif
17090
17091#undef $ac_func
17092
17093/* Override any GCC internal prototype to avoid an error.
17094 Use char because int might match the return type of a GCC
17095 builtin and then its argument prototype would still apply. */
17096#ifdef __cplusplus
17097extern "C"
17098#endif
17099char $ac_func ();
17100/* The GNU C library defines this for functions which it implements
17101 to always fail with ENOSYS. Some functions are actually named
17102 something starting with __ and the normal name is an alias. */
17103#if defined __stub_$ac_func || defined __stub___$ac_func
17104choke me
17105#endif
17106
17107int
17108main ()
17109{
17110return $ac_func ();
17111 ;
17112 return 0;
17113}
17114_ACEOF
17115rm -f conftest.$ac_objext conftest$ac_exeext
17116if { (ac_try="$ac_link"
17117case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17120esac
17121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_link") 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17130 { (case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17133esac
17134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_try") 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest$ac_exeext'
17140 { (case "(($ac_try" in
17141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17142 *) ac_try_echo=$ac_try;;
17143esac
17144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17145 (eval "$ac_try") 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 eval "$as_ac_var=yes"
17150else
17151 echo "$as_me: failed program was:" >&5
17152sed 's/^/| /' conftest.$ac_ext >&5
17153
17154 eval "$as_ac_var=no"
17155fi
17156
17157rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17159fi
17160ac_res=`eval echo '${'$as_ac_var'}'`
17161 { echo "$as_me:$LINENO: result: $ac_res" >&5
17162echo "${ECHO_T}$ac_res" >&6; }
17163if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017164 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017166_ACEOF
17167
17168fi
17169done
17170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017171
17172
17173
17174
17175
Reid Spencerb90645c2007-02-16 19:17:20 +000017176for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017177do
17178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183else
17184 cat >conftest.$ac_ext <<_ACEOF
17185/* confdefs.h. */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h. */
17190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192#define $ac_func innocuous_$ac_func
17193
17194/* System header to define __stub macros and hopefully few prototypes,
17195 which can conflict with char $ac_func (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17198
17199#ifdef __STDC__
17200# include <limits.h>
17201#else
17202# include <assert.h>
17203#endif
17204
17205#undef $ac_func
17206
17207/* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210#ifdef __cplusplus
17211extern "C"
17212#endif
17213char $ac_func ();
17214/* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217#if defined __stub_$ac_func || defined __stub___$ac_func
17218choke me
17219#endif
17220
17221int
17222main ()
17223{
17224return $ac_func ();
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext conftest$ac_exeext
17230if { (ac_try="$ac_link"
17231case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234esac
17235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_link") 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247esac
17248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 eval "$as_ac_var=yes"
17264else
17265 echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 eval "$as_ac_var=no"
17269fi
17270
17271rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273fi
17274ac_res=`eval echo '${'$as_ac_var'}'`
17275 { echo "$as_me:$LINENO: result: $ac_res" >&5
17276echo "${ECHO_T}$ac_res" >&6; }
17277if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017278 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017280_ACEOF
17281
17282fi
17283done
17284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017285
17286
17287
Reid Spencerb90645c2007-02-16 19:17:20 +000017288for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017289do
17290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296 cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17304#define $ac_func innocuous_$ac_func
17305
17306/* System header to define __stub macros and hopefully few prototypes,
17307 which can conflict with char $ac_func (); below.
17308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309 <limits.h> exists even on freestanding compilers. */
17310
17311#ifdef __STDC__
17312# include <limits.h>
17313#else
17314# include <assert.h>
17315#endif
17316
17317#undef $ac_func
17318
17319/* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17322#ifdef __cplusplus
17323extern "C"
17324#endif
17325char $ac_func ();
17326/* The GNU C library defines this for functions which it implements
17327 to always fail with ENOSYS. Some functions are actually named
17328 something starting with __ and the normal name is an alias. */
17329#if defined __stub_$ac_func || defined __stub___$ac_func
17330choke me
17331#endif
17332
17333int
17334main ()
17335{
17336return $ac_func ();
17337 ;
17338 return 0;
17339}
17340_ACEOF
17341rm -f conftest.$ac_objext conftest$ac_exeext
17342if { (ac_try="$ac_link"
17343case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17346esac
17347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_link") 2>conftest.er1
17349 ac_status=$?
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356 { (case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17359esac
17360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_try") 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 eval "$as_ac_var=yes"
17376else
17377 echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380 eval "$as_ac_var=no"
17381fi
17382
17383rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17385fi
17386ac_res=`eval echo '${'$as_ac_var'}'`
17387 { echo "$as_me:$LINENO: result: $ac_res" >&5
17388echo "${ECHO_T}$ac_res" >&6; }
17389if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017390 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017392_ACEOF
17393
17394fi
17395done
17396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017397
17398
17399
17400
17401
Eric Christophere4291822010-04-16 05:14:21 +000017402
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017403
17404for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017405do
17406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17407{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17409if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411else
17412 cat >conftest.$ac_ext <<_ACEOF
17413/* confdefs.h. */
17414_ACEOF
17415cat confdefs.h >>conftest.$ac_ext
17416cat >>conftest.$ac_ext <<_ACEOF
17417/* end confdefs.h. */
17418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17420#define $ac_func innocuous_$ac_func
17421
17422/* System header to define __stub macros and hopefully few prototypes,
17423 which can conflict with char $ac_func (); below.
17424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17425 <limits.h> exists even on freestanding compilers. */
17426
17427#ifdef __STDC__
17428# include <limits.h>
17429#else
17430# include <assert.h>
17431#endif
17432
17433#undef $ac_func
17434
17435/* Override any GCC internal prototype to avoid an error.
17436 Use char because int might match the return type of a GCC
17437 builtin and then its argument prototype would still apply. */
17438#ifdef __cplusplus
17439extern "C"
17440#endif
17441char $ac_func ();
17442/* The GNU C library defines this for functions which it implements
17443 to always fail with ENOSYS. Some functions are actually named
17444 something starting with __ and the normal name is an alias. */
17445#if defined __stub_$ac_func || defined __stub___$ac_func
17446choke me
17447#endif
17448
17449int
17450main ()
17451{
17452return $ac_func ();
17453 ;
17454 return 0;
17455}
17456_ACEOF
17457rm -f conftest.$ac_objext conftest$ac_exeext
17458if { (ac_try="$ac_link"
17459case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17462esac
17463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_link") 2>conftest.er1
17465 ac_status=$?
17466 grep -v '^ *+' conftest.er1 >conftest.err
17467 rm -f conftest.er1
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475esac
17476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 eval "$as_ac_var=yes"
17492else
17493 echo "$as_me: failed program was:" >&5
17494sed 's/^/| /' conftest.$ac_ext >&5
17495
17496 eval "$as_ac_var=no"
17497fi
17498
17499rm -f core conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17501fi
17502ac_res=`eval echo '${'$as_ac_var'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504echo "${ECHO_T}$ac_res" >&6; }
17505if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017506 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017508_ACEOF
17509
17510fi
17511done
Reid Spencerdf3be822006-01-23 08:15:53 +000017512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017513
17514
17515
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017516
17517for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017518do
17519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17524else
17525 cat >conftest.$ac_ext <<_ACEOF
17526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
17531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533#define $ac_func innocuous_$ac_func
17534
17535/* System header to define __stub macros and hopefully few prototypes,
17536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 <limits.h> exists even on freestanding compilers. */
17539
17540#ifdef __STDC__
17541# include <limits.h>
17542#else
17543# include <assert.h>
17544#endif
17545
17546#undef $ac_func
17547
17548/* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551#ifdef __cplusplus
17552extern "C"
17553#endif
17554char $ac_func ();
17555/* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
17558#if defined __stub_$ac_func || defined __stub___$ac_func
17559choke me
17560#endif
17561
17562int
17563main ()
17564{
17565return $ac_func ();
17566 ;
17567 return 0;
17568}
17569_ACEOF
17570rm -f conftest.$ac_objext conftest$ac_exeext
17571if { (ac_try="$ac_link"
17572case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575esac
17576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17585 { (case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588esac
17589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_try") 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest$ac_exeext'
17595 { (case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17598esac
17599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_try") 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 eval "$as_ac_var=yes"
17605else
17606 echo "$as_me: failed program was:" >&5
17607sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 eval "$as_ac_var=no"
17610fi
17611
17612rm -f core conftest.err conftest.$ac_objext \
17613 conftest$ac_exeext conftest.$ac_ext
17614fi
17615ac_res=`eval echo '${'$as_ac_var'}'`
17616 { echo "$as_me:$LINENO: result: $ac_res" >&5
17617echo "${ECHO_T}$ac_res" >&6; }
17618if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017619 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017621_ACEOF
17622
17623fi
17624done
17625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017626
17627
17628
17629
Chris Lattner511f11d2005-11-14 07:25:50 +000017630for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017631do
17632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17633{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17635if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637else
17638 cat >conftest.$ac_ext <<_ACEOF
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17646#define $ac_func innocuous_$ac_func
17647
17648/* System header to define __stub macros and hopefully few prototypes,
17649 which can conflict with char $ac_func (); below.
17650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17651 <limits.h> exists even on freestanding compilers. */
17652
17653#ifdef __STDC__
17654# include <limits.h>
17655#else
17656# include <assert.h>
17657#endif
17658
17659#undef $ac_func
17660
17661/* Override any GCC internal prototype to avoid an error.
17662 Use char because int might match the return type of a GCC
17663 builtin and then its argument prototype would still apply. */
17664#ifdef __cplusplus
17665extern "C"
17666#endif
17667char $ac_func ();
17668/* The GNU C library defines this for functions which it implements
17669 to always fail with ENOSYS. Some functions are actually named
17670 something starting with __ and the normal name is an alias. */
17671#if defined __stub_$ac_func || defined __stub___$ac_func
17672choke me
17673#endif
17674
17675int
17676main ()
17677{
17678return $ac_func ();
17679 ;
17680 return 0;
17681}
17682_ACEOF
17683rm -f conftest.$ac_objext conftest$ac_exeext
17684if { (ac_try="$ac_link"
17685case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17688esac
17689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_link") 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17701esac
17702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest$ac_exeext'
17708 { (case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17711esac
17712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_try") 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 eval "$as_ac_var=yes"
17718else
17719 echo "$as_me: failed program was:" >&5
17720sed 's/^/| /' conftest.$ac_ext >&5
17721
17722 eval "$as_ac_var=no"
17723fi
17724
17725rm -f core conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
17727fi
17728ac_res=`eval echo '${'$as_ac_var'}'`
17729 { echo "$as_me:$LINENO: result: $ac_res" >&5
17730echo "${ECHO_T}$ac_res" >&6; }
17731if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017732 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017734_ACEOF
17735
17736fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017737done
John Criswell7a73b802003-06-30 21:59:07 +000017738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017739
17740
17741
17742
Daniel Dunbar3e462932011-02-03 02:40:02 +000017743
17744for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017745do
17746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17751else
17752 cat >conftest.$ac_ext <<_ACEOF
17753/* confdefs.h. */
17754_ACEOF
17755cat confdefs.h >>conftest.$ac_ext
17756cat >>conftest.$ac_ext <<_ACEOF
17757/* end confdefs.h. */
17758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17760#define $ac_func innocuous_$ac_func
17761
17762/* System header to define __stub macros and hopefully few prototypes,
17763 which can conflict with char $ac_func (); below.
17764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765 <limits.h> exists even on freestanding compilers. */
17766
17767#ifdef __STDC__
17768# include <limits.h>
17769#else
17770# include <assert.h>
17771#endif
17772
17773#undef $ac_func
17774
17775/* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17778#ifdef __cplusplus
17779extern "C"
17780#endif
17781char $ac_func ();
17782/* The GNU C library defines this for functions which it implements
17783 to always fail with ENOSYS. Some functions are actually named
17784 something starting with __ and the normal name is an alias. */
17785#if defined __stub_$ac_func || defined __stub___$ac_func
17786choke me
17787#endif
17788
17789int
17790main ()
17791{
17792return $ac_func ();
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797rm -f conftest.$ac_objext conftest$ac_exeext
17798if { (ac_try="$ac_link"
17799case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17802esac
17803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_link") 2>conftest.er1
17805 ac_status=$?
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812 { (case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815esac
17816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_try") 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest$ac_exeext'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825esac
17826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 eval "$as_ac_var=yes"
17832else
17833 echo "$as_me: failed program was:" >&5
17834sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 eval "$as_ac_var=no"
17837fi
17838
17839rm -f core conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17841fi
17842ac_res=`eval echo '${'$as_ac_var'}'`
17843 { echo "$as_me:$LINENO: result: $ac_res" >&5
17844echo "${ECHO_T}$ac_res" >&6; }
17845if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017846 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017848_ACEOF
17849
17850fi
17851done
17852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017853{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17854echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17855if test "${llvm_cv_c_printf_a+set}" = set; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017857else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017858 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017859ac_cpp='$CPP $CPPFLAGS'
17860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17862ac_compiler_gnu=$ac_cv_c_compiler_gnu
17863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017864 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017865 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017867 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017869 /* confdefs.h. */
17870_ACEOF
17871cat confdefs.h >>conftest.$ac_ext
17872cat >>conftest.$ac_ext <<_ACEOF
17873/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017874
John Criswella0137d32003-10-13 16:22:01 +000017875#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017876#include <stdlib.h>
17877
John Criswella0137d32003-10-13 16:22:01 +000017878int
17879main ()
17880{
17881
Reid Spencer2706f8c2004-09-19 23:53:36 +000017882volatile double A, B;
17883char Buffer[100];
17884A = 1;
17885A /= 10.0;
17886sprintf(Buffer, "%a", A);
17887B = atof(Buffer);
17888if (A != B)
17889 return (1);
17890if (A != 0x1.999999999999ap-4)
17891 return (1);
17892return (0);
John Criswella0137d32003-10-13 16:22:01 +000017893 ;
17894 return 0;
17895}
17896_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017897rm -f conftest$ac_exeext
17898if { (ac_try="$ac_link"
17899case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902esac
17903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_link") 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911esac
17912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017917 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017919 echo "$as_me: program exited with status $ac_status" >&5
17920echo "$as_me: failed program was:" >&5
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
17923( exit $ac_status )
17924llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017925fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017926rm -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 +000017927fi
Reid Spencera773bd52006-08-04 18:18:08 +000017928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017929
Reid Spencer2706f8c2004-09-19 23:53:36 +000017930 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017931ac_cpp='$CPP $CPPFLAGS'
17932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934ac_compiler_gnu=$ac_cv_c_compiler_gnu
17935
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017937{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17938echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017939 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017941cat >>confdefs.h <<\_ACEOF
17942#define HAVE_PRINTF_A 1
17943_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017944
Reid Spencer2706f8c2004-09-19 23:53:36 +000017945 fi
John Criswella0137d32003-10-13 16:22:01 +000017946
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017948{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17949echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17950if test "${ac_cv_func_rand48+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017952else
Reid Spencera773bd52006-08-04 18:18:08 +000017953 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017954ac_cpp='$CXXCPP $CPPFLAGS'
17955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017959 cat >conftest.$ac_ext <<_ACEOF
17960/* confdefs.h. */
17961_ACEOF
17962cat confdefs.h >>conftest.$ac_ext
17963cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017964/* end confdefs.h. */
17965#include <stdlib.h>
17966int
17967main ()
17968{
17969srand48(0);lrand48();drand48();
17970 ;
17971 return 0;
17972}
17973_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017974rm -f conftest.$ac_objext
17975if { (ac_try="$ac_compile"
17976case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17979esac
17980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_compile") 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002esac
18003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_try") 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018008 ac_cv_func_rand48=yes
18009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018010 echo "$as_me: failed program was:" >&5
18011sed 's/^/| /' conftest.$ac_ext >&5
18012
18013 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018015
Reid Spencera773bd52006-08-04 18:18:08 +000018016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018017 ac_ext=c
18018ac_cpp='$CPP $CPPFLAGS'
18019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18021ac_compiler_gnu=$ac_cv_c_compiler_gnu
18022
18023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018024{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18025echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018026
18027if test "$ac_cv_func_rand48" = "yes" ; then
18028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018029cat >>confdefs.h <<\_ACEOF
18030#define HAVE_RAND48 1
18031_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018032
18033fi
John Criswell0021c312004-02-13 21:57:29 +000018034
18035
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018036{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18037echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18038if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040else
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047$ac_includes_default
18048int
18049main ()
18050{
18051#ifndef strerror_s
18052 char *p = (char *) strerror_s;
18053 return !p;
18054#endif
18055
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060rm -f conftest.$ac_objext
18061if { (ac_try="$ac_compile"
18062case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18065esac
18066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_compile") 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18078esac
18079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest.$ac_objext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088esac
18089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_have_decl_strerror_s=yes
18095else
18096 echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099 ac_cv_have_decl_strerror_s=no
18100fi
18101
18102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103fi
18104{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18105echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18106if test $ac_cv_have_decl_strerror_s = yes; then
18107
18108cat >>confdefs.h <<_ACEOF
18109#define HAVE_DECL_STRERROR_S 1
18110_ACEOF
18111
18112
18113else
18114 cat >>confdefs.h <<_ACEOF
18115#define HAVE_DECL_STRERROR_S 0
18116_ACEOF
18117
18118
18119fi
18120
18121
18122
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018123if test "$llvm_cv_os_type" = "MingW" ; then
18124 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18125echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18126if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18127 echo $ECHO_N "(cached) $ECHO_C" >&6
18128else
18129 ac_check_lib_save_LIBS=$LIBS
18130LIBS="-lgcc $LIBS"
18131cat >conftest.$ac_ext <<_ACEOF
18132/* confdefs.h. */
18133_ACEOF
18134cat confdefs.h >>conftest.$ac_ext
18135cat >>conftest.$ac_ext <<_ACEOF
18136/* end confdefs.h. */
18137
18138/* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18141#ifdef __cplusplus
18142extern "C"
18143#endif
18144char _alloca ();
18145int
18146main ()
18147{
18148return _alloca ();
18149 ;
18150 return 0;
18151}
18152_ACEOF
18153rm -f conftest.$ac_objext conftest$ac_exeext
18154if { (ac_try="$ac_link"
18155case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18158esac
18159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_link") 2>conftest.er1
18161 ac_status=$?
18162 grep -v '^ *+' conftest.er1 >conftest.err
18163 rm -f conftest.er1
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18168 { (case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18171esac
18172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_try") 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest$ac_exeext'
18178 { (case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18181esac
18182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_try") 2>&5
18184 ac_status=$?
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; }; then
18187 ac_cv_lib_gcc__alloca=yes
18188else
18189 echo "$as_me: failed program was:" >&5
18190sed 's/^/| /' conftest.$ac_ext >&5
18191
18192 ac_cv_lib_gcc__alloca=no
18193fi
18194
18195rm -f core conftest.err conftest.$ac_objext \
18196 conftest$ac_exeext conftest.$ac_ext
18197LIBS=$ac_check_lib_save_LIBS
18198fi
18199{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18200echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18201if test $ac_cv_lib_gcc__alloca = yes; then
18202
18203cat >>confdefs.h <<\_ACEOF
18204#define HAVE__ALLOCA 1
18205_ACEOF
18206
18207fi
18208
18209 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18210echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18211if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213else
18214 ac_check_lib_save_LIBS=$LIBS
18215LIBS="-lgcc $LIBS"
18216cat >conftest.$ac_ext <<_ACEOF
18217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
18222
18223/* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18226#ifdef __cplusplus
18227extern "C"
18228#endif
18229char __alloca ();
18230int
18231main ()
18232{
18233return __alloca ();
18234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext conftest$ac_exeext
18239if { (ac_try="$ac_link"
18240case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243esac
18244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256esac
18257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 ac_cv_lib_gcc___alloca=yes
18273else
18274 echo "$as_me: failed program was:" >&5
18275sed 's/^/| /' conftest.$ac_ext >&5
18276
18277 ac_cv_lib_gcc___alloca=no
18278fi
18279
18280rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282LIBS=$ac_check_lib_save_LIBS
18283fi
18284{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18285echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18286if test $ac_cv_lib_gcc___alloca = yes; then
18287
18288cat >>confdefs.h <<\_ACEOF
18289#define HAVE___ALLOCA 1
18290_ACEOF
18291
18292fi
18293
18294 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18295echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18296if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298else
18299 ac_check_lib_save_LIBS=$LIBS
18300LIBS="-lgcc $LIBS"
18301cat >conftest.$ac_ext <<_ACEOF
18302/* confdefs.h. */
18303_ACEOF
18304cat confdefs.h >>conftest.$ac_ext
18305cat >>conftest.$ac_ext <<_ACEOF
18306/* end confdefs.h. */
18307
18308/* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311#ifdef __cplusplus
18312extern "C"
18313#endif
18314char __chkstk ();
18315int
18316main ()
18317{
18318return __chkstk ();
18319 ;
18320 return 0;
18321}
18322_ACEOF
18323rm -f conftest.$ac_objext conftest$ac_exeext
18324if { (ac_try="$ac_link"
18325case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328esac
18329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_link") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341esac
18342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351esac
18352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_lib_gcc___chkstk=yes
18358else
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362 ac_cv_lib_gcc___chkstk=no
18363fi
18364
18365rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18367LIBS=$ac_check_lib_save_LIBS
18368fi
18369{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18370echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18371if test $ac_cv_lib_gcc___chkstk = yes; then
18372
18373cat >>confdefs.h <<\_ACEOF
18374#define HAVE___CHKSTK 1
18375_ACEOF
18376
18377fi
18378
18379 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18380echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18381if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18383else
18384 ac_check_lib_save_LIBS=$LIBS
18385LIBS="-lgcc $LIBS"
18386cat >conftest.$ac_ext <<_ACEOF
18387/* confdefs.h. */
18388_ACEOF
18389cat confdefs.h >>conftest.$ac_ext
18390cat >>conftest.$ac_ext <<_ACEOF
18391/* end confdefs.h. */
18392
18393/* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18396#ifdef __cplusplus
18397extern "C"
18398#endif
18399char ___chkstk ();
18400int
18401main ()
18402{
18403return ___chkstk ();
18404 ;
18405 return 0;
18406}
18407_ACEOF
18408rm -f conftest.$ac_objext conftest$ac_exeext
18409if { (ac_try="$ac_link"
18410case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413esac
18414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18426esac
18427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_lib_gcc____chkstk=yes
18443else
18444 echo "$as_me: failed program was:" >&5
18445sed 's/^/| /' conftest.$ac_ext >&5
18446
18447 ac_cv_lib_gcc____chkstk=no
18448fi
18449
18450rm -f core conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
18452LIBS=$ac_check_lib_save_LIBS
18453fi
18454{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18455echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18456if test $ac_cv_lib_gcc____chkstk = yes; then
18457
18458cat >>confdefs.h <<\_ACEOF
18459#define HAVE____CHKSTK 1
18460_ACEOF
18461
18462fi
18463
18464
18465 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18466echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18467if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469else
18470 ac_check_lib_save_LIBS=$LIBS
18471LIBS="-lgcc $LIBS"
18472cat >conftest.$ac_ext <<_ACEOF
18473/* confdefs.h. */
18474_ACEOF
18475cat confdefs.h >>conftest.$ac_ext
18476cat >>conftest.$ac_ext <<_ACEOF
18477/* end confdefs.h. */
18478
18479/* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18482#ifdef __cplusplus
18483extern "C"
18484#endif
18485char __ashldi3 ();
18486int
18487main ()
18488{
18489return __ashldi3 ();
18490 ;
18491 return 0;
18492}
18493_ACEOF
18494rm -f conftest.$ac_objext conftest$ac_exeext
18495if { (ac_try="$ac_link"
18496case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499esac
18500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522esac
18523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_lib_gcc___ashldi3=yes
18529else
18530 echo "$as_me: failed program was:" >&5
18531sed 's/^/| /' conftest.$ac_ext >&5
18532
18533 ac_cv_lib_gcc___ashldi3=no
18534fi
18535
18536rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18538LIBS=$ac_check_lib_save_LIBS
18539fi
18540{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18541echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18542if test $ac_cv_lib_gcc___ashldi3 = yes; then
18543
18544cat >>confdefs.h <<\_ACEOF
18545#define HAVE___ASHLDI3 1
18546_ACEOF
18547
18548fi
18549
18550 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18551echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18552if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 ac_check_lib_save_LIBS=$LIBS
18556LIBS="-lgcc $LIBS"
18557cat >conftest.$ac_ext <<_ACEOF
18558/* confdefs.h. */
18559_ACEOF
18560cat confdefs.h >>conftest.$ac_ext
18561cat >>conftest.$ac_ext <<_ACEOF
18562/* end confdefs.h. */
18563
18564/* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18567#ifdef __cplusplus
18568extern "C"
18569#endif
18570char __ashrdi3 ();
18571int
18572main ()
18573{
18574return __ashrdi3 ();
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext conftest$ac_exeext
18580if { (ac_try="$ac_link"
18581case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584esac
18585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_link") 2>conftest.er1
18587 ac_status=$?
18588 grep -v '^ *+' conftest.er1 >conftest.err
18589 rm -f conftest.er1
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest$ac_exeext'
18604 { (case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607esac
18608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_try") 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_cv_lib_gcc___ashrdi3=yes
18614else
18615 echo "$as_me: failed program was:" >&5
18616sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 ac_cv_lib_gcc___ashrdi3=no
18619fi
18620
18621rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623LIBS=$ac_check_lib_save_LIBS
18624fi
18625{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18626echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18627if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18628
18629cat >>confdefs.h <<\_ACEOF
18630#define HAVE___ASHRDI3 1
18631_ACEOF
18632
18633fi
18634
18635 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18636echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18637if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640 ac_check_lib_save_LIBS=$LIBS
18641LIBS="-lgcc $LIBS"
18642cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648
18649/* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18652#ifdef __cplusplus
18653extern "C"
18654#endif
18655char __divdi3 ();
18656int
18657main ()
18658{
18659return __divdi3 ();
18660 ;
18661 return 0;
18662}
18663_ACEOF
18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (ac_try="$ac_link"
18666case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669esac
18670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18672 ac_status=$?
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18682esac
18683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692esac
18693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_lib_gcc___divdi3=yes
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
18703 ac_cv_lib_gcc___divdi3=no
18704fi
18705
18706rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18708LIBS=$ac_check_lib_save_LIBS
18709fi
18710{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18711echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18712if test $ac_cv_lib_gcc___divdi3 = yes; then
18713
18714cat >>confdefs.h <<\_ACEOF
18715#define HAVE___DIVDI3 1
18716_ACEOF
18717
18718fi
18719
18720 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18721echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18722if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18724else
18725 ac_check_lib_save_LIBS=$LIBS
18726LIBS="-lgcc $LIBS"
18727cat >conftest.$ac_ext <<_ACEOF
18728/* confdefs.h. */
18729_ACEOF
18730cat confdefs.h >>conftest.$ac_ext
18731cat >>conftest.$ac_ext <<_ACEOF
18732/* end confdefs.h. */
18733
18734/* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18737#ifdef __cplusplus
18738extern "C"
18739#endif
18740char __fixdfdi ();
18741int
18742main ()
18743{
18744return __fixdfdi ();
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext conftest$ac_exeext
18750if { (ac_try="$ac_link"
18751case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754esac
18755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_link") 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767esac
18768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18777esac
18778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_lib_gcc___fixdfdi=yes
18784else
18785 echo "$as_me: failed program was:" >&5
18786sed 's/^/| /' conftest.$ac_ext >&5
18787
18788 ac_cv_lib_gcc___fixdfdi=no
18789fi
18790
18791rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793LIBS=$ac_check_lib_save_LIBS
18794fi
18795{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18796echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18797if test $ac_cv_lib_gcc___fixdfdi = yes; then
18798
18799cat >>confdefs.h <<\_ACEOF
18800#define HAVE___FIXDFDI 1
18801_ACEOF
18802
18803fi
18804
18805 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18806echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18807if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809else
18810 ac_check_lib_save_LIBS=$LIBS
18811LIBS="-lgcc $LIBS"
18812cat >conftest.$ac_ext <<_ACEOF
18813/* confdefs.h. */
18814_ACEOF
18815cat confdefs.h >>conftest.$ac_ext
18816cat >>conftest.$ac_ext <<_ACEOF
18817/* end confdefs.h. */
18818
18819/* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18822#ifdef __cplusplus
18823extern "C"
18824#endif
18825char __fixsfdi ();
18826int
18827main ()
18828{
18829return __fixsfdi ();
18830 ;
18831 return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext conftest$ac_exeext
18835if { (ac_try="$ac_link"
18836case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839esac
18840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18842 ac_status=$?
18843 grep -v '^ *+' conftest.er1 >conftest.err
18844 rm -f conftest.er1
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_lib_gcc___fixsfdi=yes
18869else
18870 echo "$as_me: failed program was:" >&5
18871sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 ac_cv_lib_gcc___fixsfdi=no
18874fi
18875
18876rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878LIBS=$ac_check_lib_save_LIBS
18879fi
18880{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18881echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18882if test $ac_cv_lib_gcc___fixsfdi = yes; then
18883
18884cat >>confdefs.h <<\_ACEOF
18885#define HAVE___FIXSFDI 1
18886_ACEOF
18887
18888fi
18889
18890 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18891echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18892if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894else
18895 ac_check_lib_save_LIBS=$LIBS
18896LIBS="-lgcc $LIBS"
18897cat >conftest.$ac_ext <<_ACEOF
18898/* confdefs.h. */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h. */
18903
18904/* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18907#ifdef __cplusplus
18908extern "C"
18909#endif
18910char __floatdidf ();
18911int
18912main ()
18913{
18914return __floatdidf ();
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919rm -f conftest.$ac_objext conftest$ac_exeext
18920if { (ac_try="$ac_link"
18921case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924esac
18925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18934 { (case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18937esac
18938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_try") 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest$ac_exeext'
18944 { (case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18947esac
18948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_try") 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_cv_lib_gcc___floatdidf=yes
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 ac_cv_lib_gcc___floatdidf=no
18959fi
18960
18961rm -f core conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18963LIBS=$ac_check_lib_save_LIBS
18964fi
18965{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18966echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18967if test $ac_cv_lib_gcc___floatdidf = yes; then
18968
18969cat >>confdefs.h <<\_ACEOF
18970#define HAVE___FLOATDIDF 1
18971_ACEOF
18972
18973fi
18974
18975 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18976echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18977if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18979else
18980 ac_check_lib_save_LIBS=$LIBS
18981LIBS="-lgcc $LIBS"
18982cat >conftest.$ac_ext <<_ACEOF
18983/* confdefs.h. */
18984_ACEOF
18985cat confdefs.h >>conftest.$ac_ext
18986cat >>conftest.$ac_ext <<_ACEOF
18987/* end confdefs.h. */
18988
18989/* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18992#ifdef __cplusplus
18993extern "C"
18994#endif
18995char __lshrdi3 ();
18996int
18997main ()
18998{
18999return __lshrdi3 ();
19000 ;
19001 return 0;
19002}
19003_ACEOF
19004rm -f conftest.$ac_objext conftest$ac_exeext
19005if { (ac_try="$ac_link"
19006case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009esac
19010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_link") 2>conftest.er1
19012 ac_status=$?
19013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
19018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022esac
19023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19032esac
19033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_lib_gcc___lshrdi3=yes
19039else
19040 echo "$as_me: failed program was:" >&5
19041sed 's/^/| /' conftest.$ac_ext >&5
19042
19043 ac_cv_lib_gcc___lshrdi3=no
19044fi
19045
19046rm -f core conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19048LIBS=$ac_check_lib_save_LIBS
19049fi
19050{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19051echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19052if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19053
19054cat >>confdefs.h <<\_ACEOF
19055#define HAVE___LSHRDI3 1
19056_ACEOF
19057
19058fi
19059
19060 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19061echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19062if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064else
19065 ac_check_lib_save_LIBS=$LIBS
19066LIBS="-lgcc $LIBS"
19067cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
19073
19074/* Override any GCC internal prototype to avoid an error.
19075 Use char because int might match the return type of a GCC
19076 builtin and then its argument prototype would still apply. */
19077#ifdef __cplusplus
19078extern "C"
19079#endif
19080char __moddi3 ();
19081int
19082main ()
19083{
19084return __moddi3 ();
19085 ;
19086 return 0;
19087}
19088_ACEOF
19089rm -f conftest.$ac_objext conftest$ac_exeext
19090if { (ac_try="$ac_link"
19091case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094esac
19095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19107esac
19108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19117esac
19118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_gcc___moddi3=yes
19124else
19125 echo "$as_me: failed program was:" >&5
19126sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_cv_lib_gcc___moddi3=no
19129fi
19130
19131rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133LIBS=$ac_check_lib_save_LIBS
19134fi
19135{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19136echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19137if test $ac_cv_lib_gcc___moddi3 = yes; then
19138
19139cat >>confdefs.h <<\_ACEOF
19140#define HAVE___MODDI3 1
19141_ACEOF
19142
19143fi
19144
19145 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19146echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19147if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149else
19150 ac_check_lib_save_LIBS=$LIBS
19151LIBS="-lgcc $LIBS"
19152cat >conftest.$ac_ext <<_ACEOF
19153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158
19159/* Override any GCC internal prototype to avoid an error.
19160 Use char because int might match the return type of a GCC
19161 builtin and then its argument prototype would still apply. */
19162#ifdef __cplusplus
19163extern "C"
19164#endif
19165char __udivdi3 ();
19166int
19167main ()
19168{
19169return __udivdi3 ();
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext conftest$ac_exeext
19175if { (ac_try="$ac_link"
19176case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179esac
19180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_link") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest$ac_exeext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_lib_gcc___udivdi3=yes
19209else
19210 echo "$as_me: failed program was:" >&5
19211sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_cv_lib_gcc___udivdi3=no
19214fi
19215
19216rm -f core conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext conftest.$ac_ext
19218LIBS=$ac_check_lib_save_LIBS
19219fi
19220{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19221echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19222if test $ac_cv_lib_gcc___udivdi3 = yes; then
19223
19224cat >>confdefs.h <<\_ACEOF
19225#define HAVE___UDIVDI3 1
19226_ACEOF
19227
19228fi
19229
19230 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19231echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19232if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234else
19235 ac_check_lib_save_LIBS=$LIBS
19236LIBS="-lgcc $LIBS"
19237cat >conftest.$ac_ext <<_ACEOF
19238/* confdefs.h. */
19239_ACEOF
19240cat confdefs.h >>conftest.$ac_ext
19241cat >>conftest.$ac_ext <<_ACEOF
19242/* end confdefs.h. */
19243
19244/* Override any GCC internal prototype to avoid an error.
19245 Use char because int might match the return type of a GCC
19246 builtin and then its argument prototype would still apply. */
19247#ifdef __cplusplus
19248extern "C"
19249#endif
19250char __umoddi3 ();
19251int
19252main ()
19253{
19254return __umoddi3 ();
19255 ;
19256 return 0;
19257}
19258_ACEOF
19259rm -f conftest.$ac_objext conftest$ac_exeext
19260if { (ac_try="$ac_link"
19261case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264esac
19265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_link") 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
19273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19274 { (case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277esac
19278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_try") 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest$ac_exeext'
19284 { (case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19287esac
19288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_try") 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 ac_cv_lib_gcc___umoddi3=yes
19294else
19295 echo "$as_me: failed program was:" >&5
19296sed 's/^/| /' conftest.$ac_ext >&5
19297
19298 ac_cv_lib_gcc___umoddi3=no
19299fi
19300
19301rm -f core conftest.err conftest.$ac_objext \
19302 conftest$ac_exeext conftest.$ac_ext
19303LIBS=$ac_check_lib_save_LIBS
19304fi
19305{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19306echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19307if test $ac_cv_lib_gcc___umoddi3 = yes; then
19308
19309cat >>confdefs.h <<\_ACEOF
19310#define HAVE___UMODDI3 1
19311_ACEOF
19312
19313fi
19314
19315
19316 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19317echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19318if test "${ac_cv_lib_gcc___main+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19320else
19321 ac_check_lib_save_LIBS=$LIBS
19322LIBS="-lgcc $LIBS"
19323cat >conftest.$ac_ext <<_ACEOF
19324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
19328/* end confdefs.h. */
19329
19330/* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19333#ifdef __cplusplus
19334extern "C"
19335#endif
19336char __main ();
19337int
19338main ()
19339{
19340return __main ();
19341 ;
19342 return 0;
19343}
19344_ACEOF
19345rm -f conftest.$ac_objext conftest$ac_exeext
19346if { (ac_try="$ac_link"
19347case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest$ac_exeext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373esac
19374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_lib_gcc___main=yes
19380else
19381 echo "$as_me: failed program was:" >&5
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_lib_gcc___main=no
19385fi
19386
19387rm -f core conftest.err conftest.$ac_objext \
19388 conftest$ac_exeext conftest.$ac_ext
19389LIBS=$ac_check_lib_save_LIBS
19390fi
19391{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19392echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19393if test $ac_cv_lib_gcc___main = yes; then
19394
19395cat >>confdefs.h <<\_ACEOF
19396#define HAVE___MAIN 1
19397_ACEOF
19398
19399fi
19400
19401 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19402echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19403if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405else
19406 ac_check_lib_save_LIBS=$LIBS
19407LIBS="-lgcc $LIBS"
19408cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
19414
19415/* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19418#ifdef __cplusplus
19419extern "C"
19420#endif
19421char __cmpdi2 ();
19422int
19423main ()
19424{
19425return __cmpdi2 ();
19426 ;
19427 return 0;
19428}
19429_ACEOF
19430rm -f conftest.$ac_objext conftest$ac_exeext
19431if { (ac_try="$ac_link"
19432case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435esac
19436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_link") 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448esac
19449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest$ac_exeext'
19455 { (case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19458esac
19459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_lib_gcc___cmpdi2=yes
19465else
19466 echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
19469 ac_cv_lib_gcc___cmpdi2=no
19470fi
19471
19472rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474LIBS=$ac_check_lib_save_LIBS
19475fi
19476{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19477echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19478if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19479
19480cat >>confdefs.h <<\_ACEOF
19481#define HAVE___CMPDI2 1
19482_ACEOF
19483
19484fi
19485
19486fi
19487
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019488if test "$llvm_cv_os_type" = "MingW" ; then
19489 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19490echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19491 cat >conftest.$ac_ext <<_ACEOF
19492#include <windows.h>
19493#include <imagehlp.h>
19494extern void foo(PENUMLOADED_MODULES_CALLBACK);
19495extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19496_ACEOF
19497rm -f conftest.$ac_objext
19498if { (ac_try="$ac_compile"
19499case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19502esac
19503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_compile") 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try='test -s conftest.$ac_objext'
19522 { (case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_try") 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531
19532 { echo "$as_me:$LINENO: result: yes" >&5
19533echo "${ECHO_T}yes" >&6; }
19534 llvm_cv_win32_elmcb_pcstr="PCSTR"
19535
19536else
19537 echo "$as_me: failed program was:" >&5
19538sed 's/^/| /' conftest.$ac_ext >&5
19539
19540
19541 { echo "$as_me:$LINENO: result: no" >&5
19542echo "${ECHO_T}no" >&6; }
19543 llvm_cv_win32_elmcb_pcstr="PSTR"
19544
19545fi
19546
19547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548
19549cat >>confdefs.h <<_ACEOF
19550#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19551_ACEOF
19552
19553fi
19554
Torok Edwin871384f2010-01-26 08:50:50 +000019555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019556{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19557echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19558if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019560else
Reid Spencera773bd52006-08-04 18:18:08 +000019561 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019562ac_cpp='$CXXCPP $CPPFLAGS'
19563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019567 cat >conftest.$ac_ext <<_ACEOF
19568/* confdefs.h. */
19569_ACEOF
19570cat confdefs.h >>conftest.$ac_ext
19571cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019572/* end confdefs.h. */
19573#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019574int
19575main ()
19576{
19577float f; isnan(f);
19578 ;
19579 return 0;
19580}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019581_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582rm -f conftest.$ac_objext
19583if { (ac_try="$ac_compile"
19584case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587esac
19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19600esac
19601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610esac
19611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_try") 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019616 ac_cv_func_isnan_in_math_h=yes
19617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623
Reid Spencera773bd52006-08-04 18:18:08 +000019624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019625 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019626ac_cpp='$CPP $CPPFLAGS'
19627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019632{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19633echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019634
19635
19636if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019638cat >>confdefs.h <<\_ACEOF
19639#define HAVE_ISNAN_IN_MATH_H 1
19640_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019641
Reid Spencerabec8f92004-10-27 23:03:44 +000019642fi
19643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019644{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19645echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19646if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019648else
Reid Spencera773bd52006-08-04 18:18:08 +000019649 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019650ac_cpp='$CXXCPP $CPPFLAGS'
19651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019655 cat >conftest.$ac_ext <<_ACEOF
19656/* confdefs.h. */
19657_ACEOF
19658cat confdefs.h >>conftest.$ac_ext
19659cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019660/* end confdefs.h. */
19661#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019662int
19663main ()
19664{
19665float f; isnan(f);
19666 ;
19667 return 0;
19668}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019669_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019670rm -f conftest.$ac_objext
19671if { (ac_try="$ac_compile"
19672case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19675esac
19676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_compile") 2>conftest.er1
19678 ac_status=$?
19679 grep -v '^ *+' conftest.er1 >conftest.err
19680 rm -f conftest.er1
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
19684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19685 { (case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_try") 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; } &&
19694 { ac_try='test -s conftest.$ac_objext'
19695 { (case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698esac
19699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_try") 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019704 ac_cv_func_isnan_in_cmath=yes
19705else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019706 echo "$as_me: failed program was:" >&5
19707sed 's/^/| /' conftest.$ac_ext >&5
19708
19709 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019711
Reid Spencera773bd52006-08-04 18:18:08 +000019712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019713 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019714ac_cpp='$CPP $CPPFLAGS'
19715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717ac_compiler_gnu=$ac_cv_c_compiler_gnu
19718
19719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019720{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19721echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019722
19723if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725cat >>confdefs.h <<\_ACEOF
19726#define HAVE_ISNAN_IN_CMATH 1
19727_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019728
Reid Spencerabec8f92004-10-27 23:03:44 +000019729fi
19730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019731{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19732echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19733if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019735else
Reid Spencera773bd52006-08-04 18:18:08 +000019736 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019737ac_cpp='$CXXCPP $CPPFLAGS'
19738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019742 cat >conftest.$ac_ext <<_ACEOF
19743/* confdefs.h. */
19744_ACEOF
19745cat confdefs.h >>conftest.$ac_ext
19746cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019747/* end confdefs.h. */
19748#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019749int
19750main ()
19751{
19752float f; std::isnan(f);
19753 ;
19754 return 0;
19755}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019756_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019757rm -f conftest.$ac_objext
19758if { (ac_try="$ac_compile"
19759case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19762esac
19763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764 (eval "$ac_compile") 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19772 { (case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19775esac
19776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_try") 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; } &&
19781 { ac_try='test -s conftest.$ac_objext'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785esac
19786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019791 ac_cv_func_std_isnan_in_cmath=yes
19792else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019793 echo "$as_me: failed program was:" >&5
19794sed 's/^/| /' conftest.$ac_ext >&5
19795
19796 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019798
Reid Spencera773bd52006-08-04 18:18:08 +000019799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019800 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019801ac_cpp='$CPP $CPPFLAGS'
19802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19804ac_compiler_gnu=$ac_cv_c_compiler_gnu
19805
19806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019807{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19808echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019809
19810if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019812cat >>confdefs.h <<\_ACEOF
19813#define HAVE_STD_ISNAN_IN_CMATH 1
19814_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019815
Reid Spencerabec8f92004-10-27 23:03:44 +000019816fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019817
19818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019819{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19820echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19821if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019823else
Reid Spencera773bd52006-08-04 18:18:08 +000019824 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019825ac_cpp='$CXXCPP $CPPFLAGS'
19826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019830 cat >conftest.$ac_ext <<_ACEOF
19831/* confdefs.h. */
19832_ACEOF
19833cat confdefs.h >>conftest.$ac_ext
19834cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019835/* end confdefs.h. */
19836#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019837int
19838main ()
19839{
19840float f; isinf(f);
19841 ;
19842 return 0;
19843}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019844_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019845rm -f conftest.$ac_objext
19846if { (ac_try="$ac_compile"
19847case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19850esac
19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_compile") 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest.$ac_objext'
19870 { (case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873esac
19874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_try") 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019879 ac_cv_func_isinf_in_math_h=yes
19880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019881 echo "$as_me: failed program was:" >&5
19882sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019886
Reid Spencera773bd52006-08-04 18:18:08 +000019887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019888 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019889ac_cpp='$CPP $CPPFLAGS'
19890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893
19894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019895{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19896echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019897
19898if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019900cat >>confdefs.h <<\_ACEOF
19901#define HAVE_ISINF_IN_MATH_H 1
19902_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019903
Reid Spencerabec8f92004-10-27 23:03:44 +000019904fi
19905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019906{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19907echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19908if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019910else
Reid Spencera773bd52006-08-04 18:18:08 +000019911 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019912ac_cpp='$CXXCPP $CPPFLAGS'
19913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019917 cat >conftest.$ac_ext <<_ACEOF
19918/* confdefs.h. */
19919_ACEOF
19920cat confdefs.h >>conftest.$ac_ext
19921cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019922/* end confdefs.h. */
19923#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019924int
19925main ()
19926{
19927float f; isinf(f);
19928 ;
19929 return 0;
19930}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019931_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019932rm -f conftest.$ac_objext
19933if { (ac_try="$ac_compile"
19934case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937esac
19938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_compile") 2>conftest.er1
19940 ac_status=$?
19941 grep -v '^ *+' conftest.er1 >conftest.err
19942 rm -f conftest.er1
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19950esac
19951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; } &&
19956 { ac_try='test -s conftest.$ac_objext'
19957 { (case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960esac
19961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_try") 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019966 ac_cv_func_isinf_in_cmath=yes
19967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019968 echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019973
Reid Spencera773bd52006-08-04 18:18:08 +000019974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019975 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019976ac_cpp='$CPP $CPPFLAGS'
19977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19979ac_compiler_gnu=$ac_cv_c_compiler_gnu
19980
19981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019982{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19983echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019984
19985if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019987cat >>confdefs.h <<\_ACEOF
19988#define HAVE_ISINF_IN_CMATH 1
19989_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019990
Reid Spencerabec8f92004-10-27 23:03:44 +000019991fi
19992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019993{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19994echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19995if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019997else
Reid Spencera773bd52006-08-04 18:18:08 +000019998 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019999ac_cpp='$CXXCPP $CPPFLAGS'
20000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020004 cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020009/* end confdefs.h. */
20010#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020011int
20012main ()
20013{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020014float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020015 ;
20016 return 0;
20017}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020018_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020019rm -f conftest.$ac_objext
20020if { (ac_try="$ac_compile"
20021case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20024esac
20025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_compile") 2>conftest.er1
20027 ac_status=$?
20028 grep -v '^ *+' conftest.er1 >conftest.err
20029 rm -f conftest.er1
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20034 { (case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037esac
20038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_try") 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
20044 { (case "(($ac_try" in
20045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046 *) ac_try_echo=$ac_try;;
20047esac
20048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049 (eval "$ac_try") 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020053 ac_cv_func_std_isinf_in_cmath=yes
20054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020055 echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020060
Reid Spencera773bd52006-08-04 18:18:08 +000020061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020062 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020063ac_cpp='$CPP $CPPFLAGS'
20064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20066ac_compiler_gnu=$ac_cv_c_compiler_gnu
20067
20068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020069{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20070echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020071
20072if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020074cat >>confdefs.h <<\_ACEOF
20075#define HAVE_STD_ISINF_IN_CMATH 1
20076_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020077
Reid Spencerabec8f92004-10-27 23:03:44 +000020078fi
20079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020080{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20081echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20082if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020084else
Reid Spencera773bd52006-08-04 18:18:08 +000020085 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020086ac_cpp='$CXXCPP $CPPFLAGS'
20087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020091 cat >conftest.$ac_ext <<_ACEOF
20092/* confdefs.h. */
20093_ACEOF
20094cat confdefs.h >>conftest.$ac_ext
20095cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020096/* end confdefs.h. */
20097#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020098int
20099main ()
20100{
20101float f; finite(f);
20102 ;
20103 return 0;
20104}
Brian Gaeked59a6472004-07-21 03:33:58 +000020105_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106rm -f conftest.$ac_objext
20107if { (ac_try="$ac_compile"
20108case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20111esac
20112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_compile") 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20121 { (case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20124esac
20125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_try") 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest.$ac_objext'
20131 { (case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20134esac
20135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_try") 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020140 ac_cv_func_finite_in_ieeefp_h=yes
20141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020142 echo "$as_me: failed program was:" >&5
20143sed 's/^/| /' conftest.$ac_ext >&5
20144
20145 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020147
Reid Spencera773bd52006-08-04 18:18:08 +000020148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020149 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020150ac_cpp='$CPP $CPPFLAGS'
20151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154
20155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020156{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20157echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020158
Brian Gaeke6802b552004-10-28 05:06:45 +000020159if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020161cat >>confdefs.h <<\_ACEOF
20162#define HAVE_FINITE_IN_IEEEFP_H 1
20163_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020164
Reid Spencerabec8f92004-10-27 23:03:44 +000020165fi
20166
20167
20168
Reid Spencer30fe5262007-01-20 07:48:49 +000020169if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020170
20171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020172for ac_header in stdlib.h unistd.h
20173do
20174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20180fi
20181ac_res=`eval echo '${'$as_ac_Header'}'`
20182 { echo "$as_me:$LINENO: result: $ac_res" >&5
20183echo "${ECHO_T}$ac_res" >&6; }
20184else
20185 # Is the header compilable?
20186{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20188cat >conftest.$ac_ext <<_ACEOF
20189/* confdefs.h. */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h. */
20194$ac_includes_default
20195#include <$ac_header>
20196_ACEOF
20197rm -f conftest.$ac_objext
20198if { (ac_try="$ac_compile"
20199case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20202esac
20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_compile") 2>conftest.er1
20205 ac_status=$?
20206 grep -v '^ *+' conftest.er1 >conftest.err
20207 rm -f conftest.er1
20208 cat conftest.err >&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } &&
20211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20212 { (case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20215esac
20216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_try") 2>&5
20218 ac_status=$?
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest.$ac_objext'
20222 { (case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20225esac
20226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_try") 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; }; then
20231 ac_header_compiler=yes
20232else
20233 echo "$as_me: failed program was:" >&5
20234sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020235
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020236 ac_header_compiler=no
20237fi
20238
20239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20241echo "${ECHO_T}$ac_header_compiler" >&6; }
20242
20243# Is the header present?
20244{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20246cat >conftest.$ac_ext <<_ACEOF
20247/* confdefs.h. */
20248_ACEOF
20249cat confdefs.h >>conftest.$ac_ext
20250cat >>conftest.$ac_ext <<_ACEOF
20251/* end confdefs.h. */
20252#include <$ac_header>
20253_ACEOF
20254if { (ac_try="$ac_cpp conftest.$ac_ext"
20255case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20258esac
20259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } >/dev/null; then
20267 if test -s conftest.err; then
20268 ac_cpp_err=$ac_c_preproc_warn_flag
20269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20270 else
20271 ac_cpp_err=
20272 fi
20273else
20274 ac_cpp_err=yes
20275fi
20276if test -z "$ac_cpp_err"; then
20277 ac_header_preproc=yes
20278else
20279 echo "$as_me: failed program was:" >&5
20280sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 ac_header_preproc=no
20283fi
20284
20285rm -f conftest.err conftest.$ac_ext
20286{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20287echo "${ECHO_T}$ac_header_preproc" >&6; }
20288
20289# So? What about this header?
20290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20291 yes:no: )
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20293echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20295echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20296 ac_header_preproc=yes
20297 ;;
20298 no:yes:* )
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20300echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20302echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20304echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20306echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20310echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20311 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020312## ------------------------------------ ##
20313## Report this to http://llvm.org/bugs/ ##
20314## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020315_ASBOX
20316 ) | sed "s/^/$as_me: WARNING: /" >&2
20317 ;;
20318esac
20319{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323else
20324 eval "$as_ac_Header=\$ac_header_preproc"
20325fi
20326ac_res=`eval echo '${'$as_ac_Header'}'`
20327 { echo "$as_me:$LINENO: result: $ac_res" >&5
20328echo "${ECHO_T}$ac_res" >&6; }
20329
20330fi
20331if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020332 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020334_ACEOF
20335
20336fi
20337
20338done
20339
20340
20341for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020342do
20343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20344{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20346if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348else
20349 cat >conftest.$ac_ext <<_ACEOF
20350/* confdefs.h. */
20351_ACEOF
20352cat confdefs.h >>conftest.$ac_ext
20353cat >>conftest.$ac_ext <<_ACEOF
20354/* end confdefs.h. */
20355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20357#define $ac_func innocuous_$ac_func
20358
20359/* System header to define __stub macros and hopefully few prototypes,
20360 which can conflict with char $ac_func (); below.
20361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20362 <limits.h> exists even on freestanding compilers. */
20363
20364#ifdef __STDC__
20365# include <limits.h>
20366#else
20367# include <assert.h>
20368#endif
20369
20370#undef $ac_func
20371
20372/* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20375#ifdef __cplusplus
20376extern "C"
20377#endif
20378char $ac_func ();
20379/* The GNU C library defines this for functions which it implements
20380 to always fail with ENOSYS. Some functions are actually named
20381 something starting with __ and the normal name is an alias. */
20382#if defined __stub_$ac_func || defined __stub___$ac_func
20383choke me
20384#endif
20385
20386int
20387main ()
20388{
20389return $ac_func ();
20390 ;
20391 return 0;
20392}
20393_ACEOF
20394rm -f conftest.$ac_objext conftest$ac_exeext
20395if { (ac_try="$ac_link"
20396case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20399esac
20400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_link") 2>conftest.er1
20402 ac_status=$?
20403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
20408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20409 { (case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412esac
20413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_try") 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest$ac_exeext'
20419 { (case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20422esac
20423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_try") 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 eval "$as_ac_var=yes"
20429else
20430 echo "$as_me: failed program was:" >&5
20431sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 eval "$as_ac_var=no"
20434fi
20435
20436rm -f core conftest.err conftest.$ac_objext \
20437 conftest$ac_exeext conftest.$ac_ext
20438fi
20439ac_res=`eval echo '${'$as_ac_var'}'`
20440 { echo "$as_me:$LINENO: result: $ac_res" >&5
20441echo "${ECHO_T}$ac_res" >&6; }
20442if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020443 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020445_ACEOF
20446
20447fi
20448done
20449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450{ echo "$as_me:$LINENO: checking for working mmap" >&5
20451echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20452if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020455 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020456 ac_cv_func_mmap_fixed_mapped=no
20457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020458 cat >conftest.$ac_ext <<_ACEOF
20459/* confdefs.h. */
20460_ACEOF
20461cat confdefs.h >>conftest.$ac_ext
20462cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020463/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020464$ac_includes_default
20465/* malloc might have been renamed as rpl_malloc. */
20466#undef malloc
20467
20468/* Thanks to Mike Haertel and Jim Avera for this test.
20469 Here is a matrix of mmap possibilities:
20470 mmap private not fixed
20471 mmap private fixed at somewhere currently unmapped
20472 mmap private fixed at somewhere already mapped
20473 mmap shared not fixed
20474 mmap shared fixed at somewhere currently unmapped
20475 mmap shared fixed at somewhere already mapped
20476 For private mappings, we should verify that changes cannot be read()
20477 back from the file, nor mmap's back from the file at a different
20478 address. (There have been systems where private was not correctly
20479 implemented like the infamous i386 svr4.0, and systems where the
20480 VM page cache was not coherent with the file system buffer cache
20481 like early versions of FreeBSD and possibly contemporary NetBSD.)
20482 For shared mappings, we should conversely verify that changes get
20483 propagated back to all the places they're supposed to be.
20484
20485 Grep wants private fixed already mapped.
20486 The main things grep needs to know about mmap are:
20487 * does it exist and is it safe to write into the mmap'd area
20488 * how to use it (BSD variants) */
20489
20490#include <fcntl.h>
20491#include <sys/mman.h>
20492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020493#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020494char *malloc ();
20495#endif
20496
20497/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498#if !HAVE_GETPAGESIZE
20499/* Assume that all systems that can run configure have sys/param.h. */
20500# if !HAVE_SYS_PARAM_H
20501# define HAVE_SYS_PARAM_H 1
20502# endif
20503
John Criswell7a73b802003-06-30 21:59:07 +000020504# ifdef _SC_PAGESIZE
20505# define getpagesize() sysconf(_SC_PAGESIZE)
20506# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020507# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020508# include <sys/param.h>
20509# ifdef EXEC_PAGESIZE
20510# define getpagesize() EXEC_PAGESIZE
20511# else /* no EXEC_PAGESIZE */
20512# ifdef NBPG
20513# define getpagesize() NBPG * CLSIZE
20514# ifndef CLSIZE
20515# define CLSIZE 1
20516# endif /* no CLSIZE */
20517# else /* no NBPG */
20518# ifdef NBPC
20519# define getpagesize() NBPC
20520# else /* no NBPC */
20521# ifdef PAGESIZE
20522# define getpagesize() PAGESIZE
20523# endif /* PAGESIZE */
20524# endif /* no NBPC */
20525# endif /* no NBPG */
20526# endif /* no EXEC_PAGESIZE */
20527# else /* no HAVE_SYS_PARAM_H */
20528# define getpagesize() 8192 /* punt totally */
20529# endif /* no HAVE_SYS_PARAM_H */
20530# endif /* no _SC_PAGESIZE */
20531
20532#endif /* no HAVE_GETPAGESIZE */
20533
20534int
20535main ()
20536{
20537 char *data, *data2, *data3;
20538 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020539 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020540
20541 pagesize = getpagesize ();
20542
20543 /* First, make a file with some known garbage in it. */
20544 data = (char *) malloc (pagesize);
20545 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020546 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020547 for (i = 0; i < pagesize; ++i)
20548 *(data + i) = rand ();
20549 umask (0);
20550 fd = creat ("conftest.mmap", 0600);
20551 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020552 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020553 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020554 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020555 close (fd);
20556
20557 /* Next, try to mmap the file at a fixed address which already has
20558 something else allocated at it. If we can, also make sure that
20559 we see the same garbage. */
20560 fd = open ("conftest.mmap", O_RDWR);
20561 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020562 return 1;
20563 data2 = (char *) malloc (2 * pagesize);
20564 if (!data2)
20565 return 1;
20566 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020567 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020568 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020570 for (i = 0; i < pagesize; ++i)
20571 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020572 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020573
20574 /* Finally, make sure that changes to the mapped area do not
20575 percolate back to the file as seen by read(). (This is a bug on
20576 some variants of i386 svr4.0.) */
20577 for (i = 0; i < pagesize; ++i)
20578 *(data2 + i) = *(data2 + i) + 1;
20579 data3 = (char *) malloc (pagesize);
20580 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020582 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020583 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020584 for (i = 0; i < pagesize; ++i)
20585 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020587 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020588 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020589}
20590_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020591rm -f conftest$ac_exeext
20592if { (ac_try="$ac_link"
20593case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596esac
20597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_link") 2>&5
20599 ac_status=$?
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20602 { (case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605esac
20606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_try") 2>&5
20608 ac_status=$?
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020611 ac_cv_func_mmap_fixed_mapped=yes
20612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613 echo "$as_me: program exited with status $ac_status" >&5
20614echo "$as_me: failed program was:" >&5
20615sed 's/^/| /' conftest.$ac_ext >&5
20616
20617( exit $ac_status )
20618ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020620rm -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 +000020621fi
Reid Spencera773bd52006-08-04 18:18:08 +000020622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020623
John Criswell7a73b802003-06-30 21:59:07 +000020624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020625{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20626echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020627if test $ac_cv_func_mmap_fixed_mapped = yes; then
20628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020629cat >>confdefs.h <<\_ACEOF
20630#define HAVE_MMAP 1
20631_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020632
20633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020634rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020636 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20637echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20638if test "${ac_cv_func_mmap_file+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020640else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020641 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020642ac_cpp='$CPP $CPPFLAGS'
20643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645ac_compiler_gnu=$ac_cv_c_compiler_gnu
20646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020647 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020648 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020652 /* confdefs.h. */
20653_ACEOF
20654cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020657
John Criswell7a73b802003-06-30 21:59:07 +000020658#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020659#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020660#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020661
20662int
20663main ()
20664{
John Criswell7a73b802003-06-30 21:59:07 +000020665
20666 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020667 fd = creat ("foo",0777);
20668 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20669 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020670 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020671 ;
20672 return 0;
20673}
John Criswell7a73b802003-06-30 21:59:07 +000020674_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020675rm -f conftest$ac_exeext
20676if { (ac_try="$ac_link"
20677case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680esac
20681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_link") 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686 { (case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20689esac
20690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_try") 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020695 ac_cv_func_mmap_file=yes
20696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697 echo "$as_me: program exited with status $ac_status" >&5
20698echo "$as_me: failed program was:" >&5
20699sed 's/^/| /' conftest.$ac_ext >&5
20700
20701( exit $ac_status )
20702ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704rm -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 +000020705fi
Reid Spencera773bd52006-08-04 18:18:08 +000020706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020707
John Criswell7a73b802003-06-30 21:59:07 +000020708 ac_ext=c
20709ac_cpp='$CPP $CPPFLAGS'
20710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712ac_compiler_gnu=$ac_cv_c_compiler_gnu
20713
20714
20715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20717echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020718if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020720cat >>confdefs.h <<\_ACEOF
20721#define HAVE_MMAP_FILE
20722_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020723
20724 MMAP_FILE=yes
20725
20726fi
20727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020728 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20729echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20730if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020732else
Reid Spencer582a23c2004-12-29 07:07:57 +000020733 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020734 ac_cv_need_dev_zero_for_mmap=yes
20735 else
20736 ac_cv_need_dev_zero_for_mmap=no
20737 fi
20738
20739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020740{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20741echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020742if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020744cat >>confdefs.h <<\_ACEOF
20745#define NEED_DEV_ZERO_FOR_MMAP 1
20746_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020747
20748fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020749
Reid Spencer30fe5262007-01-20 07:48:49 +000020750 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20751 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020752 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20753echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020754 fi
20755 if test "$ac_cv_func_mmap_file" = "no"
20756 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20758echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020759 fi
John Criswellb13092b2003-07-22 21:00:24 +000020760fi
John Criswell7a73b802003-06-30 21:59:07 +000020761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020762{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20763echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020764ac_ext=cpp
20765ac_cpp='$CXXCPP $CPPFLAGS'
20766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020770cat >conftest.$ac_ext <<_ACEOF
20771/* confdefs.h. */
20772_ACEOF
20773cat confdefs.h >>conftest.$ac_ext
20774cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020775/* end confdefs.h. */
20776int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020777 volatile unsigned long val = 1;
20778 __sync_synchronize();
20779 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020780 __sync_add_and_fetch(&val, 1);
20781 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020782 return 0;
20783 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020784
20785_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786rm -f conftest.$ac_objext conftest$ac_exeext
20787if { (ac_try="$ac_link"
20788case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20791esac
20792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_link") 2>conftest.er1
20794 ac_status=$?
20795 grep -v '^ *+' conftest.er1 >conftest.err
20796 rm -f conftest.er1
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804esac
20805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest$ac_exeext'
20811 { (case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20814esac
20815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020820 ac_ext=c
20821ac_cpp='$CPP $CPPFLAGS'
20822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20824ac_compiler_gnu=$ac_cv_c_compiler_gnu
20825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020826 { echo "$as_me:$LINENO: result: yes" >&5
20827echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020829cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020830#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020832
Owen Andersond4b272b2009-05-18 23:58:51 +000020833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020837 { echo "$as_me:$LINENO: result: no" >&5
20838echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020840cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020841#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020842_ACEOF
20843
20844 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20845echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020847
Owen Andersond4b272b2009-05-18 23:58:51 +000020848rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020849 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020850
John Criswell7a73b802003-06-30 21:59:07 +000020851
Nick Lewycky4372e692009-09-29 06:18:23 +000020852if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020853 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20854echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20855if test "${llvm_cv_linux_mixed+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020857else
20858 ac_ext=c
20859ac_cpp='$CPP $CPPFLAGS'
20860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864 cat >conftest.$ac_ext <<_ACEOF
20865/* confdefs.h. */
20866_ACEOF
20867cat confdefs.h >>conftest.$ac_ext
20868cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020869/* end confdefs.h. */
20870#ifndef __x86_64__
20871 error: Not x86-64 even if uname says so!
20872 #endif
20873
20874int
20875main ()
20876{
20877
20878 ;
20879 return 0;
20880}
20881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020882rm -f conftest.$ac_objext
20883if { (ac_try="$ac_compile"
20884case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20887esac
20888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20890 ac_status=$?
20891 grep -v '^ *+' conftest.er1 >conftest.err
20892 rm -f conftest.er1
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } &&
20896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20897 { (case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20900esac
20901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_try") 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest.$ac_objext'
20907 { (case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20910esac
20911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_try") 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020916 llvm_cv_linux_mixed=no
20917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020918 echo "$as_me: failed program was:" >&5
20919sed 's/^/| /' conftest.$ac_ext >&5
20920
20921 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923
Nick Lewycky4372e692009-09-29 06:18:23 +000020924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925 ac_ext=c
20926ac_cpp='$CPP $CPPFLAGS'
20927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20929ac_compiler_gnu=$ac_cv_c_compiler_gnu
20930
20931
20932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020933{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20934echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020935
20936 if test "$llvm_cv_linux_mixed" = "yes"; then
20937 llvm_cv_target_arch="x86"
20938 ARCH="x86"
20939 fi
20940fi
20941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020942
Reid Spencer9372f152007-07-30 20:13:24 +000020943for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944do
20945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20950else
20951 cat >conftest.$ac_ext <<_ACEOF
20952/* confdefs.h. */
20953_ACEOF
20954cat confdefs.h >>conftest.$ac_ext
20955cat >>conftest.$ac_ext <<_ACEOF
20956/* end confdefs.h. */
20957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20959#define $ac_func innocuous_$ac_func
20960
20961/* System header to define __stub macros and hopefully few prototypes,
20962 which can conflict with char $ac_func (); below.
20963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964 <limits.h> exists even on freestanding compilers. */
20965
20966#ifdef __STDC__
20967# include <limits.h>
20968#else
20969# include <assert.h>
20970#endif
20971
20972#undef $ac_func
20973
20974/* Override any GCC internal prototype to avoid an error.
20975 Use char because int might match the return type of a GCC
20976 builtin and then its argument prototype would still apply. */
20977#ifdef __cplusplus
20978extern "C"
20979#endif
20980char $ac_func ();
20981/* The GNU C library defines this for functions which it implements
20982 to always fail with ENOSYS. Some functions are actually named
20983 something starting with __ and the normal name is an alias. */
20984#if defined __stub_$ac_func || defined __stub___$ac_func
20985choke me
20986#endif
20987
20988int
20989main ()
20990{
20991return $ac_func ();
20992 ;
20993 return 0;
20994}
20995_ACEOF
20996rm -f conftest.$ac_objext conftest$ac_exeext
20997if { (ac_try="$ac_link"
20998case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001esac
21002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_link") 2>conftest.er1
21004 ac_status=$?
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21011 { (case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21014esac
21015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_try") 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest$ac_exeext'
21021 { (case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21024esac
21025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_try") 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 eval "$as_ac_var=yes"
21031else
21032 echo "$as_me: failed program was:" >&5
21033sed 's/^/| /' conftest.$ac_ext >&5
21034
21035 eval "$as_ac_var=no"
21036fi
21037
21038rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
21040fi
21041ac_res=`eval echo '${'$as_ac_var'}'`
21042 { echo "$as_me:$LINENO: result: $ac_res" >&5
21043echo "${ECHO_T}$ac_res" >&6; }
21044if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021045 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021047_ACEOF
21048
21049fi
21050done
21051
21052
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021053SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021054
21055
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021056SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21057
21058
Jeff Cohen28783c32007-01-12 18:22:38 +000021059if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021060 prefix="/usr/local"
21061fi
Reid Spencere9de0912004-08-20 09:03:57 +000021062eval LLVM_PREFIX="${prefix}";
21063eval LLVM_BINDIR="${prefix}/bin";
21064eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021065eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021066eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021067eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021068eval LLVM_INCLUDEDIR="${prefix}/include";
21069eval LLVM_INFODIR="${prefix}/info";
21070eval LLVM_MANDIR="${prefix}/man";
21071LLVM_CONFIGTIME=`date`
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021083if test "${ENABLE_TIMESTAMPS}" = "0"; then
21084 LLVM_CONFIGTIME="(timestamp not enabled)"
21085fi
21086
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021087
Reid Spencere9de0912004-08-20 09:03:57 +000021088cat >>confdefs.h <<_ACEOF
21089#define LLVM_PREFIX "$LLVM_PREFIX"
21090_ACEOF
21091
21092
21093cat >>confdefs.h <<_ACEOF
21094#define LLVM_BINDIR "$LLVM_BINDIR"
21095_ACEOF
21096
21097
21098cat >>confdefs.h <<_ACEOF
21099#define LLVM_LIBDIR "$LLVM_LIBDIR"
21100_ACEOF
21101
21102
21103cat >>confdefs.h <<_ACEOF
21104#define LLVM_DATADIR "$LLVM_DATADIR"
21105_ACEOF
21106
21107
21108cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021109#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021110_ACEOF
21111
21112
21113cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021114#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021115_ACEOF
21116
21117
21118cat >>confdefs.h <<_ACEOF
21119#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21120_ACEOF
21121
21122
21123cat >>confdefs.h <<_ACEOF
21124#define LLVM_INFODIR "$LLVM_INFODIR"
21125_ACEOF
21126
21127
21128cat >>confdefs.h <<_ACEOF
21129#define LLVM_MANDIR "$LLVM_MANDIR"
21130_ACEOF
21131
21132
21133cat >>confdefs.h <<_ACEOF
21134#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21135_ACEOF
21136
21137
Eric Christopher790e11c2007-12-01 00:34:39 +000021138cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021139#define LLVM_HOSTTRIPLE "$host"
21140_ACEOF
21141
21142
21143cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021144#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021145_ACEOF
21146
21147
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021148if test "$BINDINGS_TO_BUILD" = auto ; then
21149 BINDINGS_TO_BUILD=""
21150 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21151 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21152 fi
21153fi
21154BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21155
21156
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021157ALL_BINDINGS=ocaml
21158
21159
Gordon Henriksenf0915682007-10-02 16:42:22 +000021160binding_prereqs_failed=0
21161for a_binding in $BINDINGS_TO_BUILD ; do
21162 case "$a_binding" in
21163 ocaml)
21164 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021165 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21166echo "$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 +000021167 binding_prereqs_failed=1
21168 fi
21169 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21171echo "$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 +000021172 binding_prereqs_failed=1
21173 fi
21174 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021175 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21176echo "$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 +000021177 fi
21178 if test "x$with_ocaml_libdir" != xauto ; then
21179 OCAML_LIBDIR=$with_ocaml_libdir
21180
21181 else
21182 ocaml_stdlib="`"$OCAMLC" -where`"
21183 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21184 then
21185 # ocaml stdlib is beneath our prefix; use stdlib
21186 OCAML_LIBDIR=$ocaml_stdlib
21187
21188 else
21189 # ocaml stdlib is outside our prefix; use libdir/ocaml
21190 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21191
21192 fi
21193 fi
21194 ;;
21195 esac
21196done
21197if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021198 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21199echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21200 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021201fi
21202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021203{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21204echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21205if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021207else
21208 ac_ext=cpp
21209ac_cpp='$CXXCPP $CPPFLAGS'
21210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21213
21214 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021215 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021216 cat >conftest.$ac_ext <<_ACEOF
21217/* confdefs.h. */
21218_ACEOF
21219cat confdefs.h >>conftest.$ac_ext
21220cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021221/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021222template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021223int
21224main ()
21225{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021226X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021227 ;
21228 return 0;
21229}
21230_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021231rm -f conftest.$ac_objext
21232if { (ac_try="$ac_compile"
21233case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21236esac
21237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_compile") 2>conftest.er1
21239 ac_status=$?
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21246 { (case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21249esac
21250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_try") 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest.$ac_objext'
21256 { (case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21259esac
21260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_try") 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021265 llvm_cv_cxx_visibility_inlines_hidden=yes
21266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267 echo "$as_me: failed program was:" >&5
21268sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021272
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274 CXXFLAGS="$oldcxxflags"
21275 ac_ext=c
21276ac_cpp='$CPP $CPPFLAGS'
21277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281
21282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21284echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021285if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21286 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21287
21288else
21289 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21290
21291fi
21292
Gordon Henriksenf0915682007-10-02 16:42:22 +000021293
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021294if test "$llvm_cv_link_use_r" = "yes" ; then
21295 RPATH="-Wl,-R"
21296else
21297 RPATH="-Wl,-rpath"
21298fi
21299
21300
21301if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21302 RDYNAMIC="-Wl,-export-dynamic"
21303else
21304 RDYNAMIC=""
21305fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021306
21307
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021308
Eric Christophera1cba682010-08-08 02:44:25 +000021309ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021310
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021311
21312
21313
21314
21315
Douglas Gregor1555a232009-06-16 20:12:29 +000021316ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21317
21318ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21319
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021320ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21321
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021322ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21323
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021324ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021326
Reid Spencera773bd52006-08-04 18:18:08 +000021327ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021328
Eric Christopher360fa9a2011-10-26 00:42:12 +000021329
Reid Spencerea949cf2006-08-16 00:45:38 +000021330ac_config_files="$ac_config_files llvm.spec"
21331
21332
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021333ac_config_files="$ac_config_files docs/doxygen.cfg"
21334
Eric Christopher63c09512012-02-02 00:16:55 +000021335
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021336if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021337 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021338fi
Eric Christopher63c09512012-02-02 00:16:55 +000021339if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021340 configh="include/clang/Config/config.h"
21341 doxy="docs/doxygen.cfg"
21342 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021343
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021344 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021345
21346fi
21347
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021348ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021349
Eric Christopher360fa9a2011-10-26 00:42:12 +000021350
Reid Spencera773bd52006-08-04 18:18:08 +000021351ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021352
Reid Spencera773bd52006-08-04 18:18:08 +000021353ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021354
21355
Reid Spencera773bd52006-08-04 18:18:08 +000021356ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021357
21358
Reid Spencera773bd52006-08-04 18:18:08 +000021359ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021360
21361
Reid Spencera773bd52006-08-04 18:18:08 +000021362ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021363
21364
Reid Spencer8b2e1412006-11-17 03:32:33 +000021365ac_config_commands="$ac_config_commands runtime/Makefile"
21366
21367
Reid Spencera773bd52006-08-04 18:18:08 +000021368ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021369
21370
Reid Spencera773bd52006-08-04 18:18:08 +000021371ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021372
21373
Bill Wendlingf24eb392009-01-04 23:12:30 +000021374ac_config_commands="$ac_config_commands unittests/Makefile"
21375
21376
Reid Spencera773bd52006-08-04 18:18:08 +000021377ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021378
21379
Reid Spencera773bd52006-08-04 18:18:08 +000021380ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021381
21382
Reid Spencera773bd52006-08-04 18:18:08 +000021383ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021384
21385
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021386ac_config_commands="$ac_config_commands bindings/Makefile"
21387
21388
21389ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21390
21391
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021392
John Criswell7a73b802003-06-30 21:59:07 +000021393cat >confcache <<\_ACEOF
21394# This file is a shell script that caches the results of configure
21395# tests run on this system so they can be shared between configure
21396# scripts and configure runs, see configure's option --config-cache.
21397# It is not useful on other systems. If it contains results you don't
21398# want to keep, you may remove or edit it.
21399#
21400# config.status only pays attention to the cache file if you give it
21401# the --recheck option to rerun configure.
21402#
John Criswell0c38eaf2003-09-10 15:17:25 +000021403# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021404# loading this file, other *unset* `ac_cv_foo' will be assigned the
21405# following values.
21406
21407_ACEOF
21408
21409# The following way of writing the cache mishandles newlines in values,
21410# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021411# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021412# Ultrix sh set writes to stderr and can't be redirected directly,
21413# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021414(
21415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21416 eval ac_val=\$$ac_var
21417 case $ac_val in #(
21418 *${as_nl}*)
21419 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021420 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21421echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021422 esac
21423 case $ac_var in #(
21424 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021426 esac ;;
21427 esac
21428 done
21429
John Criswell7a73b802003-06-30 21:59:07 +000021430 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021431 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21432 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021433 # `set' does not quote correctly, so add quotes (double-quote
21434 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021435 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021436 "s/'/'\\\\''/g;
21437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021438 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021439 *)
21440 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021442 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021443 esac |
21444 sort
21445) |
John Criswell7a73b802003-06-30 21:59:07 +000021446 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021447 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021448 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021449 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21451 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021452 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21453 :end' >>confcache
21454if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21455 if test -w "$cache_file"; then
21456 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021457 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21458echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021459 cat confcache >$cache_file
21460 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21462echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021463 fi
21464fi
21465rm -f confcache
21466
21467test "x$prefix" = xNONE && prefix=$ac_default_prefix
21468# Let make expand exec_prefix.
21469test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21470
John Criswell7a73b802003-06-30 21:59:07 +000021471DEFS=-DHAVE_CONFIG_H
21472
John Criswell0c38eaf2003-09-10 15:17:25 +000021473ac_libobjs=
21474ac_ltlibobjs=
21475for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21476 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21480 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21482 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021483done
21484LIBOBJS=$ac_libobjs
21485
21486LTLIBOBJS=$ac_ltlibobjs
21487
21488
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021489if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21491Usually this means the macro was only invoked conditionally." >&5
21492echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21493Usually this means the macro was only invoked conditionally." >&2;}
21494 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021495fi
21496if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021497 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21498Usually this means the macro was only invoked conditionally." >&5
21499echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21500Usually this means the macro was only invoked conditionally." >&2;}
21501 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021502fi
John Criswell7a73b802003-06-30 21:59:07 +000021503
21504: ${CONFIG_STATUS=./config.status}
21505ac_clean_files_save=$ac_clean_files
21506ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021507{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21508echo "$as_me: creating $CONFIG_STATUS" >&6;}
21509cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021510#! $SHELL
21511# Generated by $as_me.
21512# Run this file to recreate the current configuration.
21513# Compiler output produced by configure, useful for debugging
21514# configure, is in config.log if it exists.
21515
21516debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021517ac_cs_recheck=false
21518ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021519SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021520_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522cat >>$CONFIG_STATUS <<\_ACEOF
21523## --------------------- ##
21524## M4sh Initialization. ##
21525## --------------------- ##
21526
21527# Be Bourne compatible
21528if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021529 emulate sh
21530 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021532 # is contrary to our usage. Disable this feature.
21533 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021534 setopt NO_GLOB_SUBST
21535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021538BIN_SH=xpg4; export BIN_SH # for Tru64
21539DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021540
John Criswell7a73b802003-06-30 21:59:07 +000021541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542# PATH needs CR
21543# Avoid depending upon Character Ranges.
21544as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547as_cr_digits='0123456789'
21548as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021549
21550# The user is always right.
21551if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552 echo "#! /bin/sh" >conf$$.sh
21553 echo "exit 0" >>conf$$.sh
21554 chmod +x conf$$.sh
21555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21556 PATH_SEPARATOR=';'
21557 else
21558 PATH_SEPARATOR=:
21559 fi
21560 rm -f conf$$.sh
21561fi
21562
21563# Support unset when possible.
21564if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21565 as_unset=unset
21566else
21567 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021568fi
John Criswell7a73b802003-06-30 21:59:07 +000021569
Reid Spencera773bd52006-08-04 18:18:08 +000021570
21571# IFS
21572# We need space, tab and new line, in precisely that order. Quoting is
21573# there to prevent editors from complaining about space-tab.
21574# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21575# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021576as_nl='
21577'
Reid Spencera773bd52006-08-04 18:18:08 +000021578IFS=" "" $as_nl"
21579
21580# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021582 *[\\/]* ) as_myself=$0 ;;
21583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021584for as_dir in $PATH
21585do
21586 IFS=$as_save_IFS
21587 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21589done
Reid Spencera773bd52006-08-04 18:18:08 +000021590IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021591
Reid Spencera773bd52006-08-04 18:18:08 +000021592 ;;
21593esac
21594# We did not find ourselves, most probably we were run as `sh COMMAND'
21595# in which case we are not to be found in the path.
21596if test "x$as_myself" = x; then
21597 as_myself=$0
21598fi
21599if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021600 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21601 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021602fi
21603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604# Work around bugs in pre-3.0 UWIN ksh.
21605for as_var in ENV MAIL MAILPATH
21606do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021607done
21608PS1='$ '
21609PS2='> '
21610PS4='+ '
21611
21612# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613for as_var in \
21614 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21615 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21616 LC_TELEPHONE LC_TIME
21617do
21618 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21619 eval $as_var=C; export $as_var
21620 else
21621 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021622 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021623done
Torok Edwin871384f2010-01-26 08:50:50 +000021624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021626if expr a : '\(a\)' >/dev/null 2>&1 &&
21627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21628 as_expr=expr
21629else
21630 as_expr=false
21631fi
21632
21633if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21634 as_basename=basename
21635else
21636 as_basename=false
21637fi
21638
21639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021640# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021641as_me=`$as_basename -- "$0" ||
21642$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21643 X"$0" : 'X\(//\)$' \| \
21644 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021645echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021646 sed '/^.*\/\([^/][^/]*\)\/*$/{
21647 s//\1/
21648 q
21649 }
21650 /^X\/\(\/\/\)$/{
21651 s//\1/
21652 q
21653 }
21654 /^X\/\(\/\).*/{
21655 s//\1/
21656 q
21657 }
21658 s/.*/./; q'`
21659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021660# CDPATH.
21661$as_unset CDPATH
21662
21663
21664
21665 as_lineno_1=$LINENO
21666 as_lineno_2=$LINENO
21667 test "x$as_lineno_1" != "x$as_lineno_2" &&
21668 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21669
21670 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21671 # uniformly replaced by the line number. The first 'sed' inserts a
21672 # line-number line after each line using $LINENO; the second 'sed'
21673 # does the real work. The second script uses 'N' to pair each
21674 # line-number line with the line containing $LINENO, and appends
21675 # trailing '-' during substitution so that $LINENO is not a special
21676 # case at line end.
21677 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21678 # scripts with optimization help from Paolo Bonzini. Blame Lee
21679 # E. McMahon (1931-1989) for sed's syntax. :-)
21680 sed -n '
21681 p
21682 /[$]LINENO/=
21683 ' <$as_myself |
21684 sed '
21685 s/[$]LINENO.*/&-/
21686 t lineno
21687 b
21688 :lineno
21689 N
21690 :loop
21691 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21692 t loop
21693 s/-\n.*//
21694 ' >$as_me.lineno &&
21695 chmod +x "$as_me.lineno" ||
21696 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21697 { (exit 1); exit 1; }; }
21698
21699 # Don't try to exec as it changes $[0], causing all sort of problems
21700 # (the dirname of $[0] is not the place where we might find the
21701 # original and so on. Autoconf is especially sensitive to this).
21702 . "./$as_me.lineno"
21703 # Exit status is that of the last command.
21704 exit
21705}
21706
21707
21708if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21709 as_dirname=dirname
21710else
21711 as_dirname=false
21712fi
Reid Spencera773bd52006-08-04 18:18:08 +000021713
21714ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021715case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021716-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021717 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021718 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021720 esac;;
21721*)
21722 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021723esac
21724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021725if expr a : '\(a\)' >/dev/null 2>&1 &&
21726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21727 as_expr=expr
21728else
21729 as_expr=false
21730fi
21731
John Criswell7a73b802003-06-30 21:59:07 +000021732rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021733if test -d conf$$.dir; then
21734 rm -f conf$$.dir/conf$$.file
21735else
21736 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021737 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021739echo >conf$$.file
21740if ln -s conf$$.file conf$$ 2>/dev/null; then
21741 as_ln_s='ln -s'
21742 # ... but there are two gotchas:
21743 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21744 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21745 # In both cases, we have to default to `cp -p'.
21746 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021747 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021748elif ln conf$$.file conf$$ 2>/dev/null; then
21749 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021750else
21751 as_ln_s='cp -p'
21752fi
Reid Spencera773bd52006-08-04 18:18:08 +000021753rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21754rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021755
John Criswell0c38eaf2003-09-10 15:17:25 +000021756if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021757 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021758else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021759 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021760 as_mkdir_p=false
21761fi
21762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21764# systems may use methods other than mode bits to determine executability.
21765cat >conf$$.file <<_ASEOF
21766#! /bin/sh
21767exit 0
21768_ASEOF
21769chmod +x conf$$.file
21770if test -x conf$$.file >/dev/null 2>&1; then
21771 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021773 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021774fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021776
21777# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021778as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021779
21780# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021781as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021782
21783
John Criswell7a73b802003-06-30 21:59:07 +000021784exec 6>&1
21785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021787# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021788# values after options handling.
21789ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021790This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021792
21793 CONFIG_FILES = $CONFIG_FILES
21794 CONFIG_HEADERS = $CONFIG_HEADERS
21795 CONFIG_LINKS = $CONFIG_LINKS
21796 CONFIG_COMMANDS = $CONFIG_COMMANDS
21797 $ $0 $@
21798
Reid Spencera773bd52006-08-04 18:18:08 +000021799on `(hostname || uname -n) 2>/dev/null | sed 1q`
21800"
21801
John Criswell7a73b802003-06-30 21:59:07 +000021802_ACEOF
21803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021805# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021806config_files="$ac_config_files"
21807config_headers="$ac_config_headers"
21808config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021809
Reid Spencera773bd52006-08-04 18:18:08 +000021810_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021813ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021814\`$as_me' instantiates files from templates according to the
21815current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021817Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021818
21819 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820 -V, --version print version number, then exit
21821 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021822 -d, --debug don't remove temporary files
21823 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824 --file=FILE[:TEMPLATE]
21825 instantiate the configuration file FILE
21826 --header=FILE[:TEMPLATE]
21827 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021828
21829Configuration files:
21830$config_files
21831
21832Configuration headers:
21833$config_headers
21834
John Criswellc764fbc2003-09-06 15:17:13 +000021835Configuration commands:
21836$config_commands
21837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021839
Reid Spencera773bd52006-08-04 18:18:08 +000021840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021842ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021843LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844configured by $0, generated by GNU Autoconf 2.60,
21845 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021848This config.status script is free software; the Free Software Foundation
21849gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021850
21851ac_pwd='$ac_pwd'
21852srcdir='$srcdir'
21853INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021854_ACEOF
21855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021856cat >>$CONFIG_STATUS <<\_ACEOF
21857# If no file are specified by the user, then we need to provide default
21858# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021859ac_need_defaults=:
21860while test $# != 0
21861do
21862 case $1 in
21863 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21865 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021866 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021867 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021868 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021869 ac_option=$1
21870 ac_optarg=$2
21871 ac_shift=shift
21872 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021873 esac
21874
John Criswell0c38eaf2003-09-10 15:17:25 +000021875 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021876 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21878 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021879 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021880 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021881 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021882 debug=: ;;
21883 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021884 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021885 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021886 ac_need_defaults=false;;
21887 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021888 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021890 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021891 --he | --h)
21892 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893 { echo "$as_me: error: ambiguous option: $1
21894Try \`$0 --help' for more information." >&2
21895 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021896 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21900 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021901
21902 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903 -*) { echo "$as_me: error: unrecognized option: $1
21904Try \`$0 --help' for more information." >&2
21905 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021908 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021909
21910 esac
21911 shift
21912done
21913
John Criswell0c38eaf2003-09-10 15:17:25 +000021914ac_configure_extra_args=
21915
21916if $ac_cs_silent; then
21917 exec 6>/dev/null
21918 ac_configure_extra_args="$ac_configure_extra_args --silent"
21919fi
21920
21921_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021923if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21925 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021926 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021927 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021928fi
21929
John Criswell7a73b802003-06-30 21:59:07 +000021930_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021931cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021932exec 5>>config.log
21933{
21934 echo
21935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21936## Running $as_me. ##
21937_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021939} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021940
Reid Spencera773bd52006-08-04 18:18:08 +000021941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021942cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021943#
Reid Spencera773bd52006-08-04 18:18:08 +000021944# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021945#
Reid Spencerc0682832005-02-24 19:05:19 +000021946llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021947
21948_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021951
21952# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021953for ac_config_target in $ac_config_targets
21954do
Reid Spencera773bd52006-08-04 18:18:08 +000021955 case $ac_config_target in
21956 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021957 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021958 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21959 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021960 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021961 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021962 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021963 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021964 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021965 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021966 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21967 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021968 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021969 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21970 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21971 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21972 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21973 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021974 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021975 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21976 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021977 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021978 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21979 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21980 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021981 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21982 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021984 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21985echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21986 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021987 esac
21988done
21989
Reid Spencera773bd52006-08-04 18:18:08 +000021990
John Criswell7a73b802003-06-30 21:59:07 +000021991# If the user did not use the arguments to specify the items to instantiate,
21992# then the envvar interface is used. Set only those that are not.
21993# We use the long form for the default assignment because of an extremely
21994# bizarre bug on SunOS 4.1.3.
21995if $ac_need_defaults; then
21996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021999fi
22000
John Criswell0c38eaf2003-09-10 15:17:25 +000022001# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022002# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022003# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022004# Hook for its removal unless debugging.
22005# Note that there is a small window in which the directory will not be cleaned:
22006# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022007$debug ||
22008{
Reid Spencera773bd52006-08-04 18:18:08 +000022009 tmp=
22010 trap 'exit_status=$?
22011 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22012' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022013 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022014}
John Criswell7a73b802003-06-30 21:59:07 +000022015# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022016
John Criswell7a73b802003-06-30 21:59:07 +000022017{
Reid Spencera773bd52006-08-04 18:18:08 +000022018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022019 test -n "$tmp" && test -d "$tmp"
22020} ||
22021{
Reid Spencera773bd52006-08-04 18:18:08 +000022022 tmp=./conf$$-$RANDOM
22023 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022024} ||
22025{
22026 echo "$me: cannot create a temporary directory in ." >&2
22027 { (exit 1); exit 1; }
22028}
John Criswell7a73b802003-06-30 21:59:07 +000022029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022030#
22031# Set up the sed scripts for CONFIG_FILES section.
22032#
22033
22034# No need to generate the scripts if there are no CONFIG_FILES.
22035# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022036if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022037
22038_ACEOF
22039
Reid Spencera773bd52006-08-04 18:18:08 +000022040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041
Reid Spencera773bd52006-08-04 18:18:08 +000022042ac_delim='%!_!# '
22043for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044 cat >conf$$subs.sed <<_ACEOF
22045SHELL!$SHELL$ac_delim
22046PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22047PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22048PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22049PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22050PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22051PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22052exec_prefix!$exec_prefix$ac_delim
22053prefix!$prefix$ac_delim
22054program_transform_name!$program_transform_name$ac_delim
22055bindir!$bindir$ac_delim
22056sbindir!$sbindir$ac_delim
22057libexecdir!$libexecdir$ac_delim
22058datarootdir!$datarootdir$ac_delim
22059datadir!$datadir$ac_delim
22060sysconfdir!$sysconfdir$ac_delim
22061sharedstatedir!$sharedstatedir$ac_delim
22062localstatedir!$localstatedir$ac_delim
22063includedir!$includedir$ac_delim
22064oldincludedir!$oldincludedir$ac_delim
22065docdir!$docdir$ac_delim
22066infodir!$infodir$ac_delim
22067htmldir!$htmldir$ac_delim
22068dvidir!$dvidir$ac_delim
22069pdfdir!$pdfdir$ac_delim
22070psdir!$psdir$ac_delim
22071libdir!$libdir$ac_delim
22072localedir!$localedir$ac_delim
22073mandir!$mandir$ac_delim
22074DEFS!$DEFS$ac_delim
22075ECHO_C!$ECHO_C$ac_delim
22076ECHO_N!$ECHO_N$ac_delim
22077ECHO_T!$ECHO_T$ac_delim
22078LIBS!$LIBS$ac_delim
22079build_alias!$build_alias$ac_delim
22080host_alias!$host_alias$ac_delim
22081target_alias!$target_alias$ac_delim
22082LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022083CC!$CC$ac_delim
22084CFLAGS!$CFLAGS$ac_delim
22085LDFLAGS!$LDFLAGS$ac_delim
22086CPPFLAGS!$CPPFLAGS$ac_delim
22087ac_ct_CC!$ac_ct_CC$ac_delim
22088EXEEXT!$EXEEXT$ac_delim
22089OBJEXT!$OBJEXT$ac_delim
22090CXX!$CXX$ac_delim
22091CXXFLAGS!$CXXFLAGS$ac_delim
22092ac_ct_CXX!$ac_ct_CXX$ac_delim
22093CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022094subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022095ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22096LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022097build!$build$ac_delim
22098build_cpu!$build_cpu$ac_delim
22099build_vendor!$build_vendor$ac_delim
22100build_os!$build_os$ac_delim
22101host!$host$ac_delim
22102host_cpu!$host_cpu$ac_delim
22103host_vendor!$host_vendor$ac_delim
22104host_os!$host_os$ac_delim
22105target!$target$ac_delim
22106target_cpu!$target_cpu$ac_delim
22107target_vendor!$target_vendor$ac_delim
22108target_os!$target_os$ac_delim
22109OS!$OS$ac_delim
22110HOST_OS!$HOST_OS$ac_delim
22111TARGET_OS!$TARGET_OS$ac_delim
22112LINKALL!$LINKALL$ac_delim
22113NOLINKALL!$NOLINKALL$ac_delim
22114LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22115LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22116ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022117HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022118ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022119GREP!$GREP$ac_delim
22120EGREP!$EGREP$ac_delim
22121LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22122BUILD_CC!$BUILD_CC$ac_delim
22123BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22124BUILD_CXX!$BUILD_CXX$ac_delim
22125CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022126ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022127ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022128ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22129ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22130DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022131ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022132ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22133EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22134DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22135DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22136JIT!$JIT$ac_delim
22137TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022138ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022139ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022140LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022141ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022142_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022145 break
22146 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022147 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22148echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22149 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022150 else
22151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022152 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022153done
22154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022155ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22156if test -n "$ac_eof"; then
22157 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22158 ac_eof=`expr $ac_eof + 1`
22159fi
22160
22161cat >>$CONFIG_STATUS <<_ACEOF
22162cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022165sed '
22166s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22167s/^/s,@/; s/!/@,|#_!!_#|/
22168:n
22169t n
22170s/'"$ac_delim"'$/,g/; t
22171s/$/\\/; p
22172N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22173' >>$CONFIG_STATUS <conf$$subs.sed
22174rm -f conf$$subs.sed
22175cat >>$CONFIG_STATUS <<_ACEOF
22176CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022177_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022178
22179
22180ac_delim='%!_!# '
22181for ac_last_try in false false false false false :; do
22182 cat >conf$$subs.sed <<_ACEOF
Eric Christopher09a88732012-08-03 19:58:20 +000022183ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022184ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022185ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022186ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022187TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22188LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22189LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022190LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022191LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022192OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022193EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022194EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022195CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022196BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022197INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198NM!$NM$ac_delim
22199ifGNUmake!$ifGNUmake$ac_delim
22200LN_S!$LN_S$ac_delim
22201CMP!$CMP$ac_delim
22202CP!$CP$ac_delim
22203DATE!$DATE$ac_delim
22204FIND!$FIND$ac_delim
22205MKDIR!$MKDIR$ac_delim
22206MV!$MV$ac_delim
22207RANLIB!$RANLIB$ac_delim
22208AR!$AR$ac_delim
22209RM!$RM$ac_delim
22210SED!$SED$ac_delim
22211TAR!$TAR$ac_delim
22212BINPWD!$BINPWD$ac_delim
22213GRAPHVIZ!$GRAPHVIZ$ac_delim
22214DOT!$DOT$ac_delim
22215FDP!$FDP$ac_delim
22216NEATO!$NEATO$ac_delim
22217TWOPI!$TWOPI$ac_delim
22218CIRCO!$CIRCO$ac_delim
22219GV!$GV$ac_delim
22220DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022221XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022222INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22223INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22224INSTALL_DATA!$INSTALL_DATA$ac_delim
22225BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022226CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022227DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022228GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022229GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022230PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022231ZIP!$ZIP$ac_delim
22232OCAMLC!$OCAMLC$ac_delim
22233OCAMLOPT!$OCAMLOPT$ac_delim
22234OCAMLDEP!$OCAMLDEP$ac_delim
22235OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022236GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022237HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022238INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22239INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22240CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22241CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22242LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022243NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22244NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022245COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246USE_UDIS86!$USE_UDIS86$ac_delim
22247USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022248USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22249INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22250INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022251XML2CONFIG!$XML2CONFIG$ac_delim
22252LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22253LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022254HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22255HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22256MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022257SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022258SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022259LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22260LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22261LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22262LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22263LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22264LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22265LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22266LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22267LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22268LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22269BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22270ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022271OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22272ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22273RPATH!$RPATH$ac_delim
22274RDYNAMIC!$RDYNAMIC$ac_delim
22275LIBOBJS!$LIBOBJS$ac_delim
22276LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022277_ACEOF
22278
Eric Christopher09a88732012-08-03 19:58:20 +000022279 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022280 break
22281 elif $ac_last_try; then
22282 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22283echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22284 { (exit 1); exit 1; }; }
22285 else
22286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22287 fi
22288done
22289
22290ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22291if test -n "$ac_eof"; then
22292 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22293 ac_eof=`expr $ac_eof + 1`
22294fi
22295
22296cat >>$CONFIG_STATUS <<_ACEOF
22297cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022298/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22299_ACEOF
22300sed '
22301s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22302s/^/s,@/; s/!/@,|#_!!_#|/
22303:n
22304t n
22305s/'"$ac_delim"'$/,g/; t
22306s/$/\\/; p
22307N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22308' >>$CONFIG_STATUS <conf$$subs.sed
22309rm -f conf$$subs.sed
22310cat >>$CONFIG_STATUS <<_ACEOF
22311:end
22312s/|#_!!_#|//g
22313CEOF$ac_eof
22314_ACEOF
22315
22316
Reid Spencera773bd52006-08-04 18:18:08 +000022317# VPATH may cause trouble with some makes, so we remove $(srcdir),
22318# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22319# trailing colons and then remove the whole line if VPATH becomes empty
22320# (actually we leave an empty line to preserve line numbers).
22321if test "x$srcdir" = x.; then
22322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22323s/:*\$(srcdir):*/:/
22324s/:*\${srcdir}:*/:/
22325s/:*@srcdir@:*/:/
22326s/^\([^=]*=[ ]*\):*/\1/
22327s/:*$//
22328s/^[^=]*=[ ]*$//
22329}'
22330fi
22331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022332cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022333fi # test -n "$CONFIG_FILES"
22334
Reid Spencera773bd52006-08-04 18:18:08 +000022335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022336for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022337do
22338 case $ac_tag in
22339 :[FHLC]) ac_mode=$ac_tag; continue;;
22340 esac
22341 case $ac_mode$ac_tag in
22342 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022343 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22344echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22345 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022346 :[FH]-) ac_tag=-:-;;
22347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22348 esac
22349 ac_save_IFS=$IFS
22350 IFS=:
22351 set x $ac_tag
22352 IFS=$ac_save_IFS
22353 shift
22354 ac_file=$1
22355 shift
22356
22357 case $ac_mode in
22358 :L) ac_source=$1;;
22359 :[FH])
22360 ac_file_inputs=
22361 for ac_f
22362 do
22363 case $ac_f in
22364 -) ac_f="$tmp/stdin";;
22365 *) # Look for the file first in the build tree, then in the source tree
22366 # (if the path is not absolute). The absolute path cannot be DOS-style,
22367 # because $ac_f cannot contain `:'.
22368 test -f "$ac_f" ||
22369 case $ac_f in
22370 [\\/$]*) false;;
22371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22372 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022373 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22374echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22375 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022376 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022377 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022378 done
22379
22380 # Let's still pretend it is `configure' which instantiates (i.e., don't
22381 # use $as_me), people would be surprised to read:
22382 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022383 configure_input="Generated from "`IFS=:
22384 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022385 if test x"$ac_file" != x-; then
22386 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022387 { echo "$as_me:$LINENO: creating $ac_file" >&5
22388echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022389 fi
22390
22391 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022392 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022393 esac
22394 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022395 esac
22396
Reid Spencera773bd52006-08-04 18:18:08 +000022397 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022398$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022399 X"$ac_file" : 'X\(//\)[^/]' \| \
22400 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022402echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22404 s//\1/
22405 q
22406 }
22407 /^X\(\/\/\)[^/].*/{
22408 s//\1/
22409 q
22410 }
22411 /^X\(\/\/\)$/{
22412 s//\1/
22413 q
22414 }
22415 /^X\(\/\).*/{
22416 s//\1/
22417 q
22418 }
22419 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022420 { as_dir="$ac_dir"
22421 case $as_dir in #(
22422 -*) as_dir=./$as_dir;;
22423 esac
22424 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22425 as_dirs=
22426 while :; do
22427 case $as_dir in #(
22428 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22429 *) as_qdir=$as_dir;;
22430 esac
22431 as_dirs="'$as_qdir' $as_dirs"
22432 as_dir=`$as_dirname -- "$as_dir" ||
22433$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22434 X"$as_dir" : 'X\(//\)[^/]' \| \
22435 X"$as_dir" : 'X\(//\)$' \| \
22436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22437echo X"$as_dir" |
22438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22439 s//\1/
22440 q
22441 }
22442 /^X\(\/\/\)[^/].*/{
22443 s//\1/
22444 q
22445 }
22446 /^X\(\/\/\)$/{
22447 s//\1/
22448 q
22449 }
22450 /^X\(\/\).*/{
22451 s//\1/
22452 q
22453 }
22454 s/.*/./; q'`
22455 test -d "$as_dir" && break
22456 done
22457 test -z "$as_dirs" || eval "mkdir $as_dirs"
22458 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22459echo "$as_me: error: cannot create directory $as_dir" >&2;}
22460 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022461 ac_builddir=.
22462
Reid Spencera773bd52006-08-04 18:18:08 +000022463case "$ac_dir" in
22464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22465*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022467 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022468 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022469 case $ac_top_builddir_sub in
22470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22472 esac ;;
22473esac
22474ac_abs_top_builddir=$ac_pwd
22475ac_abs_builddir=$ac_pwd$ac_dir_suffix
22476# for backward compatibility:
22477ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022478
22479case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022480 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022481 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022482 ac_top_srcdir=$ac_top_builddir_sub
22483 ac_abs_top_srcdir=$ac_pwd ;;
22484 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022485 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022486 ac_top_srcdir=$srcdir
22487 ac_abs_top_srcdir=$srcdir ;;
22488 *) # Relative name.
22489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22490 ac_top_srcdir=$ac_top_build_prefix$srcdir
22491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022492esac
Reid Spencera773bd52006-08-04 18:18:08 +000022493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022494
John Criswell7a73b802003-06-30 21:59:07 +000022495
Reid Spencera773bd52006-08-04 18:18:08 +000022496 case $ac_mode in
22497 :F)
22498 #
22499 # CONFIG_FILE
22500 #
John Criswell7a73b802003-06-30 21:59:07 +000022501
22502 case $INSTALL in
22503 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022504 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022505 esac
John Criswell7a73b802003-06-30 21:59:07 +000022506_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022508cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022509# If the template does not know about datarootdir, expand it.
22510# FIXME: This hack should be removed a few years after 2.60.
22511ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022512
22513case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022514 p
22515 q
22516}
22517/@datadir@/p
22518/@docdir@/p
22519/@infodir@/p
22520/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022521/@mandir@/p
22522' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022523*datarootdir*) ac_datarootdir_seen=yes;;
22524*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022525 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22526echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022527_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022528cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022529 ac_datarootdir_hack='
22530 s&@datadir@&$datadir&g
22531 s&@docdir@&$docdir&g
22532 s&@infodir@&$infodir&g
22533 s&@localedir@&$localedir&g
22534 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022535 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022536esac
22537_ACEOF
22538
22539# Neutralize VPATH when `$srcdir' = `.'.
22540# Shell code in configure.ac might set extrasub.
22541# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022542cat >>$CONFIG_STATUS <<_ACEOF
22543 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022544$extrasub
22545_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022546cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022547:t
22548/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022549s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022550s&@top_builddir@&$ac_top_builddir_sub&;t t
22551s&@srcdir@&$ac_srcdir&;t t
22552s&@abs_srcdir@&$ac_abs_srcdir&;t t
22553s&@top_srcdir@&$ac_top_srcdir&;t t
22554s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22555s&@builddir@&$ac_builddir&;t t
22556s&@abs_builddir@&$ac_abs_builddir&;t t
22557s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22558s&@INSTALL@&$ac_INSTALL&;t t
22559$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022560" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022561
Reid Spencera773bd52006-08-04 18:18:08 +000022562test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22563 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022565 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022566which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022567echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022568which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022569
Reid Spencera773bd52006-08-04 18:18:08 +000022570 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022571 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022572 -) cat "$tmp/out"; rm -f "$tmp/out";;
22573 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22574 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022575 ;;
22576 :H)
22577 #
22578 # CONFIG_HEADER
22579 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022580_ACEOF
22581
22582# Transform confdefs.h into a sed script `conftest.defines', that
22583# substitutes the proper values into config.h.in to produce config.h.
22584rm -f conftest.defines conftest.tail
22585# First, append a space to every undef/define line, to ease matching.
22586echo 's/$/ /' >conftest.defines
22587# Then, protect against being on the right side of a sed subst, or in
22588# an unquoted here document, in config.status. If some macros were
22589# called several times there might be several #defines for the same
22590# symbol, which is useless. But do not sort them, since the last
22591# AC_DEFINE must be honored.
22592ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22593# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22594# NAME is the cpp macro being defined, VALUE is the value it is being given.
22595# PARAMS is the parameter list in the macro definition--in most cases, it's
22596# just an empty string.
22597ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22598ac_dB='\\)[ (].*,\\1define\\2'
22599ac_dC=' '
22600ac_dD=' ,'
22601
22602uniq confdefs.h |
22603 sed -n '
22604 t rset
22605 :rset
22606 s/^[ ]*#[ ]*define[ ][ ]*//
22607 t ok
22608 d
22609 :ok
22610 s/[\\&,]/\\&/g
22611 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22612 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22613 ' >>conftest.defines
22614
22615# Remove the space that was appended to ease matching.
22616# Then replace #undef with comments. This is necessary, for
22617# example, in the case of _POSIX_SOURCE, which is predefined and required
22618# on some systems where configure will not decide to define it.
22619# (The regexp can be short, since the line contains either #define or #undef.)
22620echo 's/ $//
22621s,^[ #]*u.*,/* & */,' >>conftest.defines
22622
22623# Break up conftest.defines:
22624ac_max_sed_lines=50
22625
22626# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22627# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22628# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22629# et cetera.
22630ac_in='$ac_file_inputs'
22631ac_out='"$tmp/out1"'
22632ac_nxt='"$tmp/out2"'
22633
22634while :
22635do
22636 # Write a here document:
22637 cat >>$CONFIG_STATUS <<_ACEOF
22638 # First, check the format of the line:
22639 cat >"\$tmp/defines.sed" <<\\CEOF
22640/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22641/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22642b
22643:def
22644_ACEOF
22645 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22646 echo 'CEOF
22647 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22648 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22649 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22650 grep . conftest.tail >/dev/null || break
22651 rm -f conftest.defines
22652 mv conftest.tail conftest.defines
22653done
22654rm -f conftest.defines conftest.tail
22655
22656echo "ac_result=$ac_in" >>$CONFIG_STATUS
22657cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022658 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022659 echo "/* $configure_input */" >"$tmp/config.h"
22660 cat "$ac_result" >>"$tmp/config.h"
22661 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22663echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022664 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022665 rm -f $ac_file
22666 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022667 fi
22668 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022669 echo "/* $configure_input */"
22670 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022671 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022672 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022673 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022675 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22676echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022677 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022678 esac
John Criswell7a73b802003-06-30 21:59:07 +000022679
Reid Spencera773bd52006-08-04 18:18:08 +000022680
22681 case $ac_file$ac_mode in
22682 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022683 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022684 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022685 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022686 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022687 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022688 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022689 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022690 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022692 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022693 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022694 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022695 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022696 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022698 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022700 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022702 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022704 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022705 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022706 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022707 ${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 +000022708
22709 esac
22710done # for ac_tag
22711
John Criswell7a73b802003-06-30 21:59:07 +000022712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022713{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022714_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022715chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022716ac_clean_files=$ac_clean_files_save
22717
22718
22719# configure is writing to config.log, and then calls config.status.
22720# config.status does its own redirection, appending to config.log.
22721# Unfortunately, on DOS this fails, as config.log is still kept open
22722# by configure, so config.status won't be able to write to it; its
22723# output is simply discarded. So we exec the FD to /dev/null,
22724# effectively closing config.log, so it can be properly (re)opened and
22725# appended to by config.status. When coming back to configure, we
22726# need to make the FD available again.
22727if test "$no_create" != yes; then
22728 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022729 ac_config_status_args=
22730 test "$silent" = yes &&
22731 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022732 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022734 exec 5>>config.log
22735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22736 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022737 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022738fi
22739
John Criswell12399a12003-09-30 15:55:44 +000022740#
22741# CONFIG_SUBDIRS section.
22742#
22743if test "$no_recursion" != yes; then
22744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022745 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022746 ac_sub_configure_args=
22747 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022748 eval "set x $ac_configure_args"
22749 shift
22750 for ac_arg
22751 do
John Criswell12399a12003-09-30 15:55:44 +000022752 if test -n "$ac_prev"; then
22753 ac_prev=
22754 continue
22755 fi
22756 case $ac_arg in
22757 -cache-file | --cache-file | --cache-fil | --cache-fi \
22758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22759 ac_prev=cache_file ;;
22760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22762 | --c=*)
22763 ;;
22764 --config-cache | -C)
22765 ;;
22766 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22767 ac_prev=srcdir ;;
22768 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22769 ;;
22770 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22771 ac_prev=prefix ;;
22772 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22773 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022774 *)
22775 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022776 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022777 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022778 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022779 esac
22780 done
22781
22782 # Always prepend --prefix to ensure using the same prefix
22783 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022784 ac_arg="--prefix=$prefix"
22785 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022786 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022787 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022788 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022789
22790 ac_popdir=`pwd`
22791 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22792
22793 # Do not complain, so a configure script can configure whichever
22794 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022795 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022796
Reid Spencera773bd52006-08-04 18:18:08 +000022797 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022798 echo "$as_me:$LINENO: $ac_msg" >&5
22799 echo "$ac_msg" >&6
22800 { as_dir="$ac_dir"
22801 case $as_dir in #(
22802 -*) as_dir=./$as_dir;;
22803 esac
22804 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22805 as_dirs=
22806 while :; do
22807 case $as_dir in #(
22808 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22809 *) as_qdir=$as_dir;;
22810 esac
22811 as_dirs="'$as_qdir' $as_dirs"
22812 as_dir=`$as_dirname -- "$as_dir" ||
22813$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22814 X"$as_dir" : 'X\(//\)[^/]' \| \
22815 X"$as_dir" : 'X\(//\)$' \| \
22816 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22817echo X"$as_dir" |
22818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22819 s//\1/
22820 q
22821 }
22822 /^X\(\/\/\)[^/].*/{
22823 s//\1/
22824 q
22825 }
22826 /^X\(\/\/\)$/{
22827 s//\1/
22828 q
22829 }
22830 /^X\(\/\).*/{
22831 s//\1/
22832 q
22833 }
22834 s/.*/./; q'`
22835 test -d "$as_dir" && break
22836 done
22837 test -z "$as_dirs" || eval "mkdir $as_dirs"
22838 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22839echo "$as_me: error: cannot create directory $as_dir" >&2;}
22840 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022841 ac_builddir=.
22842
Reid Spencera773bd52006-08-04 18:18:08 +000022843case "$ac_dir" in
22844.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22845*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022847 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022848 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022849 case $ac_top_builddir_sub in
22850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22852 esac ;;
22853esac
22854ac_abs_top_builddir=$ac_pwd
22855ac_abs_builddir=$ac_pwd$ac_dir_suffix
22856# for backward compatibility:
22857ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022858
22859case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022860 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022861 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022862 ac_top_srcdir=$ac_top_builddir_sub
22863 ac_abs_top_srcdir=$ac_pwd ;;
22864 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022865 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022866 ac_top_srcdir=$srcdir
22867 ac_abs_top_srcdir=$srcdir ;;
22868 *) # Relative name.
22869 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22870 ac_top_srcdir=$ac_top_build_prefix$srcdir
22871 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022872esac
Reid Spencera773bd52006-08-04 18:18:08 +000022873ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022874
22875
Reid Spencera773bd52006-08-04 18:18:08 +000022876 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022877
22878 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022879 if test -f "$ac_srcdir/configure.gnu"; then
22880 ac_sub_configure=$ac_srcdir/configure.gnu
22881 elif test -f "$ac_srcdir/configure"; then
22882 ac_sub_configure=$ac_srcdir/configure
22883 elif test -f "$ac_srcdir/configure.in"; then
22884 # This should be Cygnus configure.
22885 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022886 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022887 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22888echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022889 ac_sub_configure=
22890 fi
22891
22892 # The recursion is here.
22893 if test -n "$ac_sub_configure"; then
22894 # Make the cache file name correct relative to the subdirectory.
22895 case $cache_file in
22896 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022897 *) # Relative name.
22898 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022899 esac
22900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022901 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22902echo "$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 +000022903 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022904 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22905 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022906 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22907echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22908 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022909 fi
22910
Reid Spencera773bd52006-08-04 18:18:08 +000022911 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022912 done
22913fi
22914