blob: 348436fc4d284e2605d71b43690401fd5c459fe3 [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
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000711CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000713INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000737XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000742CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000743DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000744GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000745GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000746PDFROFF
747RUNTEST
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748TCLSH
749ZIP
750OCAMLC
751OCAMLOPT
752OCAMLDEP
753OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000754GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000755HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000756INSTALL_LTDL_TRUE
757INSTALL_LTDL_FALSE
758CONVENIENCE_LTDL_TRUE
759CONVENIENCE_LTDL_FALSE
760LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761NO_VARIADIC_MACROS
762NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000763COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764USE_UDIS86
765USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000766USE_INTEL_JITEVENTS
767INTEL_JITEVENTS_INCDIR
768INTEL_JITEVENTS_LIBDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000773SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVM_PREFIX
775LLVM_BINDIR
776LLVM_LIBDIR
777LLVM_DATADIR
778LLVM_DOCSDIR
779LLVM_ETCDIR
780LLVM_INCLUDEDIR
781LLVM_INFODIR
782LLVM_MANDIR
783LLVM_CONFIGTIME
784BINDINGS_TO_BUILD
785ALL_BINDINGS
786OCAML_LIBDIR
787ENABLE_VISIBILITY_INLINES_HIDDEN
788RPATH
789RDYNAMIC
790LIBOBJS
791LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000792ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000800CXX
801CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000802CCC
803CPP'
John Criswell0157f502010-03-19 21:31:39 +0000804ac_subdirs_all='projects/llvm-gcc
805projects/test-suite
806projects/llvm-test
807projects/poolalloc
808projects/llvm-poolalloc
809projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000811projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-java
814projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000815projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000816projects/llvm-kernel
817tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000844# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000853includedir='${prefix}/include'
854oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000864
865ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000866ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000871 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000872 ac_prev=
873 continue
874 fi
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
John Criswell7a73b802003-06-30 21:59:07 +0000880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
Reid Spencera773bd52006-08-04 18:18:08 +0000883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000908 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000910 datadir=$ac_optarg ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
John Criswell7a73b802003-06-30 21:59:07 +0000919 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000937
938 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Reid Spencera773bd52006-08-04 18:18:08 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
John Criswell7a73b802003-06-30 21:59:07 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Reid Spencera773bd52006-08-04 18:18:08 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
John Criswell7a73b802003-06-30 21:59:07 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Reid Spencera773bd52006-08-04 18:18:08 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
John Criswell7a73b802003-06-30 21:59:07 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001182 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001200fi
1201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001207do
Reid Spencera773bd52006-08-04 18:18:08 +00001208 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001209 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Reid Spencera773bd52006-08-04 18:18:08 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249
1250
John Criswell7a73b802003-06-30 21:59:07 +00001251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001279 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
Reid Spencera773bd52006-08-04 18:18:08 +00001285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001319\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
John Criswell7a73b802003-06-30 21:59:07 +00001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001385 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001392 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001393 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
David Greenea696d242007-06-28 19:36:08 +00001398 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001405 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001406 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001407 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001408 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001409 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001410 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001411 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001414 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001415 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001416 --enable-timestamps Enable embedding timestamp information in build
1417 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001418 --enable-targets Build specific host targets: all or
1419 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001420 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Justin Holewinski49683f32012-05-04 20:18:50 +00001421 xcore, msp430, ptx, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001424 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001430 --with-optimize-option Select the compiler options to use for optimized
1431 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001432 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001433 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1435 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001436 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001437 --with-clang-resource-dir
1438 Relative directory from the Clang binary for
1439 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001440 --with-c-include-dirs Colon separated list of directories clang will
1441 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001442 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001443 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001444 --with-binutils-include Specify path to binutils/include/ containing
1445 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001446 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001447 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001448 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001449 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001450 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001451 --with-oprofile=<prefix>
1452 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001453 --with-intel-jitevents=<vtune-amplifier-dir>
1454 Specify location of run-time support library for
1455 Intel JIT API
1456 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001459 CC C compiler command
1460 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001464 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001467 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
Eric Christopherf33ab862011-12-21 00:52:44 +00001472Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001474ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001480 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001481 ac_builddir=.
1482
Reid Spencera773bd52006-08-04 18:18:08 +00001483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001487 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001498
1499case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001500 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001501 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001512esac
Reid Spencera773bd52006-08-04 18:18:08 +00001513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001514
Reid Spencera773bd52006-08-04 18:18:08 +00001515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001523 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001527 done
1528fi
1529
Reid Spencera773bd52006-08-04 18:18:08 +00001530test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001531if $ac_init_version; then
1532 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001533LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001534generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001536Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001540
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001541Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001543 exit
John Criswell7a73b802003-06-30 21:59:07 +00001544fi
Reid Spencera773bd52006-08-04 18:18:08 +00001545cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001546This file contains any messages produced by compilers while
1547running configure, to aid debugging if configure makes a mistake.
1548
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001549It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001550generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001551
1552 $ $0 $@
1553
1554_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001555exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001556{
1557cat <<_ASUNAME
1558## --------- ##
1559## Platform. ##
1560## --------- ##
1561
1562hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1570
1571/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001574/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001575/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578
1579_ASUNAME
1580
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001586 echo "PATH: $as_dir"
1587done
Reid Spencera773bd52006-08-04 18:18:08 +00001588IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001589
1590} >&5
1591
1592cat >&5 <<_ACEOF
1593
1594
1595## ----------- ##
1596## Core tests. ##
1597## ----------- ##
1598
1599_ACEOF
1600
1601
1602# Keep a trace of the command line.
1603# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001604# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001605# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001606# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001607ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001608ac_configure_args0=
1609ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001610ac_must_keep_next=false
1611for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001612do
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 for ac_arg
1614 do
1615 case $ac_arg in
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1619 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001620 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 esac
1623 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001628 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630 case $ac_arg in
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 esac
1638 ;;
1639 -* ) ac_must_keep_next=true ;;
1640 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ;;
1644 esac
1645 done
John Criswell7a73b802003-06-30 21:59:07 +00001646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001649
1650# When interrupted or exit'd, cleanup temporary files, and complete
1651# config.log. We remove comments because anyway the quotes in there
1652# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001653# WARNING: Use '\'' to represent an apostrophe within the trap.
1654# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001655trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1657 {
1658 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001659
John Criswell7a73b802003-06-30 21:59:07 +00001660 cat <<\_ASBOX
1661## ---------------- ##
1662## Cache variables. ##
1663## ---------------- ##
1664_ASBOX
1665 echo
1666 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001667(
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1670 case $ac_val in #(
1671 *${as_nl}*)
1672 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001675 esac
1676 case $ac_var in #(
1677 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001678 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac ;;
1680 esac
1681 done
John Criswell7a73b802003-06-30 21:59:07 +00001682 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001685 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001689 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001692 esac |
1693 sort
1694)
John Criswell7a73b802003-06-30 21:59:07 +00001695 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001696
1697 cat <<\_ASBOX
1698## ----------------- ##
1699## Output variables. ##
1700## ----------------- ##
1701_ASBOX
1702 echo
1703 for ac_var in $ac_subst_vars
1704 do
Reid Spencera773bd52006-08-04 18:18:08 +00001705 eval ac_val=\$$ac_var
1706 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001708 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001709 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 done | sort
1711 echo
1712
1713 if test -n "$ac_subst_files"; then
1714 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001715## ------------------- ##
1716## File substitutions. ##
1717## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001718_ASBOX
1719 echo
1720 for ac_var in $ac_subst_files
1721 do
Reid Spencera773bd52006-08-04 18:18:08 +00001722 eval ac_val=\$$ac_var
1723 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001725 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001726 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 done | sort
1728 echo
1729 fi
1730
John Criswell7a73b802003-06-30 21:59:07 +00001731 if test -s confdefs.h; then
1732 cat <<\_ASBOX
1733## ----------- ##
1734## confdefs.h. ##
1735## ----------- ##
1736_ASBOX
1737 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001738 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001739 echo
1740 fi
1741 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001744 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001747 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001748' 0
John Criswell7a73b802003-06-30 21:59:07 +00001749for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001751done
1752ac_signal=0
1753
1754# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001755rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001756
1757# Predefined preprocessor variables.
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_NAME "$PACKAGE_NAME"
1761_ACEOF
1762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001763
John Criswell7a73b802003-06-30 21:59:07 +00001764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766_ACEOF
1767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768
John Criswell7a73b802003-06-30 21:59:07 +00001769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_VERSION "$PACKAGE_VERSION"
1771_ACEOF
1772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773
John Criswell7a73b802003-06-30 21:59:07 +00001774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_STRING "$PACKAGE_STRING"
1776_ACEOF
1777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778
John Criswell7a73b802003-06-30 21:59:07 +00001779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781_ACEOF
1782
1783
1784# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001786if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001788elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794shift
1795for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001796do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001800 sed 's/^/| /' "$ac_site_file" >&5
1801 . "$ac_site_file"
1802 fi
1803done
1804
1805if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001811 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001814 esac
1815 fi
1816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001819 >$cache_file
1820fi
1821
1822# Check that the precious variables saved in the cache have kept the same
1823# value.
1824ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001825for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001830 case $ac_old_set,$ac_new_set in
1831 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 ac_cache_corrupted=: ;;
1835 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,);;
1840 *)
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001849 fi;;
1850 esac
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1853 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001855 *) ac_arg=$ac_var=$ac_new_val ;;
1856 esac
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001860 esac
1861 fi
1862done
1863if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
Reid Spencera773bd52006-08-04 18:18:08 +00001894
John Criswell7a73b802003-06-30 21:59:07 +00001895ac_ext=c
1896ac_cpp='$CPP $CPPFLAGS'
1897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001903cat >>confdefs.h <<\_ACEOF
1904#define LLVM_VERSION_MAJOR 3
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001909#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001910_ACEOF
1911
1912
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001913LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001914
1915
1916
1917
1918
1919
1920
John Criswell7a73b802003-06-30 21:59:07 +00001921ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001922for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001923 if test -f "$ac_dir/install-sh"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/install-sh -c"
1926 break
1927 elif test -f "$ac_dir/install.sh"; then
1928 ac_aux_dir=$ac_dir
1929 ac_install_sh="$ac_aux_dir/install.sh -c"
1930 break
1931 elif test -f "$ac_dir/shtool"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/shtool install -c"
1934 break
1935 fi
John Criswell7a73b802003-06-30 21:59:07 +00001936done
1937if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001938 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1939echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1940 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001941fi
Reid Spencera773bd52006-08-04 18:18:08 +00001942
1943# These three variables are undocumented and unsupported,
1944# and are intended to be withdrawn in a future Autoconf release.
1945# They can cause serious problems if a builder's source tree is in a directory
1946# whose full name contains unusual characters.
1947ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1948ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1949ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1950
John Criswell7a73b802003-06-30 21:59:07 +00001951
John Criswell392aaa32003-07-22 19:18:09 +00001952
Reid Spencer2706f8c2004-09-19 23:53:36 +00001953if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001954 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001955 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1956echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1957 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001958 fi
John Criswell93e1c722003-09-15 17:04:06 +00001959fi
1960
Nick Lewycky83fc4472009-09-29 05:48:51 +00001961ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001962ac_cpp='$CPP $CPPFLAGS'
1963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001966if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001967 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001968 do
1969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1973if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001975else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001978else
1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980for as_dir in $PATH
1981do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001988 break 2
1989 fi
1990done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991done
Reid Spencera773bd52006-08-04 18:18:08 +00001992IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001993
1994fi
1995fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001996CC=$ac_cv_prog_CC
1997if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001998 { echo "$as_me:$LINENO: result: $CC" >&5
1999echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002001 { echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002003fi
2004
Reid Spencera773bd52006-08-04 18:18:08 +00002005
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002006 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002007 done
2008fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002009if test -z "$CC"; then
2010 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002011 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002012do
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002019else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002020 if test -n "$ac_ct_CC"; then
2021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002032 break 2
2033 fi
2034done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035done
Reid Spencera773bd52006-08-04 18:18:08 +00002036IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002037
2038fi
2039fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002042 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002045 { echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002047fi
2048
Reid Spencera773bd52006-08-04 18:18:08 +00002049
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002051done
John Criswell7a73b802003-06-30 21:59:07 +00002052
Reid Spencera773bd52006-08-04 18:18:08 +00002053 if test "x$ac_ct_CC" = x; then
2054 CC=""
2055 else
2056 case $cross_compiling:$ac_tool_warned in
2057yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002058{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2059whose name does not start with the host triplet. If you think this
2060configuration is useful to you, please write to autoconf@gnu.org." >&5
2061echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2062whose name does not start with the host triplet. If you think this
2063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002064ac_tool_warned=yes ;;
2065esac
2066 CC=$ac_ct_CC
2067 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068fi
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&5
2073echo "$as_me: error: no acceptable C compiler found in \$PATH
2074See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002076
John Criswell7a73b802003-06-30 21:59:07 +00002077# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078echo "$as_me:$LINENO: checking for C compiler version" >&5
2079ac_compiler=`set X $ac_compile; echo $2`
2080{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002081case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002087 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090{ (ac_try="$ac_compiler -v >&5"
2091case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094esac
2095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -v >&5") 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100{ (ac_try="$ac_compiler -V >&5"
2101case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104esac
2105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -V >&5") 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002111cat >conftest.$ac_ext <<_ACEOF
2112/* confdefs.h. */
2113_ACEOF
2114cat confdefs.h >>conftest.$ac_ext
2115cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002116/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002117
John Criswell7a73b802003-06-30 21:59:07 +00002118int
2119main ()
2120{
2121
2122 ;
2123 return 0;
2124}
2125_ACEOF
2126ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002127ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002128# Try to create an executable without -o first, disregard a.out.
2129# It will help us diagnose broken compilers, and finding out an intuition
2130# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002131{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2132echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2133ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134#
2135# List of possible output files, starting from the most likely.
2136# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2137# only as a last resort. b.out is created by i960 compilers.
2138ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2139#
2140# The IRIX 6 linker writes into existing files which may not be
2141# executable, retaining their permissions. Remove them first so a
2142# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002143ac_rmfiles=
2144for ac_file in $ac_files
2145do
2146 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002148 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2149 esac
2150done
2151rm -f $ac_rmfiles
2152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002153if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002154case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002159 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002160 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002163 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2164# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2165# in a Makefile. We should not override ac_cv_exeext if it was cached,
2166# so that the user can short-circuit this test for compilers unknown to
2167# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002168for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002169do
2170 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002171 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002173 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002174 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002175 # We found the default executable, but exeext='' is most
2176 # certainly right.
2177 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002178 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002179 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002180 then :; else
2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 fi
2183 # We set ac_cv_exeext here because the later test for it is not
2184 # safe: cross compilers may not add the suffix if given an `-o'
2185 # argument, so we may need to know it at that point already.
2186 # Even if this section looks crufty: it has the advantage of
2187 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002189 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002190 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002191 esac
2192done
Reid Spencera773bd52006-08-04 18:18:08 +00002193test "$ac_cv_exeext" = no && ac_cv_exeext=
2194
John Criswell7a73b802003-06-30 21:59:07 +00002195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002197sed 's/^/| /' conftest.$ac_ext >&5
2198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002199{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: C compiler cannot create executables
2202See \`config.log' for more details." >&2;}
2203 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002204fi
John Criswell7a73b802003-06-30 21:59:07 +00002205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002206ac_exeext=$ac_cv_exeext
2207{ echo "$as_me:$LINENO: result: $ac_file" >&5
2208echo "${ECHO_T}$ac_file" >&6; }
2209
2210# Check that the compiler produces executables we can run. If not, either
2211# the compiler is broken, or we cross compile.
2212{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2214# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215# If not cross compiling, check that we can run a simple program.
2216if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221esac
2222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223 (eval "$ac_try") 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 cross_compiling=no
2228 else
2229 if test "$cross_compiling" = maybe; then
2230 cross_compiling=yes
2231 else
2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233If you meant to cross compile, use \`--host'.
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: cannot run C compiled programs.
2236If you meant to cross compile, use \`--host'.
2237See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2239 fi
2240 fi
2241fi
2242{ echo "$as_me:$LINENO: result: yes" >&5
2243echo "${ECHO_T}yes" >&6; }
2244
2245rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002246ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002247# Check that the compiler produces executables we can run. If not, either
2248# the compiler is broken, or we cross compile.
2249{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2251{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252echo "${ECHO_T}$cross_compiling" >&6; }
2253
2254{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2256if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002257case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002262 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002263 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268# work properly (i.e., refer to `conftest.exe'), while it won't with
2269# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002270for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002272 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002275 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002276 * ) break;;
2277 esac
2278done
2279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002280 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281See \`config.log' for more details." >&5
2282echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002286
2287rm -f conftest$ac_cv_exeext
2288{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002290
2291rm -f conftest.$ac_ext
2292EXEEXT=$ac_cv_exeext
2293ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002294{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2296if test "${ac_cv_objext+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299 cat >conftest.$ac_ext <<_ACEOF
2300/* confdefs.h. */
2301_ACEOF
2302cat confdefs.h >>conftest.$ac_ext
2303cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002305
John Criswell7a73b802003-06-30 21:59:07 +00002306int
2307main ()
2308{
2309
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002315if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002316case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002321 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002322 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002325 for ac_file in conftest.o conftest.obj conftest.*; do
2326 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002327 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330 break;;
2331 esac
2332done
2333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002335sed 's/^/| /' conftest.$ac_ext >&5
2336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343
John Criswell7a73b802003-06-30 21:59:07 +00002344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002350{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355 cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h. */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002361
John Criswell7a73b802003-06-30 21:59:07 +00002362int
2363main ()
2364{
2365#ifndef __GNUC__
2366 choke me
2367#endif
2368
2369 ;
2370 return 0;
2371}
2372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373rm -f conftest.$ac_objext
2374if { (ac_try="$ac_compile"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compile") 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2401esac
2402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_try") 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002407 ac_compiler_gnu=yes
2408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414
Reid Spencera773bd52006-08-04 18:18:08 +00002415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002417
2418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2421GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422ac_test_CFLAGS=${CFLAGS+set}
2423ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2425echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2426if test "${ac_cv_prog_cc_g+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002428else
Reid Spencera773bd52006-08-04 18:18:08 +00002429 ac_save_c_werror_flag=$ac_c_werror_flag
2430 ac_c_werror_flag=yes
2431 ac_cv_prog_cc_g=no
2432 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433 cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h. */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002438/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002439
John Criswell7a73b802003-06-30 21:59:07 +00002440int
2441main ()
2442{
2443
2444 ;
2445 return 0;
2446}
2447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448rm -f conftest.$ac_objext
2449if { (ac_try="$ac_compile"
2450case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453esac
2454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2476esac
2477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484 echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 CFLAGS=""
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002493/* end confdefs.h. */
2494
2495int
2496main ()
2497{
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503rm -f conftest.$ac_objext
2504if { (ac_try="$ac_compile"
2505case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508esac
2509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>conftest.er1
2511 ac_status=$?
2512 grep -v '^ *+' conftest.er1 >conftest.err
2513 rm -f conftest.er1
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 :
Torok Edwin871384f2010-01-26 08:50:50 +00002538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002539 echo "$as_me: failed program was:" >&5
2540sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002543 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h. */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002549/* end confdefs.h. */
2550
2551int
2552main ()
2553{
2554
2555 ;
2556 return 0;
2557}
2558_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559rm -f conftest.$ac_objext
2560if { (ac_try="$ac_compile"
2561case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2564esac
2565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_compile") 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002593 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002594else
2595 echo "$as_me: failed program was:" >&5
2596sed 's/^/| /' conftest.$ac_ext >&5
2597
2598
John Criswell7a73b802003-06-30 21:59:07 +00002599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600
Reid Spencera773bd52006-08-04 18:18:08 +00002601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603
Reid Spencera773bd52006-08-04 18:18:08 +00002604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606
Reid Spencera773bd52006-08-04 18:18:08 +00002607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_c_werror_flag=$ac_save_c_werror_flag
2609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612if test "$ac_test_CFLAGS" = set; then
2613 CFLAGS=$ac_save_CFLAGS
2614elif test $ac_cv_prog_cc_g = yes; then
2615 if test "$GCC" = yes; then
2616 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002617 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002619 fi
2620else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621 if test "$GCC" = yes; then
2622 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002623 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002625 fi
2626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2628echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2629if test "${ac_cv_prog_cc_c89+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631else
Reid Spencera773bd52006-08-04 18:18:08 +00002632 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h. */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639/* end confdefs.h. */
2640#include <stdarg.h>
2641#include <stdio.h>
2642#include <sys/types.h>
2643#include <sys/stat.h>
2644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2645struct buf { int x; };
2646FILE * (*rcsopen) (struct buf *, struct stat *, int);
2647static char *e (p, i)
2648 char **p;
2649 int i;
2650{
2651 return p[i];
2652}
2653static char *f (char * (*g) (char **, int), char **p, ...)
2654{
2655 char *s;
2656 va_list v;
2657 va_start (v,p);
2658 s = g (p, va_arg (v,int));
2659 va_end (v);
2660 return s;
2661}
2662
2663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2664 function prototypes and stuff, but not '\xHH' hex character constants.
2665 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002666 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2668 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002669 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2671
Reid Spencera773bd52006-08-04 18:18:08 +00002672/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2673 inside strings and character constants. */
2674#define FOO(x) 'x'
2675int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2676
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002677int test (int i, double x);
2678struct s1 {int (*f) (int a);};
2679struct s2 {int (*f) (double a);};
2680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2681int argc;
2682char **argv;
2683int
2684main ()
2685{
2686return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2687 ;
2688 return 0;
2689}
2690_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002691for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693do
2694 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695 rm -f conftest.$ac_objext
2696if { (ac_try="$ac_compile"
2697case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002729 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002730else
2731 echo "$as_me: failed program was:" >&5
2732sed 's/^/| /' conftest.$ac_ext >&5
2733
2734
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002736
Reid Spencera773bd52006-08-04 18:18:08 +00002737rm -f core conftest.err conftest.$ac_objext
2738 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002739done
Reid Spencera773bd52006-08-04 18:18:08 +00002740rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002741CC=$ac_save_CC
2742
2743fi
Reid Spencera773bd52006-08-04 18:18:08 +00002744# AC_CACHE_VAL
2745case "x$ac_cv_prog_cc_c89" in
2746 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747 { echo "$as_me:$LINENO: result: none needed" >&5
2748echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002749 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002750 { echo "$as_me:$LINENO: result: unsupported" >&5
2751echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002753 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2755echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002756esac
2757
John Criswell0c38eaf2003-09-10 15:17:25 +00002758
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002759ac_ext=c
2760ac_cpp='$CPP $CPPFLAGS'
2761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764
Eric Christopherffee5722011-09-16 20:36:25 +00002765ac_ext=cpp
2766ac_cpp='$CXXCPP $CPPFLAGS'
2767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2770if test -z "$CXX"; then
2771 if test -n "$CCC"; then
2772 CXX=$CCC
2773 else
2774 if test -n "$ac_tool_prefix"; then
2775 for ac_prog in clang++ llvm-g++ g++
2776 do
2777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781if test "${ac_cv_prog_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 if test -n "$CXX"; then
2785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804CXX=$ac_cv_prog_CXX
2805if test -n "$CXX"; then
2806 { echo "$as_me:$LINENO: result: $CXX" >&5
2807echo "${ECHO_T}$CXX" >&6; }
2808else
2809 { echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6; }
2811fi
2812
2813
2814 test -n "$CXX" && break
2815 done
2816fi
2817if test -z "$CXX"; then
2818 ac_ct_CXX=$CXX
2819 for ac_prog in clang++ llvm-g++ g++
2820do
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822set dummy $ac_prog; ac_word=$2
2823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828 if test -n "$ac_ct_CXX"; then
2829 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CXX="$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843done
2844IFS=$as_save_IFS
2845
2846fi
2847fi
2848ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2849if test -n "$ac_ct_CXX"; then
2850 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2851echo "${ECHO_T}$ac_ct_CXX" >&6; }
2852else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6; }
2855fi
2856
2857
2858 test -n "$ac_ct_CXX" && break
2859done
2860
2861 if test "x$ac_ct_CXX" = x; then
2862 CXX="g++"
2863 else
2864 case $cross_compiling:$ac_tool_warned in
2865yes:)
2866{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2867whose name does not start with the host triplet. If you think this
2868configuration is useful to you, please write to autoconf@gnu.org." >&5
2869echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2870whose name does not start with the host triplet. If you think this
2871configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2872ac_tool_warned=yes ;;
2873esac
2874 CXX=$ac_ct_CXX
2875 fi
2876fi
2877
2878 fi
2879fi
2880# Provide some information about the compiler.
2881echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2882ac_compiler=`set X $ac_compile; echo $2`
2883{ (ac_try="$ac_compiler --version >&5"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler --version >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893{ (ac_try="$ac_compiler -v >&5"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -v >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903{ (ac_try="$ac_compiler -V >&5"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -V >&5") 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913
2914{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2915echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2916if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h. */
2925
2926int
2927main ()
2928{
2929#ifndef __GNUC__
2930 choke me
2931#endif
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937rm -f conftest.$ac_objext
2938if { (ac_try="$ac_compile"
2939case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942esac
2943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_compiler_gnu=yes
2972else
2973 echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 ac_compiler_gnu=no
2977fi
2978
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2981
2982fi
2983{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2984echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2985GXX=`test $ac_compiler_gnu = yes && echo yes`
2986ac_test_CXXFLAGS=${CXXFLAGS+set}
2987ac_save_CXXFLAGS=$CXXFLAGS
2988{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2989echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2990if test "${ac_cv_prog_cxx_g+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2994 ac_cxx_werror_flag=yes
2995 ac_cv_prog_cxx_g=no
2996 CXXFLAGS="-g"
2997 cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h. */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h. */
3003
3004int
3005main ()
3006{
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (ac_try="$ac_compile"
3014case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 ac_cv_prog_cxx_g=yes
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 CXXFLAGS=""
3052 cat >conftest.$ac_ext <<_ACEOF
3053/* confdefs.h. */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h. */
3058
3059int
3060main ()
3061{
3062
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067rm -f conftest.$ac_objext
3068if { (ac_try="$ac_compile"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3101 :
3102else
3103 echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3107 CXXFLAGS="-g"
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 ac_cv_prog_cxx_g=yes
3158else
3159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162
3163fi
3164
3165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166fi
3167
3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169fi
3170
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3173fi
3174{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3175echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3176if test "$ac_test_CXXFLAGS" = set; then
3177 CXXFLAGS=$ac_save_CXXFLAGS
3178elif test $ac_cv_prog_cxx_g = yes; then
3179 if test "$GXX" = yes; then
3180 CXXFLAGS="-g -O2"
3181 else
3182 CXXFLAGS="-g"
3183 fi
3184else
3185 if test "$GXX" = yes; then
3186 CXXFLAGS="-O2"
3187 else
3188 CXXFLAGS=
3189 fi
3190fi
3191ac_ext=c
3192ac_cpp='$CPP $CPPFLAGS'
3193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003196
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003202{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3203echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204# On Suns, sometimes $CPP names a directory.
3205if test -n "$CPP" && test -d "$CPP"; then
3206 CPP=
3207fi
3208if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003209 if test "${ac_cv_prog_CPP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003211else
3212 # Double quotes because CPP needs to be expanded
3213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3214 do
3215 ac_preproc_ok=false
3216for ac_c_preproc_warn_flag in '' yes
3217do
3218 # Use a header file that comes with gcc, so configuring glibc
3219 # with a fresh cross-compiler works.
3220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221 # <limits.h> exists even on freestanding compilers.
3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3223 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224 cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229/* end confdefs.h. */
3230#ifdef __STDC__
3231# include <limits.h>
3232#else
3233# include <assert.h>
3234#endif
3235 Syntax error
3236_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003237if { (ac_try="$ac_cpp conftest.$ac_ext"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
3252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3253 else
3254 ac_cpp_err=
3255 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003257 ac_cpp_err=yes
3258fi
3259if test -z "$ac_cpp_err"; then
3260 :
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 # Broken: fails on valid input.
3266continue
3267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003268
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269rm -f conftest.err conftest.$ac_ext
3270
Reid Spencera773bd52006-08-04 18:18:08 +00003271 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003273 cat >conftest.$ac_ext <<_ACEOF
3274/* confdefs.h. */
3275_ACEOF
3276cat confdefs.h >>conftest.$ac_ext
3277cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278/* end confdefs.h. */
3279#include <ac_nonexistent.h>
3280_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003281if { (ac_try="$ac_cpp conftest.$ac_ext"
3282case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285esac
3286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297 else
3298 ac_cpp_err=
3299 fi
3300else
3301 ac_cpp_err=yes
3302fi
3303if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304 # Broken: success on invalid input.
3305continue
3306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003307 echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310 # Passes both tests.
3311ac_preproc_ok=:
3312break
3313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315rm -f conftest.err conftest.$ac_ext
3316
3317done
3318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003320if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321 break
3322fi
3323
3324 done
3325 ac_cv_prog_CPP=$CPP
3326
3327fi
3328 CPP=$ac_cv_prog_CPP
3329else
3330 ac_cv_prog_CPP=$CPP
3331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332{ echo "$as_me:$LINENO: result: $CPP" >&5
3333echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334ac_preproc_ok=false
3335for ac_c_preproc_warn_flag in '' yes
3336do
3337 # Use a header file that comes with gcc, so configuring glibc
3338 # with a fresh cross-compiler works.
3339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340 # <limits.h> exists even on freestanding compilers.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003343 cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348/* end confdefs.h. */
3349#ifdef __STDC__
3350# include <limits.h>
3351#else
3352# include <assert.h>
3353#endif
3354 Syntax error
3355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356if { (ac_try="$ac_cpp conftest.$ac_ext"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_c_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3372 else
3373 ac_cpp_err=
3374 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376 ac_cpp_err=yes
3377fi
3378if test -z "$ac_cpp_err"; then
3379 :
3380else
3381 echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 # Broken: fails on valid input.
3385continue
3386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388rm -f conftest.err conftest.$ac_ext
3389
Reid Spencera773bd52006-08-04 18:18:08 +00003390 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003392 cat >conftest.$ac_ext <<_ACEOF
3393/* confdefs.h. */
3394_ACEOF
3395cat confdefs.h >>conftest.$ac_ext
3396cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397/* end confdefs.h. */
3398#include <ac_nonexistent.h>
3399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400if { (ac_try="$ac_cpp conftest.$ac_ext"
3401case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416 else
3417 ac_cpp_err=
3418 fi
3419else
3420 ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423 # Broken: success on invalid input.
3424continue
3425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426 echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429 # Passes both tests.
3430ac_preproc_ok=:
3431break
3432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003433
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434rm -f conftest.err conftest.$ac_ext
3435
3436done
3437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003439if $ac_preproc_ok; then
3440 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003442 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443See \`config.log' for more details." >&5
3444echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447fi
3448
John Criswell7a73b802003-06-30 21:59:07 +00003449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
John Criswell7a73b802003-06-30 21:59:07 +00003455
Eric Christopherffee5722011-09-16 20:36:25 +00003456
3457
3458if test -d ${srcdir}/projects/llvm-gcc ; then
3459 subdirs="$subdirs projects/llvm-gcc"
3460
3461fi
3462
3463if test -d ${srcdir}/projects/test-suite ; then
3464 subdirs="$subdirs projects/test-suite"
3465
3466fi
3467
3468if test -d ${srcdir}/projects/llvm-test ; then
3469 subdirs="$subdirs projects/llvm-test"
3470
3471fi
3472
3473if test -d ${srcdir}/projects/poolalloc ; then
3474 subdirs="$subdirs projects/poolalloc"
3475
3476fi
3477
3478if test -d ${srcdir}/projects/llvm-poolalloc ; then
3479 subdirs="$subdirs projects/llvm-poolalloc"
3480
3481fi
3482
3483for i in `ls ${srcdir}/projects`
3484do
3485 if test -d ${srcdir}/projects/${i} ; then
3486 case ${i} in
3487 sample) subdirs="$subdirs projects/sample"
3488 ;;
3489 privbracket) subdirs="$subdirs projects/privbracket"
3490 ;;
3491 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3492 ;;
3493 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3494;;
3495 llvm-java) subdirs="$subdirs projects/llvm-java"
3496 ;;
3497 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3498 ;;
3499 safecode) subdirs="$subdirs projects/safecode"
3500 ;;
3501 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3502 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003503 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003504 llvm-gcc) ;;
3505 test-suite) ;;
3506 llvm-test) ;;
3507 poolalloc) ;;
3508 llvm-poolalloc) ;;
3509 *)
3510 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3511echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3512 ;;
3513 esac
3514 fi
3515done
3516
3517# Check whether --enable-polly was given.
3518if test "${enable_polly+set}" = set; then
3519 enableval=$enable_polly;
3520else
3521 enableval=default
3522fi
3523
3524case "$enableval" in
3525 yes) ENABLE_POLLY=1
3526 ;;
3527 no) ENABLE_POLLY=0
3528 ;;
3529 default) ENABLE_POLLY=1
3530 ;;
3531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3532echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3533 { (exit 1); exit 1; }; } ;;
3534esac
3535
3536
3537if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3538 LLVM_HAS_POLLY=1
3539
3540 subdirs="$subdirs tools/polly"
3541
3542fi
3543
3544
3545# Make sure we can run config.sub.
3546$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3547 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3548echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3549 { (exit 1); exit 1; }; }
3550
3551{ echo "$as_me:$LINENO: checking build system type" >&5
3552echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3553if test "${ac_cv_build+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 ac_build_alias=$build_alias
3557test "x$ac_build_alias" = x &&
3558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3559test "x$ac_build_alias" = x &&
3560 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3561echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3562 { (exit 1); exit 1; }; }
3563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3564 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3565echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3566 { (exit 1); exit 1; }; }
3567
3568fi
3569{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3570echo "${ECHO_T}$ac_cv_build" >&6; }
3571case $ac_cv_build in
3572*-*-*) ;;
3573*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3574echo "$as_me: error: invalid value of canonical build" >&2;}
3575 { (exit 1); exit 1; }; };;
3576esac
3577build=$ac_cv_build
3578ac_save_IFS=$IFS; IFS='-'
3579set x $ac_cv_build
3580shift
3581build_cpu=$1
3582build_vendor=$2
3583shift; shift
3584# Remember, the first character of IFS is used to create $*,
3585# except with old shells:
3586build_os=$*
3587IFS=$ac_save_IFS
3588case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3589
3590
3591{ echo "$as_me:$LINENO: checking host system type" >&5
3592echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3593if test "${ac_cv_host+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595else
3596 if test "x$host_alias" = x; then
3597 ac_cv_host=$ac_cv_build
3598else
3599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3600 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3601echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3602 { (exit 1); exit 1; }; }
3603fi
3604
3605fi
3606{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3607echo "${ECHO_T}$ac_cv_host" >&6; }
3608case $ac_cv_host in
3609*-*-*) ;;
3610*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3611echo "$as_me: error: invalid value of canonical host" >&2;}
3612 { (exit 1); exit 1; }; };;
3613esac
3614host=$ac_cv_host
3615ac_save_IFS=$IFS; IFS='-'
3616set x $ac_cv_host
3617shift
3618host_cpu=$1
3619host_vendor=$2
3620shift; shift
3621# Remember, the first character of IFS is used to create $*,
3622# except with old shells:
3623host_os=$*
3624IFS=$ac_save_IFS
3625case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3626
3627
3628{ echo "$as_me:$LINENO: checking target system type" >&5
3629echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3630if test "${ac_cv_target+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633 if test "x$target_alias" = x; then
3634 ac_cv_target=$ac_cv_host
3635else
3636 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3637 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3638echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3639 { (exit 1); exit 1; }; }
3640fi
3641
3642fi
3643{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3644echo "${ECHO_T}$ac_cv_target" >&6; }
3645case $ac_cv_target in
3646*-*-*) ;;
3647*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3648echo "$as_me: error: invalid value of canonical target" >&2;}
3649 { (exit 1); exit 1; }; };;
3650esac
3651target=$ac_cv_target
3652ac_save_IFS=$IFS; IFS='-'
3653set x $ac_cv_target
3654shift
3655target_cpu=$1
3656target_vendor=$2
3657shift; shift
3658# Remember, the first character of IFS is used to create $*,
3659# except with old shells:
3660target_os=$*
3661IFS=$ac_save_IFS
3662case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3663
3664
3665# The aliases save the names the user supplied, while $host etc.
3666# will get canonicalized.
3667test -n "$target_alias" &&
3668 test "$program_prefix$program_suffix$program_transform_name" = \
3669 NONENONEs,x,x, &&
3670 program_prefix=${target_alias}-
3671
3672{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3673echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3674if test "${llvm_cv_os_type+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676else
3677 case $host in
3678 *-*-aix*)
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="AIX"
3682 llvm_cv_platform_type="Unix" ;;
3683 *-*-irix*)
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="IRIX"
3687 llvm_cv_platform_type="Unix" ;;
3688 *-*-cygwin*)
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="Cygwin"
3692 llvm_cv_platform_type="Unix" ;;
3693 *-*-darwin*)
3694 llvm_cv_link_all_option="-Wl,-all_load"
3695 llvm_cv_no_link_all_option="-Wl,-noall_load"
3696 llvm_cv_os_type="Darwin"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-minix*)
3699 llvm_cv_link_all_option="-Wl,-all_load"
3700 llvm_cv_no_link_all_option="-Wl,-noall_load"
3701 llvm_cv_os_type="Minix"
3702 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003703 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="FreeBSD"
3707 llvm_cv_platform_type="Unix" ;;
3708 *-*-openbsd*)
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="OpenBSD"
3712 llvm_cv_platform_type="Unix" ;;
3713 *-*-netbsd*)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="NetBSD"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-*-dragonfly*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="DragonFly"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-*-hpux*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="HP-UX"
3727 llvm_cv_platform_type="Unix" ;;
3728 *-*-interix*)
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="Interix"
3732 llvm_cv_platform_type="Unix" ;;
3733 *-*-linux*)
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="Linux"
3737 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003738 *-*-gnu*)
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="GNU"
3742 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003743 *-*-solaris*)
3744 llvm_cv_link_all_option="-Wl,-z,allextract"
3745 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3746 llvm_cv_os_type="SunOS"
3747 llvm_cv_platform_type="Unix" ;;
3748 *-*-auroraux*)
3749 llvm_cv_link_all_option="-Wl,-z,allextract"
3750 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3751 llvm_cv_os_type="AuroraUX"
3752 llvm_cv_platform_type="Unix" ;;
3753 *-*-win32*)
3754 llvm_cv_link_all_option="-Wl,--whole-archive"
3755 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3756 llvm_cv_os_type="Win32"
3757 llvm_cv_platform_type="Win32" ;;
3758 *-*-mingw*)
3759 llvm_cv_link_all_option="-Wl,--whole-archive"
3760 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761 llvm_cv_os_type="MingW"
3762 llvm_cv_platform_type="Win32" ;;
3763 *-*-haiku*)
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="Haiku"
3767 llvm_cv_platform_type="Unix" ;;
3768 *-unknown-eabi*)
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="Freestanding"
3772 llvm_cv_platform_type="Unix" ;;
3773 *-unknown-elf*)
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Freestanding"
3777 llvm_cv_platform_type="Unix" ;;
3778 *)
3779 llvm_cv_link_all_option=""
3780 llvm_cv_no_link_all_option=""
3781 llvm_cv_os_type="Unknown"
3782 llvm_cv_platform_type="Unknown" ;;
3783esac
3784fi
3785{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3786echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3787
3788{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3789echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3790if test "${llvm_cv_target_os_type+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 case $target in
3794 *-*-aix*)
3795 llvm_cv_target_os_type="AIX" ;;
3796 *-*-irix*)
3797 llvm_cv_target_os_type="IRIX" ;;
3798 *-*-cygwin*)
3799 llvm_cv_target_os_type="Cygwin" ;;
3800 *-*-darwin*)
3801 llvm_cv_target_os_type="Darwin" ;;
3802 *-*-minix*)
3803 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003804 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003805 llvm_cv_target_os_type="FreeBSD" ;;
3806 *-*-openbsd*)
3807 llvm_cv_target_os_type="OpenBSD" ;;
3808 *-*-netbsd*)
3809 llvm_cv_target_os_type="NetBSD" ;;
3810 *-*-dragonfly*)
3811 llvm_cv_target_os_type="DragonFly" ;;
3812 *-*-hpux*)
3813 llvm_cv_target_os_type="HP-UX" ;;
3814 *-*-interix*)
3815 llvm_cv_target_os_type="Interix" ;;
3816 *-*-linux*)
3817 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003818 *-*-gnu*)
3819 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003820 *-*-solaris*)
3821 llvm_cv_target_os_type="SunOS" ;;
3822 *-*-auroraux*)
3823 llvm_cv_target_os_type="AuroraUX" ;;
3824 *-*-win32*)
3825 llvm_cv_target_os_type="Win32" ;;
3826 *-*-mingw*)
3827 llvm_cv_target_os_type="MingW" ;;
3828 *-*-haiku*)
3829 llvm_cv_target_os_type="Haiku" ;;
3830 *-*-rtems*)
3831 llvm_cv_target_os_type="RTEMS" ;;
3832 *-*-nacl*)
3833 llvm_cv_target_os_type="NativeClient" ;;
3834 *-unknown-eabi*)
3835 llvm_cv_target_os_type="Freestanding" ;;
3836 *)
3837 llvm_cv_target_os_type="Unknown" ;;
3838esac
3839fi
3840{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3841echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3842
3843if test "$llvm_cv_os_type" = "Unknown" ; then
3844 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3845echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3846 { (exit 1); exit 1; }; }
3847fi
3848
3849OS=$llvm_cv_os_type
3850
3851HOST_OS=$llvm_cv_os_type
3852
3853TARGET_OS=$llvm_cv_target_os_type
3854
3855
3856LINKALL=$llvm_cv_link_all_option
3857
3858NOLINKALL=$llvm_cv_no_link_all_option
3859
3860
3861case $llvm_cv_platform_type in
3862 Unix)
3863
3864cat >>confdefs.h <<\_ACEOF
3865#define LLVM_ON_UNIX 1
3866_ACEOF
3867
3868 LLVM_ON_UNIX=1
3869
3870 LLVM_ON_WIN32=0
3871
3872 ;;
3873 Win32)
3874
3875cat >>confdefs.h <<\_ACEOF
3876#define LLVM_ON_WIN32 1
3877_ACEOF
3878
3879 LLVM_ON_UNIX=0
3880
3881 LLVM_ON_WIN32=1
3882
3883 ;;
3884esac
3885
3886{ echo "$as_me:$LINENO: checking target architecture" >&5
3887echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3888if test "${llvm_cv_target_arch+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 case $target in
3892 i?86-*) llvm_cv_target_arch="x86" ;;
3893 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3894 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3895 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003896 arm*-*) llvm_cv_target_arch="ARM" ;;
3897 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003898 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003899 xcore-*) llvm_cv_target_arch="XCore" ;;
3900 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003901 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003902 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3903 ptx-*) llvm_cv_target_arch="PTX" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003904 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003905 *) llvm_cv_target_arch="Unknown" ;;
3906esac
3907fi
3908{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3909echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3910
3911if test "$llvm_cv_target_arch" = "Unknown" ; then
3912 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3913echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3914fi
3915
Eric Christopherffee5722011-09-16 20:36:25 +00003916case "$llvm_cv_target_arch" in
3917 x86) LLVM_NATIVE_ARCH="X86" ;;
3918 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3919 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3920esac
3921
3922ARCH=$llvm_cv_target_arch
3923
3924
3925
3926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003927{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3928echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3929if test "${ac_cv_path_GREP+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003932 # Extract the first word of "grep ggrep" to use in msg output
3933if test -z "$GREP"; then
3934set dummy grep ggrep; ac_prog_name=$2
3935if test "${ac_cv_path_GREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
Reid Spencera773bd52006-08-04 18:18:08 +00003938 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003939# Loop through the user's path and test for each of PROGNAME-LIST
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003945 for ac_prog in grep ggrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003950 # Check for GNU $ac_path_GREP
3951case `"$ac_path_GREP" --version 2>&1` in
3952*GNU*)
3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3954*)
3955 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003956 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003957 while :
3958 do
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP="$ac_path_GREP"
3969 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003970 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3973 done
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3975esac
3976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977
3978 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003979 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980done
3981
3982done
Reid Spencera773bd52006-08-04 18:18:08 +00003983IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984
3985
3986fi
3987
3988GREP="$ac_cv_path_GREP"
3989if test -z "$GREP"; then
3990 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992 { (exit 1); exit 1; }; }
3993fi
3994
Reid Spencera773bd52006-08-04 18:18:08 +00003995else
3996 ac_cv_path_GREP=$GREP
3997fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999
Reid Spencera773bd52006-08-04 18:18:08 +00004000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4002echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004003 GREP="$ac_cv_path_GREP"
4004
4005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004006{ echo "$as_me:$LINENO: checking for egrep" >&5
4007echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4008if test "${ac_cv_path_EGREP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004010else
4011 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4012 then ac_cv_path_EGREP="$GREP -E"
4013 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014 # Extract the first word of "egrep" to use in msg output
4015if test -z "$EGREP"; then
4016set dummy egrep; ac_prog_name=$2
4017if test "${ac_cv_path_EGREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
Reid Spencera773bd52006-08-04 18:18:08 +00004020 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004021# Loop through the user's path and test for each of PROGNAME-LIST
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027 for ac_prog in egrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4030 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4031 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004032 # Check for GNU $ac_path_EGREP
4033case `"$ac_path_EGREP" --version 2>&1` in
4034*GNU*)
4035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4036*)
4037 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004038 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004039 while :
4040 do
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_EGREP="$ac_path_EGREP"
4051 ac_path_EGREP_max=$ac_count
4052 fi
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4055 done
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057esac
4058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004059
4060 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004061 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062done
4063
4064done
Reid Spencera773bd52006-08-04 18:18:08 +00004065IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004066
4067
4068fi
4069
4070EGREP="$ac_cv_path_EGREP"
4071if test -z "$EGREP"; then
4072 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074 { (exit 1); exit 1; }; }
4075fi
4076
Reid Spencera773bd52006-08-04 18:18:08 +00004077else
4078 ac_cv_path_EGREP=$EGREP
4079fi
4080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004081
Reid Spencera773bd52006-08-04 18:18:08 +00004082 fi
4083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4085echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004086 EGREP="$ac_cv_path_EGREP"
4087
4088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4091if test "${ac_cv_header_stdc+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004100#include <stdlib.h>
4101#include <stdarg.h>
4102#include <string.h>
4103#include <float.h>
4104
John Criswell0c38eaf2003-09-10 15:17:25 +00004105int
4106main ()
4107{
4108
4109 ;
4110 return 0;
4111}
John Criswell7a73b802003-06-30 21:59:07 +00004112_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004113rm -f conftest.$ac_objext
4114if { (ac_try="$ac_compile"
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131esac
4132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest.$ac_objext'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004147 ac_cv_header_stdc=yes
4148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149 echo "$as_me: failed program was:" >&5
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004154
Reid Spencera773bd52006-08-04 18:18:08 +00004155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004156
4157if test $ac_cv_header_stdc = yes; then
4158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004165#include <string.h>
4166
4167_ACEOF
4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004169 $EGREP "memchr" >/dev/null 2>&1; then
4170 :
John Criswell7a73b802003-06-30 21:59:07 +00004171else
4172 ac_cv_header_stdc=no
4173fi
4174rm -f conftest*
4175
4176fi
4177
4178if test $ac_cv_header_stdc = yes; then
4179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180 cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004186#include <stdlib.h>
4187
4188_ACEOF
4189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190 $EGREP "free" >/dev/null 2>&1; then
4191 :
John Criswell7a73b802003-06-30 21:59:07 +00004192else
4193 ac_cv_header_stdc=no
4194fi
4195rm -f conftest*
4196
4197fi
4198
4199if test $ac_cv_header_stdc = yes; then
4200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004202 :
4203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204 cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004209/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004210#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004211#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004212#if ((' ' & 0x0FF) == 0x020)
4213# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4214# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4215#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004216# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004217 (('a' <= (c) && (c) <= 'i') \
4218 || ('j' <= (c) && (c) <= 'r') \
4219 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004220# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4221#endif
4222
4223#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4224int
4225main ()
4226{
4227 int i;
4228 for (i = 0; i < 256; i++)
4229 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004230 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004231 return 2;
4232 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004233}
4234_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004235rm -f conftest$ac_exeext
4236if { (ac_try="$ac_link"
4237case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_link") 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 :
John Criswell7a73b802003-06-30 21:59:07 +00004256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257 echo "$as_me: program exited with status $ac_status" >&5
4258echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261( exit $ac_status )
4262ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004264rm -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 +00004265fi
4266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004267
John Criswell7a73b802003-06-30 21:59:07 +00004268fi
4269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004270{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4271echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004272if test $ac_cv_header_stdc = yes; then
4273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004274cat >>confdefs.h <<\_ACEOF
4275#define STDC_HEADERS 1
4276_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004277
4278fi
4279
Reid Spencera773bd52006-08-04 18:18:08 +00004280# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004281
4282
4283
4284
4285
4286
4287
4288
4289
Reid Spencera773bd52006-08-04 18:18:08 +00004290for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4291 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292do
4293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299 cat >conftest.$ac_ext <<_ACEOF
4300/* confdefs.h. */
4301_ACEOF
4302cat confdefs.h >>conftest.$ac_ext
4303cat >>conftest.$ac_ext <<_ACEOF
4304/* end confdefs.h. */
4305$ac_includes_default
4306
4307#include <$ac_header>
4308_ACEOF
4309rm -f conftest.$ac_objext
4310if { (ac_try="$ac_compile"
4311case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314esac
4315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_compile") 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_try") 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 eval "$as_ac_Header=yes"
4344else
4345 echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 eval "$as_ac_Header=no"
4349fi
4350
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353ac_res=`eval echo '${'$as_ac_Header'}'`
4354 { echo "$as_me:$LINENO: result: $ac_res" >&5
4355echo "${ECHO_T}$ac_res" >&6; }
4356if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004357 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004359_ACEOF
4360
4361fi
4362
4363done
4364
4365
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004366{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4367echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4368if test "${ac_cv_c_bigendian+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004371 # See if sys/param.h defines the BYTE_ORDER macro.
4372cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004377/* end confdefs.h. */
4378#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004380
4381int
4382main ()
4383{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004384#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4385 bogus endian macros
4386#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004387
4388 ;
4389 return 0;
4390}
4391_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392rm -f conftest.$ac_objext
4393if { (ac_try="$ac_compile"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410esac
4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420esac
4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_try") 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004426 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427cat >conftest.$ac_ext <<_ACEOF
4428/* confdefs.h. */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004432/* end confdefs.h. */
4433#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004434#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004435
4436int
4437main ()
4438{
4439#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440 not big endian
4441#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004442
4443 ;
4444 return 0;
4445}
4446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447rm -f conftest.$ac_objext
4448if { (ac_try="$ac_compile"
4449case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452esac
4453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465esac
4466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_try") 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest.$ac_objext'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
4476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004481 ac_cv_c_bigendian=yes
4482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004483 echo "$as_me: failed program was:" >&5
4484sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486 ac_cv_c_bigendian=no
4487fi
4488
4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490else
4491 echo "$as_me: failed program was:" >&5
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
4494 # It does not; compile a test program.
4495if test "$cross_compiling" = yes; then
4496 # try to guess the endianness by grepping values into an object file
4497 ac_cv_c_bigendian=unknown
4498 cat >conftest.$ac_ext <<_ACEOF
4499/* confdefs.h. */
4500_ACEOF
4501cat confdefs.h >>conftest.$ac_ext
4502cat >>conftest.$ac_ext <<_ACEOF
4503/* end confdefs.h. */
4504short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4505short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4506void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4507short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4508short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4509void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004510int
4511main ()
4512{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004514 ;
4515 return 0;
4516}
4517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004518rm -f conftest.$ac_objext
4519if { (ac_try="$ac_compile"
4520case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523esac
4524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_compile") 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4533 { (case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
4537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_try") 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_try") 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004553 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554fi
4555if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4556 if test "$ac_cv_c_bigendian" = unknown; then
4557 ac_cv_c_bigendian=no
4558 else
4559 # finding both strings is unlikely to happen, but who knows?
4560 ac_cv_c_bigendian=unknown
4561 fi
4562fi
Reid Spencera773bd52006-08-04 18:18:08 +00004563else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567
Torok Edwin871384f2010-01-26 08:50:50 +00004568fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569
Reid Spencera773bd52006-08-04 18:18:08 +00004570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 cat >conftest.$ac_ext <<_ACEOF
4573/* confdefs.h. */
4574_ACEOF
4575cat confdefs.h >>conftest.$ac_ext
4576cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004577/* end confdefs.h. */
4578$ac_includes_default
4579int
4580main ()
4581{
4582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 /* Are we little or big endian? From Harbison&Steele. */
4584 union
4585 {
4586 long int l;
4587 char c[sizeof (long int)];
4588 } u;
4589 u.l = 1;
4590 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004591
4592 ;
4593 return 0;
4594}
4595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004596rm -f conftest$ac_exeext
4597if { (ac_try="$ac_link"
4598case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
4602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610esac
4611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004616 ac_cv_c_bigendian=no
4617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 echo "$as_me: program exited with status $ac_status" >&5
4619echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622( exit $ac_status )
4623ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004625rm -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 +00004626fi
4627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628
Reid Spencera773bd52006-08-04 18:18:08 +00004629fi
4630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632fi
4633{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4634echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4635case $ac_cv_c_bigendian in
4636 yes)
4637 ENDIAN=big
4638 ;;
4639 no)
4640 ENDIAN=little
4641 ;;
4642 *)
4643 { { echo "$as_me:$LINENO: error: unknown endianness
4644presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4645echo "$as_me: error: unknown endianness
4646presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4648esac
Reid Spencera773bd52006-08-04 18:18:08 +00004649
4650
4651if test "$cross_compiling" = yes; then
4652 LLVM_CROSS_COMPILING=1
4653
4654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4656echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4657if test "${ac_cv_build_exeext+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004659else
4660 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4661 ac_cv_build_exeext=.exe
4662else
4663 ac_build_prefix=${build_alias}-
4664
4665 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4666set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004671else
4672 if test -n "$BUILD_CC"; then
4673 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4674else
4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 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 +00004682 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004684 break 2
4685 fi
4686done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687done
Reid Spencera773bd52006-08-04 18:18:08 +00004688IFS=$as_save_IFS
4689
4690fi
4691fi
4692BUILD_CC=$ac_cv_prog_BUILD_CC
4693if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004694 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4695echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004697 { echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004699fi
4700
4701
4702 if test -z "$BUILD_CC"; then
4703 # Extract the first word of "gcc", so it can be a program name with args.
4704set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004709else
4710 if test -n "$BUILD_CC"; then
4711 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 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 +00004720 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004722 break 2
4723 fi
4724done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725done
Reid Spencera773bd52006-08-04 18:18:08 +00004726IFS=$as_save_IFS
4727
4728fi
4729fi
4730BUILD_CC=$ac_cv_prog_BUILD_CC
4731if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004732 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004735 { echo "$as_me:$LINENO: result: no" >&5
4736echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004737fi
4738
4739
4740 if test -z "$BUILD_CC"; then
4741 # Extract the first word of "cc", so it can be a program name with args.
4742set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004747else
4748 if test -n "$BUILD_CC"; then
4749 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4750else
4751 ac_prog_rejected=no
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 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 +00004759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4760 ac_prog_rejected=yes
4761 continue
4762 fi
4763 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004765 break 2
4766 fi
4767done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768done
Reid Spencera773bd52006-08-04 18:18:08 +00004769IFS=$as_save_IFS
4770
4771if test $ac_prog_rejected = yes; then
4772 # We found a bogon in the path, so make sure we never use it.
4773 set dummy $ac_cv_prog_BUILD_CC
4774 shift
4775 if test $# != 0; then
4776 # We chose a different compiler from the bogus one.
4777 # However, it has the same basename, so the bogon will be chosen
4778 # first if we set BUILD_CC to just the basename; use the full file name.
4779 shift
4780 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4781 fi
4782fi
4783fi
4784fi
4785BUILD_CC=$ac_cv_prog_BUILD_CC
4786if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4788echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004790 { echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004792fi
4793
4794
4795 fi
4796 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4798echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4799 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4801 rm -f conftest*
4802 echo 'int main () { return 0; }' > conftest.$ac_ext
4803 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004804 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004805 (eval $ac_build_link) 2>&5
4806 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004809 for file in conftest.*; do
4810 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004811 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004812 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4813 esac
4814 done
4815 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004816 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4817echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4818 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004819 fi
4820 rm -f conftest*
4821 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4822fi
4823fi
4824
4825BUILD_EXEEXT=""
4826test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4828echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004829ac_build_exeext=$BUILD_EXEEXT
4830
Jim Grosbach673612e2008-10-02 22:56:44 +00004831 ac_build_prefix=${build_alias}-
4832 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4833set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004838else
4839 if test -n "$BUILD_CXX"; then
4840 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 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 +00004849 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004851 break 2
4852 fi
4853done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854done
Jim Grosbach673612e2008-10-02 22:56:44 +00004855IFS=$as_save_IFS
4856
4857fi
4858fi
4859BUILD_CXX=$ac_cv_prog_BUILD_CXX
4860if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004861 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4862echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004864 { echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004866fi
4867
4868
4869 if test -z "$BUILD_CXX"; then
4870 # Extract the first word of "g++", so it can be a program name with args.
4871set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004876else
4877 if test -n "$BUILD_CXX"; then
4878 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4879else
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 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 +00004887 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004889 break 2
4890 fi
4891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004892done
Jim Grosbach673612e2008-10-02 22:56:44 +00004893IFS=$as_save_IFS
4894
4895fi
4896fi
4897BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004899 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004902 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004904fi
4905
4906
4907 if test -z "$BUILD_CXX"; then
4908 # Extract the first word of "c++", so it can be a program name with args.
4909set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4912if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004914else
4915 if test -n "$BUILD_CXX"; then
4916 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4917else
4918 ac_prog_rejected=no
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 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 +00004926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4927 ac_prog_rejected=yes
4928 continue
4929 fi
4930 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004932 break 2
4933 fi
4934done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935done
Jim Grosbach673612e2008-10-02 22:56:44 +00004936IFS=$as_save_IFS
4937
4938if test $ac_prog_rejected = yes; then
4939 # We found a bogon in the path, so make sure we never use it.
4940 set dummy $ac_cv_prog_BUILD_CXX
4941 shift
4942 if test $# != 0; then
4943 # We chose a different compiler from the bogus one.
4944 # However, it has the same basename, so the bogon will be chosen
4945 # first if we set BUILD_CXX to just the basename; use the full file name.
4946 shift
4947 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4948 fi
4949fi
4950fi
4951fi
4952BUILD_CXX=$ac_cv_prog_BUILD_CXX
4953if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004954 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4955echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004957 { echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004959fi
4960
4961
4962 fi
4963 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004964else
4965 LLVM_CROSS_COMPILING=0
4966
4967fi
4968
Dan Gohman56fb5f92010-08-04 16:25:01 +00004969if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004970 cvsbuild="yes"
4971 optimize="no"
4972 CVSBUILD=CVSBUILD=1
4973
4974else
4975 cvsbuild="no"
4976 optimize="yes"
4977fi
4978
4979
Eric Christopherbee515f2011-11-11 22:51:42 +00004980# Check whether --enable-libcpp was given.
4981if test "${enable_libcpp+set}" = set; then
4982 enableval=$enable_libcpp;
4983else
4984 enableval=default
4985fi
4986
4987case "$enableval" in
4988 yes) ENABLE_LIBCPP=1
4989 ;;
4990 no) ENABLE_LIBCPP=0
4991 ;;
4992 default) ENABLE_LIBCPP=0
4993;;
4994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4995echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4996 { (exit 1); exit 1; }; } ;;
4997esac
4998
Reid Spencera773bd52006-08-04 18:18:08 +00004999# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005000if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005001 enableval=$enable_optimized;
5002else
5003 enableval=$optimize
5004fi
5005
5006if test ${enableval} = "no" ; then
5007 ENABLE_OPTIMIZED=
5008
5009else
5010 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5011
5012fi
5013
David Greene2a5a12c2009-04-17 14:50:39 +00005014# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005015if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005016 enableval=$enable_profiling;
5017else
5018 enableval="no"
5019fi
5020
5021if test ${enableval} = "no" ; then
5022 ENABLE_PROFILING=
5023
5024else
5025 ENABLE_PROFILING=ENABLE_PROFILING=1
5026
5027fi
5028
Reid Spencera773bd52006-08-04 18:18:08 +00005029# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005030if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005031 enableval=$enable_assertions;
5032else
5033 enableval="yes"
5034fi
5035
5036if test ${enableval} = "yes" ; then
5037 DISABLE_ASSERTIONS=
5038
5039else
5040 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5041
5042fi
5043
David Greenea696d242007-06-28 19:36:08 +00005044# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005045if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005046 enableval=$enable_expensive_checks;
5047else
5048 enableval="no"
5049fi
5050
5051if test ${enableval} = "yes" ; then
5052 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5053
5054 EXPENSIVE_CHECKS=yes
5055
5056else
5057 ENABLE_EXPENSIVE_CHECKS=
5058
5059 EXPENSIVE_CHECKS=no
5060
5061fi
5062
Reid Spencer8b2e1412006-11-17 03:32:33 +00005063# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005064if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005065 enableval=$enable_debug_runtime;
5066else
5067 enableval=no
5068fi
5069
5070if test ${enableval} = "no" ; then
5071 DEBUG_RUNTIME=
5072
5073else
5074 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5075
5076fi
5077
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005078# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005079if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005080 enableval=$enable_debug_symbols;
5081else
5082 enableval=no
5083fi
5084
5085if test ${enableval} = "no" ; then
5086 DEBUG_SYMBOLS=
5087
5088else
5089 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5090
5091fi
5092
Reid Spencera773bd52006-08-04 18:18:08 +00005093# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005094if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005095 enableval=$enable_jit;
5096else
5097 enableval=default
5098fi
5099
5100if test ${enableval} = "no"
5101then
5102 JIT=
5103
5104else
5105 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005106 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005107 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005108 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005109 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005110 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005111 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005112 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005113 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005114 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005115 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005116 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005117 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005118 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005119 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005120 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005121 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005122 Hexagon) TARGET_HAS_JIT=0
5123 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005124 MBlaze) TARGET_HAS_JIT=0
5125 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005126 PTX) TARGET_HAS_JIT=0
5127 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005128 NVPTX) TARGET_HAS_JIT=0
5129 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005130 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005131 ;;
5132 esac
5133fi
5134
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005135# Check whether --enable-docs was given.
5136if test "${enable_docs+set}" = set; then
5137 enableval=$enable_docs;
5138else
5139 enableval=default
5140fi
5141
5142case "$enableval" in
5143 yes) ENABLE_DOCS=1
5144 ;;
5145 no) ENABLE_DOCS=0
5146 ;;
5147 default) ENABLE_DOCS=1
5148 ;;
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5150echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5152esac
5153
Reid Spencera773bd52006-08-04 18:18:08 +00005154# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005155if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005156 enableval=$enable_doxygen;
5157else
5158 enableval=default
5159fi
5160
5161case "$enableval" in
5162 yes) ENABLE_DOXYGEN=1
5163 ;;
5164 no) ENABLE_DOXYGEN=0
5165 ;;
5166 default) ENABLE_DOXYGEN=0
5167 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005168 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5169echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5170 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005171esac
5172
5173# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005174if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005175 enableval=$enable_threads;
5176else
Reid Spencer65c5d752006-11-05 17:08:18 +00005177 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005178fi
5179
5180case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005181 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005182 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005183 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005184 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005185 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005186 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5188echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005190esac
5191
Owen Andersona8603702009-05-19 22:18:56 +00005192cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005193#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005194_ACEOF
5195
5196
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005197# Check whether --enable-pthreads was given.
5198if test "${enable_pthreads+set}" = set; then
5199 enableval=$enable_pthreads;
5200else
5201 enableval=default
5202fi
5203
5204case "$enableval" in
5205 yes) ENABLE_PTHREADS=1
5206 ;;
5207 no) ENABLE_PTHREADS=0
5208 ;;
5209 default) ENABLE_PTHREADS=1
5210 ;;
5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5212echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5214esac
5215
Reid Spencer89b0d992006-12-16 22:07:52 +00005216# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005217if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005218 enableval=$enable_pic;
5219else
5220 enableval=default
5221fi
5222
5223case "$enableval" in
5224 yes) ENABLE_PIC=1
5225 ;;
5226 no) ENABLE_PIC=0
5227 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005228 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005229 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5231echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5232 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005233esac
5234
5235cat >>confdefs.h <<_ACEOF
5236#define ENABLE_PIC $ENABLE_PIC
5237_ACEOF
5238
5239
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005240# Check whether --enable-shared was given.
5241if test "${enable_shared+set}" = set; then
5242 enableval=$enable_shared;
5243else
5244 enableval=default
5245fi
5246
5247case "$enableval" in
5248 yes) ENABLE_SHARED=1
5249 ;;
5250 no) ENABLE_SHARED=0
5251 ;;
5252 default) ENABLE_SHARED=0
5253 ;;
5254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5255echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
5257esac
5258
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005259# Check whether --enable-embed-stdcxx was given.
5260if test "${enable_embed_stdcxx+set}" = set; then
5261 enableval=$enable_embed_stdcxx;
5262else
5263 enableval=default
5264fi
5265
5266case "$enableval" in
5267 yes) ENABLE_EMBED_STDCXX=1
5268 ;;
5269 no) ENABLE_EMBED_STDCXX=0
5270 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005271 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005272 ;;
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5274echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5276esac
5277
Daniel Dunbardd464df2010-05-10 20:11:56 +00005278# Check whether --enable-timestamps was given.
5279if test "${enable_timestamps+set}" = set; then
5280 enableval=$enable_timestamps;
5281else
5282 enableval=default
5283fi
5284
5285case "$enableval" in
5286 yes) ENABLE_TIMESTAMPS=1
5287 ;;
5288 no) ENABLE_TIMESTAMPS=0
5289 ;;
5290 default) ENABLE_TIMESTAMPS=1
5291 ;;
5292 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5293echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5295esac
5296
5297cat >>confdefs.h <<_ACEOF
5298#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5299_ACEOF
5300
5301
Reid Spencera773bd52006-08-04 18:18:08 +00005302TARGETS_TO_BUILD=""
5303# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005304if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005305 enableval=$enable_targets;
5306else
5307 enableval=all
5308fi
5309
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005310if test "$enableval" = host-only ; then
5311 enableval=host
5312fi
Reid Spencera773bd52006-08-04 18:18:08 +00005313case "$enableval" in
Justin Holewinski49683f32012-05-04 20:18:50 +00005314 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005315 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5316 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005317 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5319 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5320 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005321 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5322 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005323 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005324 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005325 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5326 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005327 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005328 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005329 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005330 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005331 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005332 host) case "$llvm_cv_target_arch" in
5333 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5334 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5335 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5336 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005337 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5338 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005339 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005340 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005341 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5342 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005343 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005344 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005345 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005346 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5347echo "$as_me: error: Can not set target to build" >&2;}
5348 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005349 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005350 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5351echo "$as_me: error: Unrecognized target $a_target" >&2;}
5352 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005353 esac
5354 done
5355 ;;
5356esac
Reid Spencera773bd52006-08-04 18:18:08 +00005357TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5358
5359
Douglas Gregor0711c302009-06-17 00:43:20 +00005360for a_target in $TARGETS_TO_BUILD; do
5361 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5362
5363cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005364#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5365_ACEOF
5366
5367 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5368 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005369 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005370 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005371 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5372 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5373 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005374 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5375 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5376 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005377
5378cat >>confdefs.h <<_ACEOF
5379#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005380_ACEOF
5381
5382
5383cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005384#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5385_ACEOF
5386
5387
5388cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005389#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005390_ACEOF
5391
5392
5393cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005394#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005395_ACEOF
5396
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005397 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005398
5399cat >>confdefs.h <<_ACEOF
5400#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5401_ACEOF
5402
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005403 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005404 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5405
5406cat >>confdefs.h <<_ACEOF
5407#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5408_ACEOF
5409
5410 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005411 fi
5412done
5413
Douglas Gregor1555a232009-06-16 20:12:29 +00005414LLVM_ENUM_TARGETS=""
5415LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005416LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005417LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005418for target_to_build in $TARGETS_TO_BUILD; do
5419 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005420 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005421 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5422 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005423 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5424 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5425 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005426 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5427 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5428 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005429done
5430
5431
5432
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005433
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005434
Reid Spencera773bd52006-08-04 18:18:08 +00005435
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005436# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005438 withval=$with_optimize_option;
5439else
5440 withval=default
5441fi
5442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005443{ echo "$as_me:$LINENO: checking optimization flags" >&5
5444echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005445case "$withval" in
5446 default)
5447 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005448 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005449 MingW) optimize_option=-O2 ;;
5450 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005451 esac ;;
5452 *) optimize_option="$withval" ;;
5453esac
5454OPTIMIZE_OPTION=$optimize_option
5455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005456{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5457echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005458
5459
Reid Spencera773bd52006-08-04 18:18:08 +00005460# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005461if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005462 withval=$with_extra_options;
5463else
5464 withval=default
5465fi
5466
5467case "$withval" in
5468 default) EXTRA_OPTIONS= ;;
5469 *) EXTRA_OPTIONS=$withval ;;
5470esac
5471EXTRA_OPTIONS=$EXTRA_OPTIONS
5472
5473
Daniel Dunbared344d22011-06-16 22:30:41 +00005474
5475# Check whether --with-extra-ld-options was given.
5476if test "${with_extra_ld_options+set}" = set; then
5477 withval=$with_extra_ld_options;
5478else
5479 withval=default
5480fi
5481
5482case "$withval" in
5483 default) EXTRA_LD_OPTIONS= ;;
5484 *) EXTRA_LD_OPTIONS=$withval ;;
5485esac
5486EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5487
5488
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005489# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005490if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005491 enableval=$enable_bindings;
5492else
5493 enableval=default
5494fi
5495
5496BINDINGS_TO_BUILD=""
5497case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005498 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005499 all ) BINDINGS_TO_BUILD="ocaml" ;;
5500 none | no) BINDINGS_TO_BUILD="" ;;
5501 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5502 case "$a_binding" in
5503 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005504 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5505echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5506 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005507 esac
5508 done
5509 ;;
5510esac
5511
Reid Spencera773bd52006-08-04 18:18:08 +00005512
Gordon Henriksenf0915682007-10-02 16:42:22 +00005513# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005514if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005515 withval=$with_ocaml_libdir;
5516else
5517 withval=auto
5518fi
5519
5520case "$withval" in
5521 auto) with_ocaml_libdir="$withval" ;;
5522 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005523 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5524echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5525 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005526esac
5527
5528
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005529# Check whether --with-clang-srcdir was given.
5530if test "${with_clang_srcdir+set}" = set; then
5531 withval=$with_clang_srcdir;
5532else
5533 withval="-"
5534fi
5535
5536case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005537 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005538 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5539 *) clang_src_root="$ac_pwd/$withval" ;;
5540esac
5541CLANG_SRC_ROOT=$clang_src_root
5542
5543
5544
Chandler Carruth6b241162010-10-19 08:21:25 +00005545# Check whether --with-clang-resource-dir was given.
5546if test "${with_clang_resource_dir+set}" = set; then
5547 withval=$with_clang_resource_dir;
5548else
5549 withval=""
5550fi
5551
5552
5553cat >>confdefs.h <<_ACEOF
5554#define CLANG_RESOURCE_DIR "$withval"
5555_ACEOF
5556
5557
5558
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005559# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005560if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005561 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005562else
5563 withval=""
5564fi
5565
5566
5567cat >>confdefs.h <<_ACEOF
5568#define C_INCLUDE_DIRS "$withval"
5569_ACEOF
5570
5571
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005572# Clang normally uses the system c++ headers and libraries. With this option,
5573# clang will use the ones provided by a gcc installation instead. This option should
5574# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005575
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005576# Check whether --with-gcc-toolchain was given.
5577if test "${with_gcc_toolchain+set}" = set; then
5578 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005579else
5580 withval=""
5581fi
5582
5583
5584cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005585#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005586_ACEOF
5587
5588
5589
Sebastian Pope4f1b372012-04-30 20:06:58 +00005590# Check whether --with-default-sysroot was given.
5591if test "${with_default_sysroot+set}" = set; then
5592 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005593else
5594 withval=""
5595fi
5596
5597
5598cat >>confdefs.h <<_ACEOF
5599#define DEFAULT_SYSROOT "$withval"
5600_ACEOF
5601
5602
5603
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005604# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005605if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005606 withval=$with_binutils_include;
5607else
5608 withval=default
5609fi
5610
5611case "$withval" in
5612 default) WITH_BINUTILS_INCDIR=default ;;
5613 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5615echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5616 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005617esac
5618if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5619 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5620
5621 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5622 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005623 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5624echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5625 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005626 fi
5627fi
5628
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005629
5630# Check whether --with-bug-report-url was given.
5631if test "${with_bug_report_url+set}" = set; then
5632 withval=$with_bug_report_url;
5633else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005634 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005635fi
5636
5637
5638cat >>confdefs.h <<_ACEOF
5639#define BUG_REPORT_URL "$withval"
5640_ACEOF
5641
5642
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005643# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005645 enableval=$enable_libffi; case "$enableval" in
5646 yes) llvm_cv_enable_libffi="yes" ;;
5647 no) llvm_cv_enable_libffi="no" ;;
5648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005649echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5650 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005651 esac
5652else
5653 llvm_cv_enable_libffi=no
5654fi
5655
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005656
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005657
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005658# Check whether --with-internal-prefix was given.
5659if test "${with_internal_prefix+set}" = set; then
5660 withval=$with_internal_prefix;
5661else
5662 withval=""
5663fi
5664
5665INTERNAL_PREFIX=$withval
5666
5667
5668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005669{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5670echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5671if test "${lt_cv_path_NM+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005673else
5674 if test -n "$NM"; then
5675 # Let the user override the test.
5676 lt_cv_path_NM="$NM"
5677else
5678 lt_nm_to_check="${ac_tool_prefix}nm"
5679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680 lt_nm_to_check="$lt_nm_to_check nm"
5681 fi
5682 for lt_tmp_nm in $lt_nm_to_check; do
5683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5685 IFS="$lt_save_ifs"
5686 test -z "$ac_dir" && ac_dir=.
5687 tmp_nm="$ac_dir/$lt_tmp_nm"
5688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689 # Check to see if the nm accepts a BSD-compat flag.
5690 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691 # nm: unknown option "B" ignored
5692 # Tru64's nm complains that /dev/null is an invalid object file
5693 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694 */dev/null* | *'Invalid file or object type'*)
5695 lt_cv_path_NM="$tmp_nm -B"
5696 break
5697 ;;
5698 *)
5699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5700 */dev/null*)
5701 lt_cv_path_NM="$tmp_nm -p"
5702 break
5703 ;;
5704 *)
5705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706 continue # so that we can try to find one that supports BSD flags
5707 ;;
5708 esac
5709 ;;
5710 esac
5711 fi
5712 done
5713 IFS="$lt_save_ifs"
5714 done
5715 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5716fi
5717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005718{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5719echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005720NM="$lt_cv_path_NM"
5721
5722
5723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724{ echo "$as_me:$LINENO: checking for GNU make" >&5
5725echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5726if test "${llvm_cv_gnu_make_command+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005728else
5729 llvm_cv_gnu_make_command=''
5730 for a in "$MAKE" make gmake gnumake ; do
5731 if test -z "$a" ; then continue ; fi ;
5732 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5733 then
5734 llvm_cv_gnu_make_command=$a ;
5735 break;
5736 fi
5737 done
5738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5740echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005741 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5742 ifGNUmake='' ;
5743 else
5744 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5746echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005747 fi
5748
5749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5751echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005752LN_S=$as_ln_s
5753if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005754 { echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005757 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5758echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005759fi
5760
5761# Extract the first word of "cmp", so it can be a program name with args.
5762set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765if test "${ac_cv_path_CMP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005767else
5768 case $CMP in
5769 [\\/]* | ?:[\\/]*)
5770 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5771 ;;
5772 *)
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 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 +00005780 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005782 break 2
5783 fi
5784done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785done
Reid Spencera773bd52006-08-04 18:18:08 +00005786IFS=$as_save_IFS
5787
5788 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5789 ;;
5790esac
5791fi
5792CMP=$ac_cv_path_CMP
5793if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794 { echo "$as_me:$LINENO: result: $CMP" >&5
5795echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 { echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005799fi
5800
5801
5802# Extract the first word of "cp", so it can be a program name with args.
5803set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806if test "${ac_cv_path_CP+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005808else
5809 case $CP in
5810 [\\/]* | ?:[\\/]*)
5811 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5812 ;;
5813 *)
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 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 +00005821 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005823 break 2
5824 fi
5825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005826done
Reid Spencera773bd52006-08-04 18:18:08 +00005827IFS=$as_save_IFS
5828
5829 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5830 ;;
5831esac
5832fi
5833CP=$ac_cv_path_CP
5834if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835 { echo "$as_me:$LINENO: result: $CP" >&5
5836echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838 { echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005840fi
5841
5842
5843# Extract the first word of "date", so it can be a program name with args.
5844set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847if test "${ac_cv_path_DATE+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005849else
5850 case $DATE in
5851 [\\/]* | ?:[\\/]*)
5852 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5853 ;;
5854 *)
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 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 +00005862 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005864 break 2
5865 fi
5866done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867done
Reid Spencera773bd52006-08-04 18:18:08 +00005868IFS=$as_save_IFS
5869
5870 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5871 ;;
5872esac
5873fi
5874DATE=$ac_cv_path_DATE
5875if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876 { echo "$as_me:$LINENO: result: $DATE" >&5
5877echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 { echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005881fi
5882
5883
5884# Extract the first word of "find", so it can be a program name with args.
5885set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888if test "${ac_cv_path_FIND+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005890else
5891 case $FIND in
5892 [\\/]* | ?:[\\/]*)
5893 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5894 ;;
5895 *)
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 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 +00005903 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005905 break 2
5906 fi
5907done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005908done
Reid Spencera773bd52006-08-04 18:18:08 +00005909IFS=$as_save_IFS
5910
5911 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5912 ;;
5913esac
5914fi
5915FIND=$ac_cv_path_FIND
5916if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917 { echo "$as_me:$LINENO: result: $FIND" >&5
5918echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920 { echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005922fi
5923
5924
5925# Extract the first word of "grep", so it can be a program name with args.
5926set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929if test "${ac_cv_path_GREP+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005931else
5932 case $GREP in
5933 [\\/]* | ?:[\\/]*)
5934 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5935 ;;
5936 *)
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 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 +00005944 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005946 break 2
5947 fi
5948done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949done
Reid Spencera773bd52006-08-04 18:18:08 +00005950IFS=$as_save_IFS
5951
5952 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5953 ;;
5954esac
5955fi
5956GREP=$ac_cv_path_GREP
5957if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958 { echo "$as_me:$LINENO: result: $GREP" >&5
5959echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961 { echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005963fi
5964
5965
5966# Extract the first word of "mkdir", so it can be a program name with args.
5967set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970if test "${ac_cv_path_MKDIR+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005972else
5973 case $MKDIR in
5974 [\\/]* | ?:[\\/]*)
5975 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5976 ;;
5977 *)
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 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 +00005985 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005987 break 2
5988 fi
5989done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005990done
Reid Spencera773bd52006-08-04 18:18:08 +00005991IFS=$as_save_IFS
5992
5993 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5994 ;;
5995esac
5996fi
5997MKDIR=$ac_cv_path_MKDIR
5998if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005999 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6000echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002 { echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006004fi
6005
6006
6007# Extract the first word of "mv", so it can be a program name with args.
6008set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011if test "${ac_cv_path_MV+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006013else
6014 case $MV in
6015 [\\/]* | ?:[\\/]*)
6016 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6017 ;;
6018 *)
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 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 +00006026 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006028 break 2
6029 fi
6030done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006031done
Reid Spencera773bd52006-08-04 18:18:08 +00006032IFS=$as_save_IFS
6033
6034 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6035 ;;
6036esac
6037fi
6038MV=$ac_cv_path_MV
6039if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040 { echo "$as_me:$LINENO: result: $MV" >&5
6041echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043 { echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006045fi
6046
6047
6048if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6050set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053if test "${ac_cv_prog_RANLIB+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006055else
6056 if test -n "$RANLIB"; then
6057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 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 +00006066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006068 break 2
6069 fi
6070done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071done
Reid Spencera773bd52006-08-04 18:18:08 +00006072IFS=$as_save_IFS
6073
6074fi
6075fi
6076RANLIB=$ac_cv_prog_RANLIB
6077if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6079echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081 { echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006083fi
6084
6085
6086fi
6087if test -z "$ac_cv_prog_RANLIB"; then
6088 ac_ct_RANLIB=$RANLIB
6089 # Extract the first word of "ranlib", so it can be a program name with args.
6090set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006095else
6096 if test -n "$ac_ct_RANLIB"; then
6097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 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 +00006106 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006108 break 2
6109 fi
6110done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111done
Reid Spencera773bd52006-08-04 18:18:08 +00006112IFS=$as_save_IFS
6113
6114fi
6115fi
6116ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6117if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006118 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6119echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121 { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006123fi
6124
6125 if test "x$ac_ct_RANLIB" = x; then
6126 RANLIB=":"
6127 else
6128 case $cross_compiling:$ac_tool_warned in
6129yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006130{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6131whose name does not start with the host triplet. If you think this
6132configuration is useful to you, please write to autoconf@gnu.org." >&5
6133echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6134whose name does not start with the host triplet. If you think this
6135configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006136ac_tool_warned=yes ;;
6137esac
6138 RANLIB=$ac_ct_RANLIB
6139 fi
6140else
6141 RANLIB="$ac_cv_prog_RANLIB"
6142fi
6143
Torok Edwin871384f2010-01-26 08:50:50 +00006144if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6146set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149if test "${ac_cv_prog_AR+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006151else
6152 if test -n "$AR"; then
6153 ac_cv_prog_AR="$AR" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 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 +00006162 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006164 break 2
6165 fi
6166done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167done
Torok Edwin871384f2010-01-26 08:50:50 +00006168IFS=$as_save_IFS
6169
6170fi
6171fi
6172AR=$ac_cv_prog_AR
6173if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006174 { echo "$as_me:$LINENO: result: $AR" >&5
6175echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006176else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177 { echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006179fi
6180
6181
6182fi
6183if test -z "$ac_cv_prog_AR"; then
6184 ac_ct_AR=$AR
6185 # Extract the first word of "ar", so it can be a program name with args.
6186set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006191else
6192 if test -n "$ac_ct_AR"; then
6193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 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 +00006202 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006204 break 2
6205 fi
6206done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006207done
Torok Edwin871384f2010-01-26 08:50:50 +00006208IFS=$as_save_IFS
6209
6210fi
6211fi
6212ac_ct_AR=$ac_cv_prog_ac_ct_AR
6213if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006214 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6215echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217 { echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006219fi
6220
6221 if test "x$ac_ct_AR" = x; then
6222 AR="false"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6227whose name does not start with the host triplet. If you think this
6228configuration is useful to you, please write to autoconf@gnu.org." >&5
6229echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6230whose name does not start with the host triplet. If you think this
6231configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006232ac_tool_warned=yes ;;
6233esac
6234 AR=$ac_ct_AR
6235 fi
6236else
6237 AR="$ac_cv_prog_AR"
6238fi
6239
Reid Spencera773bd52006-08-04 18:18:08 +00006240# Extract the first word of "rm", so it can be a program name with args.
6241set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244if test "${ac_cv_path_RM+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006246else
6247 case $RM in
6248 [\\/]* | ?:[\\/]*)
6249 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6250 ;;
6251 *)
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 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 +00006259 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006261 break 2
6262 fi
6263done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006264done
Reid Spencera773bd52006-08-04 18:18:08 +00006265IFS=$as_save_IFS
6266
6267 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6268 ;;
6269esac
6270fi
6271RM=$ac_cv_path_RM
6272if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273 { echo "$as_me:$LINENO: result: $RM" >&5
6274echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276 { echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006278fi
6279
6280
6281# Extract the first word of "sed", so it can be a program name with args.
6282set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6285if test "${ac_cv_path_SED+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006287else
6288 case $SED in
6289 [\\/]* | ?:[\\/]*)
6290 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6291 ;;
6292 *)
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 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 +00006300 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006302 break 2
6303 fi
6304done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006305done
Reid Spencera773bd52006-08-04 18:18:08 +00006306IFS=$as_save_IFS
6307
6308 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6309 ;;
6310esac
6311fi
6312SED=$ac_cv_path_SED
6313if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314 { echo "$as_me:$LINENO: result: $SED" >&5
6315echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 { echo "$as_me:$LINENO: result: no" >&5
6318echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006319fi
6320
6321
6322# Extract the first word of "tar", so it can be a program name with args.
6323set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326if test "${ac_cv_path_TAR+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006328else
6329 case $TAR in
6330 [\\/]* | ?:[\\/]*)
6331 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6332 ;;
6333 *)
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 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 +00006341 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006343 break 2
6344 fi
6345done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346done
Reid Spencera773bd52006-08-04 18:18:08 +00006347IFS=$as_save_IFS
6348
6349 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6350 ;;
6351esac
6352fi
6353TAR=$ac_cv_path_TAR
6354if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355 { echo "$as_me:$LINENO: result: $TAR" >&5
6356echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 { echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006360fi
6361
6362
6363# Extract the first word of "pwd", so it can be a program name with args.
6364set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367if test "${ac_cv_path_BINPWD+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006369else
6370 case $BINPWD in
6371 [\\/]* | ?:[\\/]*)
6372 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6373 ;;
6374 *)
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 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 +00006382 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006384 break 2
6385 fi
6386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387done
Reid Spencera773bd52006-08-04 18:18:08 +00006388IFS=$as_save_IFS
6389
6390 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6391 ;;
6392esac
6393fi
6394BINPWD=$ac_cv_path_BINPWD
6395if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006396 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6397echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399 { echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006401fi
6402
6403
6404
6405# Extract the first word of "Graphviz", so it can be a program name with args.
6406set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006411else
6412 case $GRAPHVIZ in
6413 [\\/]* | ?:[\\/]*)
6414 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6415 ;;
6416 *)
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 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 +00006424 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006426 break 2
6427 fi
6428done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006429done
Reid Spencera773bd52006-08-04 18:18:08 +00006430IFS=$as_save_IFS
6431
6432 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6433 ;;
6434esac
6435fi
6436GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6437if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6439echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 { echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006443fi
6444
6445
6446if test "$GRAPHVIZ" != "echo Graphviz" ; then
6447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448cat >>confdefs.h <<\_ACEOF
6449#define HAVE_GRAPHVIZ 1
6450_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006451
Jeff Cohen28783c32007-01-12 18:22:38 +00006452 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006453 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6454 fi
6455
6456cat >>confdefs.h <<_ACEOF
6457#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6458_ACEOF
6459
6460fi
6461# Extract the first word of "dot", so it can be a program name with args.
6462set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_path_DOT+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006467else
6468 case $DOT in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6471 ;;
6472 *)
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 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 +00006480 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006482 break 2
6483 fi
6484done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006485done
Reid Spencera773bd52006-08-04 18:18:08 +00006486IFS=$as_save_IFS
6487
6488 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6489 ;;
6490esac
6491fi
6492DOT=$ac_cv_path_DOT
6493if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006494 { echo "$as_me:$LINENO: result: $DOT" >&5
6495echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006497 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006499fi
6500
6501
6502if test "$DOT" != "echo dot" ; then
6503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006504cat >>confdefs.h <<\_ACEOF
6505#define HAVE_DOT 1
6506_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006507
Jeff Cohen28783c32007-01-12 18:22:38 +00006508 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006509 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510 fi
6511
6512cat >>confdefs.h <<_ACEOF
6513#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6514_ACEOF
6515
6516fi
David Greenef0b9eff2009-07-09 17:16:26 +00006517# Extract the first word of "fdp", so it can be a program name with args.
6518set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521if test "${ac_cv_path_FDP+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006523else
6524 case $FDP in
6525 [\\/]* | ?:[\\/]*)
6526 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6527 ;;
6528 *)
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 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 +00006536 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006538 break 2
6539 fi
6540done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006541done
David Greenef0b9eff2009-07-09 17:16:26 +00006542IFS=$as_save_IFS
6543
6544 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6545 ;;
6546esac
6547fi
6548FDP=$ac_cv_path_FDP
6549if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006550 { echo "$as_me:$LINENO: result: $FDP" >&5
6551echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 { echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006555fi
6556
6557
6558if test "$FDP" != "echo fdp" ; then
6559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560cat >>confdefs.h <<\_ACEOF
6561#define HAVE_FDP 1
6562_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006563
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566 fi
6567
6568cat >>confdefs.h <<_ACEOF
6569#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6570_ACEOF
6571
6572fi
6573# Extract the first word of "neato", so it can be a program name with args.
6574set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577if test "${ac_cv_path_NEATO+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006579else
6580 case $NEATO in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6583 ;;
6584 *)
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 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 +00006592 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006594 break 2
6595 fi
6596done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006597done
David Greenef0b9eff2009-07-09 17:16:26 +00006598IFS=$as_save_IFS
6599
6600 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6601 ;;
6602esac
6603fi
6604NEATO=$ac_cv_path_NEATO
6605if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606 { echo "$as_me:$LINENO: result: $NEATO" >&5
6607echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 { echo "$as_me:$LINENO: result: no" >&5
6610echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006611fi
6612
6613
6614if test "$NEATO" != "echo neato" ; then
6615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006616cat >>confdefs.h <<\_ACEOF
6617#define HAVE_NEATO 1
6618_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006619
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622 fi
6623
6624cat >>confdefs.h <<_ACEOF
6625#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6626_ACEOF
6627
6628fi
6629# Extract the first word of "twopi", so it can be a program name with args.
6630set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633if test "${ac_cv_path_TWOPI+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006635else
6636 case $TWOPI in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6639 ;;
6640 *)
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 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 +00006648 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006650 break 2
6651 fi
6652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006653done
David Greenef0b9eff2009-07-09 17:16:26 +00006654IFS=$as_save_IFS
6655
6656 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6657 ;;
6658esac
6659fi
6660TWOPI=$ac_cv_path_TWOPI
6661if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6663echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665 { echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006667fi
6668
6669
6670if test "$TWOPI" != "echo twopi" ; then
6671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006672cat >>confdefs.h <<\_ACEOF
6673#define HAVE_TWOPI 1
6674_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006675
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678 fi
6679
6680cat >>confdefs.h <<_ACEOF
6681#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6682_ACEOF
6683
6684fi
6685# Extract the first word of "circo", so it can be a program name with args.
6686set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_path_CIRCO+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006691else
6692 case $CIRCO in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 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 +00006704 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006706 break 2
6707 fi
6708done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709done
David Greenef0b9eff2009-07-09 17:16:26 +00006710IFS=$as_save_IFS
6711
6712 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6713 ;;
6714esac
6715fi
6716CIRCO=$ac_cv_path_CIRCO
6717if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6719echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006723fi
6724
6725
6726if test "$CIRCO" != "echo circo" ; then
6727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728cat >>confdefs.h <<\_ACEOF
6729#define HAVE_CIRCO 1
6730_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006731
6732 if test "$llvm_cv_os_type" = "MingW" ; then
6733 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6734 fi
6735
6736cat >>confdefs.h <<_ACEOF
6737#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6738_ACEOF
6739
6740fi
Reid Spencera773bd52006-08-04 18:18:08 +00006741for ac_prog in gv gsview32
6742do
6743 # Extract the first word of "$ac_prog", so it can be a program name with args.
6744set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747if test "${ac_cv_path_GV+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006749else
6750 case $GV in
6751 [\\/]* | ?:[\\/]*)
6752 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6753 ;;
6754 *)
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 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 +00006762 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006764 break 2
6765 fi
6766done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767done
Reid Spencera773bd52006-08-04 18:18:08 +00006768IFS=$as_save_IFS
6769
6770 ;;
6771esac
6772fi
6773GV=$ac_cv_path_GV
6774if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006775 { echo "$as_me:$LINENO: result: $GV" >&5
6776echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778 { echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006780fi
6781
6782
6783 test -n "$GV" && break
6784done
6785test -n "$GV" || GV="echo gv"
6786
6787if test "$GV" != "echo gv" ; then
6788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789cat >>confdefs.h <<\_ACEOF
6790#define HAVE_GV 1
6791_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006792
Jeff Cohen28783c32007-01-12 18:22:38 +00006793 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006794 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795 fi
6796
6797cat >>confdefs.h <<_ACEOF
6798#define LLVM_PATH_GV "$GV${EXEEXT}"
6799_ACEOF
6800
6801fi
6802# Extract the first word of "dotty", so it can be a program name with args.
6803set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806if test "${ac_cv_path_DOTTY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006808else
6809 case $DOTTY in
6810 [\\/]* | ?:[\\/]*)
6811 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6812 ;;
6813 *)
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 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 +00006821 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006823 break 2
6824 fi
6825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826done
Reid Spencera773bd52006-08-04 18:18:08 +00006827IFS=$as_save_IFS
6828
6829 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6830 ;;
6831esac
6832fi
6833DOTTY=$ac_cv_path_DOTTY
6834if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6836echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 { echo "$as_me:$LINENO: result: no" >&5
6839echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006840fi
6841
6842
6843if test "$DOTTY" != "echo dotty" ; then
6844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845cat >>confdefs.h <<\_ACEOF
6846#define HAVE_DOTTY 1
6847_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006848
Jeff Cohen28783c32007-01-12 18:22:38 +00006849 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006850 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851 fi
6852
6853cat >>confdefs.h <<_ACEOF
6854#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6855_ACEOF
6856
6857fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006858# Extract the first word of "xdot.py", so it can be a program name with args.
6859set dummy xdot.py; ac_word=$2
6860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862if test "${ac_cv_path_XDOT_PY+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865 case $XDOT_PY in
6866 [\\/]* | ?:[\\/]*)
6867 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6868 ;;
6869 *)
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882done
6883IFS=$as_save_IFS
6884
6885 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6886 ;;
6887esac
6888fi
6889XDOT_PY=$ac_cv_path_XDOT_PY
6890if test -n "$XDOT_PY"; then
6891 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6892echo "${ECHO_T}$XDOT_PY" >&6; }
6893else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6; }
6896fi
6897
6898
6899if test "$XDOT_PY" != "echo xdot.py" ; then
6900
6901cat >>confdefs.h <<\_ACEOF
6902#define HAVE_XDOT_PY 1
6903_ACEOF
6904
6905 if test "$llvm_cv_os_type" = "MingW" ; then
6906 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6907 fi
6908
6909cat >>confdefs.h <<_ACEOF
6910#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6911_ACEOF
6912
6913fi
Reid Spencera773bd52006-08-04 18:18:08 +00006914
Reid Spencera773bd52006-08-04 18:18:08 +00006915# Find a good install program. We prefer a C program (faster),
6916# so one script is as good as another. But avoid the broken or
6917# incompatible versions:
6918# SysV /etc/install, /usr/sbin/install
6919# SunOS /usr/etc/install
6920# IRIX /sbin/install
6921# AIX /bin/install
6922# AmigaOS /C/install, which installs bootblocks on floppy discs
6923# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6924# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6925# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6926# OS/2's system install, which has a completely different semantic
6927# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6929echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006930if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931if test "${ac_cv_path_install+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006933else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006939 # Account for people who put trailing slashes in PATH elements.
6940case $as_dir/ in
6941 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006944 /usr/ucb/* ) ;;
6945 *)
6946 # OSF1 and SCO ODT 3.0 have their own names for install.
6947 # Don't use installbsd from OSF since it installs stuff as root
6948 # by default.
6949 for ac_prog in ginstall scoinst install; do
6950 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951 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 +00006952 if test $ac_prog = install &&
6953 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6954 # AIX install. It has an incompatible calling convention.
6955 :
6956 elif test $ac_prog = install &&
6957 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6958 # program-specific install script used by HP pwplus--don't use.
6959 :
6960 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6962 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006963 fi
6964 fi
6965 done
6966 done
6967 ;;
6968esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969done
Reid Spencera773bd52006-08-04 18:18:08 +00006970IFS=$as_save_IFS
6971
6972
6973fi
6974 if test "${ac_cv_path_install+set}" = set; then
6975 INSTALL=$ac_cv_path_install
6976 else
6977 # As a last resort, use the slow shell script. Don't cache a
6978 # value for INSTALL within a source directory, because that will
6979 # break other packages using the cache if that directory is
6980 # removed, or if the value is a relative name.
6981 INSTALL=$ac_install_sh
6982 fi
6983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6985echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006986
6987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6988# It thinks the first close brace ends the variable substitution.
6989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6990
6991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6992
6993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6994
Eric Christopher2a1a44f2010-07-22 21:13:48 +00006995case "$INSTALL" in
6996 [\\/$]* | ?:[\\/]* ) ;;
6997 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6998esac
Reid Spencera773bd52006-08-04 18:18:08 +00006999
7000# Extract the first word of "bzip2", so it can be a program name with args.
7001set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004if test "${ac_cv_path_BZIP2+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007006else
7007 case $BZIP2 in
7008 [\\/]* | ?:[\\/]*)
7009 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7010 ;;
7011 *)
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 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 +00007019 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007021 break 2
7022 fi
7023done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007024done
Reid Spencera773bd52006-08-04 18:18:08 +00007025IFS=$as_save_IFS
7026
Reid Spencera773bd52006-08-04 18:18:08 +00007027 ;;
7028esac
7029fi
7030BZIP2=$ac_cv_path_BZIP2
7031if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7033echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035 { echo "$as_me:$LINENO: result: no" >&5
7036echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007037fi
7038
7039
mike-m68cb3192010-05-06 23:45:43 +00007040# Extract the first word of "cat", so it can be a program name with args.
7041set dummy cat; ac_word=$2
7042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044if test "${ac_cv_path_CAT+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046else
7047 case $CAT in
7048 [\\/]* | ?:[\\/]*)
7049 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7050 ;;
7051 *)
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063done
7064done
7065IFS=$as_save_IFS
7066
7067 ;;
7068esac
7069fi
7070CAT=$ac_cv_path_CAT
7071if test -n "$CAT"; then
7072 { echo "$as_me:$LINENO: result: $CAT" >&5
7073echo "${ECHO_T}$CAT" >&6; }
7074else
7075 { echo "$as_me:$LINENO: result: no" >&5
7076echo "${ECHO_T}no" >&6; }
7077fi
7078
7079
Reid Spencera773bd52006-08-04 18:18:08 +00007080# Extract the first word of "doxygen", so it can be a program name with args.
7081set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084if test "${ac_cv_path_DOXYGEN+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007086else
7087 case $DOXYGEN in
7088 [\\/]* | ?:[\\/]*)
7089 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7090 ;;
7091 *)
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 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 +00007099 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007101 break 2
7102 fi
7103done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007104done
Reid Spencera773bd52006-08-04 18:18:08 +00007105IFS=$as_save_IFS
7106
Reid Spencera773bd52006-08-04 18:18:08 +00007107 ;;
7108esac
7109fi
7110DOXYGEN=$ac_cv_path_DOXYGEN
7111if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007112 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7113echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007114else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115 { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007117fi
7118
7119
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007120# Extract the first word of "groff", so it can be a program name with args.
7121set dummy groff; ac_word=$2
7122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_GROFF+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 case $GROFF in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145IFS=$as_save_IFS
7146
7147 ;;
7148esac
7149fi
7150GROFF=$ac_cv_path_GROFF
7151if test -n "$GROFF"; then
7152 { echo "$as_me:$LINENO: result: $GROFF" >&5
7153echo "${ECHO_T}$GROFF" >&6; }
7154else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157fi
7158
7159
Reid Spencera773bd52006-08-04 18:18:08 +00007160# Extract the first word of "gzip", so it can be a program name with args.
7161set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007164if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007166else
Eric Christopher031d3072010-12-10 01:31:51 +00007167 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007168 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007169 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007170 ;;
7171 *)
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 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 +00007179 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007181 break 2
7182 fi
7183done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184done
Reid Spencera773bd52006-08-04 18:18:08 +00007185IFS=$as_save_IFS
7186
Reid Spencera773bd52006-08-04 18:18:08 +00007187 ;;
7188esac
7189fi
Eric Christopher031d3072010-12-10 01:31:51 +00007190GZIPBIN=$ac_cv_path_GZIPBIN
7191if test -n "$GZIPBIN"; then
7192 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7193echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007195 { echo "$as_me:$LINENO: result: no" >&5
7196echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007197fi
7198
7199
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007200# Extract the first word of "pdfroff", so it can be a program name with args.
7201set dummy pdfroff; ac_word=$2
7202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204if test "${ac_cv_path_PDFROFF+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207 case $PDFROFF in
7208 [\\/]* | ?:[\\/]*)
7209 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7210 ;;
7211 *)
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224done
7225IFS=$as_save_IFS
7226
7227 ;;
7228esac
7229fi
7230PDFROFF=$ac_cv_path_PDFROFF
7231if test -n "$PDFROFF"; then
7232 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7233echo "${ECHO_T}$PDFROFF" >&6; }
7234else
7235 { echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6; }
7237fi
7238
7239
7240# Extract the first word of "runtest", so it can be a program name with args.
7241set dummy runtest; ac_word=$2
7242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244if test "${ac_cv_path_RUNTEST+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 case $RUNTEST in
7248 [\\/]* | ?:[\\/]*)
7249 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7250 ;;
7251 *)
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263done
7264done
7265IFS=$as_save_IFS
7266
7267 ;;
7268esac
7269fi
7270RUNTEST=$ac_cv_path_RUNTEST
7271if test -n "$RUNTEST"; then
7272 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7273echo "${ECHO_T}$RUNTEST" >&6; }
7274else
7275 { echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6; }
7277fi
7278
7279
Reid Spencera773bd52006-08-04 18:18:08 +00007280
7281no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7283echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007284
7285# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007287 withval=$with_tclinclude; with_tclinclude=${withval}
7288else
7289 with_tclinclude=''
7290fi
7291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292if test "${ac_cv_path_tclsh+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007294else
7295
7296if test x"${with_tclinclude}" != x ; then
7297 if test -f ${with_tclinclude}/tclsh ; then
7298 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7299 elif test -f ${with_tclinclude}/src/tclsh ; then
7300 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7301 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7303echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7304 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007305 fi
7306fi
Torok Edwin871384f2010-01-26 08:50:50 +00007307fi
7308
Reid Spencera773bd52006-08-04 18:18:08 +00007309
7310if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311 { echo "$as_me:$LINENO: result: none" >&5
7312echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007313 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7314do
7315 # Extract the first word of "$ac_prog", so it can be a program name with args.
7316set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7319if test "${ac_cv_path_TCLSH+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007321else
7322 case $TCLSH in
7323 [\\/]* | ?:[\\/]*)
7324 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7325 ;;
7326 *)
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 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 +00007334 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007336 break 2
7337 fi
7338done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339done
Reid Spencera773bd52006-08-04 18:18:08 +00007340IFS=$as_save_IFS
7341
7342 ;;
7343esac
7344fi
7345TCLSH=$ac_cv_path_TCLSH
7346if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7348echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350 { echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007352fi
7353
7354
7355 test -n "$TCLSH" && break
7356done
7357
7358 if test x"${TCLSH}" = x ; then
7359 ac_cv_path_tclsh='';
7360 else
7361 ac_cv_path_tclsh="${TCLSH}";
7362 fi
7363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7365echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007366 TCLSH="${ac_cv_path_tclsh}"
7367
7368fi
7369
Reid Spencera773bd52006-08-04 18:18:08 +00007370# Extract the first word of "zip", so it can be a program name with args.
7371set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7374if test "${ac_cv_path_ZIP+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007376else
7377 case $ZIP in
7378 [\\/]* | ?:[\\/]*)
7379 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7380 ;;
7381 *)
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 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 +00007389 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007391 break 2
7392 fi
7393done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394done
Reid Spencera773bd52006-08-04 18:18:08 +00007395IFS=$as_save_IFS
7396
Reid Spencera773bd52006-08-04 18:18:08 +00007397 ;;
7398esac
7399fi
7400ZIP=$ac_cv_path_ZIP
7401if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402 { echo "$as_me:$LINENO: result: $ZIP" >&5
7403echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405 { echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007407fi
7408
7409
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007410for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007411do
7412 # Extract the first word of "$ac_prog", so it can be a program name with args.
7413set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_OCAMLC+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007418else
7419 case $OCAMLC in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7422 ;;
7423 *)
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 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 +00007431 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007433 break 2
7434 fi
7435done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007437IFS=$as_save_IFS
7438
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007439 ;;
7440esac
7441fi
7442OCAMLC=$ac_cv_path_OCAMLC
7443if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7445echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007447 { echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007449fi
7450
7451
Gordon Henriksene7072162008-03-07 18:20:01 +00007452 test -n "$OCAMLC" && break
7453done
7454
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007455for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007456do
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007463else
7464 case $OCAMLOPT in
7465 [\\/]* | ?:[\\/]*)
7466 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7467 ;;
7468 *)
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 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 +00007476 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007478 break 2
7479 fi
7480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007482IFS=$as_save_IFS
7483
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007484 ;;
7485esac
7486fi
7487OCAMLOPT=$ac_cv_path_OCAMLOPT
7488if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7490echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492 { echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007494fi
7495
7496
Gordon Henriksene7072162008-03-07 18:20:01 +00007497 test -n "$OCAMLOPT" && break
7498done
7499
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007500for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007501do
7502 # Extract the first word of "$ac_prog", so it can be a program name with args.
7503set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007508else
7509 case $OCAMLDEP in
7510 [\\/]* | ?:[\\/]*)
7511 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7512 ;;
7513 *)
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 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 +00007521 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007523 break 2
7524 fi
7525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007527IFS=$as_save_IFS
7528
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007529 ;;
7530esac
7531fi
7532OCAMLDEP=$ac_cv_path_OCAMLDEP
7533if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7535echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537 { echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007539fi
7540
7541
Gordon Henriksene7072162008-03-07 18:20:01 +00007542 test -n "$OCAMLDEP" && break
7543done
7544
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007545for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007546do
7547 # Extract the first word of "$ac_prog", so it can be a program name with args.
7548set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007553else
7554 case $OCAMLDOC in
7555 [\\/]* | ?:[\\/]*)
7556 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7557 ;;
7558 *)
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 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 +00007566 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007568 break 2
7569 fi
7570done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007572IFS=$as_save_IFS
7573
7574 ;;
7575esac
7576fi
7577OCAMLDOC=$ac_cv_path_OCAMLDOC
7578if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7580echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007582 { echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007584fi
7585
7586
7587 test -n "$OCAMLDOC" && break
7588done
7589
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007590for ac_prog in gas as
7591do
7592 # Extract the first word of "$ac_prog", so it can be a program name with args.
7593set dummy $ac_prog; ac_word=$2
7594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596if test "${ac_cv_path_GAS+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599 case $GAS in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615done
7616done
7617IFS=$as_save_IFS
7618
7619 ;;
7620esac
7621fi
7622GAS=$ac_cv_path_GAS
7623if test -n "$GAS"; then
7624 { echo "$as_me:$LINENO: result: $GAS" >&5
7625echo "${ECHO_T}$GAS" >&6; }
7626else
7627 { echo "$as_me:$LINENO: result: no" >&5
7628echo "${ECHO_T}no" >&6; }
7629fi
7630
7631
7632 test -n "$GAS" && break
7633done
7634
Reid Spencera773bd52006-08-04 18:18:08 +00007635
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007636{ echo "$as_me:$LINENO: checking for linker version" >&5
7637echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7638if test "${llvm_cv_link_version+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641
7642 version_string="$(ld -v 2>&1 | head -1)"
7643
7644 # Check for ld64.
7645 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007646 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007647 else
7648 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7649 fi
7650
7651fi
7652{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7653echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7654
7655cat >>confdefs.h <<_ACEOF
7656#define HOST_LINK_VERSION "$llvm_cv_link_version"
7657_ACEOF
7658
7659
7660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7662echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7663if test "${llvm_cv_link_use_r+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007665else
7666 ac_ext=c
7667ac_cpp='$CPP $CPPFLAGS'
7668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670ac_compiler_gnu=$ac_cv_c_compiler_gnu
7671
7672 oldcflags="$CFLAGS"
7673 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h. */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007679/* end confdefs.h. */
7680
7681int
7682main ()
7683{
Dan Gohman39ed6782010-04-25 00:12:20 +00007684
Reid Spencera773bd52006-08-04 18:18:08 +00007685 ;
7686 return 0;
7687}
7688_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689rm -f conftest.$ac_objext conftest$ac_exeext
7690if { (ac_try="$ac_link"
7691case "(($ac_try" in
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7694esac
7695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_link") 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7704 { (case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
7708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_try") 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest$ac_exeext'
7714 { (case "(($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_try") 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007723 llvm_cv_link_use_r=yes
7724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725 echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730
Bill Wendlingebcceee2009-04-18 11:20:33 +00007731rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007733 CFLAGS="$oldcflags"
7734 ac_ext=c
7735ac_cpp='$CPP $CPPFLAGS'
7736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740
7741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007742{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7743echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007744if test "$llvm_cv_link_use_r" = yes ; then
7745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746cat >>confdefs.h <<\_ACEOF
7747#define HAVE_LINK_R 1
7748_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007749
7750 fi
7751
7752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7754echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7755if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007757else
7758 ac_ext=c
7759ac_cpp='$CPP $CPPFLAGS'
7760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764 oldcflags="$CFLAGS"
7765 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007766 cat >conftest.$ac_ext <<_ACEOF
7767/* confdefs.h. */
7768_ACEOF
7769cat confdefs.h >>conftest.$ac_ext
7770cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007771/* end confdefs.h. */
7772
7773int
7774main ()
7775{
Dan Gohman39ed6782010-04-25 00:12:20 +00007776
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007777 ;
7778 return 0;
7779}
7780_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007781rm -f conftest.$ac_objext conftest$ac_exeext
7782if { (ac_try="$ac_link"
7783case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786esac
7787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_link") 2>conftest.er1
7789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } &&
7795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7796 { (case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_try") 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809esac
7810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_try") 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007815 llvm_cv_link_use_export_dynamic=yes
7816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822
Bill Wendlingebcceee2009-04-18 11:20:33 +00007823rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007825 CFLAGS="$oldcflags"
7826 ac_ext=c
7827ac_cpp='$CPP $CPPFLAGS'
7828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832
7833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007834{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7835echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007836if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007838cat >>confdefs.h <<\_ACEOF
7839#define HAVE_LINK_EXPORT_DYNAMIC 1
7840_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007841
7842 fi
7843
7844
Dan Gohmanda612d62010-06-01 14:56:56 +00007845{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7846echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7847if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849else
7850 ac_ext=c
7851ac_cpp='$CPP $CPPFLAGS'
7852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856 oldcflags="$CFLAGS"
7857
7858 # The following code is from the autoconf manual,
7859 # "11.13: Limitations of Usual Tools".
7860 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7861 # Use mktemp if possible; otherwise fall back on mkdir,
7862 # with $RANDOM to make collisions less likely.
7863 : ${TMPDIR=/tmp}
7864 {
7865 tmp=`
7866 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7867 ` &&
7868 test -n "$tmp" && test -d "$tmp"
7869 } || {
7870 tmp=$TMPDIR/foo$$-$RANDOM
7871 (umask 077 && mkdir "$tmp")
7872 } || exit $?
7873
Dan Gohmanda612d62010-06-01 14:56:56 +00007874 echo "{" > "$tmp/export.map"
7875 echo " global: main;" >> "$tmp/export.map"
7876 echo " local: *;" >> "$tmp/export.map"
7877 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007878
Dan Gohmanda612d62010-06-01 14:56:56 +00007879 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007880 cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h. */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h. */
7886
7887int
7888main ()
7889{
Dan Gohman39ed6782010-04-25 00:12:20 +00007890
Dan Gohman391569c2010-04-16 22:59:06 +00007891 ;
7892 return 0;
7893}
7894_ACEOF
7895rm -f conftest.$ac_objext conftest$ac_exeext
7896if { (ac_try="$ac_link"
7897case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900esac
7901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_link") 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7910 { (case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913esac
7914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_try") 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try='test -s conftest$ac_exeext'
7920 { (case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
7924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_try") 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007929 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007930else
7931 echo "$as_me: failed program was:" >&5
7932sed 's/^/| /' conftest.$ac_ext >&5
7933
Dan Gohman943005e2010-06-01 16:22:27 +00007934 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007935fi
7936
7937rm -f core conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007939 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007940 rmdir "$tmp"
7941 CFLAGS="$oldcflags"
7942 ac_ext=c
7943ac_cpp='$CPP $CPPFLAGS'
7944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947
7948
7949fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007950{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7951echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7952if test "$llvm_cv_link_use_version_script" = yes ; then
7953 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007954
7955 fi
7956
7957
Reid Spencera773bd52006-08-04 18:18:08 +00007958
7959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007960{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7961echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7962if test "${ac_cv_c_const+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007965 cat >conftest.$ac_ext <<_ACEOF
7966/* confdefs.h. */
7967_ACEOF
7968cat confdefs.h >>conftest.$ac_ext
7969cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007970/* end confdefs.h. */
7971
7972int
7973main ()
7974{
7975/* FIXME: Include the comments suggested by Paul. */
7976#ifndef __cplusplus
7977 /* Ultrix mips cc rejects this. */
7978 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007980 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981 char const *const *ccp;
7982 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007983 /* NEC SVR4.0.2 mips cc rejects this. */
7984 struct point {int x, y;};
7985 static struct point const zero = {0,0};
7986 /* AIX XL C 1.02.0.0 rejects this.
7987 It does not let you subtract one const X* pointer from another in
7988 an arm of an if-expression whose if-part is not a constant
7989 expression */
7990 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007991 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007992 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007993 ++ccp;
7994 p = (char**) ccp;
7995 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007996 { /* SCO 3.2v4 cc rejects this. */
7997 char *t;
7998 char const *s = 0 ? (char *) 0 : (char const *) 0;
7999
8000 *t++ = 0;
8001 if (s) return 0;
8002 }
8003 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8004 int x[] = {25, 17};
8005 const int *foo = &x[0];
8006 ++foo;
8007 }
8008 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8009 typedef const int *iptr;
8010 iptr p = 0;
8011 ++p;
8012 }
8013 { /* AIX XL C 1.02.0.0 rejects this saying
8014 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8015 struct s { int j; const int *ap[3]; };
8016 struct s *b; b->j = 5;
8017 }
8018 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8019 const int foo = 10;
8020 if (!foo) return 0;
8021 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008022 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008023#endif
8024
8025 ;
8026 return 0;
8027}
8028_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029rm -f conftest.$ac_objext
8030if { (ac_try="$ac_compile"
8031case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034esac
8035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_compile") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8044 { (case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047esac
8048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_try") 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; } &&
8053 { ac_try='test -s conftest.$ac_objext'
8054 { (case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057esac
8058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_try") 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008063 ac_cv_c_const=yes
8064else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065 echo "$as_me: failed program was:" >&5
8066sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008070
Reid Spencera773bd52006-08-04 18:18:08 +00008071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008073{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8074echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008075if test $ac_cv_c_const = no; then
8076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008077cat >>confdefs.h <<\_ACEOF
8078#define const
8079_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008080
8081fi
8082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083
8084
8085
8086
8087
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008088ac_header_dirent=no
8089for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8091{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8092echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 cat >conftest.$ac_ext <<_ACEOF
8097/* confdefs.h. */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008101/* end confdefs.h. */
8102#include <sys/types.h>
8103#include <$ac_hdr>
8104
8105int
8106main ()
8107{
8108if ((DIR *) 0)
8109return 0;
8110 ;
8111 return 0;
8112}
8113_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114rm -f conftest.$ac_objext
8115if { (ac_try="$ac_compile"
8116case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119esac
8120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008148 eval "$as_ac_Header=yes"
8149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008150 echo "$as_me: failed program was:" >&5
8151sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155
Reid Spencera773bd52006-08-04 18:18:08 +00008156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158ac_res=`eval echo '${'$as_ac_Header'}'`
8159 { echo "$as_me:$LINENO: result: $ac_res" >&5
8160echo "${ECHO_T}$ac_res" >&6; }
8161if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008162 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008163#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008164_ACEOF
8165
8166ac_header_dirent=$ac_hdr; break
8167fi
8168
8169done
8170# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8171if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008172 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8173echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8174if test "${ac_cv_search_opendir+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008176else
8177 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008178cat >conftest.$ac_ext <<_ACEOF
8179/* confdefs.h. */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008183/* end confdefs.h. */
8184
Reid Spencera773bd52006-08-04 18:18:08 +00008185/* Override any GCC internal prototype to avoid an error.
8186 Use char because int might match the return type of a GCC
8187 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008188#ifdef __cplusplus
8189extern "C"
8190#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008191char opendir ();
8192int
8193main ()
8194{
Reid Spencera773bd52006-08-04 18:18:08 +00008195return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008196 ;
8197 return 0;
8198}
8199_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008200for ac_lib in '' dir; do
8201 if test -z "$ac_lib"; then
8202 ac_res="none required"
8203 else
8204 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008206 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207 rm -f conftest.$ac_objext conftest$ac_exeext
8208if { (ac_try="$ac_link"
8209case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212esac
8213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_link") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222 { (case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8225esac
8226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_try") 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008241 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242else
8243 echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248
Bill Wendlingebcceee2009-04-18 11:20:33 +00008249rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250 conftest$ac_exeext
8251 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008252 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008253fi
John Criswell7a73b802003-06-30 21:59:07 +00008254done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255if test "${ac_cv_search_opendir+set}" = set; then
8256 :
Reid Spencera773bd52006-08-04 18:18:08 +00008257else
8258 ac_cv_search_opendir=no
8259fi
8260rm conftest.$ac_ext
8261LIBS=$ac_func_search_save_LIBS
8262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8264echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008265ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008266if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008268
Reid Spencera773bd52006-08-04 18:18:08 +00008269fi
8270
8271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8273echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8274if test "${ac_cv_search_opendir+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008276else
8277 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008278cat >conftest.$ac_ext <<_ACEOF
8279/* confdefs.h. */
8280_ACEOF
8281cat confdefs.h >>conftest.$ac_ext
8282cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008283/* end confdefs.h. */
8284
8285/* Override any GCC internal prototype to avoid an error.
8286 Use char because int might match the return type of a GCC
8287 builtin and then its argument prototype would still apply. */
8288#ifdef __cplusplus
8289extern "C"
8290#endif
8291char opendir ();
8292int
8293main ()
8294{
8295return opendir ();
8296 ;
8297 return 0;
8298}
8299_ACEOF
8300for ac_lib in '' x; do
8301 if test -z "$ac_lib"; then
8302 ac_res="none required"
8303 else
8304 ac_res=-l$ac_lib
8305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8306 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307 rm -f conftest.$ac_objext conftest$ac_exeext
8308if { (ac_try="$ac_link"
8309case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312esac
8313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_link") 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8322 { (case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325esac
8326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_try") 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try='test -s conftest$ac_exeext'
8332 { (case "(($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_try") 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008341 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342else
8343 echo "$as_me: failed program was:" >&5
8344sed 's/^/| /' conftest.$ac_ext >&5
8345
8346
Reid Spencera773bd52006-08-04 18:18:08 +00008347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348
Bill Wendlingebcceee2009-04-18 11:20:33 +00008349rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350 conftest$ac_exeext
8351 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008352 break
8353fi
8354done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008355if test "${ac_cv_search_opendir+set}" = set; then
8356 :
Reid Spencera773bd52006-08-04 18:18:08 +00008357else
8358 ac_cv_search_opendir=no
8359fi
8360rm conftest.$ac_ext
8361LIBS=$ac_func_search_save_LIBS
8362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8364echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008365ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008366if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8368
8369fi
8370
8371fi
John Criswell7a73b802003-06-30 21:59:07 +00008372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008373
John Criswell7a73b802003-06-30 21:59:07 +00008374for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375do
8376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382fi
8383ac_res=`eval echo '${'$as_ac_Header'}'`
8384 { echo "$as_me:$LINENO: result: $ac_res" >&5
8385echo "${ECHO_T}$ac_res" >&6; }
8386else
8387 # Is the header compilable?
8388{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8390cat >conftest.$ac_ext <<_ACEOF
8391/* confdefs.h. */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h. */
8396$ac_includes_default
8397#include <$ac_header>
8398_ACEOF
8399rm -f conftest.$ac_objext
8400if { (ac_try="$ac_compile"
8401case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417esac
8418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_try") 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; } &&
8423 { ac_try='test -s conftest.$ac_objext'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427esac
8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 ac_header_compiler=yes
8434else
8435 echo "$as_me: failed program was:" >&5
8436sed 's/^/| /' conftest.$ac_ext >&5
8437
8438 ac_header_compiler=no
8439fi
8440
8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8443echo "${ECHO_T}$ac_header_compiler" >&6; }
8444
8445# Is the header present?
8446{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8447echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8448cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454#include <$ac_header>
8455_ACEOF
8456if { (ac_try="$ac_cpp conftest.$ac_ext"
8457case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460esac
8461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev/null; then
8469 if test -s conftest.err; then
8470 ac_cpp_err=$ac_c_preproc_warn_flag
8471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8472 else
8473 ac_cpp_err=
8474 fi
8475else
8476 ac_cpp_err=yes
8477fi
8478if test -z "$ac_cpp_err"; then
8479 ac_header_preproc=yes
8480else
8481 echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 ac_header_preproc=no
8485fi
8486
8487rm -f conftest.err conftest.$ac_ext
8488{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8489echo "${ECHO_T}$ac_header_preproc" >&6; }
8490
8491# So? What about this header?
8492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8493 yes:no: )
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8498 ac_header_preproc=yes
8499 ;;
8500 no:yes:* )
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8513 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008514## ------------------------------------ ##
8515## Report this to http://llvm.org/bugs/ ##
8516## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517_ASBOX
8518 ) | sed "s/^/$as_me: WARNING: /" >&2
8519 ;;
8520esac
8521{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525else
8526 eval "$as_ac_Header=\$ac_header_preproc"
8527fi
8528ac_res=`eval echo '${'$as_ac_Header'}'`
8529 { echo "$as_me:$LINENO: result: $ac_res" >&5
8530echo "${ECHO_T}$ac_res" >&6; }
8531
8532fi
8533if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008534 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008536_ACEOF
8537
8538fi
8539
8540done
8541
Reid Spencera773bd52006-08-04 18:18:08 +00008542# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008543if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008544 enableval=$enable_ltdl_install;
8545fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008546
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548
8549
8550if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008551 INSTALL_LTDL_TRUE=
8552 INSTALL_LTDL_FALSE='#'
8553else
8554 INSTALL_LTDL_TRUE='#'
8555 INSTALL_LTDL_FALSE=
8556fi
8557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558
8559
8560if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008561 CONVENIENCE_LTDL_TRUE=
8562 CONVENIENCE_LTDL_FALSE='#'
8563else
8564 CONVENIENCE_LTDL_TRUE='#'
8565 CONVENIENCE_LTDL_FALSE=
8566fi
8567
8568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008569{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8570echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008571library_names_spec=
8572libname_spec='lib$name'
8573soname_spec=
8574shrext_cmds=".so"
8575postinstall_cmds=
8576postuninstall_cmds=
8577finish_cmds=
8578finish_eval=
8579shlibpath_var=
8580shlibpath_overrides_runpath=unknown
8581version_type=none
8582dynamic_linker="$host_os ld.so"
8583sys_lib_dlsearch_path_spec="/lib /usr/lib"
8584if test "$GCC" = yes; then
8585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8586 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8587 # if the path contains ";" then we assume it to be the separator
8588 # otherwise default to the standard path separator (i.e. ":") - it is
8589 # assumed that no part of a normal pathname contains ";" but that should
8590 # okay in the real world where ";" in dirpaths is itself problematic.
8591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8592 else
8593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8594 fi
8595else
8596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8597fi
8598need_lib_prefix=unknown
8599hardcode_into_libs=no
8600
8601# when you set need_version to no, make sure it does not cause -set_version
8602# flags to be left without arguments
8603need_version=unknown
8604
8605case $host_os in
8606aix3*)
8607 version_type=linux
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8609 shlibpath_var=LIBPATH
8610
8611 # AIX 3 has no versioning support, so we append a major version to the name.
8612 soname_spec='${libname}${release}${shared_ext}$major'
8613 ;;
8614
8615aix4* | aix5*)
8616 version_type=linux
8617 need_lib_prefix=no
8618 need_version=no
8619 hardcode_into_libs=yes
8620 if test "$host_cpu" = ia64; then
8621 # AIX 5 supports IA64
8622 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 else
8625 # With GCC up to 2.95.x, collect2 would create an import file
8626 # for dependence libraries. The import file would start with
8627 # the line `#! .'. This would cause the generated library to
8628 # depend on `.', always an invalid library. This was fixed in
8629 # development snapshots of GCC prior to 3.0.
8630 case $host_os in
8631 aix4 | aix4.[01] | aix4.[01].*)
8632 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8633 echo ' yes '
8634 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8635 :
8636 else
8637 can_build_shared=no
8638 fi
8639 ;;
8640 esac
8641 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8642 # soname into executable. Probably we can add versioning support to
8643 # collect2, so additional links can be useful in future.
8644 if test "$aix_use_runtimelinking" = yes; then
8645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8646 # instead of lib<name>.a to let people know that these are not
8647 # typical AIX shared libraries.
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649 else
8650 # We preserve .a as extension for shared libraries through AIX4.2
8651 # and later when we are not doing run time linking.
8652 library_names_spec='${libname}${release}.a $libname.a'
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 fi
8655 shlibpath_var=LIBPATH
8656 fi
8657 ;;
8658
8659amigaos*)
8660 library_names_spec='$libname.ixlibrary $libname.a'
8661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8662 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'
8663 ;;
8664
8665beos*)
8666 library_names_spec='${libname}${shared_ext}'
8667 dynamic_linker="$host_os ld.so"
8668 shlibpath_var=LIBRARY_PATH
8669 ;;
8670
8671bsdi[45]*)
8672 version_type=linux
8673 need_version=no
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675 soname_spec='${libname}${release}${shared_ext}$major'
8676 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8677 shlibpath_var=LD_LIBRARY_PATH
8678 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8679 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8680 # the default ld.so.conf also contains /usr/contrib/lib and
8681 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8682 # libtool to hard-code these into programs
8683 ;;
8684
8685cygwin* | mingw* | pw32*)
8686 version_type=windows
8687 shrext_cmds=".dll"
8688 need_version=no
8689 need_lib_prefix=no
8690
8691 case $GCC,$host_os in
8692 yes,cygwin* | yes,mingw* | yes,pw32*)
8693 library_names_spec='$libname.dll.a'
8694 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8695 postinstall_cmds='base_file=`basename \${file}`~
8696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8697 dldir=$destdir/`dirname \$dlpath`~
8698 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008699 $install_prog $dir/$dlname \$dldir/$dlname~
8700 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8702 dlpath=$dir/\$dldll~
8703 $rm \$dlpath'
8704 shlibpath_overrides_runpath=yes
8705
8706 case $host_os in
8707 cygwin*)
8708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8709 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8710 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8711 ;;
8712 mingw*)
8713 # MinGW DLLs use traditional 'lib' prefix
8714 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8716 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8717 # It is most probably a Windows format PATH printed by
8718 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8719 # path with ; separators, and with drive letters. We can handle the
8720 # drive letters (cygwin fileutils understands them), so leave them,
8721 # especially as we might pass files found there to a mingw objdump,
8722 # which wouldn't understand a cygwinified path. Ahh.
8723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8724 else
8725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8726 fi
8727 ;;
8728 pw32*)
8729 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008730 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 +00008731 ;;
8732 esac
8733 ;;
8734
8735 *)
8736 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8737 ;;
8738 esac
8739 dynamic_linker='Win32 ld.exe'
8740 # FIXME: first we should search . and the directory the executable is in
8741 shlibpath_var=PATH
8742 ;;
8743
8744darwin* | rhapsody*)
8745 dynamic_linker="$host_os dyld"
8746 version_type=darwin
8747 need_lib_prefix=no
8748 need_version=no
8749 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8750 soname_spec='${libname}${release}${major}$shared_ext'
8751 shlibpath_overrides_runpath=yes
8752 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008753 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008754 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8755 if test "$GCC" = yes; then
8756 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"`
8757 else
8758 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8759 fi
8760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8761 ;;
8762
8763dgux*)
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 ;;
8771
Eric Christopher360fa9a2011-10-26 00:42:12 +00008772freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008773 dynamic_linker=no
8774 ;;
8775
8776kfreebsd*-gnu)
8777 version_type=linux
8778 need_lib_prefix=no
8779 need_version=no
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 shlibpath_overrides_runpath=no
8784 hardcode_into_libs=yes
8785 dynamic_linker='GNU ld.so'
8786 ;;
8787
Reid Spencera773bd52006-08-04 18:18:08 +00008788freebsd* | dragonfly*)
8789 # DragonFly does not have aout. When/if they implement a new
8790 # versioning mechanism, adjust this.
8791 if test -x /usr/bin/objformat; then
8792 objformat=`/usr/bin/objformat`
8793 else
8794 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008795 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008796 *) objformat=elf ;;
8797 esac
8798 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008799 version_type=freebsd-$objformat
8800 case $version_type in
8801 freebsd-elf*)
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8803 need_version=no
8804 need_lib_prefix=no
8805 ;;
8806 freebsd-*)
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8808 need_version=yes
8809 ;;
8810 esac
8811 shlibpath_var=LD_LIBRARY_PATH
8812 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008813 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008814 shlibpath_overrides_runpath=yes
8815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008816 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008817 shlibpath_overrides_runpath=yes
8818 hardcode_into_libs=yes
8819 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008822 shlibpath_overrides_runpath=no
8823 hardcode_into_libs=yes
8824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008825 freebsd*) # from 4.6 on
8826 shlibpath_overrides_runpath=yes
8827 hardcode_into_libs=yes
8828 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008829 esac
8830 ;;
8831
8832gnu*)
8833 version_type=linux
8834 need_lib_prefix=no
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 hardcode_into_libs=yes
8840 ;;
8841
8842hpux9* | hpux10* | hpux11*)
8843 # Give a soname corresponding to the major version so that dld.sl refuses to
8844 # link against other versions.
8845 version_type=sunos
8846 need_lib_prefix=no
8847 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008848 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008849 ia64*)
8850 shrext_cmds='.so'
8851 hardcode_into_libs=yes
8852 dynamic_linker="$host_os dld.so"
8853 shlibpath_var=LD_LIBRARY_PATH
8854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 if test "X$HPUX_IA64_MODE" = X32; then
8858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8859 else
8860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8861 fi
8862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8863 ;;
8864 hppa*64*)
8865 shrext_cmds='.sl'
8866 hardcode_into_libs=yes
8867 dynamic_linker="$host_os dld.sl"
8868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8874 ;;
8875 *)
8876 shrext_cmds='.sl'
8877 dynamic_linker="$host_os dld.sl"
8878 shlibpath_var=SHLIB_PATH
8879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 ;;
8883 esac
8884 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8885 postinstall_cmds='chmod 555 $lib'
8886 ;;
8887
Reid Spencera773bd52006-08-04 18:18:08 +00008888interix3*)
8889 version_type=linux
8890 need_lib_prefix=no
8891 need_version=no
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=no
8897 hardcode_into_libs=yes
8898 ;;
8899
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008900irix5* | irix6* | nonstopux*)
8901 case $host_os in
8902 nonstopux*) version_type=nonstopux ;;
8903 *)
8904 if test "$lt_cv_prog_gnu_ld" = yes; then
8905 version_type=linux
8906 else
8907 version_type=irix
8908 fi ;;
8909 esac
8910 need_lib_prefix=no
8911 need_version=no
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8914 case $host_os in
8915 irix5* | nonstopux*)
8916 libsuff= shlibsuff=
8917 ;;
8918 *)
8919 case $LD in # libtool.m4 will add one of these switches to LD
8920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8921 libsuff= shlibsuff= libmagic=32-bit;;
8922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8923 libsuff=32 shlibsuff=N32 libmagic=N32;;
8924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8926 *) libsuff= shlibsuff= libmagic=never-match;;
8927 esac
8928 ;;
8929 esac
8930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8931 shlibpath_overrides_runpath=no
8932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8934 hardcode_into_libs=yes
8935 ;;
8936
8937# No shared lib support for Linux oldld, aout, or coff.
8938linux*oldld* | linux*aout* | linux*coff*)
8939 dynamic_linker=no
8940 ;;
8941
8942# This must be Linux ELF.
8943linux*)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=no
8952 # This implies no fast_install, which is unacceptable.
8953 # Some rework will be needed to allow for fast_install
8954 # before this can be enabled.
8955 hardcode_into_libs=yes
8956
8957 # Append ld.so.conf contents to the search path
8958 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008959 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 +00008960 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8961 fi
8962
8963 # We used to test for /lib/ld.so.1 and disable shared libraries on
8964 # powerpc, because MkLinux only supported shared libraries with the
8965 # GNU dynamic linker. Since this was broken with cross compilers,
8966 # most powerpc-linux boxes support dynamic linking these days and
8967 # people can always --disable-shared, the test was removed, and we
8968 # assume the GNU/Linux dynamic linker is in use.
8969 dynamic_linker='GNU/Linux ld.so'
8970 ;;
8971
8972knetbsd*-gnu)
8973 version_type=linux
8974 need_lib_prefix=no
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=no
8980 hardcode_into_libs=yes
8981 dynamic_linker='GNU ld.so'
8982 ;;
8983
8984netbsd*)
8985 version_type=sunos
8986 need_lib_prefix=no
8987 need_version=no
8988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8991 dynamic_linker='NetBSD (a.out) ld.so'
8992 else
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 dynamic_linker='NetBSD ld.elf_so'
8996 fi
8997 shlibpath_var=LD_LIBRARY_PATH
8998 shlibpath_overrides_runpath=yes
8999 hardcode_into_libs=yes
9000 ;;
9001
9002newsos6)
9003 version_type=linux
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=yes
9007 ;;
9008
9009nto-qnx*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 ;;
9018
9019openbsd*)
9020 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009021 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009022 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9024 case $host_os in
9025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9026 *) need_version=no ;;
9027 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9032 case $host_os in
9033 openbsd2.[89] | openbsd2.[89].*)
9034 shlibpath_overrides_runpath=no
9035 ;;
9036 *)
9037 shlibpath_overrides_runpath=yes
9038 ;;
9039 esac
9040 else
9041 shlibpath_overrides_runpath=yes
9042 fi
9043 ;;
9044
9045os2*)
9046 libname_spec='$name'
9047 shrext_cmds=".dll"
9048 need_lib_prefix=no
9049 library_names_spec='$libname${shared_ext} $libname.a'
9050 dynamic_linker='OS/2 ld.exe'
9051 shlibpath_var=LIBPATH
9052 ;;
9053
9054osf3* | osf4* | osf5*)
9055 version_type=osf
9056 need_lib_prefix=no
9057 need_version=no
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9063 ;;
9064
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009065solaris*)
9066 version_type=linux
9067 need_lib_prefix=no
9068 need_version=no
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 hardcode_into_libs=yes
9074 # ldd complains unless libraries are executable
9075 postinstall_cmds='chmod +x $lib'
9076 ;;
9077
9078sunos4*)
9079 version_type=sunos
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=yes
9084 if test "$with_gnu_ld" = yes; then
9085 need_lib_prefix=no
9086 fi
9087 need_version=yes
9088 ;;
9089
Reid Spencera773bd52006-08-04 18:18:08 +00009090sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009091 version_type=linux
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 case $host_vendor in
9096 sni)
9097 shlibpath_overrides_runpath=no
9098 need_lib_prefix=no
9099 export_dynamic_flag_spec='${wl}-Blargedynsym'
9100 runpath_var=LD_RUN_PATH
9101 ;;
9102 siemens)
9103 need_lib_prefix=no
9104 ;;
9105 motorola)
9106 need_lib_prefix=no
9107 need_version=no
9108 shlibpath_overrides_runpath=no
9109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9110 ;;
9111 esac
9112 ;;
9113
9114sysv4*MP*)
9115 if test -d /usr/nec ;then
9116 version_type=linux
9117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9118 soname_spec='$libname${shared_ext}.$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 fi
9121 ;;
9122
Reid Spencera773bd52006-08-04 18:18:08 +00009123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9124 version_type=freebsd-elf
9125 need_lib_prefix=no
9126 need_version=no
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 hardcode_into_libs=yes
9131 if test "$with_gnu_ld" = yes; then
9132 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9133 shlibpath_overrides_runpath=no
9134 else
9135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9136 shlibpath_overrides_runpath=yes
9137 case $host_os in
9138 sco3.2v5*)
9139 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9140 ;;
9141 esac
9142 fi
9143 sys_lib_dlsearch_path_spec='/usr/lib'
9144 ;;
9145
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146uts4*)
9147 version_type=linux
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 ;;
9152
9153*)
9154 dynamic_linker=no
9155 ;;
9156esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009157{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9158echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009159test "$dynamic_linker" = no && can_build_shared=no
9160
Reid Spencera773bd52006-08-04 18:18:08 +00009161variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9162if test "$GCC" = yes; then
9163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9164fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165
Reid Spencera773bd52006-08-04 18:18:08 +00009166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009167{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9168echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9169if test "${libltdl_cv_shlibext+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171else
9172
9173module=yes
9174eval libltdl_cv_shlibext=$shrext_cmds
9175
9176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009177{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9178echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009179if test -n "$libltdl_cv_shlibext"; then
9180
9181cat >>confdefs.h <<_ACEOF
9182#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9183_ACEOF
9184
9185fi
9186
9187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009188{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9189echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9190if test "${libltdl_cv_shlibpath_var+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009192else
9193 libltdl_cv_shlibpath_var="$shlibpath_var"
9194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009195{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9196echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009197if test -n "$libltdl_cv_shlibpath_var"; then
9198
9199cat >>confdefs.h <<_ACEOF
9200#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9201_ACEOF
9202
9203fi
9204
9205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009206{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9207echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9208if test "${libltdl_cv_sys_search_path+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009210else
9211 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009213{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9214echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215if test -n "$libltdl_cv_sys_search_path"; then
9216 sys_search_path=
9217 for dir in $libltdl_cv_sys_search_path; do
9218 if test -z "$sys_search_path"; then
9219 sys_search_path="$dir"
9220 else
9221 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9222 fi
9223 done
9224
9225cat >>confdefs.h <<_ACEOF
9226#define LTDL_SYSSEARCHPATH "$sys_search_path"
9227_ACEOF
9228
9229fi
9230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009231{ echo "$as_me:$LINENO: checking for objdir" >&5
9232echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9233if test "${libltdl_cv_objdir+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009235else
9236 libltdl_cv_objdir="$objdir"
9237 if test -n "$objdir"; then
9238 :
9239 else
9240 rm -f .libs 2>/dev/null
9241 mkdir .libs 2>/dev/null
9242 if test -d .libs; then
9243 libltdl_cv_objdir=.libs
9244 else
9245 # MS-DOS does not allow filenames that begin with a dot.
9246 libltdl_cv_objdir=_libs
9247 fi
9248 rmdir .libs 2>/dev/null
9249 fi
9250
9251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009252{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9253echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254
9255cat >>confdefs.h <<_ACEOF
9256#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9257_ACEOF
9258
9259
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009260
9261
9262
9263
9264# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009265{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9266echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9267if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009269else
9270
9271# These are sane defaults that work on at least a few old systems.
9272# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9273
9274# Character class describing NM global symbol codes.
9275symcode='[BCDEGRST]'
9276
9277# Regexp to match symbols that can be accessed directly from C.
9278sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9279
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009280# Transform an extracted symbol line into a proper C declaration
9281lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9282
9283# Transform an extracted symbol line into symbol name and symbol address
9284lt_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'"
9285
9286# Define system-specific variables.
9287case $host_os in
9288aix*)
9289 symcode='[BCDT]'
9290 ;;
9291cygwin* | mingw* | pw32*)
9292 symcode='[ABCDGISTW]'
9293 ;;
9294hpux*) # Its linker distinguishes data from code symbols
9295 if test "$host_cpu" = ia64; then
9296 symcode='[ABCDEGRST]'
9297 fi
9298 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9299 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'"
9300 ;;
9301linux*)
9302 if test "$host_cpu" = ia64; then
9303 symcode='[ABCDGIRSTW]'
9304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9305 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'"
9306 fi
9307 ;;
9308irix* | nonstopux*)
9309 symcode='[BCDEGRST]'
9310 ;;
9311osf*)
9312 symcode='[BCDEGQRST]'
9313 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009314solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009315 symcode='[BDRT]'
9316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009317sco3.2v5*)
9318 symcode='[DT]'
9319 ;;
9320sysv4.2uw2*)
9321 symcode='[DT]'
9322 ;;
9323sysv5* | sco5v6* | unixware* | OpenUNIX*)
9324 symcode='[ABDT]'
9325 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009326sysv4)
9327 symcode='[DFNSTU]'
9328 ;;
9329esac
9330
9331# Handle CRLF in mingw tool chain
9332opt_cr=
9333case $build_os in
9334mingw*)
9335 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9336 ;;
9337esac
9338
9339# If we're using GNU nm, then use its standard symbol codes.
9340case `$NM -V 2>&1` in
9341*GNU* | *'with BFD'*)
9342 symcode='[ABCDGIRSTW]' ;;
9343esac
9344
9345# Try without a prefix undercore, then with it.
9346for ac_symprfx in "" "_"; do
9347
Reid Spencera773bd52006-08-04 18:18:08 +00009348 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9349 symxfrm="\\1 $ac_symprfx\\2 \\2"
9350
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009352 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 +00009353
9354 # Check to see that the pipe works correctly.
9355 pipe_works=no
9356
9357 rm -f conftest*
9358 cat > conftest.$ac_ext <<EOF
9359#ifdef __cplusplus
9360extern "C" {
9361#endif
9362char nm_test_var;
9363void nm_test_func(){}
9364#ifdef __cplusplus
9365}
9366#endif
9367int main(){nm_test_var='a';nm_test_func();return(0);}
9368EOF
9369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371 (eval $ac_compile) 2>&5
9372 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009375 # Now try to grab the symbols.
9376 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009377 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 +00009378 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9379 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382 # Try sorting and uniquifying the output.
9383 if sort "$nlist" | uniq > "$nlist"T; then
9384 mv -f "$nlist"T "$nlist"
9385 else
9386 rm -f "$nlist"T
9387 fi
9388
9389 # Make sure that we snagged all the symbols we need.
9390 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9391 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9392 cat <<EOF > conftest.$ac_ext
9393#ifdef __cplusplus
9394extern "C" {
9395#endif
9396
9397EOF
9398 # Now generate the symbol file.
9399 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9400
9401 cat <<EOF >> conftest.$ac_ext
9402#if defined (__STDC__) && __STDC__
9403# define lt_ptr_t void *
9404#else
9405# define lt_ptr_t char *
9406# define const
9407#endif
9408
9409/* The mapping between symbol names and symbols. */
9410const struct {
9411 const char *name;
9412 lt_ptr_t address;
9413}
9414lt_preloaded_symbols[] =
9415{
9416EOF
9417 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9418 cat <<\EOF >> conftest.$ac_ext
9419 {0, (lt_ptr_t) 0}
9420};
9421
9422#ifdef __cplusplus
9423}
9424#endif
9425EOF
9426 # Now try linking the two files.
9427 mv conftest.$ac_objext conftstm.$ac_objext
9428 lt_save_LIBS="$LIBS"
9429 lt_save_CFLAGS="$CFLAGS"
9430 LIBS="conftstm.$ac_objext"
9431 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433 (eval $ac_link) 2>&5
9434 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437 pipe_works=yes
9438 fi
9439 LIBS="$lt_save_LIBS"
9440 CFLAGS="$lt_save_CFLAGS"
9441 else
9442 echo "cannot find nm_test_func in $nlist" >&5
9443 fi
9444 else
9445 echo "cannot find nm_test_var in $nlist" >&5
9446 fi
9447 else
9448 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9449 fi
9450 else
9451 echo "$progname: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 fi
9454 rm -f conftest* conftst*
9455
9456 # Do not use the global_symbol_pipe unless it works.
9457 if test "$pipe_works" = yes; then
9458 break
9459 else
9460 lt_cv_sys_global_symbol_pipe=
9461 fi
9462done
9463
9464fi
9465
9466if test -z "$lt_cv_sys_global_symbol_pipe"; then
9467 lt_cv_sys_global_symbol_to_cdecl=
9468fi
9469if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009470 { echo "$as_me:$LINENO: result: failed" >&5
9471echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009473 { echo "$as_me:$LINENO: result: ok" >&5
9474echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475fi
9476
9477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009478{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9479echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9480if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482else
9483 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9484 libltdl_cv_preloaded_symbols=yes
9485 else
9486 libltdl_cv_preloaded_symbols=no
9487 fi
9488
9489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009490{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9491echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009492if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009494cat >>confdefs.h <<\_ACEOF
9495#define HAVE_PRELOADED_SYMBOLS 1
9496_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497
9498fi
9499
9500LIBADD_DL=
9501
9502ac_ext=c
9503ac_cpp='$CPP $CPPFLAGS'
9504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509{ echo "$as_me:$LINENO: checking for shl_load" >&5
9510echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9511if test "${ac_cv_func_shl_load+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513else
9514 cat >conftest.$ac_ext <<_ACEOF
9515/* confdefs.h. */
9516_ACEOF
9517cat confdefs.h >>conftest.$ac_ext
9518cat >>conftest.$ac_ext <<_ACEOF
9519/* end confdefs.h. */
9520/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9522#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009524/* System header to define __stub macros and hopefully few prototypes,
9525 which can conflict with char shl_load (); below.
9526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9527 <limits.h> exists even on freestanding compilers. */
9528
9529#ifdef __STDC__
9530# include <limits.h>
9531#else
9532# include <assert.h>
9533#endif
9534
9535#undef shl_load
9536
9537/* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9540#ifdef __cplusplus
9541extern "C"
9542#endif
9543char shl_load ();
9544/* The GNU C library defines this for functions which it implements
9545 to always fail with ENOSYS. Some functions are actually named
9546 something starting with __ and the normal name is an alias. */
9547#if defined __stub_shl_load || defined __stub___shl_load
9548choke me
9549#endif
9550
9551int
9552main ()
9553{
9554return shl_load ();
9555 ;
9556 return 0;
9557}
9558_ACEOF
9559rm -f conftest.$ac_objext conftest$ac_exeext
9560if { (ac_try="$ac_link"
9561case "(($ac_try" in
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9564esac
9565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_link") 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9574 { (case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577esac
9578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_try") 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; } &&
9583 { ac_try='test -s conftest$ac_exeext'
9584 { (case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587esac
9588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_try") 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_func_shl_load=yes
9594else
9595 echo "$as_me: failed program was:" >&5
9596sed 's/^/| /' conftest.$ac_ext >&5
9597
9598 ac_cv_func_shl_load=no
9599fi
9600
9601rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603fi
9604{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9605echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9606if test $ac_cv_func_shl_load = yes; then
9607
9608cat >>confdefs.h <<\_ACEOF
9609#define HAVE_SHL_LOAD 1
9610_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611
9612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9614echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9615if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617else
9618 ac_check_lib_save_LIBS=$LIBS
9619LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009620cat >conftest.$ac_ext <<_ACEOF
9621/* confdefs.h. */
9622_ACEOF
9623cat confdefs.h >>conftest.$ac_ext
9624cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625/* end confdefs.h. */
9626
Reid Spencera773bd52006-08-04 18:18:08 +00009627/* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630#ifdef __cplusplus
9631extern "C"
9632#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633char shl_load ();
9634int
9635main ()
9636{
Reid Spencera773bd52006-08-04 18:18:08 +00009637return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638 ;
9639 return 0;
9640}
9641_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009642rm -f conftest.$ac_objext conftest$ac_exeext
9643if { (ac_try="$ac_link"
9644case "(($ac_try" in
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9647esac
9648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_link") 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9657 { (case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660esac
9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_try") 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670esac
9671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_try") 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009676 ac_cv_lib_dld_shl_load=yes
9677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009678 echo "$as_me: failed program was:" >&5
9679sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009683
Bill Wendlingebcceee2009-04-18 11:20:33 +00009684rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009685 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009686LIBS=$ac_check_lib_save_LIBS
9687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009688{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9689echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9690if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009692cat >>confdefs.h <<\_ACEOF
9693#define HAVE_SHL_LOAD 1
9694_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695
9696 LIBADD_DL="$LIBADD_DL -ldld"
9697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009698 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9699echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9700if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009702else
9703 ac_check_lib_save_LIBS=$LIBS
9704LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009705cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009710/* end confdefs.h. */
9711
Reid Spencera773bd52006-08-04 18:18:08 +00009712/* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715#ifdef __cplusplus
9716extern "C"
9717#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009718char dlopen ();
9719int
9720main ()
9721{
Reid Spencera773bd52006-08-04 18:18:08 +00009722return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009723 ;
9724 return 0;
9725}
9726_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009727rm -f conftest.$ac_objext conftest$ac_exeext
9728if { (ac_try="$ac_link"
9729case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732esac
9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745esac
9746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761 ac_cv_lib_dl_dlopen=yes
9762else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009763 echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009768
Bill Wendlingebcceee2009-04-18 11:20:33 +00009769rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009770 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771LIBS=$ac_check_lib_save_LIBS
9772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009773{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9774echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9775if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009777cat >>confdefs.h <<\_ACEOF
9778#define HAVE_LIBDL 1
9779_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780
9781 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009783 cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788/* end confdefs.h. */
9789#if HAVE_DLFCN_H
9790# include <dlfcn.h>
9791#endif
9792
9793int
9794main ()
9795{
9796dlopen(0, 0);
9797 ;
9798 return 0;
9799}
9800_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009801rm -f conftest.$ac_objext conftest$ac_exeext
9802if { (ac_try="$ac_link"
9803case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806esac
9807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_link") 2>conftest.er1
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9816 { (case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9819esac
9820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_try") 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; } &&
9825 { ac_try='test -s conftest$ac_exeext'
9826 { (case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829esac
9830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_try") 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009836cat >>confdefs.h <<\_ACEOF
9837#define HAVE_LIBDL 1
9838_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839 libltdl_cv_func_dlopen="yes"
9840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009841 echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
9844 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9845echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9846if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848else
9849 ac_check_lib_save_LIBS=$LIBS
9850LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009851cat >conftest.$ac_ext <<_ACEOF
9852/* confdefs.h. */
9853_ACEOF
9854cat confdefs.h >>conftest.$ac_ext
9855cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856/* end confdefs.h. */
9857
Reid Spencera773bd52006-08-04 18:18:08 +00009858/* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861#ifdef __cplusplus
9862extern "C"
9863#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864char dlopen ();
9865int
9866main ()
9867{
Reid Spencera773bd52006-08-04 18:18:08 +00009868return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869 ;
9870 return 0;
9871}
9872_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009873rm -f conftest.$ac_objext conftest$ac_exeext
9874if { (ac_try="$ac_link"
9875case "(($ac_try" in
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9878esac
9879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9881 ac_status=$?
9882 grep -v '^ *+' conftest.er1 >conftest.err
9883 rm -f conftest.er1
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest$ac_exeext'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907 ac_cv_lib_svld_dlopen=yes
9908else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009909 echo "$as_me: failed program was:" >&5
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
9912 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009913fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009914
Bill Wendlingebcceee2009-04-18 11:20:33 +00009915rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009916 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917LIBS=$ac_check_lib_save_LIBS
9918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009919{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9920echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9921if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009923cat >>confdefs.h <<\_ACEOF
9924#define HAVE_LIBDL 1
9925_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926
9927 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9928else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009929 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9930echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9931if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933else
9934 ac_check_lib_save_LIBS=$LIBS
9935LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941/* end confdefs.h. */
9942
Reid Spencera773bd52006-08-04 18:18:08 +00009943/* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946#ifdef __cplusplus
9947extern "C"
9948#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949char dld_link ();
9950int
9951main ()
9952{
Reid Spencera773bd52006-08-04 18:18:08 +00009953return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954 ;
9955 return 0;
9956}
9957_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (ac_try="$ac_link"
9960case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963esac
9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_link") 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992 ac_cv_lib_dld_dld_link=yes
9993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009994 echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009999
Bill Wendlingebcceee2009-04-18 11:20:33 +000010000rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010001 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010002LIBS=$ac_check_lib_save_LIBS
10003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010004{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10005echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10006if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010008cat >>confdefs.h <<\_ACEOF
10009#define HAVE_DLD 1
10010_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011
10012 LIBADD_DL="$LIBADD_DL -ldld"
10013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010014 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10015echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10016if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018else
10019 cat >conftest.$ac_ext <<_ACEOF
10020/* confdefs.h. */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h. */
10025/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10027#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010029/* System header to define __stub macros and hopefully few prototypes,
10030 which can conflict with char _dyld_func_lookup (); below.
10031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10032 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010034#ifdef __STDC__
10035# include <limits.h>
10036#else
10037# include <assert.h>
10038#endif
10039
10040#undef _dyld_func_lookup
10041
10042/* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10045#ifdef __cplusplus
10046extern "C"
10047#endif
10048char _dyld_func_lookup ();
10049/* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
10052#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10053choke me
10054#endif
10055
10056int
10057main ()
10058{
10059return _dyld_func_lookup ();
10060 ;
10061 return 0;
10062}
10063_ACEOF
10064rm -f conftest.$ac_objext conftest$ac_exeext
10065if { (ac_try="$ac_link"
10066case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10069esac
10070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_link") 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082esac
10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092esac
10093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_try") 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_func__dyld_func_lookup=yes
10099else
10100 echo "$as_me: failed program was:" >&5
10101sed 's/^/| /' conftest.$ac_ext >&5
10102
10103 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104fi
Reid Spencera773bd52006-08-04 18:18:08 +000010105
Bill Wendlingebcceee2009-04-18 11:20:33 +000010106rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010107 conftest$ac_exeext conftest.$ac_ext
10108fi
10109{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10110echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10111if test $ac_cv_func__dyld_func_lookup = yes; then
10112
10113cat >>confdefs.h <<\_ACEOF
10114#define HAVE_DYLD 1
10115_ACEOF
10116
10117fi
10118
10119
10120fi
10121
10122
10123fi
10124
10125
10126fi
10127
10128rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130
10131fi
10132
10133
10134fi
10135
10136
10137fi
10138
10139
10140if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10141then
10142 lt_save_LIBS="$LIBS"
10143 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010144
10145for ac_func in dlerror
10146do
10147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153 cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
10159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10161#define $ac_func innocuous_$ac_func
10162
10163/* System header to define __stub macros and hopefully few prototypes,
10164 which can conflict with char $ac_func (); below.
10165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166 <limits.h> exists even on freestanding compilers. */
10167
10168#ifdef __STDC__
10169# include <limits.h>
10170#else
10171# include <assert.h>
10172#endif
10173
10174#undef $ac_func
10175
10176/* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10179#ifdef __cplusplus
10180extern "C"
10181#endif
10182char $ac_func ();
10183/* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
10186#if defined __stub_$ac_func || defined __stub___$ac_func
10187choke me
10188#endif
10189
10190int
10191main ()
10192{
10193return $ac_func ();
10194 ;
10195 return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
10199if { (ac_try="$ac_link"
10200case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10203esac
10204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_link") 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest$ac_exeext'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226esac
10227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_try") 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 eval "$as_ac_var=yes"
10233else
10234 echo "$as_me: failed program was:" >&5
10235sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 eval "$as_ac_var=no"
10238fi
10239
10240rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242fi
10243ac_res=`eval echo '${'$as_ac_var'}'`
10244 { echo "$as_me:$LINENO: result: $ac_res" >&5
10245echo "${ECHO_T}$ac_res" >&6; }
10246if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010247 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010249_ACEOF
10250
10251fi
10252done
10253
10254 LIBS="$lt_save_LIBS"
10255fi
10256ac_ext=c
10257ac_cpp='$CPP $CPPFLAGS'
10258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260ac_compiler_gnu=$ac_cv_c_compiler_gnu
10261
10262
10263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010264{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10265echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10266if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268else
10269 ac_cv_sys_symbol_underscore=no
10270 cat > conftest.$ac_ext <<EOF
10271void nm_test_func(){}
10272int main(){nm_test_func;return 0;}
10273EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275 (eval $ac_compile) 2>&5
10276 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279 # Now try to grab the symbols.
10280 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010281 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 +000010282 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10283 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010286 # See whether the symbols have a leading underscore.
10287 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10288 ac_cv_sys_symbol_underscore=yes
10289 else
10290 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10291 :
10292 else
10293 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10294 fi
10295 fi
10296 else
10297 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10298 fi
10299 else
10300 echo "configure: failed program was:" >&5
10301 cat conftest.c >&5
10302 fi
10303 rm -rf conftest*
10304
10305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010306{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10307echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308
10309
10310if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10311 if test x"$libltdl_cv_func_dlopen" = xyes ||
10312 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010313 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10314echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10315if test "${libltdl_cv_need_uscore+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317else
10318 libltdl_cv_need_uscore=unknown
10319 save_LIBS="$LIBS"
10320 LIBS="$LIBS $LIBADD_DL"
10321 if test "$cross_compiling" = yes; then :
10322 libltdl_cv_need_uscore=cross
10323else
10324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10325 lt_status=$lt_dlunknown
10326 cat > conftest.$ac_ext <<EOF
Daniel Dunbarf468fd82012-05-08 18:26:07 +000010327#line 10327 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328#include "confdefs.h"
10329
10330#if HAVE_DLFCN_H
10331#include <dlfcn.h>
10332#endif
10333
10334#include <stdio.h>
10335
10336#ifdef RTLD_GLOBAL
10337# define LT_DLGLOBAL RTLD_GLOBAL
10338#else
10339# ifdef DL_GLOBAL
10340# define LT_DLGLOBAL DL_GLOBAL
10341# else
10342# define LT_DLGLOBAL 0
10343# endif
10344#endif
10345
10346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10347 find out it does not work in some platform. */
10348#ifndef LT_DLLAZY_OR_NOW
10349# ifdef RTLD_LAZY
10350# define LT_DLLAZY_OR_NOW RTLD_LAZY
10351# else
10352# ifdef DL_LAZY
10353# define LT_DLLAZY_OR_NOW DL_LAZY
10354# else
10355# ifdef RTLD_NOW
10356# define LT_DLLAZY_OR_NOW RTLD_NOW
10357# else
10358# ifdef DL_NOW
10359# define LT_DLLAZY_OR_NOW DL_NOW
10360# else
10361# define LT_DLLAZY_OR_NOW 0
10362# endif
10363# endif
10364# endif
10365# endif
10366#endif
10367
10368#ifdef __cplusplus
10369extern "C" void exit (int);
10370#endif
10371
10372void fnord() { int i=42;}
10373int main ()
10374{
10375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10376 int status = $lt_dlunknown;
10377
10378 if (self)
10379 {
10380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10381 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10382 /* dlclose (self); */
10383 }
Reid Spencera773bd52006-08-04 18:18:08 +000010384 else
10385 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386
10387 exit (status);
10388}
10389EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010391 (eval $ac_link) 2>&5
10392 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010395 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396 lt_status=$?
10397 case x$lt_status in
10398 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10399 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010400 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401 esac
10402 else :
10403 # compilation failed
10404
10405 fi
10406fi
10407rm -fr conftest*
10408
10409 LIBS="$save_LIBS"
10410
10411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010412{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10413echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414 fi
10415fi
10416
10417if test x"$libltdl_cv_need_uscore" = xyes; then
10418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010419cat >>confdefs.h <<\_ACEOF
10420#define NEED_USCORE 1
10421_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422
10423fi
10424
10425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010426{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10427echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10428if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430else
10431 # PORTME does your system automatically load deplibs for dlopen?
10432 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10433 # For now, we just catch OSes we know something about -- in the
10434 # future, we'll try test this programmatically.
10435 libltdl_cv_sys_dlopen_deplibs=unknown
10436 case "$host_os" in
10437 aix3*|aix4.1.*|aix4.2.*)
10438 # Unknown whether this is true for these versions of AIX, but
10439 # we want this `case' here to explicitly catch those versions.
10440 libltdl_cv_sys_dlopen_deplibs=unknown
10441 ;;
10442 aix[45]*)
10443 libltdl_cv_sys_dlopen_deplibs=yes
10444 ;;
10445 darwin*)
10446 # Assuming the user has installed a libdl from somewhere, this is true
10447 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10448 libltdl_cv_sys_dlopen_deplibs=yes
10449 ;;
10450 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10451 # GNU and its variants, using gnu ld.so (Glibc)
10452 libltdl_cv_sys_dlopen_deplibs=yes
10453 ;;
10454 hpux10*|hpux11*)
10455 libltdl_cv_sys_dlopen_deplibs=yes
10456 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010457 interix*)
10458 libltdl_cv_sys_dlopen_deplibs=yes
10459 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010460 irix[12345]*|irix6.[01]*)
10461 # Catch all versions of IRIX before 6.2, and indicate that we don't
10462 # know how it worked for any of those versions.
10463 libltdl_cv_sys_dlopen_deplibs=unknown
10464 ;;
10465 irix*)
10466 # The case above catches anything before 6.2, and it's known that
10467 # at 6.2 and later dlopen does load deplibs.
10468 libltdl_cv_sys_dlopen_deplibs=yes
10469 ;;
10470 netbsd*)
10471 libltdl_cv_sys_dlopen_deplibs=yes
10472 ;;
10473 openbsd*)
10474 libltdl_cv_sys_dlopen_deplibs=yes
10475 ;;
10476 osf[1234]*)
10477 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10478 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010479 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010480 libltdl_cv_sys_dlopen_deplibs=no
10481 ;;
10482 osf5.0|osf5.0a|osf5.1)
10483 # dlopen *does* load deplibs and with the right loader patch applied
10484 # it even uses RPATH in a shared library to search for shared objects
10485 # that the library depends on, but there's no easy way to know if that
10486 # patch is installed. Since this is the case, all we can really
10487 # say is unknown -- it depends on the patch being installed. If
10488 # it is, this changes to `yes'. Without it, it would be `no'.
10489 libltdl_cv_sys_dlopen_deplibs=unknown
10490 ;;
10491 osf*)
10492 # the two cases above should catch all versions of osf <= 5.1. Read
10493 # the comments above for what we know about them.
10494 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10495 # is used to find them so we can finally say `yes'.
10496 libltdl_cv_sys_dlopen_deplibs=yes
10497 ;;
10498 solaris*)
10499 libltdl_cv_sys_dlopen_deplibs=yes
10500 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10502 libltdl_cv_sys_dlopen_deplibs=yes
10503 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504 esac
10505
10506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010507{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10508echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010511cat >>confdefs.h <<\_ACEOF
10512#define LTDL_DLOPEN_DEPLIBS 1
10513_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514
10515fi
10516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010517
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010519do
10520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526fi
10527ac_res=`eval echo '${'$as_ac_Header'}'`
10528 { echo "$as_me:$LINENO: result: $ac_res" >&5
10529echo "${ECHO_T}$ac_res" >&6; }
10530else
10531 # Is the header compilable?
10532{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10534cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h. */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h. */
10540$ac_includes_default
10541#include <$ac_header>
10542_ACEOF
10543rm -f conftest.$ac_objext
10544if { (ac_try="$ac_compile"
10545case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548esac
10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_compile") 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561esac
10562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest.$ac_objext'
10568 { (case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_try") 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_header_compiler=yes
10578else
10579 echo "$as_me: failed program was:" >&5
10580sed 's/^/| /' conftest.$ac_ext >&5
10581
10582 ac_header_compiler=no
10583fi
10584
10585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10587echo "${ECHO_T}$ac_header_compiler" >&6; }
10588
10589# Is the header present?
10590{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10592cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h. */
10598#include <$ac_header>
10599_ACEOF
10600if { (ac_try="$ac_cpp conftest.$ac_ext"
10601case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604esac
10605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } >/dev/null; then
10613 if test -s conftest.err; then
10614 ac_cpp_err=$ac_c_preproc_warn_flag
10615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10616 else
10617 ac_cpp_err=
10618 fi
10619else
10620 ac_cpp_err=yes
10621fi
10622if test -z "$ac_cpp_err"; then
10623 ac_header_preproc=yes
10624else
10625 echo "$as_me: failed program was:" >&5
10626sed 's/^/| /' conftest.$ac_ext >&5
10627
10628 ac_header_preproc=no
10629fi
10630
10631rm -f conftest.err conftest.$ac_ext
10632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633echo "${ECHO_T}$ac_header_preproc" >&6; }
10634
10635# So? What about this header?
10636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10637 yes:no: )
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10642 ac_header_preproc=yes
10643 ;;
10644 no:yes:* )
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10657 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010658## ------------------------------------ ##
10659## Report this to http://llvm.org/bugs/ ##
10660## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010661_ASBOX
10662 ) | sed "s/^/$as_me: WARNING: /" >&2
10663 ;;
10664esac
10665{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670 eval "$as_ac_Header=\$ac_header_preproc"
10671fi
10672ac_res=`eval echo '${'$as_ac_Header'}'`
10673 { echo "$as_me:$LINENO: result: $ac_res" >&5
10674echo "${ECHO_T}$ac_res" >&6; }
10675
10676fi
10677if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680_ACEOF
10681
10682fi
10683
10684done
10685
10686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010687{ echo "$as_me:$LINENO: checking for error_t" >&5
10688echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10689if test "${ac_cv_type_error_t+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10691else
10692 cat >conftest.$ac_ext <<_ACEOF
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699# include <argz.h>
10700#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010701
10702typedef error_t ac__type_new_;
10703int
10704main ()
10705{
10706if ((ac__type_new_ *) 0)
10707 return 0;
10708if (sizeof (ac__type_new_))
10709 return 0;
10710 ;
10711 return 0;
10712}
10713_ACEOF
10714rm -f conftest.$ac_objext
10715if { (ac_try="$ac_compile"
10716case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10719esac
10720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_compile") 2>conftest.er1
10722 ac_status=$?
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732esac
10733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest.$ac_objext'
10739 { (case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742esac
10743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_try") 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_cv_type_error_t=yes
10749else
10750 echo "$as_me: failed program was:" >&5
10751sed 's/^/| /' conftest.$ac_ext >&5
10752
10753 ac_cv_type_error_t=no
10754fi
10755
10756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757fi
10758{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10759echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10760if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761
10762cat >>confdefs.h <<_ACEOF
10763#define HAVE_ERROR_T 1
10764_ACEOF
10765
10766
10767else
10768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010769cat >>confdefs.h <<\_ACEOF
10770#define error_t int
10771_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772
10773fi
10774
10775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010776
10777
10778
10779
10780
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010782do
10783as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10784{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10785echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10786if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788else
10789 cat >conftest.$ac_ext <<_ACEOF
10790/* confdefs.h. */
10791_ACEOF
10792cat confdefs.h >>conftest.$ac_ext
10793cat >>conftest.$ac_ext <<_ACEOF
10794/* end confdefs.h. */
10795/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10797#define $ac_func innocuous_$ac_func
10798
10799/* System header to define __stub macros and hopefully few prototypes,
10800 which can conflict with char $ac_func (); below.
10801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10802 <limits.h> exists even on freestanding compilers. */
10803
10804#ifdef __STDC__
10805# include <limits.h>
10806#else
10807# include <assert.h>
10808#endif
10809
10810#undef $ac_func
10811
10812/* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10815#ifdef __cplusplus
10816extern "C"
10817#endif
10818char $ac_func ();
10819/* The GNU C library defines this for functions which it implements
10820 to always fail with ENOSYS. Some functions are actually named
10821 something starting with __ and the normal name is an alias. */
10822#if defined __stub_$ac_func || defined __stub___$ac_func
10823choke me
10824#endif
10825
10826int
10827main ()
10828{
10829return $ac_func ();
10830 ;
10831 return 0;
10832}
10833_ACEOF
10834rm -f conftest.$ac_objext conftest$ac_exeext
10835if { (ac_try="$ac_link"
10836case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10839esac
10840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_link") 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10849 { (case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852esac
10853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_try") 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862esac
10863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_try") 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; }; then
10868 eval "$as_ac_var=yes"
10869else
10870 echo "$as_me: failed program was:" >&5
10871sed 's/^/| /' conftest.$ac_ext >&5
10872
10873 eval "$as_ac_var=no"
10874fi
10875
10876rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878fi
10879ac_res=`eval echo '${'$as_ac_var'}'`
10880 { echo "$as_me:$LINENO: result: $ac_res" >&5
10881echo "${ECHO_T}$ac_res" >&6; }
10882if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010884#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885_ACEOF
10886
10887fi
10888done
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010909
10910
10911
10912
10913
10914
10915
10916
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010917for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10918 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010919do
10920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926fi
10927ac_res=`eval echo '${'$as_ac_Header'}'`
10928 { echo "$as_me:$LINENO: result: $ac_res" >&5
10929echo "${ECHO_T}$ac_res" >&6; }
10930else
10931 # Is the header compilable?
10932{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10933echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10934cat >conftest.$ac_ext <<_ACEOF
10935/* confdefs.h. */
10936_ACEOF
10937cat confdefs.h >>conftest.$ac_ext
10938cat >>conftest.$ac_ext <<_ACEOF
10939/* end confdefs.h. */
10940$ac_includes_default
10941#include <$ac_header>
10942_ACEOF
10943rm -f conftest.$ac_objext
10944if { (ac_try="$ac_compile"
10945case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest.$ac_objext'
10968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971esac
10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_header_compiler=yes
10978else
10979 echo "$as_me: failed program was:" >&5
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
10982 ac_header_compiler=no
10983fi
10984
10985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987echo "${ECHO_T}$ac_header_compiler" >&6; }
10988
10989# Is the header present?
10990{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10992cat >conftest.$ac_ext <<_ACEOF
10993/* confdefs.h. */
10994_ACEOF
10995cat confdefs.h >>conftest.$ac_ext
10996cat >>conftest.$ac_ext <<_ACEOF
10997/* end confdefs.h. */
10998#include <$ac_header>
10999_ACEOF
11000if { (ac_try="$ac_cpp conftest.$ac_ext"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } >/dev/null; then
11013 if test -s conftest.err; then
11014 ac_cpp_err=$ac_c_preproc_warn_flag
11015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11016 else
11017 ac_cpp_err=
11018 fi
11019else
11020 ac_cpp_err=yes
11021fi
11022if test -z "$ac_cpp_err"; then
11023 ac_header_preproc=yes
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028 ac_header_preproc=no
11029fi
11030
11031rm -f conftest.err conftest.$ac_ext
11032{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11033echo "${ECHO_T}$ac_header_preproc" >&6; }
11034
11035# So? What about this header?
11036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11037 yes:no: )
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11042 ac_header_preproc=yes
11043 ;;
11044 no:yes:* )
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11057 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011058## ------------------------------------ ##
11059## Report this to http://llvm.org/bugs/ ##
11060## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011061_ASBOX
11062 ) | sed "s/^/$as_me: WARNING: /" >&2
11063 ;;
11064esac
11065{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069else
11070 eval "$as_ac_Header=\$ac_header_preproc"
11071fi
11072ac_res=`eval echo '${'$as_ac_Header'}'`
11073 { echo "$as_me:$LINENO: result: $ac_res" >&5
11074echo "${ECHO_T}$ac_res" >&6; }
11075
11076fi
11077if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080_ACEOF
11081
11082fi
11083
11084done
11085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011086
11087
11088
11089
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011090for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011091do
11092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098fi
11099ac_res=`eval echo '${'$as_ac_Header'}'`
11100 { echo "$as_me:$LINENO: result: $ac_res" >&5
11101echo "${ECHO_T}$ac_res" >&6; }
11102else
11103 # Is the header compilable?
11104{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11106cat >conftest.$ac_ext <<_ACEOF
11107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h. */
11112$ac_includes_default
11113#include <$ac_header>
11114_ACEOF
11115rm -f conftest.$ac_objext
11116if { (ac_try="$ac_compile"
11117case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120esac
11121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122 (eval "$ac_compile") 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } &&
11129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11130 { (case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133esac
11134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_try") 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest.$ac_objext'
11140 { (case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143esac
11144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_try") 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 ac_header_compiler=yes
11150else
11151 echo "$as_me: failed program was:" >&5
11152sed 's/^/| /' conftest.$ac_ext >&5
11153
11154 ac_header_compiler=no
11155fi
11156
11157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11159echo "${ECHO_T}$ac_header_compiler" >&6; }
11160
11161# Is the header present?
11162{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11164cat >conftest.$ac_ext <<_ACEOF
11165/* confdefs.h. */
11166_ACEOF
11167cat confdefs.h >>conftest.$ac_ext
11168cat >>conftest.$ac_ext <<_ACEOF
11169/* end confdefs.h. */
11170#include <$ac_header>
11171_ACEOF
11172if { (ac_try="$ac_cpp conftest.$ac_ext"
11173case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } >/dev/null; then
11185 if test -s conftest.err; then
11186 ac_cpp_err=$ac_c_preproc_warn_flag
11187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11188 else
11189 ac_cpp_err=
11190 fi
11191else
11192 ac_cpp_err=yes
11193fi
11194if test -z "$ac_cpp_err"; then
11195 ac_header_preproc=yes
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 ac_header_preproc=no
11201fi
11202
11203rm -f conftest.err conftest.$ac_ext
11204{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11205echo "${ECHO_T}$ac_header_preproc" >&6; }
11206
11207# So? What about this header?
11208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11209 yes:no: )
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11211echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11213echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11214 ac_header_preproc=yes
11215 ;;
11216 no:yes:* )
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11218echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11220echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11222echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11224echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11226echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11228echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11229 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011230## ------------------------------------ ##
11231## Report this to http://llvm.org/bugs/ ##
11232## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011233_ASBOX
11234 ) | sed "s/^/$as_me: WARNING: /" >&2
11235 ;;
11236esac
11237{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241else
11242 eval "$as_ac_Header=\$ac_header_preproc"
11243fi
11244ac_res=`eval echo '${'$as_ac_Header'}'`
11245 { echo "$as_me:$LINENO: result: $ac_res" >&5
11246echo "${ECHO_T}$ac_res" >&6; }
11247
11248fi
11249if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252_ACEOF
11253
11254fi
11255
11256done
11257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011258
11259
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011261do
11262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268fi
11269ac_res=`eval echo '${'$as_ac_Header'}'`
11270 { echo "$as_me:$LINENO: result: $ac_res" >&5
11271echo "${ECHO_T}$ac_res" >&6; }
11272else
11273 # Is the header compilable?
11274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11276cat >conftest.$ac_ext <<_ACEOF
11277/* confdefs.h. */
11278_ACEOF
11279cat confdefs.h >>conftest.$ac_ext
11280cat >>conftest.$ac_ext <<_ACEOF
11281/* end confdefs.h. */
11282$ac_includes_default
11283#include <$ac_header>
11284_ACEOF
11285rm -f conftest.$ac_objext
11286if { (ac_try="$ac_compile"
11287case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11300 { (case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_try") 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_try") 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_header_compiler=yes
11320else
11321 echo "$as_me: failed program was:" >&5
11322sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 ac_header_compiler=no
11325fi
11326
11327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329echo "${ECHO_T}$ac_header_compiler" >&6; }
11330
11331# Is the header present?
11332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334cat >conftest.$ac_ext <<_ACEOF
11335/* confdefs.h. */
11336_ACEOF
11337cat confdefs.h >>conftest.$ac_ext
11338cat >>conftest.$ac_ext <<_ACEOF
11339/* end confdefs.h. */
11340#include <$ac_header>
11341_ACEOF
11342if { (ac_try="$ac_cpp conftest.$ac_ext"
11343case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346esac
11347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } >/dev/null; then
11355 if test -s conftest.err; then
11356 ac_cpp_err=$ac_c_preproc_warn_flag
11357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11358 else
11359 ac_cpp_err=
11360 fi
11361else
11362 ac_cpp_err=yes
11363fi
11364if test -z "$ac_cpp_err"; then
11365 ac_header_preproc=yes
11366else
11367 echo "$as_me: failed program was:" >&5
11368sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 ac_header_preproc=no
11371fi
11372
11373rm -f conftest.err conftest.$ac_ext
11374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11375echo "${ECHO_T}$ac_header_preproc" >&6; }
11376
11377# So? What about this header?
11378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11379 yes:no: )
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11384 ac_header_preproc=yes
11385 ;;
11386 no:yes:* )
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11399 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011400## ------------------------------------ ##
11401## Report this to http://llvm.org/bugs/ ##
11402## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011403_ASBOX
11404 ) | sed "s/^/$as_me: WARNING: /" >&2
11405 ;;
11406esac
11407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 eval "$as_ac_Header=\$ac_header_preproc"
11413fi
11414ac_res=`eval echo '${'$as_ac_Header'}'`
11415 { echo "$as_me:$LINENO: result: $ac_res" >&5
11416echo "${ECHO_T}$ac_res" >&6; }
11417
11418fi
11419if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422_ACEOF
11423 break
11424fi
11425
11426done
11427
11428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011429
11430
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011431for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011432do
11433as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11434{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11436if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438else
11439 cat >conftest.$ac_ext <<_ACEOF
11440/* confdefs.h. */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h. */
11445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11447#define $ac_func innocuous_$ac_func
11448
11449/* System header to define __stub macros and hopefully few prototypes,
11450 which can conflict with char $ac_func (); below.
11451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11452 <limits.h> exists even on freestanding compilers. */
11453
11454#ifdef __STDC__
11455# include <limits.h>
11456#else
11457# include <assert.h>
11458#endif
11459
11460#undef $ac_func
11461
11462/* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11465#ifdef __cplusplus
11466extern "C"
11467#endif
11468char $ac_func ();
11469/* The GNU C library defines this for functions which it implements
11470 to always fail with ENOSYS. Some functions are actually named
11471 something starting with __ and the normal name is an alias. */
11472#if defined __stub_$ac_func || defined __stub___$ac_func
11473choke me
11474#endif
11475
11476int
11477main ()
11478{
11479return $ac_func ();
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484rm -f conftest.$ac_objext conftest$ac_exeext
11485if { (ac_try="$ac_link"
11486case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489esac
11490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_link") 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502esac
11503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_try") 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest$ac_exeext'
11509 { (case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512esac
11513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_try") 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 eval "$as_ac_var=yes"
11519else
11520 echo "$as_me: failed program was:" >&5
11521sed 's/^/| /' conftest.$ac_ext >&5
11522
11523 eval "$as_ac_var=no"
11524fi
11525
11526rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528fi
11529ac_res=`eval echo '${'$as_ac_var'}'`
11530 { echo "$as_me:$LINENO: result: $ac_res" >&5
11531echo "${ECHO_T}$ac_res" >&6; }
11532if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011533 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535_ACEOF
11536 break
11537fi
11538done
11539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011540
11541
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011543do
11544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11545{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549else
11550 cat >conftest.$ac_ext <<_ACEOF
11551/* confdefs.h. */
11552_ACEOF
11553cat confdefs.h >>conftest.$ac_ext
11554cat >>conftest.$ac_ext <<_ACEOF
11555/* end confdefs.h. */
11556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11558#define $ac_func innocuous_$ac_func
11559
11560/* System header to define __stub macros and hopefully few prototypes,
11561 which can conflict with char $ac_func (); below.
11562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11563 <limits.h> exists even on freestanding compilers. */
11564
11565#ifdef __STDC__
11566# include <limits.h>
11567#else
11568# include <assert.h>
11569#endif
11570
11571#undef $ac_func
11572
11573/* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576#ifdef __cplusplus
11577extern "C"
11578#endif
11579char $ac_func ();
11580/* The GNU C library defines this for functions which it implements
11581 to always fail with ENOSYS. Some functions are actually named
11582 something starting with __ and the normal name is an alias. */
11583#if defined __stub_$ac_func || defined __stub___$ac_func
11584choke me
11585#endif
11586
11587int
11588main ()
11589{
11590return $ac_func ();
11591 ;
11592 return 0;
11593}
11594_ACEOF
11595rm -f conftest.$ac_objext conftest$ac_exeext
11596if { (ac_try="$ac_link"
11597case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11600esac
11601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_link") 2>conftest.er1
11603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11610 { (case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613esac
11614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_try") 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623esac
11624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_try") 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 eval "$as_ac_var=yes"
11630else
11631 echo "$as_me: failed program was:" >&5
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 eval "$as_ac_var=no"
11635fi
11636
11637rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639fi
11640ac_res=`eval echo '${'$as_ac_var'}'`
11641 { echo "$as_me:$LINENO: result: $ac_res" >&5
11642echo "${ECHO_T}$ac_res" >&6; }
11643if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011645#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646_ACEOF
11647 break
11648fi
11649done
11650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011651
11652
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011654do
11655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11656{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11658if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660else
11661 cat >conftest.$ac_ext <<_ACEOF
11662/* confdefs.h. */
11663_ACEOF
11664cat confdefs.h >>conftest.$ac_ext
11665cat >>conftest.$ac_ext <<_ACEOF
11666/* end confdefs.h. */
11667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11669#define $ac_func innocuous_$ac_func
11670
11671/* System header to define __stub macros and hopefully few prototypes,
11672 which can conflict with char $ac_func (); below.
11673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674 <limits.h> exists even on freestanding compilers. */
11675
11676#ifdef __STDC__
11677# include <limits.h>
11678#else
11679# include <assert.h>
11680#endif
11681
11682#undef $ac_func
11683
11684/* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11687#ifdef __cplusplus
11688extern "C"
11689#endif
11690char $ac_func ();
11691/* The GNU C library defines this for functions which it implements
11692 to always fail with ENOSYS. Some functions are actually named
11693 something starting with __ and the normal name is an alias. */
11694#if defined __stub_$ac_func || defined __stub___$ac_func
11695choke me
11696#endif
11697
11698int
11699main ()
11700{
11701return $ac_func ();
11702 ;
11703 return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext conftest$ac_exeext
11707if { (ac_try="$ac_link"
11708case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711esac
11712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_link") 2>conftest.er1
11714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11721 { (case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724esac
11725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_try") 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; } &&
11730 { ac_try='test -s conftest$ac_exeext'
11731 { (case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11734esac
11735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_try") 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 eval "$as_ac_var=yes"
11741else
11742 echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745 eval "$as_ac_var=no"
11746fi
11747
11748rm -f core conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750fi
11751ac_res=`eval echo '${'$as_ac_var'}'`
11752 { echo "$as_me:$LINENO: result: $ac_res" >&5
11753echo "${ECHO_T}$ac_res" >&6; }
11754if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757_ACEOF
11758 break
11759fi
11760done
11761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011762
11763
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011765do
11766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11767{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11769if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771else
11772 cat >conftest.$ac_ext <<_ACEOF
11773/* confdefs.h. */
11774_ACEOF
11775cat confdefs.h >>conftest.$ac_ext
11776cat >>conftest.$ac_ext <<_ACEOF
11777/* end confdefs.h. */
11778/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11780#define $ac_func innocuous_$ac_func
11781
11782/* System header to define __stub macros and hopefully few prototypes,
11783 which can conflict with char $ac_func (); below.
11784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11785 <limits.h> exists even on freestanding compilers. */
11786
11787#ifdef __STDC__
11788# include <limits.h>
11789#else
11790# include <assert.h>
11791#endif
11792
11793#undef $ac_func
11794
11795/* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11798#ifdef __cplusplus
11799extern "C"
11800#endif
11801char $ac_func ();
11802/* The GNU C library defines this for functions which it implements
11803 to always fail with ENOSYS. Some functions are actually named
11804 something starting with __ and the normal name is an alias. */
11805#if defined __stub_$ac_func || defined __stub___$ac_func
11806choke me
11807#endif
11808
11809int
11810main ()
11811{
11812return $ac_func ();
11813 ;
11814 return 0;
11815}
11816_ACEOF
11817rm -f conftest.$ac_objext conftest$ac_exeext
11818if { (ac_try="$ac_link"
11819case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822esac
11823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_link") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } &&
11831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835esac
11836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try='test -s conftest$ac_exeext'
11842 { (case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845esac
11846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_try") 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; }; then
11851 eval "$as_ac_var=yes"
11852else
11853 echo "$as_me: failed program was:" >&5
11854sed 's/^/| /' conftest.$ac_ext >&5
11855
11856 eval "$as_ac_var=no"
11857fi
11858
11859rm -f core conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
11861fi
11862ac_res=`eval echo '${'$as_ac_var'}'`
11863 { echo "$as_me:$LINENO: result: $ac_res" >&5
11864echo "${ECHO_T}$ac_res" >&6; }
11865if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011866 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011868_ACEOF
11869
11870fi
11871done
11872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011873
11874
11875
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011877do
11878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11879{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883else
11884 cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
11890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11892#define $ac_func innocuous_$ac_func
11893
11894/* System header to define __stub macros and hopefully few prototypes,
11895 which can conflict with char $ac_func (); below.
11896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11897 <limits.h> exists even on freestanding compilers. */
11898
11899#ifdef __STDC__
11900# include <limits.h>
11901#else
11902# include <assert.h>
11903#endif
11904
11905#undef $ac_func
11906
11907/* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11910#ifdef __cplusplus
11911extern "C"
11912#endif
11913char $ac_func ();
11914/* The GNU C library defines this for functions which it implements
11915 to always fail with ENOSYS. Some functions are actually named
11916 something starting with __ and the normal name is an alias. */
11917#if defined __stub_$ac_func || defined __stub___$ac_func
11918choke me
11919#endif
11920
11921int
11922main ()
11923{
11924return $ac_func ();
11925 ;
11926 return 0;
11927}
11928_ACEOF
11929rm -f conftest.$ac_objext conftest$ac_exeext
11930if { (ac_try="$ac_link"
11931case "(($ac_try" in
11932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933 *) ac_try_echo=$ac_try;;
11934esac
11935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936 (eval "$ac_link") 2>conftest.er1
11937 ac_status=$?
11938 grep -v '^ *+' conftest.er1 >conftest.err
11939 rm -f conftest.er1
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11944 { (case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_try") 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest$ac_exeext'
11954 { (case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957esac
11958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_try") 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 eval "$as_ac_var=yes"
11964else
11965 echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 eval "$as_ac_var=no"
11969fi
11970
11971rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973fi
11974ac_res=`eval echo '${'$as_ac_var'}'`
11975 { echo "$as_me:$LINENO: result: $ac_res" >&5
11976echo "${ECHO_T}$ac_res" >&6; }
11977if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011978 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011980_ACEOF
11981
11982fi
11983done
11984
11985
Douglas Gregor01746742009-05-11 18:05:52 +000011986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011987{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11988echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011989
Reid Spencer86901802004-12-08 23:07:27 +000011990ICC=no
11991IXX=no
11992case $CC in
11993 icc*|icpc*)
11994 ICC=yes
11995 IXX=yes
11996 ;;
11997 *)
11998 ;;
11999esac
12000
Duraid Madina937c60a2006-02-15 07:57:42 +000012001if test "$GCC" != "yes" && test "$ICC" != "yes"
12002then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012003 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12004echo "$as_me: error: gcc|icc required but not found" >&2;}
12005 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012006fi
12007
12008if test "$GXX" != "yes" && test "$IXX" != "yes"
12009then
Eric Christopher73e36da2010-12-08 02:02:14 +000012010 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12011echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012012 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012013fi
12014
Reid Spencer86901802004-12-08 23:07:27 +000012015if test "$GCC" = "yes"
12016then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012017 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012018#if !defined(__GNUC__) || __GNUC__ < 3
12019#error Unsupported GCC version
12020#endif
12021
12022_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012023rm -f conftest.$ac_objext
12024if { (ac_try="$ac_compile"
12025case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_compile") 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051esac
12052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012059 echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12063echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12064 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012066
Chris Lattner399c7c72008-02-05 19:43:53 +000012067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012068fi
12069
12070if test -z "$llvm_cv_gnu_make_command"
12071then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012072 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12073echo "$as_me: error: GNU Make required but not found" >&2;}
12074 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012075fi
12076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012077{ echo "$as_me:$LINENO: result: ok" >&5
12078echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012080{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12081echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012082NO_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 +000012083
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012084NO_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 +000012085
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012086COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12087
12088{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12089echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012090
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012092
12093{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12094echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12095if test "${ac_cv_lib_m_sin+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012097else
12098 ac_check_lib_save_LIBS=$LIBS
12099LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012100cat >conftest.$ac_ext <<_ACEOF
12101/* confdefs.h. */
12102_ACEOF
12103cat confdefs.h >>conftest.$ac_ext
12104cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012105/* end confdefs.h. */
12106
Reid Spencera773bd52006-08-04 18:18:08 +000012107/* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012110#ifdef __cplusplus
12111extern "C"
12112#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012113char sin ();
12114int
12115main ()
12116{
Reid Spencera773bd52006-08-04 18:18:08 +000012117return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012118 ;
12119 return 0;
12120}
12121_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012122rm -f conftest.$ac_objext conftest$ac_exeext
12123if { (ac_try="$ac_link"
12124case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127esac
12128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137 { (case "(($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_try") 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012156 ac_cv_lib_m_sin=yes
12157else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012158 echo "$as_me: failed program was:" >&5
12159sed 's/^/| /' conftest.$ac_ext >&5
12160
12161 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012162fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012163
Bill Wendlingebcceee2009-04-18 11:20:33 +000012164rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012165 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012166LIBS=$ac_check_lib_save_LIBS
12167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012168{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12169echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12170if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012171 cat >>confdefs.h <<_ACEOF
12172#define HAVE_LIBM 1
12173_ACEOF
12174
12175 LIBS="-lm $LIBS"
12176
12177fi
12178
Jeff Cohen28783c32007-01-12 18:22:38 +000012179if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012180
12181{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12182echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12183if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012185else
12186 ac_check_lib_save_LIBS=$LIBS
12187LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012188cat >conftest.$ac_ext <<_ACEOF
12189/* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012193/* end confdefs.h. */
12194
Reid Spencer48fdf912006-06-01 19:03:21 +000012195
Reid Spencer484fc8e2006-06-01 16:55:59 +000012196int
12197main ()
12198{
Reid Spencera773bd52006-08-04 18:18:08 +000012199return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012200 ;
12201 return 0;
12202}
12203_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012204rm -f conftest.$ac_objext conftest$ac_exeext
12205if { (ac_try="$ac_link"
12206case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209esac
12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012238 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012240 echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012245
Bill Wendlingebcceee2009-04-18 11:20:33 +000012246rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012247 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012248LIBS=$ac_check_lib_save_LIBS
12249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12251echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12252if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012253 cat >>confdefs.h <<_ACEOF
12254#define HAVE_LIBIMAGEHLP 1
12255_ACEOF
12256
12257 LIBS="-limagehlp $LIBS"
12258
12259fi
12260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012261
12262{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12263echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12264if test "${ac_cv_lib_psapi_main+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012266else
12267 ac_check_lib_save_LIBS=$LIBS
12268LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012269cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012274/* end confdefs.h. */
12275
Reid Spencer48fdf912006-06-01 19:03:21 +000012276
Reid Spencer484fc8e2006-06-01 16:55:59 +000012277int
12278main ()
12279{
Reid Spencera773bd52006-08-04 18:18:08 +000012280return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012281 ;
12282 return 0;
12283}
12284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012285rm -f conftest.$ac_objext conftest$ac_exeext
12286if { (ac_try="$ac_link"
12287case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290esac
12291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_link") 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest$ac_exeext'
12310 { (case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313esac
12314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_try") 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012319 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321 echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012326
Bill Wendlingebcceee2009-04-18 11:20:33 +000012327rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012329LIBS=$ac_check_lib_save_LIBS
12330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012331{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12332echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12333if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012334 cat >>confdefs.h <<_ACEOF
12335#define HAVE_LIBPSAPI 1
12336_ACEOF
12337
12338 LIBS="-lpsapi $LIBS"
12339
12340fi
12341
12342fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012344{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12345echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12346if test "${ac_cv_search_dlopen+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012348else
12349 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012350cat >conftest.$ac_ext <<_ACEOF
12351/* confdefs.h. */
12352_ACEOF
12353cat confdefs.h >>conftest.$ac_ext
12354cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012356
Reid Spencera773bd52006-08-04 18:18:08 +000012357/* Override any GCC internal prototype to avoid an error.
12358 Use char because int might match the return type of a GCC
12359 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012360#ifdef __cplusplus
12361extern "C"
12362#endif
John Criswell7a73b802003-06-30 21:59:07 +000012363char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012364int
12365main ()
12366{
Reid Spencera773bd52006-08-04 18:18:08 +000012367return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012368 ;
12369 return 0;
12370}
12371_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012372for ac_lib in '' dl; do
12373 if test -z "$ac_lib"; then
12374 ac_res="none required"
12375 else
12376 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012378 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012379 rm -f conftest.$ac_objext conftest$ac_exeext
12380if { (ac_try="$ac_link"
12381case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384esac
12385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_link") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
12404 { (case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407esac
12408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012413 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418
John Criswell7a73b802003-06-30 21:59:07 +000012419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012420
Bill Wendlingebcceee2009-04-18 11:20:33 +000012421rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012422 conftest$ac_exeext
12423 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012424 break
John Criswell7a73b802003-06-30 21:59:07 +000012425fi
Reid Spencera773bd52006-08-04 18:18:08 +000012426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012427if test "${ac_cv_search_dlopen+set}" = set; then
12428 :
Reid Spencera773bd52006-08-04 18:18:08 +000012429else
12430 ac_cv_search_dlopen=no
12431fi
12432rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012433LIBS=$ac_func_search_save_LIBS
12434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12436echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012437ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012438if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012441cat >>confdefs.h <<\_ACEOF
12442#define HAVE_DLOPEN 1
12443_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012444
12445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012446 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12447echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012448fi
12449
12450
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012451if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012452 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12453echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12454if test "${ac_cv_search_ffi_call+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012456else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012457 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012458cat >conftest.$ac_ext <<_ACEOF
12459/* confdefs.h. */
12460_ACEOF
12461cat confdefs.h >>conftest.$ac_ext
12462cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012463/* end confdefs.h. */
12464
12465/* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12468#ifdef __cplusplus
12469extern "C"
12470#endif
12471char ffi_call ();
12472int
12473main ()
12474{
12475return ffi_call ();
12476 ;
12477 return 0;
12478}
12479_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012480for ac_lib in '' ffi; do
12481 if test -z "$ac_lib"; then
12482 ac_res="none required"
12483 else
12484 ac_res=-l$ac_lib
12485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12486 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012487 rm -f conftest.$ac_objext conftest$ac_exeext
12488if { (ac_try="$ac_link"
12489case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492esac
12493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505esac
12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12515esac
12516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012521 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012528
Bill Wendlingebcceee2009-04-18 11:20:33 +000012529rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012530 conftest$ac_exeext
12531 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012532 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012533fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012534done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012535if test "${ac_cv_search_ffi_call+set}" = set; then
12536 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012537else
12538 ac_cv_search_ffi_call=no
12539fi
12540rm conftest.$ac_ext
12541LIBS=$ac_func_search_save_LIBS
12542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012543{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12544echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012545ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012546if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549cat >>confdefs.h <<\_ACEOF
12550#define HAVE_FFI_CALL 1
12551_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012552
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012553else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012554 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12555echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12556 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012557fi
12558
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012559fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012561{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12562echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12563if test "${ac_cv_search_mallinfo+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012565else
12566 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012567cat >conftest.$ac_ext <<_ACEOF
12568/* confdefs.h. */
12569_ACEOF
12570cat confdefs.h >>conftest.$ac_ext
12571cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012572/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012573
Reid Spencera773bd52006-08-04 18:18:08 +000012574/* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012577#ifdef __cplusplus
12578extern "C"
12579#endif
John Criswell7a73b802003-06-30 21:59:07 +000012580char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012581int
12582main ()
12583{
Reid Spencera773bd52006-08-04 18:18:08 +000012584return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012585 ;
12586 return 0;
12587}
12588_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012589for ac_lib in '' malloc; do
12590 if test -z "$ac_lib"; then
12591 ac_res="none required"
12592 else
12593 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012595 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596 rm -f conftest.$ac_objext conftest$ac_exeext
12597if { (ac_try="$ac_link"
12598case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601esac
12602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_link") 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12611 { (case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614esac
12615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_try") 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624esac
12625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012630 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012631else
12632 echo "$as_me: failed program was:" >&5
12633sed 's/^/| /' conftest.$ac_ext >&5
12634
12635
John Criswell7a73b802003-06-30 21:59:07 +000012636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012637
Bill Wendlingebcceee2009-04-18 11:20:33 +000012638rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012639 conftest$ac_exeext
12640 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012641 break
John Criswell7a73b802003-06-30 21:59:07 +000012642fi
Reid Spencera773bd52006-08-04 18:18:08 +000012643done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012644if test "${ac_cv_search_mallinfo+set}" = set; then
12645 :
Reid Spencera773bd52006-08-04 18:18:08 +000012646else
12647 ac_cv_search_mallinfo=no
12648fi
12649rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012650LIBS=$ac_func_search_save_LIBS
12651fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012652{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12653echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012654ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012655if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012658cat >>confdefs.h <<\_ACEOF
12659#define HAVE_MALLINFO 1
12660_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012661
12662fi
12663
12664
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012665if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666
12667{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12668echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12669if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012671else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012672 ac_check_lib_save_LIBS=$LIBS
12673LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012674cat >conftest.$ac_ext <<_ACEOF
12675/* confdefs.h. */
12676_ACEOF
12677cat confdefs.h >>conftest.$ac_ext
12678cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012679/* end confdefs.h. */
12680
Reid Spencera773bd52006-08-04 18:18:08 +000012681/* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012684#ifdef __cplusplus
12685extern "C"
12686#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012687char pthread_mutex_init ();
12688int
12689main ()
12690{
Reid Spencera773bd52006-08-04 18:18:08 +000012691return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012692 ;
12693 return 0;
12694}
12695_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012696rm -f conftest.$ac_objext conftest$ac_exeext
12697if { (ac_try="$ac_link"
12698case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701esac
12702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_link") 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12711 { (case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714esac
12715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_try") 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest$ac_exeext'
12721 { (case "(($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_try") 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012730 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012732 echo "$as_me: failed program was:" >&5
12733sed 's/^/| /' conftest.$ac_ext >&5
12734
12735 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012737
Bill Wendlingebcceee2009-04-18 11:20:33 +000012738rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012739 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012740LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012742{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12743echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12744if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012745 cat >>confdefs.h <<_ACEOF
12746#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012747_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012748
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012749 LIBS="-lpthread $LIBS"
12750
Reid Spencer22177fe2005-07-12 15:24:20 +000012751fi
12752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012753 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12754echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12755if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012757else
12758 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012759cat >conftest.$ac_ext <<_ACEOF
12760/* confdefs.h. */
12761_ACEOF
12762cat confdefs.h >>conftest.$ac_ext
12763cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012764/* end confdefs.h. */
12765
Reid Spencera773bd52006-08-04 18:18:08 +000012766/* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012769#ifdef __cplusplus
12770extern "C"
12771#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012772char pthread_mutex_lock ();
12773int
12774main ()
12775{
Reid Spencera773bd52006-08-04 18:18:08 +000012776return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012777 ;
12778 return 0;
12779}
12780_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012781for ac_lib in '' pthread; do
12782 if test -z "$ac_lib"; then
12783 ac_res="none required"
12784 else
12785 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012787 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012788 rm -f conftest.$ac_objext conftest$ac_exeext
12789if { (ac_try="$ac_link"
12790case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793esac
12794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_link") 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try='test -s conftest$ac_exeext'
12813 { (case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816esac
12817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_try") 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012822 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012823else
12824 echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827
Brian Gaeke5f268f72003-12-05 19:29:01 +000012828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012829
Bill Wendlingebcceee2009-04-18 11:20:33 +000012830rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831 conftest$ac_exeext
12832 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012833 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012834fi
Reid Spencera773bd52006-08-04 18:18:08 +000012835done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012836if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12837 :
Reid Spencera773bd52006-08-04 18:18:08 +000012838else
12839 ac_cv_search_pthread_mutex_lock=no
12840fi
12841rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012842LIBS=$ac_func_search_save_LIBS
12843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012844{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12845echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012846ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012847if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012850cat >>confdefs.h <<\_ACEOF
12851#define HAVE_PTHREAD_MUTEX_LOCK 1
12852_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012853
12854fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012856 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12857echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12858if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012860else
12861 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012862cat >conftest.$ac_ext <<_ACEOF
12863/* confdefs.h. */
12864_ACEOF
12865cat confdefs.h >>conftest.$ac_ext
12866cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012867/* end confdefs.h. */
12868
12869/* Override any GCC internal prototype to avoid an error.
12870 Use char because int might match the return type of a GCC
12871 builtin and then its argument prototype would still apply. */
12872#ifdef __cplusplus
12873extern "C"
12874#endif
12875char pthread_rwlock_init ();
12876int
12877main ()
12878{
12879return pthread_rwlock_init ();
12880 ;
12881 return 0;
12882}
12883_ACEOF
12884for ac_lib in '' pthread; do
12885 if test -z "$ac_lib"; then
12886 ac_res="none required"
12887 else
12888 ac_res=-l$ac_lib
12889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12890 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012891 rm -f conftest.$ac_objext conftest$ac_exeext
12892if { (ac_try="$ac_link"
12893case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896esac
12897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_link") 2>conftest.er1
12899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919esac
12920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012925 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012926else
12927 echo "$as_me: failed program was:" >&5
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
12930
Owen Andersonde8aed22009-06-16 18:20:20 +000012931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012932
Owen Andersonde8aed22009-06-16 18:20:20 +000012933rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012934 conftest$ac_exeext
12935 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012936 break
12937fi
12938done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12940 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012941else
12942 ac_cv_search_pthread_rwlock_init=no
12943fi
12944rm conftest.$ac_ext
12945LIBS=$ac_func_search_save_LIBS
12946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012947{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12948echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012949ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012950if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012953cat >>confdefs.h <<\_ACEOF
12954#define HAVE_PTHREAD_RWLOCK_INIT 1
12955_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012956
12957fi
12958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12960echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12961if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012963else
12964 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012965cat >conftest.$ac_ext <<_ACEOF
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012970/* end confdefs.h. */
12971
12972/* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12975#ifdef __cplusplus
12976extern "C"
12977#endif
12978char pthread_getspecific ();
12979int
12980main ()
12981{
12982return pthread_getspecific ();
12983 ;
12984 return 0;
12985}
12986_ACEOF
12987for ac_lib in '' pthread; do
12988 if test -z "$ac_lib"; then
12989 ac_res="none required"
12990 else
12991 ac_res=-l$ac_lib
12992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12993 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012994 rm -f conftest.$ac_objext conftest$ac_exeext
12995if { (ac_try="$ac_link"
12996case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999esac
13000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013028 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029else
13030 echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
13033
Owen Anderson27fcfe12009-06-25 23:10:26 +000013034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013035
Owen Anderson27fcfe12009-06-25 23:10:26 +000013036rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013037 conftest$ac_exeext
13038 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013039 break
13040fi
13041done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013042if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13043 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013044else
13045 ac_cv_search_pthread_getspecific=no
13046fi
13047rm conftest.$ac_ext
13048LIBS=$ac_func_search_save_LIBS
13049fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13051echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013052ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013053if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013056cat >>confdefs.h <<\_ACEOF
13057#define HAVE_PTHREAD_GETSPECIFIC 1
13058_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013059
13060fi
13061
Reid Spencer0a262ba2005-08-24 10:07:20 +000013062fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013063
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013064
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013065# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013067 withval=$with_udis86;
13068 USE_UDIS86=1
13069
13070 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013071 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013072 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13073 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013074
13075{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13076echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13077if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013079else
13080 ac_check_lib_save_LIBS=$LIBS
13081LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013082cat >conftest.$ac_ext <<_ACEOF
13083/* confdefs.h. */
13084_ACEOF
13085cat confdefs.h >>conftest.$ac_ext
13086cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013087/* end confdefs.h. */
13088
13089/* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13092#ifdef __cplusplus
13093extern "C"
13094#endif
13095char ud_init ();
13096int
13097main ()
13098{
13099return ud_init ();
13100 ;
13101 return 0;
13102}
13103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104rm -f conftest.$ac_objext conftest$ac_exeext
13105if { (ac_try="$ac_link"
13106case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13112 ac_status=$?
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013138 ac_cv_lib_udis86_ud_init=yes
13139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013140 echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145
Bill Wendlingebcceee2009-04-18 11:20:33 +000013146rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013147 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013148LIBS=$ac_check_lib_save_LIBS
13149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013150{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13151echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13152if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013153 cat >>confdefs.h <<_ACEOF
13154#define HAVE_LIBUDIS86 1
13155_ACEOF
13156
13157 LIBS="-ludis86 $LIBS"
13158
13159else
13160
13161 echo "Error! You need to have libudis86 around."
13162 exit -1
13163
13164fi
13165
13166
13167else
13168 USE_UDIS86=0
13169
13170fi
13171
13172
13173cat >>confdefs.h <<_ACEOF
13174#define USE_UDIS86 $USE_UDIS86
13175_ACEOF
13176
13177
13178
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013179# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013180if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013181 withval=$with_oprofile;
13182 USE_OPROFILE=1
13183
13184 case "$withval" in
13185 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013186 no) llvm_cv_oppath=
13187 USE_OPROFILE=0
13188 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013189 *) llvm_cv_oppath="${withval}/lib/oprofile"
13190 CPPFLAGS="-I${withval}/include";;
13191 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013192 case $llvm_cv_os_type in
13193 Linux)
13194 if test -n "$llvm_cv_oppath" ; then
13195 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13196 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13198if test "${ac_cv_search_bfd_init+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013200else
13201 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013202cat >conftest.$ac_ext <<_ACEOF
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013207/* end confdefs.h. */
13208
13209/* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212#ifdef __cplusplus
13213extern "C"
13214#endif
13215char bfd_init ();
13216int
13217main ()
13218{
13219return bfd_init ();
13220 ;
13221 return 0;
13222}
13223_ACEOF
13224for ac_lib in '' bfd; do
13225 if test -z "$ac_lib"; then
13226 ac_res="none required"
13227 else
13228 ac_res=-l$ac_lib
13229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13230 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013231 rm -f conftest.$ac_objext conftest$ac_exeext
13232if { (ac_try="$ac_link"
13233case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259esac
13260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013265 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266else
13267 echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
13270
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013272
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013273rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274 conftest$ac_exeext
13275 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013276 break
13277fi
13278done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279if test "${ac_cv_search_bfd_init+set}" = set; then
13280 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013281else
13282 ac_cv_search_bfd_init=no
13283fi
13284rm conftest.$ac_ext
13285LIBS=$ac_func_search_save_LIBS
13286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13288echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013289ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13292
13293fi
13294
Eli Bendersky61b18512012-03-13 08:33:15 +000013295 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13297if test "${ac_cv_search_op_open_agent+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013299else
13300 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013301cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013306/* end confdefs.h. */
13307
13308/* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13311#ifdef __cplusplus
13312extern "C"
13313#endif
13314char op_open_agent ();
13315int
13316main ()
13317{
13318return op_open_agent ();
13319 ;
13320 return 0;
13321}
13322_ACEOF
13323for ac_lib in '' opagent; do
13324 if test -z "$ac_lib"; then
13325 ac_res="none required"
13326 else
13327 ac_res=-l$ac_lib
13328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13329 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013330 rm -f conftest.$ac_objext conftest$ac_exeext
13331if { (ac_try="$ac_link"
13332case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335esac
13336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_link") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest$ac_exeext'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358esac
13359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013364 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365else
13366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
13369
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013371
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013372rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013373 conftest$ac_exeext
13374 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013375 break
13376fi
13377done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013378if test "${ac_cv_search_op_open_agent+set}" = set; then
13379 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013380else
13381 ac_cv_search_op_open_agent=no
13382fi
13383rm conftest.$ac_ext
13384LIBS=$ac_func_search_save_LIBS
13385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013386{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13387echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013388ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013389if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13391
13392else
13393
Eli Bendersky61b18512012-03-13 08:33:15 +000013394 echo "Error! You need to have libopagent around."
13395 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013396
13397fi
13398
Eli Bendersky61b18512012-03-13 08:33:15 +000013399 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013400 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13401echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13402if test "${ac_cv_header_opagent_h+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13404fi
13405{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13406echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13407else
13408 # Is the header compilable?
13409{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13410echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13411cat >conftest.$ac_ext <<_ACEOF
13412/* confdefs.h. */
13413_ACEOF
13414cat confdefs.h >>conftest.$ac_ext
13415cat >>conftest.$ac_ext <<_ACEOF
13416/* end confdefs.h. */
13417$ac_includes_default
13418#include <opagent.h>
13419_ACEOF
13420rm -f conftest.$ac_objext
13421if { (ac_try="$ac_compile"
13422case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_compile") 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
13434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13438esac
13439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13448esac
13449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_try") 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_header_compiler=yes
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013459 ac_header_compiler=no
13460fi
13461
13462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13464echo "${ECHO_T}$ac_header_compiler" >&6; }
13465
13466# Is the header present?
13467{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13468echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13469cat >conftest.$ac_ext <<_ACEOF
13470/* confdefs.h. */
13471_ACEOF
13472cat confdefs.h >>conftest.$ac_ext
13473cat >>conftest.$ac_ext <<_ACEOF
13474/* end confdefs.h. */
13475#include <opagent.h>
13476_ACEOF
13477if { (ac_try="$ac_cpp conftest.$ac_ext"
13478case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481esac
13482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } >/dev/null; then
13490 if test -s conftest.err; then
13491 ac_cpp_err=$ac_c_preproc_warn_flag
13492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13493 else
13494 ac_cpp_err=
13495 fi
13496else
13497 ac_cpp_err=yes
13498fi
13499if test -z "$ac_cpp_err"; then
13500 ac_header_preproc=yes
13501else
13502 echo "$as_me: failed program was:" >&5
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
13505 ac_header_preproc=no
13506fi
13507
13508rm -f conftest.err conftest.$ac_ext
13509{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13510echo "${ECHO_T}$ac_header_preproc" >&6; }
13511
13512# So? What about this header?
13513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13514 yes:no: )
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13516echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13518echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13519 ac_header_preproc=yes
13520 ;;
13521 no:yes:* )
13522 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13523echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13525echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13527echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13529echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13530 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13531echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13532 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13533echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13534 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013535## ------------------------------------ ##
13536## Report this to http://llvm.org/bugs/ ##
13537## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013538_ASBOX
13539 ) | sed "s/^/$as_me: WARNING: /" >&2
13540 ;;
13541esac
13542{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13543echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13544if test "${ac_cv_header_opagent_h+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547 ac_cv_header_opagent_h=$ac_header_preproc
13548fi
13549{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13550echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13551
13552fi
13553if test $ac_cv_header_opagent_h = yes; then
13554 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013555else
13556
Eli Bendersky61b18512012-03-13 08:33:15 +000013557 echo "Error! You need to have opagent.h around."
13558 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013559
13560fi
13561
13562
Eli Bendersky61b18512012-03-13 08:33:15 +000013563 fi ;;
13564 *)
13565 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13566echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13567 { (exit 1); exit 1; }; } ;;
13568 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013569
13570else
13571
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013572 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013573
13574
13575fi
13576
13577
13578cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013579#define LLVM_USE_OPROFILE $USE_OPROFILE
13580_ACEOF
13581
13582
13583
13584# Check whether --with-intel-jitevents was given.
13585if test "${with_intel_jitevents+set}" = set; then
13586 withval=$with_intel_jitevents;
13587 case $llvm_cv_os_type in
13588 Linux|Win32|Cygwin|MingW) ;;
13589 *)
13590 { { echo "$as_me:$LINENO: error:
13591 Intel JIT API support is available on Linux and Windows only.\"" >&5
13592echo "$as_me: error:
13593 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13594 { (exit 1); exit 1; }; } ;;
13595 esac
13596
13597 USE_INTEL_JITEVENTS=1
13598
13599 case "$llvm_cv_target_arch" in
13600 x86) llvm_intel_jitevents_archdir="lib32";;
13601 x86_64) llvm_intel_jitevents_archdir="lib64";;
13602 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13603 exit -1;;
13604 esac
13605 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13606 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13607 case "$withval" in
13608 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13609 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13610 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013611 esac
13612
13613
13614
13615
13616 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13617 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13618
13619 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13620echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13621if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623else
13624 ac_func_search_save_LIBS=$LIBS
13625cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */
13631
13632/* Override any GCC internal prototype to avoid an error.
13633 Use char because int might match the return type of a GCC
13634 builtin and then its argument prototype would still apply. */
13635#ifdef __cplusplus
13636extern "C"
13637#endif
13638char iJIT_IsProfilingActive ();
13639int
13640main ()
13641{
13642return iJIT_IsProfilingActive ();
13643 ;
13644 return 0;
13645}
13646_ACEOF
13647for ac_lib in '' jitprofiling; do
13648 if test -z "$ac_lib"; then
13649 ac_res="none required"
13650 else
13651 ac_res=-l$ac_lib
13652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13653 fi
13654 rm -f conftest.$ac_objext conftest$ac_exeext
13655if { (ac_try="$ac_link"
13656case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659esac
13660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_link") 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669 { (case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672esac
13673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_try") 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest$ac_exeext'
13679 { (case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682esac
13683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_try") 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13689else
13690 echo "$as_me: failed program was:" >&5
13691sed 's/^/| /' conftest.$ac_ext >&5
13692
13693
13694fi
13695
13696rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext
13698 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13699 break
13700fi
13701done
13702if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13703 :
13704else
13705 ac_cv_search_iJIT_IsProfilingActive=no
13706fi
13707rm conftest.$ac_ext
13708LIBS=$ac_func_search_save_LIBS
13709fi
13710{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13711echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13712ac_res=$ac_cv_search_iJIT_IsProfilingActive
13713if test "$ac_res" != no; then
13714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13715
13716else
13717
13718 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13719 exit -1
13720
13721fi
13722
13723 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13724 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13725echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13726if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728fi
13729{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13730echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13731else
13732 # Is the header compilable?
13733{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13734echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13735cat >conftest.$ac_ext <<_ACEOF
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h. */
13741$ac_includes_default
13742#include <jitprofiling.h>
13743_ACEOF
13744rm -f conftest.$ac_objext
13745if { (ac_try="$ac_compile"
13746case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13749esac
13750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_compile") 2>conftest.er1
13752 ac_status=$?
13753 grep -v '^ *+' conftest.er1 >conftest.err
13754 rm -f conftest.er1
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13759 { (case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762esac
13763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_try") 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772esac
13773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_try") 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_header_compiler=yes
13779else
13780 echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 ac_header_compiler=no
13784fi
13785
13786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788echo "${ECHO_T}$ac_header_compiler" >&6; }
13789
13790# Is the header present?
13791{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13792echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13793cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799#include <jitprofiling.h>
13800_ACEOF
13801if { (ac_try="$ac_cpp conftest.$ac_ext"
13802case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805esac
13806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null; then
13814 if test -s conftest.err; then
13815 ac_cpp_err=$ac_c_preproc_warn_flag
13816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13817 else
13818 ac_cpp_err=
13819 fi
13820else
13821 ac_cpp_err=yes
13822fi
13823if test -z "$ac_cpp_err"; then
13824 ac_header_preproc=yes
13825else
13826 echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829 ac_header_preproc=no
13830fi
13831
13832rm -f conftest.err conftest.$ac_ext
13833{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834echo "${ECHO_T}$ac_header_preproc" >&6; }
13835
13836# So? What about this header?
13837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13838 yes:no: )
13839 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13840echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13842echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13843 ac_header_preproc=yes
13844 ;;
13845 no:yes:* )
13846 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13847echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13849echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13851echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13853echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13855echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13857echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13858 ( cat <<\_ASBOX
13859## ------------------------------------ ##
13860## Report this to http://llvm.org/bugs/ ##
13861## ------------------------------------ ##
13862_ASBOX
13863 ) | sed "s/^/$as_me: WARNING: /" >&2
13864 ;;
13865esac
13866{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13867echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13868if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870else
13871 ac_cv_header_jitprofiling_h=$ac_header_preproc
13872fi
13873{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13874echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13875
13876fi
13877if test $ac_cv_header_jitprofiling_h = yes; then
13878 :
13879else
13880
13881 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13882 exit -1
13883
13884fi
13885
13886
13887
13888
13889else
13890
13891 USE_INTEL_JITEVENTS=0
13892
13893
13894fi
13895
13896
13897cat >>confdefs.h <<_ACEOF
13898#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013899_ACEOF
13900
13901
13902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903
13904
13905
13906
13907
Reid Spencer59473af2004-12-25 07:31:29 +000013908ac_header_dirent=no
13909for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013910 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13911{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13912echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013916 cat >conftest.$ac_ext <<_ACEOF
13917/* confdefs.h. */
13918_ACEOF
13919cat confdefs.h >>conftest.$ac_ext
13920cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013921/* end confdefs.h. */
13922#include <sys/types.h>
13923#include <$ac_hdr>
13924
13925int
13926main ()
13927{
13928if ((DIR *) 0)
13929return 0;
13930 ;
13931 return 0;
13932}
13933_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013934rm -f conftest.$ac_objext
13935if { (ac_try="$ac_compile"
13936case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_compile") 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952esac
13953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest.$ac_objext'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962esac
13963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013968 eval "$as_ac_Header=yes"
13969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975
Reid Spencera773bd52006-08-04 18:18:08 +000013976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013977fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978ac_res=`eval echo '${'$as_ac_Header'}'`
13979 { echo "$as_me:$LINENO: result: $ac_res" >&5
13980echo "${ECHO_T}$ac_res" >&6; }
13981if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013982 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013983#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013984_ACEOF
13985
13986ac_header_dirent=$ac_hdr; break
13987fi
13988
13989done
13990# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13991if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013992 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13993echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13994if test "${ac_cv_search_opendir+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013996else
13997 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013998cat >conftest.$ac_ext <<_ACEOF
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014003/* end confdefs.h. */
14004
Reid Spencera773bd52006-08-04 18:18:08 +000014005/* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014008#ifdef __cplusplus
14009extern "C"
14010#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014011char opendir ();
14012int
14013main ()
14014{
Reid Spencera773bd52006-08-04 18:18:08 +000014015return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014016 ;
14017 return 0;
14018}
14019_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014020for ac_lib in '' dir; do
14021 if test -z "$ac_lib"; then
14022 ac_res="none required"
14023 else
14024 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014026 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027 rm -f conftest.$ac_objext conftest$ac_exeext
14028if { (ac_try="$ac_link"
14029case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14032esac
14033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_link") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14042 { (case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045esac
14046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_try") 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest$ac_exeext'
14052 { (case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055esac
14056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_try") 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014061 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014062else
14063 echo "$as_me: failed program was:" >&5
14064sed 's/^/| /' conftest.$ac_ext >&5
14065
14066
Reid Spencer59473af2004-12-25 07:31:29 +000014067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068
Bill Wendlingebcceee2009-04-18 11:20:33 +000014069rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014070 conftest$ac_exeext
14071 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014072 break
Reid Spencer59473af2004-12-25 07:31:29 +000014073fi
Reid Spencera773bd52006-08-04 18:18:08 +000014074done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075if test "${ac_cv_search_opendir+set}" = set; then
14076 :
Reid Spencera773bd52006-08-04 18:18:08 +000014077else
14078 ac_cv_search_opendir=no
14079fi
14080rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014081LIBS=$ac_func_search_save_LIBS
14082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014083{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14084echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014085ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014086if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014088
14089fi
14090
14091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014092 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14093echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14094if test "${ac_cv_search_opendir+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014096else
14097 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014098cat >conftest.$ac_ext <<_ACEOF
14099/* confdefs.h. */
14100_ACEOF
14101cat confdefs.h >>conftest.$ac_ext
14102cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014103/* end confdefs.h. */
14104
Reid Spencera773bd52006-08-04 18:18:08 +000014105/* Override any GCC internal prototype to avoid an error.
14106 Use char because int might match the return type of a GCC
14107 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014108#ifdef __cplusplus
14109extern "C"
14110#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014111char opendir ();
14112int
14113main ()
14114{
Reid Spencera773bd52006-08-04 18:18:08 +000014115return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014116 ;
14117 return 0;
14118}
14119_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014120for ac_lib in '' x; do
14121 if test -z "$ac_lib"; then
14122 ac_res="none required"
14123 else
14124 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014126 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127 rm -f conftest.$ac_objext conftest$ac_exeext
14128if { (ac_try="$ac_link"
14129case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14132esac
14133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_link") 2>conftest.er1
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142 { (case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145esac
14146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_try") 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try='test -s conftest$ac_exeext'
14152 { (case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14155esac
14156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_try") 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014161 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162else
14163 echo "$as_me: failed program was:" >&5
14164sed 's/^/| /' conftest.$ac_ext >&5
14165
14166
Reid Spencer59473af2004-12-25 07:31:29 +000014167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168
Bill Wendlingebcceee2009-04-18 11:20:33 +000014169rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014170 conftest$ac_exeext
14171 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014172 break
Reid Spencer59473af2004-12-25 07:31:29 +000014173fi
Reid Spencera773bd52006-08-04 18:18:08 +000014174done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175if test "${ac_cv_search_opendir+set}" = set; then
14176 :
Reid Spencera773bd52006-08-04 18:18:08 +000014177else
14178 ac_cv_search_opendir=no
14179fi
14180rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014181LIBS=$ac_func_search_save_LIBS
14182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014183{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14184echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014185ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014186if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014188
14189fi
14190
14191fi
14192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14194echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14195if test "${ac_cv_header_mmap_anon+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014197else
14198 ac_ext=c
14199ac_cpp='$CPP $CPPFLAGS'
14200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14202ac_compiler_gnu=$ac_cv_c_compiler_gnu
14203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204 cat >conftest.$ac_ext <<_ACEOF
14205/* confdefs.h. */
14206_ACEOF
14207cat confdefs.h >>conftest.$ac_ext
14208cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014209/* end confdefs.h. */
14210#include <sys/mman.h>
14211#include <unistd.h>
14212#include <fcntl.h>
14213int
14214main ()
14215{
14216mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14217 ;
14218 return 0;
14219}
14220_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014221rm -f conftest.$ac_objext
14222if { (ac_try="$ac_compile"
14223case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14226esac
14227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_compile") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249esac
14250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_try") 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014255 ac_cv_header_mmap_anon=yes
14256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014257 echo "$as_me: failed program was:" >&5
14258sed 's/^/| /' conftest.$ac_ext >&5
14259
14260 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262
Reid Spencera773bd52006-08-04 18:18:08 +000014263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014264 ac_ext=c
14265ac_cpp='$CPP $CPPFLAGS'
14266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269
14270
14271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14273echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014274if test "$ac_cv_header_mmap_anon" = yes; then
14275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276cat >>confdefs.h <<\_ACEOF
14277#define HAVE_MMAP_ANONYMOUS 1
14278_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014279
14280fi
14281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14283echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14284if test "${ac_cv_header_stat_broken+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014292/* end confdefs.h. */
14293#include <sys/types.h>
14294#include <sys/stat.h>
14295
Reid Spencera773bd52006-08-04 18:18:08 +000014296#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014297# if S_ISBLK (S_IFDIR)
14298You lose.
14299# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014300#endif
14301
Reid Spencera773bd52006-08-04 18:18:08 +000014302#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303# if S_ISBLK (S_IFCHR)
14304You lose.
14305# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014306#endif
14307
Reid Spencera773bd52006-08-04 18:18:08 +000014308#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309# if S_ISLNK (S_IFREG)
14310You lose.
14311# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014312#endif
14313
Reid Spencera773bd52006-08-04 18:18:08 +000014314#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014315# if S_ISSOCK (S_IFREG)
14316You lose.
14317# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014318#endif
14319
14320_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14322 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014323 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014324else
14325 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014327rm -f conftest*
14328
Reid Spencer59473af2004-12-25 07:31:29 +000014329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014330{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14331echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014332if test $ac_cv_header_stat_broken = yes; then
14333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334cat >>confdefs.h <<\_ACEOF
14335#define STAT_MACROS_BROKEN 1
14336_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014337
14338fi
14339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14341echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14342if test "${ac_cv_header_sys_wait_h+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014344else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014345 cat >conftest.$ac_ext <<_ACEOF
14346/* confdefs.h. */
14347_ACEOF
14348cat confdefs.h >>conftest.$ac_ext
14349cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014351#include <sys/types.h>
14352#include <sys/wait.h>
14353#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014354# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014355#endif
14356#ifndef WIFEXITED
14357# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14358#endif
14359
John Criswell7a73b802003-06-30 21:59:07 +000014360int
14361main ()
14362{
14363 int s;
14364 wait (&s);
14365 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14366 ;
14367 return 0;
14368}
14369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014370rm -f conftest.$ac_objext
14371if { (ac_try="$ac_compile"
14372case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375esac
14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_compile") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385 { (case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388esac
14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_try") 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest.$ac_objext'
14395 { (case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398esac
14399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_try") 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014404 ac_cv_header_sys_wait_h=yes
14405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014406 echo "$as_me: failed program was:" >&5
14407sed 's/^/| /' conftest.$ac_ext >&5
14408
14409 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014411
Reid Spencera773bd52006-08-04 18:18:08 +000014412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014414{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14415echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014416if test $ac_cv_header_sys_wait_h = yes; then
14417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014418cat >>confdefs.h <<\_ACEOF
14419#define HAVE_SYS_WAIT_H 1
14420_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014421
14422fi
14423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014424{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14425echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14426if test "${ac_cv_header_time+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014429 cat >conftest.$ac_ext <<_ACEOF
14430/* confdefs.h. */
14431_ACEOF
14432cat confdefs.h >>conftest.$ac_ext
14433cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014434/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014435#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014436#include <sys/time.h>
14437#include <time.h>
14438
14439int
14440main ()
14441{
14442if ((struct tm *) 0)
14443return 0;
14444 ;
14445 return 0;
14446}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014448rm -f conftest.$ac_objext
14449if { (ac_try="$ac_compile"
14450case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14453esac
14454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_compile") 2>conftest.er1
14456 ac_status=$?
14457 grep -v '^ *+' conftest.er1 >conftest.err
14458 rm -f conftest.er1
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14463 { (case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14466esac
14467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_try") 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476esac
14477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_try") 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014482 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014489
Reid Spencera773bd52006-08-04 18:18:08 +000014490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014492{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14493echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014494if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014496cat >>confdefs.h <<\_ACEOF
14497#define TIME_WITH_SYS_TIME 1
14498_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014499
14500fi
14501
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014503
14504
14505
14506
14507
14508
Reid Spencer59473af2004-12-25 07:31:29 +000014509for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014510do
14511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517fi
14518ac_res=`eval echo '${'$as_ac_Header'}'`
14519 { echo "$as_me:$LINENO: result: $ac_res" >&5
14520echo "${ECHO_T}$ac_res" >&6; }
14521else
14522 # Is the header compilable?
14523{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14525cat >conftest.$ac_ext <<_ACEOF
14526/* confdefs.h. */
14527_ACEOF
14528cat confdefs.h >>conftest.$ac_ext
14529cat >>conftest.$ac_ext <<_ACEOF
14530/* end confdefs.h. */
14531$ac_includes_default
14532#include <$ac_header>
14533_ACEOF
14534rm -f conftest.$ac_objext
14535if { (ac_try="$ac_compile"
14536case "(($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_compile") 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14549 { (case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552esac
14553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_try") 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; } &&
14558 { ac_try='test -s conftest.$ac_objext'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14562esac
14563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 ac_header_compiler=yes
14569else
14570 echo "$as_me: failed program was:" >&5
14571sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_header_compiler=no
14574fi
14575
14576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14578echo "${ECHO_T}$ac_header_compiler" >&6; }
14579
14580# Is the header present?
14581{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14583cat >conftest.$ac_ext <<_ACEOF
14584/* confdefs.h. */
14585_ACEOF
14586cat confdefs.h >>conftest.$ac_ext
14587cat >>conftest.$ac_ext <<_ACEOF
14588/* end confdefs.h. */
14589#include <$ac_header>
14590_ACEOF
14591if { (ac_try="$ac_cpp conftest.$ac_ext"
14592case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14595esac
14596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } >/dev/null; then
14604 if test -s conftest.err; then
14605 ac_cpp_err=$ac_c_preproc_warn_flag
14606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14607 else
14608 ac_cpp_err=
14609 fi
14610else
14611 ac_cpp_err=yes
14612fi
14613if test -z "$ac_cpp_err"; then
14614 ac_header_preproc=yes
14615else
14616 echo "$as_me: failed program was:" >&5
14617sed 's/^/| /' conftest.$ac_ext >&5
14618
14619 ac_header_preproc=no
14620fi
14621
14622rm -f conftest.err conftest.$ac_ext
14623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14624echo "${ECHO_T}$ac_header_preproc" >&6; }
14625
14626# So? What about this header?
14627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14628 yes:no: )
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14633 ac_header_preproc=yes
14634 ;;
14635 no:yes:* )
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14648 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014649## ------------------------------------ ##
14650## Report this to http://llvm.org/bugs/ ##
14651## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014652_ASBOX
14653 ) | sed "s/^/$as_me: WARNING: /" >&2
14654 ;;
14655esac
14656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660else
14661 eval "$as_ac_Header=\$ac_header_preproc"
14662fi
14663ac_res=`eval echo '${'$as_ac_Header'}'`
14664 { echo "$as_me:$LINENO: result: $ac_res" >&5
14665echo "${ECHO_T}$ac_res" >&6; }
14666
14667fi
14668if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014669 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014671_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014672
14673fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014674
Reid Spencer59473af2004-12-25 07:31:29 +000014675done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014677
14678
14679
14680
14681
14682
Douglas Gregor071d73d2009-05-18 17:21:34 +000014683for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014684do
14685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691fi
14692ac_res=`eval echo '${'$as_ac_Header'}'`
14693 { echo "$as_me:$LINENO: result: $ac_res" >&5
14694echo "${ECHO_T}$ac_res" >&6; }
14695else
14696 # Is the header compilable?
14697{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14699cat >conftest.$ac_ext <<_ACEOF
14700/* confdefs.h. */
14701_ACEOF
14702cat confdefs.h >>conftest.$ac_ext
14703cat >>conftest.$ac_ext <<_ACEOF
14704/* end confdefs.h. */
14705$ac_includes_default
14706#include <$ac_header>
14707_ACEOF
14708rm -f conftest.$ac_objext
14709if { (ac_try="$ac_compile"
14710case "(($ac_try" in
14711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712 *) ac_try_echo=$ac_try;;
14713esac
14714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715 (eval "$ac_compile") 2>conftest.er1
14716 ac_status=$?
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
14722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14723 { (case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14726esac
14727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_try") 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (case "(($ac_try" in
14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14736esac
14737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738 (eval "$ac_try") 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_header_compiler=yes
14743else
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ac_header_compiler=no
14748fi
14749
14750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14752echo "${ECHO_T}$ac_header_compiler" >&6; }
14753
14754# Is the header present?
14755{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14757cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h. */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h. */
14763#include <$ac_header>
14764_ACEOF
14765if { (ac_try="$ac_cpp conftest.$ac_ext"
14766case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769esac
14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null; then
14778 if test -s conftest.err; then
14779 ac_cpp_err=$ac_c_preproc_warn_flag
14780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14781 else
14782 ac_cpp_err=
14783 fi
14784else
14785 ac_cpp_err=yes
14786fi
14787if test -z "$ac_cpp_err"; then
14788 ac_header_preproc=yes
14789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_header_preproc=no
14794fi
14795
14796rm -f conftest.err conftest.$ac_ext
14797{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14798echo "${ECHO_T}$ac_header_preproc" >&6; }
14799
14800# So? What about this header?
14801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14802 yes:no: )
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14807 ac_header_preproc=yes
14808 ;;
14809 no:yes:* )
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14822 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014823## ------------------------------------ ##
14824## Report this to http://llvm.org/bugs/ ##
14825## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014826_ASBOX
14827 ) | sed "s/^/$as_me: WARNING: /" >&2
14828 ;;
14829esac
14830{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834else
14835 eval "$as_ac_Header=\$ac_header_preproc"
14836fi
14837ac_res=`eval echo '${'$as_ac_Header'}'`
14838 { echo "$as_me:$LINENO: result: $ac_res" >&5
14839echo "${ECHO_T}$ac_res" >&6; }
14840
14841fi
14842if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014843 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014845_ACEOF
14846
14847fi
14848
14849done
14850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014851
14852
Douglas Gregor071d73d2009-05-18 17:21:34 +000014853for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014854do
14855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861fi
14862ac_res=`eval echo '${'$as_ac_Header'}'`
14863 { echo "$as_me:$LINENO: result: $ac_res" >&5
14864echo "${ECHO_T}$ac_res" >&6; }
14865else
14866 # Is the header compilable?
14867{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14869cat >conftest.$ac_ext <<_ACEOF
14870/* confdefs.h. */
14871_ACEOF
14872cat confdefs.h >>conftest.$ac_ext
14873cat >>conftest.$ac_ext <<_ACEOF
14874/* end confdefs.h. */
14875$ac_includes_default
14876#include <$ac_header>
14877_ACEOF
14878rm -f conftest.$ac_objext
14879if { (ac_try="$ac_compile"
14880case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14893 { (case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14896esac
14897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898 (eval "$ac_try") 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906esac
14907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_header_compiler=yes
14913else
14914 echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
14917 ac_header_compiler=no
14918fi
14919
14920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14922echo "${ECHO_T}$ac_header_compiler" >&6; }
14923
14924# Is the header present?
14925{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14927cat >conftest.$ac_ext <<_ACEOF
14928/* confdefs.h. */
14929_ACEOF
14930cat confdefs.h >>conftest.$ac_ext
14931cat >>conftest.$ac_ext <<_ACEOF
14932/* end confdefs.h. */
14933#include <$ac_header>
14934_ACEOF
14935if { (ac_try="$ac_cpp conftest.$ac_ext"
14936case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14939esac
14940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14942 ac_status=$?
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } >/dev/null; then
14948 if test -s conftest.err; then
14949 ac_cpp_err=$ac_c_preproc_warn_flag
14950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14951 else
14952 ac_cpp_err=
14953 fi
14954else
14955 ac_cpp_err=yes
14956fi
14957if test -z "$ac_cpp_err"; then
14958 ac_header_preproc=yes
14959else
14960 echo "$as_me: failed program was:" >&5
14961sed 's/^/| /' conftest.$ac_ext >&5
14962
14963 ac_header_preproc=no
14964fi
14965
14966rm -f conftest.err conftest.$ac_ext
14967{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14968echo "${ECHO_T}$ac_header_preproc" >&6; }
14969
14970# So? What about this header?
14971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14972 yes:no: )
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14977 ac_header_preproc=yes
14978 ;;
14979 no:yes:* )
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14992 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014993## ------------------------------------ ##
14994## Report this to http://llvm.org/bugs/ ##
14995## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014996_ASBOX
14997 ) | sed "s/^/$as_me: WARNING: /" >&2
14998 ;;
14999esac
15000{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004else
15005 eval "$as_ac_Header=\$ac_header_preproc"
15006fi
15007ac_res=`eval echo '${'$as_ac_Header'}'`
15008 { echo "$as_me:$LINENO: result: $ac_res" >&5
15009echo "${ECHO_T}$ac_res" >&6; }
15010
15011fi
15012if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015013 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015015_ACEOF
15016
15017fi
15018
15019done
Reid Spencer59473af2004-12-25 07:31:29 +000015020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015021
15022
15023
15024
Daniel Dunbar3e462932011-02-03 02:40:02 +000015025
15026for 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 +000015027do
15028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15034fi
15035ac_res=`eval echo '${'$as_ac_Header'}'`
15036 { echo "$as_me:$LINENO: result: $ac_res" >&5
15037echo "${ECHO_T}$ac_res" >&6; }
15038else
15039 # Is the header compilable?
15040{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15042cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048$ac_includes_default
15049#include <$ac_header>
15050_ACEOF
15051rm -f conftest.$ac_objext
15052if { (ac_try="$ac_compile"
15053case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056esac
15057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15066 { (case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15069esac
15070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_try") 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079esac
15080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_try") 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_header_compiler=yes
15086else
15087 echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
15090 ac_header_compiler=no
15091fi
15092
15093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15095echo "${ECHO_T}$ac_header_compiler" >&6; }
15096
15097# Is the header present?
15098{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15100cat >conftest.$ac_ext <<_ACEOF
15101/* confdefs.h. */
15102_ACEOF
15103cat confdefs.h >>conftest.$ac_ext
15104cat >>conftest.$ac_ext <<_ACEOF
15105/* end confdefs.h. */
15106#include <$ac_header>
15107_ACEOF
15108if { (ac_try="$ac_cpp conftest.$ac_ext"
15109case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15112esac
15113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15115 ac_status=$?
15116 grep -v '^ *+' conftest.er1 >conftest.err
15117 rm -f conftest.er1
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } >/dev/null; then
15121 if test -s conftest.err; then
15122 ac_cpp_err=$ac_c_preproc_warn_flag
15123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15124 else
15125 ac_cpp_err=
15126 fi
15127else
15128 ac_cpp_err=yes
15129fi
15130if test -z "$ac_cpp_err"; then
15131 ac_header_preproc=yes
15132else
15133 echo "$as_me: failed program was:" >&5
15134sed 's/^/| /' conftest.$ac_ext >&5
15135
15136 ac_header_preproc=no
15137fi
15138
15139rm -f conftest.err conftest.$ac_ext
15140{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15141echo "${ECHO_T}$ac_header_preproc" >&6; }
15142
15143# So? What about this header?
15144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15145 yes:no: )
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15150 ac_header_preproc=yes
15151 ;;
15152 no:yes:* )
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15165 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015166## ------------------------------------ ##
15167## Report this to http://llvm.org/bugs/ ##
15168## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169_ASBOX
15170 ) | sed "s/^/$as_me: WARNING: /" >&2
15171 ;;
15172esac
15173{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15177else
15178 eval "$as_ac_Header=\$ac_header_preproc"
15179fi
15180ac_res=`eval echo '${'$as_ac_Header'}'`
15181 { echo "$as_me:$LINENO: result: $ac_res" >&5
15182echo "${ECHO_T}$ac_res" >&6; }
15183
15184fi
15185if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015186 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015188_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015189
15190fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015191
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015192done
15193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015194
15195
15196
15197
Douglas Gregor01746742009-05-11 18:05:52 +000015198for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015199do
15200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206fi
15207ac_res=`eval echo '${'$as_ac_Header'}'`
15208 { echo "$as_me:$LINENO: result: $ac_res" >&5
15209echo "${ECHO_T}$ac_res" >&6; }
15210else
15211 # Is the header compilable?
15212{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15213echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15214cat >conftest.$ac_ext <<_ACEOF
15215/* confdefs.h. */
15216_ACEOF
15217cat confdefs.h >>conftest.$ac_ext
15218cat >>conftest.$ac_ext <<_ACEOF
15219/* end confdefs.h. */
15220$ac_includes_default
15221#include <$ac_header>
15222_ACEOF
15223rm -f conftest.$ac_objext
15224if { (ac_try="$ac_compile"
15225case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15228esac
15229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_compile") 2>conftest.er1
15231 ac_status=$?
15232 grep -v '^ *+' conftest.er1 >conftest.err
15233 rm -f conftest.er1
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15238 { (case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15241esac
15242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_try") 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } &&
15247 { ac_try='test -s conftest.$ac_objext'
15248 { (case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251esac
15252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_try") 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_header_compiler=yes
15258else
15259 echo "$as_me: failed program was:" >&5
15260sed 's/^/| /' conftest.$ac_ext >&5
15261
15262 ac_header_compiler=no
15263fi
15264
15265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15267echo "${ECHO_T}$ac_header_compiler" >&6; }
15268
15269# Is the header present?
15270{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15271echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15272cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278#include <$ac_header>
15279_ACEOF
15280if { (ac_try="$ac_cpp conftest.$ac_ext"
15281case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15284esac
15285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } >/dev/null; then
15293 if test -s conftest.err; then
15294 ac_cpp_err=$ac_c_preproc_warn_flag
15295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15296 else
15297 ac_cpp_err=
15298 fi
15299else
15300 ac_cpp_err=yes
15301fi
15302if test -z "$ac_cpp_err"; then
15303 ac_header_preproc=yes
15304else
15305 echo "$as_me: failed program was:" >&5
15306sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 ac_header_preproc=no
15309fi
15310
15311rm -f conftest.err conftest.$ac_ext
15312{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15313echo "${ECHO_T}$ac_header_preproc" >&6; }
15314
15315# So? What about this header?
15316case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15317 yes:no: )
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15321echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15322 ac_header_preproc=yes
15323 ;;
15324 no:yes:* )
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15326echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15328echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15330echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15332echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15336echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15337 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015338## ------------------------------------ ##
15339## Report this to http://llvm.org/bugs/ ##
15340## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015341_ASBOX
15342 ) | sed "s/^/$as_me: WARNING: /" >&2
15343 ;;
15344esac
15345{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15349else
15350 eval "$as_ac_Header=\$ac_header_preproc"
15351fi
15352ac_res=`eval echo '${'$as_ac_Header'}'`
15353 { echo "$as_me:$LINENO: result: $ac_res" >&5
15354echo "${ECHO_T}$ac_res" >&6; }
15355
15356fi
15357if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015358 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015360_ACEOF
15361
15362fi
15363
15364done
15365
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015366
15367for ac_header in valgrind/valgrind.h
15368do
15369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375fi
15376ac_res=`eval echo '${'$as_ac_Header'}'`
15377 { echo "$as_me:$LINENO: result: $ac_res" >&5
15378echo "${ECHO_T}$ac_res" >&6; }
15379else
15380 # Is the header compilable?
15381{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15383cat >conftest.$ac_ext <<_ACEOF
15384/* confdefs.h. */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
15388/* end confdefs.h. */
15389$ac_includes_default
15390#include <$ac_header>
15391_ACEOF
15392rm -f conftest.$ac_objext
15393if { (ac_try="$ac_compile"
15394case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15397esac
15398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_compile") 2>conftest.er1
15400 ac_status=$?
15401 grep -v '^ *+' conftest.er1 >conftest.err
15402 rm -f conftest.er1
15403 cat conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15407 { (case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410esac
15411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_try") 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420esac
15421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_try") 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_header_compiler=yes
15427else
15428 echo "$as_me: failed program was:" >&5
15429sed 's/^/| /' conftest.$ac_ext >&5
15430
15431 ac_header_compiler=no
15432fi
15433
15434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436echo "${ECHO_T}$ac_header_compiler" >&6; }
15437
15438# Is the header present?
15439{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15441cat >conftest.$ac_ext <<_ACEOF
15442/* confdefs.h. */
15443_ACEOF
15444cat confdefs.h >>conftest.$ac_ext
15445cat >>conftest.$ac_ext <<_ACEOF
15446/* end confdefs.h. */
15447#include <$ac_header>
15448_ACEOF
15449if { (ac_try="$ac_cpp conftest.$ac_ext"
15450case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453esac
15454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } >/dev/null; then
15462 if test -s conftest.err; then
15463 ac_cpp_err=$ac_c_preproc_warn_flag
15464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15465 else
15466 ac_cpp_err=
15467 fi
15468else
15469 ac_cpp_err=yes
15470fi
15471if test -z "$ac_cpp_err"; then
15472 ac_header_preproc=yes
15473else
15474 echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 ac_header_preproc=no
15478fi
15479
15480rm -f conftest.err conftest.$ac_ext
15481{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482echo "${ECHO_T}$ac_header_preproc" >&6; }
15483
15484# So? What about this header?
15485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15486 yes:no: )
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15491 ac_header_preproc=yes
15492 ;;
15493 no:yes:* )
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15506 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015507## ------------------------------------ ##
15508## Report this to http://llvm.org/bugs/ ##
15509## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015510_ASBOX
15511 ) | sed "s/^/$as_me: WARNING: /" >&2
15512 ;;
15513esac
15514{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518else
15519 eval "$as_ac_Header=\$ac_header_preproc"
15520fi
15521ac_res=`eval echo '${'$as_ac_Header'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523echo "${ECHO_T}$ac_res" >&6; }
15524
15525fi
15526if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15529_ACEOF
15530
15531fi
15532
15533done
15534
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015535
15536for ac_header in fenv.h
15537do
15538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544fi
15545ac_res=`eval echo '${'$as_ac_Header'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547echo "${ECHO_T}$ac_res" >&6; }
15548else
15549 # Is the header compilable?
15550{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15551echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15552cat >conftest.$ac_ext <<_ACEOF
15553/* confdefs.h. */
15554_ACEOF
15555cat confdefs.h >>conftest.$ac_ext
15556cat >>conftest.$ac_ext <<_ACEOF
15557/* end confdefs.h. */
15558$ac_includes_default
15559#include <$ac_header>
15560_ACEOF
15561rm -f conftest.$ac_objext
15562if { (ac_try="$ac_compile"
15563case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566esac
15567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_compile") 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579esac
15580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_header_compiler=yes
15596else
15597 echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_header_compiler=no
15601fi
15602
15603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15605echo "${ECHO_T}$ac_header_compiler" >&6; }
15606
15607# Is the header present?
15608{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15610cat >conftest.$ac_ext <<_ACEOF
15611/* confdefs.h. */
15612_ACEOF
15613cat confdefs.h >>conftest.$ac_ext
15614cat >>conftest.$ac_ext <<_ACEOF
15615/* end confdefs.h. */
15616#include <$ac_header>
15617_ACEOF
15618if { (ac_try="$ac_cpp conftest.$ac_ext"
15619case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } >/dev/null; then
15631 if test -s conftest.err; then
15632 ac_cpp_err=$ac_c_preproc_warn_flag
15633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15634 else
15635 ac_cpp_err=
15636 fi
15637else
15638 ac_cpp_err=yes
15639fi
15640if test -z "$ac_cpp_err"; then
15641 ac_header_preproc=yes
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 ac_header_preproc=no
15647fi
15648
15649rm -f conftest.err conftest.$ac_ext
15650{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15651echo "${ECHO_T}$ac_header_preproc" >&6; }
15652
15653# So? What about this header?
15654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15655 yes:no: )
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15657echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15659echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15660 ac_header_preproc=yes
15661 ;;
15662 no:yes:* )
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15668echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15670echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15674echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15675 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015676## ------------------------------------ ##
15677## Report this to http://llvm.org/bugs/ ##
15678## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015679_ASBOX
15680 ) | sed "s/^/$as_me: WARNING: /" >&2
15681 ;;
15682esac
15683{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687else
15688 eval "$as_ac_Header=\$ac_header_preproc"
15689fi
15690ac_res=`eval echo '${'$as_ac_Header'}'`
15691 { echo "$as_me:$LINENO: result: $ac_res" >&5
15692echo "${ECHO_T}$ac_res" >&6; }
15693
15694fi
15695if test `eval echo '${'$as_ac_Header'}'` = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15698_ACEOF
15699
15700fi
15701
15702done
15703
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015704if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015705
15706for ac_header in pthread.h
15707do
15708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714fi
15715ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717echo "${ECHO_T}$ac_res" >&6; }
15718else
15719 # Is the header compilable?
15720{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15722cat >conftest.$ac_ext <<_ACEOF
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
15728$ac_includes_default
15729#include <$ac_header>
15730_ACEOF
15731rm -f conftest.$ac_objext
15732if { (ac_try="$ac_compile"
15733case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736esac
15737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746 { (case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15749esac
15750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_try") 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } &&
15755 { ac_try='test -s conftest.$ac_objext'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759esac
15760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_header_compiler=yes
15766else
15767 echo "$as_me: failed program was:" >&5
15768sed 's/^/| /' conftest.$ac_ext >&5
15769
15770 ac_header_compiler=no
15771fi
15772
15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775echo "${ECHO_T}$ac_header_compiler" >&6; }
15776
15777# Is the header present?
15778{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15780cat >conftest.$ac_ext <<_ACEOF
15781/* confdefs.h. */
15782_ACEOF
15783cat confdefs.h >>conftest.$ac_ext
15784cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h. */
15786#include <$ac_header>
15787_ACEOF
15788if { (ac_try="$ac_cpp conftest.$ac_ext"
15789case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } >/dev/null; then
15801 if test -s conftest.err; then
15802 ac_cpp_err=$ac_c_preproc_warn_flag
15803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15804 else
15805 ac_cpp_err=
15806 fi
15807else
15808 ac_cpp_err=yes
15809fi
15810if test -z "$ac_cpp_err"; then
15811 ac_header_preproc=yes
15812else
15813 echo "$as_me: failed program was:" >&5
15814sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 ac_header_preproc=no
15817fi
15818
15819rm -f conftest.err conftest.$ac_ext
15820{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821echo "${ECHO_T}$ac_header_preproc" >&6; }
15822
15823# So? What about this header?
15824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15825 yes:no: )
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15830 ac_header_preproc=yes
15831 ;;
15832 no:yes:* )
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15845 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015846## ------------------------------------ ##
15847## Report this to http://llvm.org/bugs/ ##
15848## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015849_ASBOX
15850 ) | sed "s/^/$as_me: WARNING: /" >&2
15851 ;;
15852esac
15853{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857else
15858 eval "$as_ac_Header=\$ac_header_preproc"
15859fi
15860ac_res=`eval echo '${'$as_ac_Header'}'`
15861 { echo "$as_me:$LINENO: result: $ac_res" >&5
15862echo "${ECHO_T}$ac_res" >&6; }
15863
15864fi
15865if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015866 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015868_ACEOF
15869 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015870
15871else
15872 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015873
15874fi
15875
Reid Spencerbe3e4192007-08-17 05:45:26 +000015876done
Reid Spencer1000b732006-12-01 00:37:14 +000015877
15878else
15879 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015880
15881fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015882
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015883if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015884
15885
15886for ac_header in ffi.h ffi/ffi.h
15887do
15888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15894fi
15895ac_res=`eval echo '${'$as_ac_Header'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897echo "${ECHO_T}$ac_res" >&6; }
15898else
15899 # Is the header compilable?
15900{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15902cat >conftest.$ac_ext <<_ACEOF
15903/* confdefs.h. */
15904_ACEOF
15905cat confdefs.h >>conftest.$ac_ext
15906cat >>conftest.$ac_ext <<_ACEOF
15907/* end confdefs.h. */
15908$ac_includes_default
15909#include <$ac_header>
15910_ACEOF
15911rm -f conftest.$ac_objext
15912if { (ac_try="$ac_compile"
15913case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15916esac
15917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_compile") 2>conftest.er1
15919 ac_status=$?
15920 grep -v '^ *+' conftest.er1 >conftest.err
15921 rm -f conftest.er1
15922 cat conftest.err >&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15926 { (case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929esac
15930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_try") 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; } &&
15935 { ac_try='test -s conftest.$ac_objext'
15936 { (case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939esac
15940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_try") 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_header_compiler=yes
15946else
15947 echo "$as_me: failed program was:" >&5
15948sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 ac_header_compiler=no
15951fi
15952
15953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15955echo "${ECHO_T}$ac_header_compiler" >&6; }
15956
15957# Is the header present?
15958{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15960cat >conftest.$ac_ext <<_ACEOF
15961/* confdefs.h. */
15962_ACEOF
15963cat confdefs.h >>conftest.$ac_ext
15964cat >>conftest.$ac_ext <<_ACEOF
15965/* end confdefs.h. */
15966#include <$ac_header>
15967_ACEOF
15968if { (ac_try="$ac_cpp conftest.$ac_ext"
15969case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15972esac
15973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15975 ac_status=$?
15976 grep -v '^ *+' conftest.er1 >conftest.err
15977 rm -f conftest.er1
15978 cat conftest.err >&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); } >/dev/null; then
15981 if test -s conftest.err; then
15982 ac_cpp_err=$ac_c_preproc_warn_flag
15983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15984 else
15985 ac_cpp_err=
15986 fi
15987else
15988 ac_cpp_err=yes
15989fi
15990if test -z "$ac_cpp_err"; then
15991 ac_header_preproc=yes
15992else
15993 echo "$as_me: failed program was:" >&5
15994sed 's/^/| /' conftest.$ac_ext >&5
15995
15996 ac_header_preproc=no
15997fi
15998
15999rm -f conftest.err conftest.$ac_ext
16000{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16001echo "${ECHO_T}$ac_header_preproc" >&6; }
16002
16003# So? What about this header?
16004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16005 yes:no: )
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16010 ac_header_preproc=yes
16011 ;;
16012 no:yes:* )
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16025 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016026## ------------------------------------ ##
16027## Report this to http://llvm.org/bugs/ ##
16028## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016029_ASBOX
16030 ) | sed "s/^/$as_me: WARNING: /" >&2
16031 ;;
16032esac
16033{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16037else
16038 eval "$as_ac_Header=\$ac_header_preproc"
16039fi
16040ac_res=`eval echo '${'$as_ac_Header'}'`
16041 { echo "$as_me:$LINENO: result: $ac_res" >&5
16042echo "${ECHO_T}$ac_res" >&6; }
16043
16044fi
16045if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016046 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016048_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016049
16050fi
16051
16052done
16053
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016054fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016055
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016056
Eric Christopher654dee42010-06-22 21:01:04 +000016057for ac_header in CrashReporterClient.h
16058do
16059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16065fi
16066ac_res=`eval echo '${'$as_ac_Header'}'`
16067 { echo "$as_me:$LINENO: result: $ac_res" >&5
16068echo "${ECHO_T}$ac_res" >&6; }
16069else
16070 # Is the header compilable?
16071{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16073cat >conftest.$ac_ext <<_ACEOF
16074/* confdefs.h. */
16075_ACEOF
16076cat confdefs.h >>conftest.$ac_ext
16077cat >>conftest.$ac_ext <<_ACEOF
16078/* end confdefs.h. */
16079$ac_includes_default
16080#include <$ac_header>
16081_ACEOF
16082rm -f conftest.$ac_objext
16083if { (ac_try="$ac_compile"
16084case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16087esac
16088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_compile") 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16097 { (case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16100esac
16101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_try") 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16110esac
16111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_header_compiler=yes
16117else
16118 echo "$as_me: failed program was:" >&5
16119sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 ac_header_compiler=no
16122fi
16123
16124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16126echo "${ECHO_T}$ac_header_compiler" >&6; }
16127
16128# Is the header present?
16129{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16131cat >conftest.$ac_ext <<_ACEOF
16132/* confdefs.h. */
16133_ACEOF
16134cat confdefs.h >>conftest.$ac_ext
16135cat >>conftest.$ac_ext <<_ACEOF
16136/* end confdefs.h. */
16137#include <$ac_header>
16138_ACEOF
16139if { (ac_try="$ac_cpp conftest.$ac_ext"
16140case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16143esac
16144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16146 ac_status=$?
16147 grep -v '^ *+' conftest.er1 >conftest.err
16148 rm -f conftest.er1
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } >/dev/null; then
16152 if test -s conftest.err; then
16153 ac_cpp_err=$ac_c_preproc_warn_flag
16154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16155 else
16156 ac_cpp_err=
16157 fi
16158else
16159 ac_cpp_err=yes
16160fi
16161if test -z "$ac_cpp_err"; then
16162 ac_header_preproc=yes
16163else
16164 echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 ac_header_preproc=no
16168fi
16169
16170rm -f conftest.err conftest.$ac_ext
16171{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16172echo "${ECHO_T}$ac_header_preproc" >&6; }
16173
16174# So? What about this header?
16175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16176 yes:no: )
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16181 ac_header_preproc=yes
16182 ;;
16183 no:yes:* )
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16196 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016197## ------------------------------------ ##
16198## Report this to http://llvm.org/bugs/ ##
16199## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016200_ASBOX
16201 ) | sed "s/^/$as_me: WARNING: /" >&2
16202 ;;
16203esac
16204{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16208else
16209 eval "$as_ac_Header=\$ac_header_preproc"
16210fi
16211ac_res=`eval echo '${'$as_ac_Header'}'`
16212 { echo "$as_me:$LINENO: result: $ac_res" >&5
16213echo "${ECHO_T}$ac_res" >&6; }
16214
16215fi
16216if test `eval echo '${'$as_ac_Header'}'` = yes; then
16217 cat >>confdefs.h <<_ACEOF
16218#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16219_ACEOF
16220
16221fi
16222
16223done
16224
16225
Eric Christopher51e57132010-12-07 02:05:42 +000016226{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16227echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016228cat >conftest.$ac_ext <<_ACEOF
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016234extern const char *__crashreporter_info__;
16235 int main() {
16236 __crashreporter_info__ = "test";
16237 return 0;
16238 }
Eric Christopher481d4022010-12-03 07:45:22 +000016239
Eric Christopher481d4022010-12-03 07:45:22 +000016240_ACEOF
16241rm -f conftest.$ac_objext conftest$ac_exeext
16242if { (ac_try="$ac_link"
16243case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_link") 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256 { (case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259esac
16260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_try") 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try='test -s conftest$ac_exeext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269esac
16270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016275 { echo "$as_me:$LINENO: result: yes" >&5
16276echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016277
16278cat >>confdefs.h <<\_ACEOF
16279#define HAVE_CRASHREPORTER_INFO 1
16280_ACEOF
16281
Eric Christopher51e57132010-12-07 02:05:42 +000016282else
16283 echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 { echo "$as_me:$LINENO: result: no" >&5
16287echo "${ECHO_T}no" >&6; }
16288
16289cat >>confdefs.h <<\_ACEOF
16290#define HAVE_CRASHREPORTER_INFO 0
16291_ACEOF
16292
Eric Christopher481d4022010-12-03 07:45:22 +000016293fi
Eric Christopher654dee42010-06-22 21:01:04 +000016294
Eric Christopher51e57132010-12-07 02:05:42 +000016295rm -f core conftest.err conftest.$ac_objext \
16296 conftest$ac_exeext conftest.$ac_ext
16297
16298
Reid Spencer8085cff2005-01-16 02:58:39 +000016299
Torok Edwin871384f2010-01-26 08:50:50 +000016300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016301 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16302echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16303if test "${ac_cv_huge_val_sanity+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016305else
16306
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016307 ac_ext=cpp
16308ac_cpp='$CXXCPP $CPPFLAGS'
16309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016312
Eric Christopherc7718502010-03-02 05:06:54 +000016313 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016314 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016315 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016316 ac_cv_huge_val_sanity=yes
16317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016318 cat >conftest.$ac_ext <<_ACEOF
16319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016323/* end confdefs.h. */
16324#include <math.h>
16325int
16326main ()
16327{
16328double x = HUGE_VAL; return x != x;
16329 ;
16330 return 0;
16331}
16332_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016333rm -f conftest$ac_exeext
16334if { (ac_try="$ac_link"
16335case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338esac
16339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_link") 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16344 { (case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347esac
16348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_try") 2>&5
16350 ac_status=$?
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016353 ac_cv_huge_val_sanity=yes
16354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016355 echo "$as_me: program exited with status $ac_status" >&5
16356echo "$as_me: failed program was:" >&5
16357sed 's/^/| /' conftest.$ac_ext >&5
16358
16359( exit $ac_status )
16360ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016362rm -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 +000016363fi
16364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016365
Eric Christopherc7718502010-03-02 05:06:54 +000016366 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016367 ac_ext=c
16368ac_cpp='$CPP $CPPFLAGS'
16369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16371ac_compiler_gnu=$ac_cv_c_compiler_gnu
16372
16373
16374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016375{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16376echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016377 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16378
16379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016380{ echo "$as_me:$LINENO: checking for pid_t" >&5
16381echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16382if test "${ac_cv_type_pid_t+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16384else
16385 cat >conftest.$ac_ext <<_ACEOF
16386/* confdefs.h. */
16387_ACEOF
16388cat confdefs.h >>conftest.$ac_ext
16389cat >>conftest.$ac_ext <<_ACEOF
16390/* end confdefs.h. */
16391$ac_includes_default
16392typedef pid_t ac__type_new_;
16393int
16394main ()
16395{
16396if ((ac__type_new_ *) 0)
16397 return 0;
16398if (sizeof (ac__type_new_))
16399 return 0;
16400 ;
16401 return 0;
16402}
16403_ACEOF
16404rm -f conftest.$ac_objext
16405if { (ac_try="$ac_compile"
16406case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_compile") 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
16418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419 { (case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16422esac
16423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_try") 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432esac
16433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_try") 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_type_pid_t=yes
16439else
16440 echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016443 ac_cv_type_pid_t=no
16444fi
16445
16446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447fi
16448{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16449echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16450if test $ac_cv_type_pid_t = yes; then
16451 :
John Criswell7a73b802003-06-30 21:59:07 +000016452else
16453
16454cat >>confdefs.h <<_ACEOF
16455#define pid_t int
16456_ACEOF
16457
16458fi
16459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016460{ echo "$as_me:$LINENO: checking for size_t" >&5
16461echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16462if test "${ac_cv_type_size_t+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464else
16465 cat >conftest.$ac_ext <<_ACEOF
16466/* confdefs.h. */
16467_ACEOF
16468cat confdefs.h >>conftest.$ac_ext
16469cat >>conftest.$ac_ext <<_ACEOF
16470/* end confdefs.h. */
16471$ac_includes_default
16472typedef size_t ac__type_new_;
16473int
16474main ()
16475{
16476if ((ac__type_new_ *) 0)
16477 return 0;
16478if (sizeof (ac__type_new_))
16479 return 0;
16480 ;
16481 return 0;
16482}
16483_ACEOF
16484rm -f conftest.$ac_objext
16485if { (ac_try="$ac_compile"
16486case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489esac
16490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_compile") 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16499 { (case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16502esac
16503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_try") 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; } &&
16508 { ac_try='test -s conftest.$ac_objext'
16509 { (case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16512esac
16513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_try") 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16518 ac_cv_type_size_t=yes
16519else
16520 echo "$as_me: failed program was:" >&5
16521sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016523 ac_cv_type_size_t=no
16524fi
16525
16526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16527fi
16528{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16529echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16530if test $ac_cv_type_size_t = yes; then
16531 :
John Criswell7a73b802003-06-30 21:59:07 +000016532else
16533
16534cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016535#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016536_ACEOF
16537
16538fi
16539
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016540
16541cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016542#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016543_ACEOF
16544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016545{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16546echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16547if test "${ac_cv_struct_tm+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016550 cat >conftest.$ac_ext <<_ACEOF
16551/* confdefs.h. */
16552_ACEOF
16553cat confdefs.h >>conftest.$ac_ext
16554cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016555/* end confdefs.h. */
16556#include <sys/types.h>
16557#include <time.h>
16558
16559int
16560main ()
16561{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016562struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016563 ;
16564 return 0;
16565}
16566_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016567rm -f conftest.$ac_objext
16568if { (ac_try="$ac_compile"
16569case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572esac
16573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_compile") 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16591 { ac_try='test -s conftest.$ac_objext'
16592 { (case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16595esac
16596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_try") 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016601 ac_cv_struct_tm=time.h
16602else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016603 echo "$as_me: failed program was:" >&5
16604sed 's/^/| /' conftest.$ac_ext >&5
16605
16606 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016608
Reid Spencera773bd52006-08-04 18:18:08 +000016609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016611{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16612echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016613if test $ac_cv_struct_tm = sys/time.h; then
16614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016615cat >>confdefs.h <<\_ACEOF
16616#define TM_IN_SYS_TIME 1
16617_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016618
16619fi
16620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016621{ echo "$as_me:$LINENO: checking for int64_t" >&5
16622echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16623if test "${ac_cv_type_int64_t+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625else
16626 cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h. */
16632$ac_includes_default
16633typedef int64_t ac__type_new_;
16634int
16635main ()
16636{
16637if ((ac__type_new_ *) 0)
16638 return 0;
16639if (sizeof (ac__type_new_))
16640 return 0;
16641 ;
16642 return 0;
16643}
16644_ACEOF
16645rm -f conftest.$ac_objext
16646if { (ac_try="$ac_compile"
16647case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16650esac
16651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_compile") 2>conftest.er1
16653 ac_status=$?
16654 grep -v '^ *+' conftest.er1 >conftest.err
16655 rm -f conftest.er1
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663esac
16664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest.$ac_objext'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673esac
16674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_cv_type_int64_t=yes
16680else
16681 echo "$as_me: failed program was:" >&5
16682sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 ac_cv_type_int64_t=no
16685fi
16686
16687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688fi
16689{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16690echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16691if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016692
16693cat >>confdefs.h <<_ACEOF
16694#define HAVE_INT64_T 1
16695_ACEOF
16696
16697
16698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016699 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16700echo "$as_me: error: Type int64_t required but not found" >&2;}
16701 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016702fi
16703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016704{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16705echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16706if test "${ac_cv_type_uint64_t+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16708else
16709 cat >conftest.$ac_ext <<_ACEOF
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
16715$ac_includes_default
16716typedef uint64_t ac__type_new_;
16717int
16718main ()
16719{
16720if ((ac__type_new_ *) 0)
16721 return 0;
16722if (sizeof (ac__type_new_))
16723 return 0;
16724 ;
16725 return 0;
16726}
16727_ACEOF
16728rm -f conftest.$ac_objext
16729if { (ac_try="$ac_compile"
16730case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733esac
16734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_compile") 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16752 { ac_try='test -s conftest.$ac_objext'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756esac
16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_try") 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_type_uint64_t=yes
16763else
16764 echo "$as_me: failed program was:" >&5
16765sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 ac_cv_type_uint64_t=no
16768fi
16769
16770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771fi
16772{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16773echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16774if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016775
16776cat >>confdefs.h <<_ACEOF
16777#define HAVE_UINT64_T 1
16778_ACEOF
16779
16780
16781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016782 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16783echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16784if test "${ac_cv_type_u_int64_t+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786else
16787 cat >conftest.$ac_ext <<_ACEOF
16788/* confdefs.h. */
16789_ACEOF
16790cat confdefs.h >>conftest.$ac_ext
16791cat >>conftest.$ac_ext <<_ACEOF
16792/* end confdefs.h. */
16793$ac_includes_default
16794typedef u_int64_t ac__type_new_;
16795int
16796main ()
16797{
16798if ((ac__type_new_ *) 0)
16799 return 0;
16800if (sizeof (ac__type_new_))
16801 return 0;
16802 ;
16803 return 0;
16804}
16805_ACEOF
16806rm -f conftest.$ac_objext
16807if { (ac_try="$ac_compile"
16808case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16811esac
16812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_compile") 2>conftest.er1
16814 ac_status=$?
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834esac
16835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 ac_cv_type_u_int64_t=yes
16841else
16842 echo "$as_me: failed program was:" >&5
16843sed 's/^/| /' conftest.$ac_ext >&5
16844
16845 ac_cv_type_u_int64_t=no
16846fi
16847
16848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849fi
16850{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16851echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16852if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016853
16854cat >>confdefs.h <<_ACEOF
16855#define HAVE_U_INT64_T 1
16856_ACEOF
16857
16858
Misha Brukmanceca9042004-09-02 23:02:30 +000016859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016860 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16861echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16862 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016863fi
16864
John Criswell679ff312004-09-02 18:44:44 +000016865fi
16866
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016867
16868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016869
16870
16871
16872
16873
16874
16875
Reid Spencerdf3be822006-01-23 08:15:53 +000016876for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016877do
16878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883else
16884 cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892#define $ac_func innocuous_$ac_func
16893
16894/* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16898
16899#ifdef __STDC__
16900# include <limits.h>
16901#else
16902# include <assert.h>
16903#endif
16904
16905#undef $ac_func
16906
16907/* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16910#ifdef __cplusplus
16911extern "C"
16912#endif
16913char $ac_func ();
16914/* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917#if defined __stub_$ac_func || defined __stub___$ac_func
16918choke me
16919#endif
16920
16921int
16922main ()
16923{
16924return $ac_func ();
16925 ;
16926 return 0;
16927}
16928_ACEOF
16929rm -f conftest.$ac_objext conftest$ac_exeext
16930if { (ac_try="$ac_link"
16931case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
16937 ac_status=$?
16938 grep -v '^ *+' conftest.er1 >conftest.err
16939 rm -f conftest.er1
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947esac
16948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957esac
16958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 eval "$as_ac_var=yes"
16964else
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968 eval "$as_ac_var=no"
16969fi
16970
16971rm -f core conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16973fi
16974ac_res=`eval echo '${'$as_ac_var'}'`
16975 { echo "$as_me:$LINENO: result: $ac_res" >&5
16976echo "${ECHO_T}$ac_res" >&6; }
16977if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016978 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016980_ACEOF
16981
16982fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016983done
John Criswell7a73b802003-06-30 21:59:07 +000016984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016985
16986
16987
16988
Reid Spencer96cf5872007-07-13 10:05:30 +000016989for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016990do
16991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16992{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16993echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16994if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16996else
16997 cat >conftest.$ac_ext <<_ACEOF
16998/* confdefs.h. */
16999_ACEOF
17000cat confdefs.h >>conftest.$ac_ext
17001cat >>conftest.$ac_ext <<_ACEOF
17002/* end confdefs.h. */
17003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17005#define $ac_func innocuous_$ac_func
17006
17007/* System header to define __stub macros and hopefully few prototypes,
17008 which can conflict with char $ac_func (); below.
17009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17010 <limits.h> exists even on freestanding compilers. */
17011
17012#ifdef __STDC__
17013# include <limits.h>
17014#else
17015# include <assert.h>
17016#endif
17017
17018#undef $ac_func
17019
17020/* Override any GCC internal prototype to avoid an error.
17021 Use char because int might match the return type of a GCC
17022 builtin and then its argument prototype would still apply. */
17023#ifdef __cplusplus
17024extern "C"
17025#endif
17026char $ac_func ();
17027/* The GNU C library defines this for functions which it implements
17028 to always fail with ENOSYS. Some functions are actually named
17029 something starting with __ and the normal name is an alias. */
17030#if defined __stub_$ac_func || defined __stub___$ac_func
17031choke me
17032#endif
17033
17034int
17035main ()
17036{
17037return $ac_func ();
17038 ;
17039 return 0;
17040}
17041_ACEOF
17042rm -f conftest.$ac_objext conftest$ac_exeext
17043if { (ac_try="$ac_link"
17044case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057 { (case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060esac
17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_try") 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17070esac
17071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_try") 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 eval "$as_ac_var=yes"
17077else
17078 echo "$as_me: failed program was:" >&5
17079sed 's/^/| /' conftest.$ac_ext >&5
17080
17081 eval "$as_ac_var=no"
17082fi
17083
17084rm -f core conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
17086fi
17087ac_res=`eval echo '${'$as_ac_var'}'`
17088 { echo "$as_me:$LINENO: result: $ac_res" >&5
17089echo "${ECHO_T}$ac_res" >&6; }
17090if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017091 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017093_ACEOF
17094
17095fi
17096done
17097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017098
17099
17100
17101
17102
Reid Spencerb90645c2007-02-16 19:17:20 +000017103for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017104do
17105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17106{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17108if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110else
17111 cat >conftest.$ac_ext <<_ACEOF
17112/* confdefs.h. */
17113_ACEOF
17114cat confdefs.h >>conftest.$ac_ext
17115cat >>conftest.$ac_ext <<_ACEOF
17116/* end confdefs.h. */
17117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17119#define $ac_func innocuous_$ac_func
17120
17121/* System header to define __stub macros and hopefully few prototypes,
17122 which can conflict with char $ac_func (); below.
17123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124 <limits.h> exists even on freestanding compilers. */
17125
17126#ifdef __STDC__
17127# include <limits.h>
17128#else
17129# include <assert.h>
17130#endif
17131
17132#undef $ac_func
17133
17134/* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17137#ifdef __cplusplus
17138extern "C"
17139#endif
17140char $ac_func ();
17141/* The GNU C library defines this for functions which it implements
17142 to always fail with ENOSYS. Some functions are actually named
17143 something starting with __ and the normal name is an alias. */
17144#if defined __stub_$ac_func || defined __stub___$ac_func
17145choke me
17146#endif
17147
17148int
17149main ()
17150{
17151return $ac_func ();
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156rm -f conftest.$ac_objext conftest$ac_exeext
17157if { (ac_try="$ac_link"
17158case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161esac
17162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_link") 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174esac
17175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try='test -s conftest$ac_exeext'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 eval "$as_ac_var=yes"
17191else
17192 echo "$as_me: failed program was:" >&5
17193sed 's/^/| /' conftest.$ac_ext >&5
17194
17195 eval "$as_ac_var=no"
17196fi
17197
17198rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
17200fi
17201ac_res=`eval echo '${'$as_ac_var'}'`
17202 { echo "$as_me:$LINENO: result: $ac_res" >&5
17203echo "${ECHO_T}$ac_res" >&6; }
17204if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017205 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017207_ACEOF
17208
17209fi
17210done
17211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017212
17213
17214
Reid Spencerb90645c2007-02-16 19:17:20 +000017215for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017216do
17217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222else
17223 cat >conftest.$ac_ext <<_ACEOF
17224/* confdefs.h. */
17225_ACEOF
17226cat confdefs.h >>conftest.$ac_ext
17227cat >>conftest.$ac_ext <<_ACEOF
17228/* end confdefs.h. */
17229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17231#define $ac_func innocuous_$ac_func
17232
17233/* System header to define __stub macros and hopefully few prototypes,
17234 which can conflict with char $ac_func (); below.
17235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17236 <limits.h> exists even on freestanding compilers. */
17237
17238#ifdef __STDC__
17239# include <limits.h>
17240#else
17241# include <assert.h>
17242#endif
17243
17244#undef $ac_func
17245
17246/* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17249#ifdef __cplusplus
17250extern "C"
17251#endif
17252char $ac_func ();
17253/* The GNU C library defines this for functions which it implements
17254 to always fail with ENOSYS. Some functions are actually named
17255 something starting with __ and the normal name is an alias. */
17256#if defined __stub_$ac_func || defined __stub___$ac_func
17257choke me
17258#endif
17259
17260int
17261main ()
17262{
17263return $ac_func ();
17264 ;
17265 return 0;
17266}
17267_ACEOF
17268rm -f conftest.$ac_objext conftest$ac_exeext
17269if { (ac_try="$ac_link"
17270case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273esac
17274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
17282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_try") 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 eval "$as_ac_var=yes"
17303else
17304 echo "$as_me: failed program was:" >&5
17305sed 's/^/| /' conftest.$ac_ext >&5
17306
17307 eval "$as_ac_var=no"
17308fi
17309
17310rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312fi
17313ac_res=`eval echo '${'$as_ac_var'}'`
17314 { echo "$as_me:$LINENO: result: $ac_res" >&5
17315echo "${ECHO_T}$ac_res" >&6; }
17316if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017317 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017319_ACEOF
17320
17321fi
17322done
17323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017324
17325
17326
17327
17328
Eric Christophere4291822010-04-16 05:14:21 +000017329
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017330
17331for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017332do
17333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338else
17339 cat >conftest.$ac_ext <<_ACEOF
17340/* confdefs.h. */
17341_ACEOF
17342cat confdefs.h >>conftest.$ac_ext
17343cat >>conftest.$ac_ext <<_ACEOF
17344/* end confdefs.h. */
17345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347#define $ac_func innocuous_$ac_func
17348
17349/* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17353
17354#ifdef __STDC__
17355# include <limits.h>
17356#else
17357# include <assert.h>
17358#endif
17359
17360#undef $ac_func
17361
17362/* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17365#ifdef __cplusplus
17366extern "C"
17367#endif
17368char $ac_func ();
17369/* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372#if defined __stub_$ac_func || defined __stub___$ac_func
17373choke me
17374#endif
17375
17376int
17377main ()
17378{
17379return $ac_func ();
17380 ;
17381 return 0;
17382}
17383_ACEOF
17384rm -f conftest.$ac_objext conftest$ac_exeext
17385if { (ac_try="$ac_link"
17386case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389esac
17390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399 { (case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17402esac
17403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_try") 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412esac
17413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_try") 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 eval "$as_ac_var=yes"
17419else
17420 echo "$as_me: failed program was:" >&5
17421sed 's/^/| /' conftest.$ac_ext >&5
17422
17423 eval "$as_ac_var=no"
17424fi
17425
17426rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17428fi
17429ac_res=`eval echo '${'$as_ac_var'}'`
17430 { echo "$as_me:$LINENO: result: $ac_res" >&5
17431echo "${ECHO_T}$ac_res" >&6; }
17432if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017433 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017435_ACEOF
17436
17437fi
17438done
Reid Spencerdf3be822006-01-23 08:15:53 +000017439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017440
17441
17442
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017443
17444for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017445do
17446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451else
17452 cat >conftest.$ac_ext <<_ACEOF
17453/* confdefs.h. */
17454_ACEOF
17455cat confdefs.h >>conftest.$ac_ext
17456cat >>conftest.$ac_ext <<_ACEOF
17457/* end confdefs.h. */
17458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17460#define $ac_func innocuous_$ac_func
17461
17462/* System header to define __stub macros and hopefully few prototypes,
17463 which can conflict with char $ac_func (); below.
17464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465 <limits.h> exists even on freestanding compilers. */
17466
17467#ifdef __STDC__
17468# include <limits.h>
17469#else
17470# include <assert.h>
17471#endif
17472
17473#undef $ac_func
17474
17475/* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17478#ifdef __cplusplus
17479extern "C"
17480#endif
17481char $ac_func ();
17482/* The GNU C library defines this for functions which it implements
17483 to always fail with ENOSYS. Some functions are actually named
17484 something starting with __ and the normal name is an alias. */
17485#if defined __stub_$ac_func || defined __stub___$ac_func
17486choke me
17487#endif
17488
17489int
17490main ()
17491{
17492return $ac_func ();
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext conftest$ac_exeext
17498if { (ac_try="$ac_link"
17499case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502esac
17503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_link") 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515esac
17516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest$ac_exeext'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17525esac
17526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 eval "$as_ac_var=yes"
17532else
17533 echo "$as_me: failed program was:" >&5
17534sed 's/^/| /' conftest.$ac_ext >&5
17535
17536 eval "$as_ac_var=no"
17537fi
17538
17539rm -f core conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17541fi
17542ac_res=`eval echo '${'$as_ac_var'}'`
17543 { echo "$as_me:$LINENO: result: $ac_res" >&5
17544echo "${ECHO_T}$ac_res" >&6; }
17545if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017546 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017548_ACEOF
17549
17550fi
17551done
17552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017553
17554
17555
17556
Chris Lattner511f11d2005-11-14 07:25:50 +000017557for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017558do
17559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564else
17565 cat >conftest.$ac_ext <<_ACEOF
17566/* confdefs.h. */
17567_ACEOF
17568cat confdefs.h >>conftest.$ac_ext
17569cat >>conftest.$ac_ext <<_ACEOF
17570/* end confdefs.h. */
17571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573#define $ac_func innocuous_$ac_func
17574
17575/* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17579
17580#ifdef __STDC__
17581# include <limits.h>
17582#else
17583# include <assert.h>
17584#endif
17585
17586#undef $ac_func
17587
17588/* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17591#ifdef __cplusplus
17592extern "C"
17593#endif
17594char $ac_func ();
17595/* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598#if defined __stub_$ac_func || defined __stub___$ac_func
17599choke me
17600#endif
17601
17602int
17603main ()
17604{
17605return $ac_func ();
17606 ;
17607 return 0;
17608}
17609_ACEOF
17610rm -f conftest.$ac_objext conftest$ac_exeext
17611if { (ac_try="$ac_link"
17612case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17615esac
17616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17618 ac_status=$?
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638esac
17639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 eval "$as_ac_var=yes"
17645else
17646 echo "$as_me: failed program was:" >&5
17647sed 's/^/| /' conftest.$ac_ext >&5
17648
17649 eval "$as_ac_var=no"
17650fi
17651
17652rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17654fi
17655ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657echo "${ECHO_T}$ac_res" >&6; }
17658if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017659 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017661_ACEOF
17662
17663fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017664done
John Criswell7a73b802003-06-30 21:59:07 +000017665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666
17667
17668
17669
Daniel Dunbar3e462932011-02-03 02:40:02 +000017670
17671for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017672do
17673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678else
17679 cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17687#define $ac_func innocuous_$ac_func
17688
17689/* System header to define __stub macros and hopefully few prototypes,
17690 which can conflict with char $ac_func (); below.
17691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692 <limits.h> exists even on freestanding compilers. */
17693
17694#ifdef __STDC__
17695# include <limits.h>
17696#else
17697# include <assert.h>
17698#endif
17699
17700#undef $ac_func
17701
17702/* Override any GCC internal prototype to avoid an error.
17703 Use char because int might match the return type of a GCC
17704 builtin and then its argument prototype would still apply. */
17705#ifdef __cplusplus
17706extern "C"
17707#endif
17708char $ac_func ();
17709/* The GNU C library defines this for functions which it implements
17710 to always fail with ENOSYS. Some functions are actually named
17711 something starting with __ and the normal name is an alias. */
17712#if defined __stub_$ac_func || defined __stub___$ac_func
17713choke me
17714#endif
17715
17716int
17717main ()
17718{
17719return $ac_func ();
17720 ;
17721 return 0;
17722}
17723_ACEOF
17724rm -f conftest.$ac_objext conftest$ac_exeext
17725if { (ac_try="$ac_link"
17726case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_link") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752esac
17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 eval "$as_ac_var=yes"
17759else
17760 echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
17762
17763 eval "$as_ac_var=no"
17764fi
17765
17766rm -f core conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768fi
17769ac_res=`eval echo '${'$as_ac_var'}'`
17770 { echo "$as_me:$LINENO: result: $ac_res" >&5
17771echo "${ECHO_T}$ac_res" >&6; }
17772if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017773 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017775_ACEOF
17776
17777fi
17778done
17779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017780{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17781echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17782if test "${llvm_cv_c_printf_a+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017784else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017785 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017786ac_cpp='$CPP $CPPFLAGS'
17787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789ac_compiler_gnu=$ac_cv_c_compiler_gnu
17790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017791 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017792 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017794 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017796 /* confdefs.h. */
17797_ACEOF
17798cat confdefs.h >>conftest.$ac_ext
17799cat >>conftest.$ac_ext <<_ACEOF
17800/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017801
John Criswella0137d32003-10-13 16:22:01 +000017802#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017803#include <stdlib.h>
17804
John Criswella0137d32003-10-13 16:22:01 +000017805int
17806main ()
17807{
17808
Reid Spencer2706f8c2004-09-19 23:53:36 +000017809volatile double A, B;
17810char Buffer[100];
17811A = 1;
17812A /= 10.0;
17813sprintf(Buffer, "%a", A);
17814B = atof(Buffer);
17815if (A != B)
17816 return (1);
17817if (A != 0x1.999999999999ap-4)
17818 return (1);
17819return (0);
John Criswella0137d32003-10-13 16:22:01 +000017820 ;
17821 return 0;
17822}
17823_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017824rm -f conftest$ac_exeext
17825if { (ac_try="$ac_link"
17826case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829esac
17830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_link") 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017844 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017846 echo "$as_me: program exited with status $ac_status" >&5
17847echo "$as_me: failed program was:" >&5
17848sed 's/^/| /' conftest.$ac_ext >&5
17849
17850( exit $ac_status )
17851llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017853rm -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 +000017854fi
Reid Spencera773bd52006-08-04 18:18:08 +000017855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017856
Reid Spencer2706f8c2004-09-19 23:53:36 +000017857 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017858ac_cpp='$CPP $CPPFLAGS'
17859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17861ac_compiler_gnu=$ac_cv_c_compiler_gnu
17862
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017864{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17865echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017866 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017868cat >>confdefs.h <<\_ACEOF
17869#define HAVE_PRINTF_A 1
17870_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017871
Reid Spencer2706f8c2004-09-19 23:53:36 +000017872 fi
John Criswella0137d32003-10-13 16:22:01 +000017873
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017875{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17876echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17877if test "${ac_cv_func_rand48+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017879else
Reid Spencera773bd52006-08-04 18:18:08 +000017880 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017881ac_cpp='$CXXCPP $CPPFLAGS'
17882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017886 cat >conftest.$ac_ext <<_ACEOF
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017891/* end confdefs.h. */
17892#include <stdlib.h>
17893int
17894main ()
17895{
17896srand48(0);lrand48();drand48();
17897 ;
17898 return 0;
17899}
17900_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017901rm -f conftest.$ac_objext
17902if { (ac_try="$ac_compile"
17903case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906esac
17907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919esac
17920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest.$ac_objext'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929esac
17930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_try") 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017935 ac_cv_func_rand48=yes
17936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017937 echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017942
Reid Spencera773bd52006-08-04 18:18:08 +000017943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017944 ac_ext=c
17945ac_cpp='$CPP $CPPFLAGS'
17946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948ac_compiler_gnu=$ac_cv_c_compiler_gnu
17949
17950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017951{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17952echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017953
17954if test "$ac_cv_func_rand48" = "yes" ; then
17955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017956cat >>confdefs.h <<\_ACEOF
17957#define HAVE_RAND48 1
17958_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017959
17960fi
John Criswell0021c312004-02-13 21:57:29 +000017961
17962
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017963{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17964echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17965if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17967else
17968 cat >conftest.$ac_ext <<_ACEOF
17969/* confdefs.h. */
17970_ACEOF
17971cat confdefs.h >>conftest.$ac_ext
17972cat >>conftest.$ac_ext <<_ACEOF
17973/* end confdefs.h. */
17974$ac_includes_default
17975int
17976main ()
17977{
17978#ifndef strerror_s
17979 char *p = (char *) strerror_s;
17980 return !p;
17981#endif
17982
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest.$ac_objext
17988if { (ac_try="$ac_compile"
17989case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005esac
18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015esac
18016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_have_decl_strerror_s=yes
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 ac_cv_have_decl_strerror_s=no
18027fi
18028
18029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030fi
18031{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18032echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18033if test $ac_cv_have_decl_strerror_s = yes; then
18034
18035cat >>confdefs.h <<_ACEOF
18036#define HAVE_DECL_STRERROR_S 1
18037_ACEOF
18038
18039
18040else
18041 cat >>confdefs.h <<_ACEOF
18042#define HAVE_DECL_STRERROR_S 0
18043_ACEOF
18044
18045
18046fi
18047
18048
18049
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018050if test "$llvm_cv_os_type" = "MingW" ; then
18051 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18052echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18053if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
18056 ac_check_lib_save_LIBS=$LIBS
18057LIBS="-lgcc $LIBS"
18058cat >conftest.$ac_ext <<_ACEOF
18059/* confdefs.h. */
18060_ACEOF
18061cat confdefs.h >>conftest.$ac_ext
18062cat >>conftest.$ac_ext <<_ACEOF
18063/* end confdefs.h. */
18064
18065/* Override any GCC internal prototype to avoid an error.
18066 Use char because int might match the return type of a GCC
18067 builtin and then its argument prototype would still apply. */
18068#ifdef __cplusplus
18069extern "C"
18070#endif
18071char _alloca ();
18072int
18073main ()
18074{
18075return _alloca ();
18076 ;
18077 return 0;
18078}
18079_ACEOF
18080rm -f conftest.$ac_objext conftest$ac_exeext
18081if { (ac_try="$ac_link"
18082case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18085esac
18086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_link") 2>conftest.er1
18088 ac_status=$?
18089 grep -v '^ *+' conftest.er1 >conftest.err
18090 rm -f conftest.er1
18091 cat conftest.err >&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } &&
18094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18095 { (case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18098esac
18099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_try") 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; } &&
18104 { ac_try='test -s conftest$ac_exeext'
18105 { (case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18108esac
18109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_try") 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18114 ac_cv_lib_gcc__alloca=yes
18115else
18116 echo "$as_me: failed program was:" >&5
18117sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 ac_cv_lib_gcc__alloca=no
18120fi
18121
18122rm -f core conftest.err conftest.$ac_objext \
18123 conftest$ac_exeext conftest.$ac_ext
18124LIBS=$ac_check_lib_save_LIBS
18125fi
18126{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18127echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18128if test $ac_cv_lib_gcc__alloca = yes; then
18129
18130cat >>confdefs.h <<\_ACEOF
18131#define HAVE__ALLOCA 1
18132_ACEOF
18133
18134fi
18135
18136 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18137echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18138if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140else
18141 ac_check_lib_save_LIBS=$LIBS
18142LIBS="-lgcc $LIBS"
18143cat >conftest.$ac_ext <<_ACEOF
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
18149
18150/* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18153#ifdef __cplusplus
18154extern "C"
18155#endif
18156char __alloca ();
18157int
18158main ()
18159{
18160return __alloca ();
18161 ;
18162 return 0;
18163}
18164_ACEOF
18165rm -f conftest.$ac_objext conftest$ac_exeext
18166if { (ac_try="$ac_link"
18167case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170esac
18171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_link") 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183esac
18184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest$ac_exeext'
18190 { (case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193esac
18194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_try") 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 ac_cv_lib_gcc___alloca=yes
18200else
18201 echo "$as_me: failed program was:" >&5
18202sed 's/^/| /' conftest.$ac_ext >&5
18203
18204 ac_cv_lib_gcc___alloca=no
18205fi
18206
18207rm -f core conftest.err conftest.$ac_objext \
18208 conftest$ac_exeext conftest.$ac_ext
18209LIBS=$ac_check_lib_save_LIBS
18210fi
18211{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18212echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18213if test $ac_cv_lib_gcc___alloca = yes; then
18214
18215cat >>confdefs.h <<\_ACEOF
18216#define HAVE___ALLOCA 1
18217_ACEOF
18218
18219fi
18220
18221 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18222echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18223if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225else
18226 ac_check_lib_save_LIBS=$LIBS
18227LIBS="-lgcc $LIBS"
18228cat >conftest.$ac_ext <<_ACEOF
18229/* confdefs.h. */
18230_ACEOF
18231cat confdefs.h >>conftest.$ac_ext
18232cat >>conftest.$ac_ext <<_ACEOF
18233/* end confdefs.h. */
18234
18235/* Override any GCC internal prototype to avoid an error.
18236 Use char because int might match the return type of a GCC
18237 builtin and then its argument prototype would still apply. */
18238#ifdef __cplusplus
18239extern "C"
18240#endif
18241char __chkstk ();
18242int
18243main ()
18244{
18245return __chkstk ();
18246 ;
18247 return 0;
18248}
18249_ACEOF
18250rm -f conftest.$ac_objext conftest$ac_exeext
18251if { (ac_try="$ac_link"
18252case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18255esac
18256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18258 ac_status=$?
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265 { (case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_try") 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest$ac_exeext'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_lib_gcc___chkstk=yes
18285else
18286 echo "$as_me: failed program was:" >&5
18287sed 's/^/| /' conftest.$ac_ext >&5
18288
18289 ac_cv_lib_gcc___chkstk=no
18290fi
18291
18292rm -f core conftest.err conftest.$ac_objext \
18293 conftest$ac_exeext conftest.$ac_ext
18294LIBS=$ac_check_lib_save_LIBS
18295fi
18296{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18297echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18298if test $ac_cv_lib_gcc___chkstk = yes; then
18299
18300cat >>confdefs.h <<\_ACEOF
18301#define HAVE___CHKSTK 1
18302_ACEOF
18303
18304fi
18305
18306 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18307echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18308if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310else
18311 ac_check_lib_save_LIBS=$LIBS
18312LIBS="-lgcc $LIBS"
18313cat >conftest.$ac_ext <<_ACEOF
18314/* confdefs.h. */
18315_ACEOF
18316cat confdefs.h >>conftest.$ac_ext
18317cat >>conftest.$ac_ext <<_ACEOF
18318/* end confdefs.h. */
18319
18320/* Override any GCC internal prototype to avoid an error.
18321 Use char because int might match the return type of a GCC
18322 builtin and then its argument prototype would still apply. */
18323#ifdef __cplusplus
18324extern "C"
18325#endif
18326char ___chkstk ();
18327int
18328main ()
18329{
18330return ___chkstk ();
18331 ;
18332 return 0;
18333}
18334_ACEOF
18335rm -f conftest.$ac_objext conftest$ac_exeext
18336if { (ac_try="$ac_link"
18337case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340esac
18341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353esac
18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest$ac_exeext'
18360 { (case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363esac
18364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_try") 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_lib_gcc____chkstk=yes
18370else
18371 echo "$as_me: failed program was:" >&5
18372sed 's/^/| /' conftest.$ac_ext >&5
18373
18374 ac_cv_lib_gcc____chkstk=no
18375fi
18376
18377rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379LIBS=$ac_check_lib_save_LIBS
18380fi
18381{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18382echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18383if test $ac_cv_lib_gcc____chkstk = yes; then
18384
18385cat >>confdefs.h <<\_ACEOF
18386#define HAVE____CHKSTK 1
18387_ACEOF
18388
18389fi
18390
18391
18392 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18393echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18394if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396else
18397 ac_check_lib_save_LIBS=$LIBS
18398LIBS="-lgcc $LIBS"
18399cat >conftest.$ac_ext <<_ACEOF
18400/* confdefs.h. */
18401_ACEOF
18402cat confdefs.h >>conftest.$ac_ext
18403cat >>conftest.$ac_ext <<_ACEOF
18404/* end confdefs.h. */
18405
18406/* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18409#ifdef __cplusplus
18410extern "C"
18411#endif
18412char __ashldi3 ();
18413int
18414main ()
18415{
18416return __ashldi3 ();
18417 ;
18418 return 0;
18419}
18420_ACEOF
18421rm -f conftest.$ac_objext conftest$ac_exeext
18422if { (ac_try="$ac_link"
18423case "(($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_link") 2>conftest.er1
18429 ac_status=$?
18430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
18435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18436 { (case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18439esac
18440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_try") 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest$ac_exeext'
18446 { (case "(($ac_try" in
18447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18449esac
18450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_try") 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_cv_lib_gcc___ashldi3=yes
18456else
18457 echo "$as_me: failed program was:" >&5
18458sed 's/^/| /' conftest.$ac_ext >&5
18459
18460 ac_cv_lib_gcc___ashldi3=no
18461fi
18462
18463rm -f core conftest.err conftest.$ac_objext \
18464 conftest$ac_exeext conftest.$ac_ext
18465LIBS=$ac_check_lib_save_LIBS
18466fi
18467{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18468echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18469if test $ac_cv_lib_gcc___ashldi3 = yes; then
18470
18471cat >>confdefs.h <<\_ACEOF
18472#define HAVE___ASHLDI3 1
18473_ACEOF
18474
18475fi
18476
18477 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18478echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18479if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481else
18482 ac_check_lib_save_LIBS=$LIBS
18483LIBS="-lgcc $LIBS"
18484cat >conftest.$ac_ext <<_ACEOF
18485/* confdefs.h. */
18486_ACEOF
18487cat confdefs.h >>conftest.$ac_ext
18488cat >>conftest.$ac_ext <<_ACEOF
18489/* end confdefs.h. */
18490
18491/* Override any GCC internal prototype to avoid an error.
18492 Use char because int might match the return type of a GCC
18493 builtin and then its argument prototype would still apply. */
18494#ifdef __cplusplus
18495extern "C"
18496#endif
18497char __ashrdi3 ();
18498int
18499main ()
18500{
18501return __ashrdi3 ();
18502 ;
18503 return 0;
18504}
18505_ACEOF
18506rm -f conftest.$ac_objext conftest$ac_exeext
18507if { (ac_try="$ac_link"
18508case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18524esac
18525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest$ac_exeext'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534esac
18535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 ac_cv_lib_gcc___ashrdi3=yes
18541else
18542 echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545 ac_cv_lib_gcc___ashrdi3=no
18546fi
18547
18548rm -f core conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18550LIBS=$ac_check_lib_save_LIBS
18551fi
18552{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18553echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18554if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18555
18556cat >>confdefs.h <<\_ACEOF
18557#define HAVE___ASHRDI3 1
18558_ACEOF
18559
18560fi
18561
18562 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18563echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18564if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18566else
18567 ac_check_lib_save_LIBS=$LIBS
18568LIBS="-lgcc $LIBS"
18569cat >conftest.$ac_ext <<_ACEOF
18570/* confdefs.h. */
18571_ACEOF
18572cat confdefs.h >>conftest.$ac_ext
18573cat >>conftest.$ac_ext <<_ACEOF
18574/* end confdefs.h. */
18575
18576/* Override any GCC internal prototype to avoid an error.
18577 Use char because int might match the return type of a GCC
18578 builtin and then its argument prototype would still apply. */
18579#ifdef __cplusplus
18580extern "C"
18581#endif
18582char __divdi3 ();
18583int
18584main ()
18585{
18586return __divdi3 ();
18587 ;
18588 return 0;
18589}
18590_ACEOF
18591rm -f conftest.$ac_objext conftest$ac_exeext
18592if { (ac_try="$ac_link"
18593case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18596esac
18597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_link") 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18606 { (case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18609esac
18610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611 (eval "$ac_try") 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; } &&
18615 { ac_try='test -s conftest$ac_exeext'
18616 { (case "(($ac_try" in
18617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18619esac
18620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_try") 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_cv_lib_gcc___divdi3=yes
18626else
18627 echo "$as_me: failed program was:" >&5
18628sed 's/^/| /' conftest.$ac_ext >&5
18629
18630 ac_cv_lib_gcc___divdi3=no
18631fi
18632
18633rm -f core conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18635LIBS=$ac_check_lib_save_LIBS
18636fi
18637{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18638echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18639if test $ac_cv_lib_gcc___divdi3 = yes; then
18640
18641cat >>confdefs.h <<\_ACEOF
18642#define HAVE___DIVDI3 1
18643_ACEOF
18644
18645fi
18646
18647 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18648echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18649if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651else
18652 ac_check_lib_save_LIBS=$LIBS
18653LIBS="-lgcc $LIBS"
18654cat >conftest.$ac_ext <<_ACEOF
18655/* confdefs.h. */
18656_ACEOF
18657cat confdefs.h >>conftest.$ac_ext
18658cat >>conftest.$ac_ext <<_ACEOF
18659/* end confdefs.h. */
18660
18661/* Override any GCC internal prototype to avoid an error.
18662 Use char because int might match the return type of a GCC
18663 builtin and then its argument prototype would still apply. */
18664#ifdef __cplusplus
18665extern "C"
18666#endif
18667char __fixdfdi ();
18668int
18669main ()
18670{
18671return __fixdfdi ();
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext conftest$ac_exeext
18677if { (ac_try="$ac_link"
18678case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681esac
18682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694esac
18695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest$ac_exeext'
18701 { (case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18704esac
18705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_try") 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 ac_cv_lib_gcc___fixdfdi=yes
18711else
18712 echo "$as_me: failed program was:" >&5
18713sed 's/^/| /' conftest.$ac_ext >&5
18714
18715 ac_cv_lib_gcc___fixdfdi=no
18716fi
18717
18718rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18720LIBS=$ac_check_lib_save_LIBS
18721fi
18722{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18723echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18724if test $ac_cv_lib_gcc___fixdfdi = yes; then
18725
18726cat >>confdefs.h <<\_ACEOF
18727#define HAVE___FIXDFDI 1
18728_ACEOF
18729
18730fi
18731
18732 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18733echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18734if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18736else
18737 ac_check_lib_save_LIBS=$LIBS
18738LIBS="-lgcc $LIBS"
18739cat >conftest.$ac_ext <<_ACEOF
18740/* confdefs.h. */
18741_ACEOF
18742cat confdefs.h >>conftest.$ac_ext
18743cat >>conftest.$ac_ext <<_ACEOF
18744/* end confdefs.h. */
18745
18746/* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18749#ifdef __cplusplus
18750extern "C"
18751#endif
18752char __fixsfdi ();
18753int
18754main ()
18755{
18756return __fixsfdi ();
18757 ;
18758 return 0;
18759}
18760_ACEOF
18761rm -f conftest.$ac_objext conftest$ac_exeext
18762if { (ac_try="$ac_link"
18763case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766esac
18767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_link") 2>conftest.er1
18769 ac_status=$?
18770 grep -v '^ *+' conftest.er1 >conftest.err
18771 rm -f conftest.er1
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18776 { (case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18779esac
18780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_try") 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest$ac_exeext'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789esac
18790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 ac_cv_lib_gcc___fixsfdi=yes
18796else
18797 echo "$as_me: failed program was:" >&5
18798sed 's/^/| /' conftest.$ac_ext >&5
18799
18800 ac_cv_lib_gcc___fixsfdi=no
18801fi
18802
18803rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18805LIBS=$ac_check_lib_save_LIBS
18806fi
18807{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18808echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18809if test $ac_cv_lib_gcc___fixsfdi = yes; then
18810
18811cat >>confdefs.h <<\_ACEOF
18812#define HAVE___FIXSFDI 1
18813_ACEOF
18814
18815fi
18816
18817 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18818echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18819if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18821else
18822 ac_check_lib_save_LIBS=$LIBS
18823LIBS="-lgcc $LIBS"
18824cat >conftest.$ac_ext <<_ACEOF
18825/* confdefs.h. */
18826_ACEOF
18827cat confdefs.h >>conftest.$ac_ext
18828cat >>conftest.$ac_ext <<_ACEOF
18829/* end confdefs.h. */
18830
18831/* Override any GCC internal prototype to avoid an error.
18832 Use char because int might match the return type of a GCC
18833 builtin and then its argument prototype would still apply. */
18834#ifdef __cplusplus
18835extern "C"
18836#endif
18837char __floatdidf ();
18838int
18839main ()
18840{
18841return __floatdidf ();
18842 ;
18843 return 0;
18844}
18845_ACEOF
18846rm -f conftest.$ac_objext conftest$ac_exeext
18847if { (ac_try="$ac_link"
18848case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18851esac
18852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_link") 2>conftest.er1
18854 ac_status=$?
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
18860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18861 { (case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18864esac
18865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_try") 2>&5
18867 ac_status=$?
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; } &&
18870 { ac_try='test -s conftest$ac_exeext'
18871 { (case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18874esac
18875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_try") 2>&5
18877 ac_status=$?
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; }; then
18880 ac_cv_lib_gcc___floatdidf=yes
18881else
18882 echo "$as_me: failed program was:" >&5
18883sed 's/^/| /' conftest.$ac_ext >&5
18884
18885 ac_cv_lib_gcc___floatdidf=no
18886fi
18887
18888rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890LIBS=$ac_check_lib_save_LIBS
18891fi
18892{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18893echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18894if test $ac_cv_lib_gcc___floatdidf = yes; then
18895
18896cat >>confdefs.h <<\_ACEOF
18897#define HAVE___FLOATDIDF 1
18898_ACEOF
18899
18900fi
18901
18902 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18903echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18904if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18906else
18907 ac_check_lib_save_LIBS=$LIBS
18908LIBS="-lgcc $LIBS"
18909cat >conftest.$ac_ext <<_ACEOF
18910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
18915
18916/* Override any GCC internal prototype to avoid an error.
18917 Use char because int might match the return type of a GCC
18918 builtin and then its argument prototype would still apply. */
18919#ifdef __cplusplus
18920extern "C"
18921#endif
18922char __lshrdi3 ();
18923int
18924main ()
18925{
18926return __lshrdi3 ();
18927 ;
18928 return 0;
18929}
18930_ACEOF
18931rm -f conftest.$ac_objext conftest$ac_exeext
18932if { (ac_try="$ac_link"
18933case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_link") 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } &&
18945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18946 { (case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18949esac
18950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_try") 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest$ac_exeext'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18959esac
18960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_cv_lib_gcc___lshrdi3=yes
18966else
18967 echo "$as_me: failed program was:" >&5
18968sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 ac_cv_lib_gcc___lshrdi3=no
18971fi
18972
18973rm -f core conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
18975LIBS=$ac_check_lib_save_LIBS
18976fi
18977{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18978echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18979if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18980
18981cat >>confdefs.h <<\_ACEOF
18982#define HAVE___LSHRDI3 1
18983_ACEOF
18984
18985fi
18986
18987 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18988echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18989if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18991else
18992 ac_check_lib_save_LIBS=$LIBS
18993LIBS="-lgcc $LIBS"
18994cat >conftest.$ac_ext <<_ACEOF
18995/* confdefs.h. */
18996_ACEOF
18997cat confdefs.h >>conftest.$ac_ext
18998cat >>conftest.$ac_ext <<_ACEOF
18999/* end confdefs.h. */
19000
19001/* Override any GCC internal prototype to avoid an error.
19002 Use char because int might match the return type of a GCC
19003 builtin and then its argument prototype would still apply. */
19004#ifdef __cplusplus
19005extern "C"
19006#endif
19007char __moddi3 ();
19008int
19009main ()
19010{
19011return __moddi3 ();
19012 ;
19013 return 0;
19014}
19015_ACEOF
19016rm -f conftest.$ac_objext conftest$ac_exeext
19017if { (ac_try="$ac_link"
19018case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021esac
19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_link") 2>conftest.er1
19024 ac_status=$?
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19034esac
19035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest$ac_exeext'
19041 { (case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19044esac
19045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_try") 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_lib_gcc___moddi3=yes
19051else
19052 echo "$as_me: failed program was:" >&5
19053sed 's/^/| /' conftest.$ac_ext >&5
19054
19055 ac_cv_lib_gcc___moddi3=no
19056fi
19057
19058rm -f core conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
19060LIBS=$ac_check_lib_save_LIBS
19061fi
19062{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19063echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19064if test $ac_cv_lib_gcc___moddi3 = yes; then
19065
19066cat >>confdefs.h <<\_ACEOF
19067#define HAVE___MODDI3 1
19068_ACEOF
19069
19070fi
19071
19072 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19073echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19074if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076else
19077 ac_check_lib_save_LIBS=$LIBS
19078LIBS="-lgcc $LIBS"
19079cat >conftest.$ac_ext <<_ACEOF
19080/* confdefs.h. */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h. */
19085
19086/* Override any GCC internal prototype to avoid an error.
19087 Use char because int might match the return type of a GCC
19088 builtin and then its argument prototype would still apply. */
19089#ifdef __cplusplus
19090extern "C"
19091#endif
19092char __udivdi3 ();
19093int
19094main ()
19095{
19096return __udivdi3 ();
19097 ;
19098 return 0;
19099}
19100_ACEOF
19101rm -f conftest.$ac_objext conftest$ac_exeext
19102if { (ac_try="$ac_link"
19103case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19106esac
19107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_link") 2>conftest.er1
19109 ac_status=$?
19110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119esac
19120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest$ac_exeext'
19126 { (case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19129esac
19130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_try") 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_cv_lib_gcc___udivdi3=yes
19136else
19137 echo "$as_me: failed program was:" >&5
19138sed 's/^/| /' conftest.$ac_ext >&5
19139
19140 ac_cv_lib_gcc___udivdi3=no
19141fi
19142
19143rm -f core conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
19145LIBS=$ac_check_lib_save_LIBS
19146fi
19147{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19148echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19149if test $ac_cv_lib_gcc___udivdi3 = yes; then
19150
19151cat >>confdefs.h <<\_ACEOF
19152#define HAVE___UDIVDI3 1
19153_ACEOF
19154
19155fi
19156
19157 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19158echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19159if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19161else
19162 ac_check_lib_save_LIBS=$LIBS
19163LIBS="-lgcc $LIBS"
19164cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170
19171/* Override any GCC internal prototype to avoid an error.
19172 Use char because int might match the return type of a GCC
19173 builtin and then its argument prototype would still apply. */
19174#ifdef __cplusplus
19175extern "C"
19176#endif
19177char __umoddi3 ();
19178int
19179main ()
19180{
19181return __umoddi3 ();
19182 ;
19183 return 0;
19184}
19185_ACEOF
19186rm -f conftest.$ac_objext conftest$ac_exeext
19187if { (ac_try="$ac_link"
19188case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191esac
19192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_link") 2>conftest.er1
19194 ac_status=$?
19195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
19200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19201 { (case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19204esac
19205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_try") 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; } &&
19210 { ac_try='test -s conftest$ac_exeext'
19211 { (case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19214esac
19215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_try") 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 ac_cv_lib_gcc___umoddi3=yes
19221else
19222 echo "$as_me: failed program was:" >&5
19223sed 's/^/| /' conftest.$ac_ext >&5
19224
19225 ac_cv_lib_gcc___umoddi3=no
19226fi
19227
19228rm -f core conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
19230LIBS=$ac_check_lib_save_LIBS
19231fi
19232{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19233echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19234if test $ac_cv_lib_gcc___umoddi3 = yes; then
19235
19236cat >>confdefs.h <<\_ACEOF
19237#define HAVE___UMODDI3 1
19238_ACEOF
19239
19240fi
19241
19242
19243 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19244echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19245if test "${ac_cv_lib_gcc___main+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19247else
19248 ac_check_lib_save_LIBS=$LIBS
19249LIBS="-lgcc $LIBS"
19250cat >conftest.$ac_ext <<_ACEOF
19251/* confdefs.h. */
19252_ACEOF
19253cat confdefs.h >>conftest.$ac_ext
19254cat >>conftest.$ac_ext <<_ACEOF
19255/* end confdefs.h. */
19256
19257/* Override any GCC internal prototype to avoid an error.
19258 Use char because int might match the return type of a GCC
19259 builtin and then its argument prototype would still apply. */
19260#ifdef __cplusplus
19261extern "C"
19262#endif
19263char __main ();
19264int
19265main ()
19266{
19267return __main ();
19268 ;
19269 return 0;
19270}
19271_ACEOF
19272rm -f conftest.$ac_objext conftest$ac_exeext
19273if { (ac_try="$ac_link"
19274case "(($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_link") 2>conftest.er1
19280 ac_status=$?
19281 grep -v '^ *+' conftest.er1 >conftest.err
19282 rm -f conftest.er1
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19287 { (case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290esac
19291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_try") 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; } &&
19296 { ac_try='test -s conftest$ac_exeext'
19297 { (case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300esac
19301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_try") 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_lib_gcc___main=yes
19307else
19308 echo "$as_me: failed program was:" >&5
19309sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 ac_cv_lib_gcc___main=no
19312fi
19313
19314rm -f core conftest.err conftest.$ac_objext \
19315 conftest$ac_exeext conftest.$ac_ext
19316LIBS=$ac_check_lib_save_LIBS
19317fi
19318{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19319echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19320if test $ac_cv_lib_gcc___main = yes; then
19321
19322cat >>confdefs.h <<\_ACEOF
19323#define HAVE___MAIN 1
19324_ACEOF
19325
19326fi
19327
19328 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19329echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19330if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19332else
19333 ac_check_lib_save_LIBS=$LIBS
19334LIBS="-lgcc $LIBS"
19335cat >conftest.$ac_ext <<_ACEOF
19336/* confdefs.h. */
19337_ACEOF
19338cat confdefs.h >>conftest.$ac_ext
19339cat >>conftest.$ac_ext <<_ACEOF
19340/* end confdefs.h. */
19341
19342/* Override any GCC internal prototype to avoid an error.
19343 Use char because int might match the return type of a GCC
19344 builtin and then its argument prototype would still apply. */
19345#ifdef __cplusplus
19346extern "C"
19347#endif
19348char __cmpdi2 ();
19349int
19350main ()
19351{
19352return __cmpdi2 ();
19353 ;
19354 return 0;
19355}
19356_ACEOF
19357rm -f conftest.$ac_objext conftest$ac_exeext
19358if { (ac_try="$ac_link"
19359case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19362esac
19363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_link") 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19372 { (case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375esac
19376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_try") 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; } &&
19381 { ac_try='test -s conftest$ac_exeext'
19382 { (case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19385esac
19386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_try") 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 ac_cv_lib_gcc___cmpdi2=yes
19392else
19393 echo "$as_me: failed program was:" >&5
19394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396 ac_cv_lib_gcc___cmpdi2=no
19397fi
19398
19399rm -f core conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19401LIBS=$ac_check_lib_save_LIBS
19402fi
19403{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19404echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19405if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19406
19407cat >>confdefs.h <<\_ACEOF
19408#define HAVE___CMPDI2 1
19409_ACEOF
19410
19411fi
19412
19413fi
19414
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019415if test "$llvm_cv_os_type" = "MingW" ; then
19416 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19417echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19418 cat >conftest.$ac_ext <<_ACEOF
19419#include <windows.h>
19420#include <imagehlp.h>
19421extern void foo(PENUMLOADED_MODULES_CALLBACK);
19422extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19423_ACEOF
19424rm -f conftest.$ac_objext
19425if { (ac_try="$ac_compile"
19426case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19429esac
19430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_compile") 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442esac
19443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest.$ac_objext'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452esac
19453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458
19459 { echo "$as_me:$LINENO: result: yes" >&5
19460echo "${ECHO_T}yes" >&6; }
19461 llvm_cv_win32_elmcb_pcstr="PCSTR"
19462
19463else
19464 echo "$as_me: failed program was:" >&5
19465sed 's/^/| /' conftest.$ac_ext >&5
19466
19467
19468 { echo "$as_me:$LINENO: result: no" >&5
19469echo "${ECHO_T}no" >&6; }
19470 llvm_cv_win32_elmcb_pcstr="PSTR"
19471
19472fi
19473
19474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19475
19476cat >>confdefs.h <<_ACEOF
19477#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19478_ACEOF
19479
19480fi
19481
Torok Edwin871384f2010-01-26 08:50:50 +000019482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19484echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19485if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019487else
Reid Spencera773bd52006-08-04 18:18:08 +000019488 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019489ac_cpp='$CXXCPP $CPPFLAGS'
19490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019494 cat >conftest.$ac_ext <<_ACEOF
19495/* confdefs.h. */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019499/* end confdefs.h. */
19500#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019501int
19502main ()
19503{
19504float f; isnan(f);
19505 ;
19506 return 0;
19507}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019508_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019509rm -f conftest.$ac_objext
19510if { (ac_try="$ac_compile"
19511case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514esac
19515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_compile") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } &&
19523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19524 { (case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19527esac
19528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_try") 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest.$ac_objext'
19534 { (case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19537esac
19538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_try") 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019543 ac_cv_func_isnan_in_math_h=yes
19544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019545 echo "$as_me: failed program was:" >&5
19546sed 's/^/| /' conftest.$ac_ext >&5
19547
19548 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019550
Reid Spencera773bd52006-08-04 18:18:08 +000019551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019552 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019553ac_cpp='$CPP $CPPFLAGS'
19554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556ac_compiler_gnu=$ac_cv_c_compiler_gnu
19557
19558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019559{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19560echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019561
19562
19563if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565cat >>confdefs.h <<\_ACEOF
19566#define HAVE_ISNAN_IN_MATH_H 1
19567_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019568
Reid Spencerabec8f92004-10-27 23:03:44 +000019569fi
19570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019571{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19572echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19573if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019575else
Reid Spencera773bd52006-08-04 18:18:08 +000019576 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019577ac_cpp='$CXXCPP $CPPFLAGS'
19578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582 cat >conftest.$ac_ext <<_ACEOF
19583/* confdefs.h. */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019587/* end confdefs.h. */
19588#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019589int
19590main ()
19591{
19592float f; isnan(f);
19593 ;
19594 return 0;
19595}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019596_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019597rm -f conftest.$ac_objext
19598if { (ac_try="$ac_compile"
19599case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602esac
19603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_compile") 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest.$ac_objext'
19622 { (case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625esac
19626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_try") 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019631 ac_cv_func_isnan_in_cmath=yes
19632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019633 echo "$as_me: failed program was:" >&5
19634sed 's/^/| /' conftest.$ac_ext >&5
19635
19636 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019638
Reid Spencera773bd52006-08-04 18:18:08 +000019639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019640 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019641ac_cpp='$CPP $CPPFLAGS'
19642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19644ac_compiler_gnu=$ac_cv_c_compiler_gnu
19645
19646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019647{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19648echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019649
19650if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019652cat >>confdefs.h <<\_ACEOF
19653#define HAVE_ISNAN_IN_CMATH 1
19654_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019655
Reid Spencerabec8f92004-10-27 23:03:44 +000019656fi
19657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19659echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19660if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019662else
Reid Spencera773bd52006-08-04 18:18:08 +000019663 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019664ac_cpp='$CXXCPP $CPPFLAGS'
19665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669 cat >conftest.$ac_ext <<_ACEOF
19670/* confdefs.h. */
19671_ACEOF
19672cat confdefs.h >>conftest.$ac_ext
19673cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019674/* end confdefs.h. */
19675#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019676int
19677main ()
19678{
19679float f; std::isnan(f);
19680 ;
19681 return 0;
19682}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019683_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019684rm -f conftest.$ac_objext
19685if { (ac_try="$ac_compile"
19686case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19689esac
19690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_compile") 2>conftest.er1
19692 ac_status=$?
19693 grep -v '^ *+' conftest.er1 >conftest.err
19694 rm -f conftest.er1
19695 cat conftest.err >&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } &&
19698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19699 { (case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19702esac
19703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_try") 2>&5
19705 ac_status=$?
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; } &&
19708 { ac_try='test -s conftest.$ac_objext'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019718 ac_cv_func_std_isnan_in_cmath=yes
19719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019720 echo "$as_me: failed program was:" >&5
19721sed 's/^/| /' conftest.$ac_ext >&5
19722
19723 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725
Reid Spencera773bd52006-08-04 18:18:08 +000019726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019727 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019728ac_cpp='$CPP $CPPFLAGS'
19729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731ac_compiler_gnu=$ac_cv_c_compiler_gnu
19732
19733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019734{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19735echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019736
19737if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019739cat >>confdefs.h <<\_ACEOF
19740#define HAVE_STD_ISNAN_IN_CMATH 1
19741_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019742
Reid Spencerabec8f92004-10-27 23:03:44 +000019743fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019744
19745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019746{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19747echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19748if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019750else
Reid Spencera773bd52006-08-04 18:18:08 +000019751 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019752ac_cpp='$CXXCPP $CPPFLAGS'
19753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019757 cat >conftest.$ac_ext <<_ACEOF
19758/* confdefs.h. */
19759_ACEOF
19760cat confdefs.h >>conftest.$ac_ext
19761cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019762/* end confdefs.h. */
19763#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019764int
19765main ()
19766{
19767float f; isinf(f);
19768 ;
19769 return 0;
19770}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019771_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019772rm -f conftest.$ac_objext
19773if { (ac_try="$ac_compile"
19774case "(($ac_try" in
19775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776 *) ac_try_echo=$ac_try;;
19777esac
19778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779 (eval "$ac_compile") 2>conftest.er1
19780 ac_status=$?
19781 grep -v '^ *+' conftest.er1 >conftest.err
19782 rm -f conftest.er1
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest.$ac_objext'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019806 ac_cv_func_isinf_in_math_h=yes
19807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019808 echo "$as_me: failed program was:" >&5
19809sed 's/^/| /' conftest.$ac_ext >&5
19810
19811 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019813
Reid Spencera773bd52006-08-04 18:18:08 +000019814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019815 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019816ac_cpp='$CPP $CPPFLAGS'
19817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19819ac_compiler_gnu=$ac_cv_c_compiler_gnu
19820
19821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019822{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19823echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019824
19825if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019827cat >>confdefs.h <<\_ACEOF
19828#define HAVE_ISINF_IN_MATH_H 1
19829_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019830
Reid Spencerabec8f92004-10-27 23:03:44 +000019831fi
19832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019833{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19834echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19835if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019837else
Reid Spencera773bd52006-08-04 18:18:08 +000019838 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019839ac_cpp='$CXXCPP $CPPFLAGS'
19840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019844 cat >conftest.$ac_ext <<_ACEOF
19845/* confdefs.h. */
19846_ACEOF
19847cat confdefs.h >>conftest.$ac_ext
19848cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019849/* end confdefs.h. */
19850#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019851int
19852main ()
19853{
19854float f; isinf(f);
19855 ;
19856 return 0;
19857}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019858_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019859rm -f conftest.$ac_objext
19860if { (ac_try="$ac_compile"
19861case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19864esac
19865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_compile") 2>conftest.er1
19867 ac_status=$?
19868 grep -v '^ *+' conftest.er1 >conftest.err
19869 rm -f conftest.er1
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } &&
19873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19874 { (case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877esac
19878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_try") 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; } &&
19883 { ac_try='test -s conftest.$ac_objext'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19887esac
19888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019893 ac_cv_func_isinf_in_cmath=yes
19894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019895 echo "$as_me: failed program was:" >&5
19896sed 's/^/| /' conftest.$ac_ext >&5
19897
19898 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019900
Reid Spencera773bd52006-08-04 18:18:08 +000019901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019902 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019903ac_cpp='$CPP $CPPFLAGS'
19904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906ac_compiler_gnu=$ac_cv_c_compiler_gnu
19907
19908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019909{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19910echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019911
19912if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019914cat >>confdefs.h <<\_ACEOF
19915#define HAVE_ISINF_IN_CMATH 1
19916_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019917
Reid Spencerabec8f92004-10-27 23:03:44 +000019918fi
19919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019920{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19921echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19922if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019924else
Reid Spencera773bd52006-08-04 18:18:08 +000019925 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019926ac_cpp='$CXXCPP $CPPFLAGS'
19927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019931 cat >conftest.$ac_ext <<_ACEOF
19932/* confdefs.h. */
19933_ACEOF
19934cat confdefs.h >>conftest.$ac_ext
19935cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019936/* end confdefs.h. */
19937#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019938int
19939main ()
19940{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019941float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019942 ;
19943 return 0;
19944}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019945_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019946rm -f conftest.$ac_objext
19947if { (ac_try="$ac_compile"
19948case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19951esac
19952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_compile") 2>conftest.er1
19954 ac_status=$?
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; } &&
19970 { ac_try='test -s conftest.$ac_objext'
19971 { (case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974esac
19975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019980 ac_cv_func_std_isinf_in_cmath=yes
19981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019982 echo "$as_me: failed program was:" >&5
19983sed 's/^/| /' conftest.$ac_ext >&5
19984
19985 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019986fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019987
Reid Spencera773bd52006-08-04 18:18:08 +000019988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019989 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019990ac_cpp='$CPP $CPPFLAGS'
19991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19993ac_compiler_gnu=$ac_cv_c_compiler_gnu
19994
19995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019996{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19997echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019998
19999if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020001cat >>confdefs.h <<\_ACEOF
20002#define HAVE_STD_ISINF_IN_CMATH 1
20003_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020004
Reid Spencerabec8f92004-10-27 23:03:44 +000020005fi
20006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20008echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20009if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020011else
Reid Spencera773bd52006-08-04 18:18:08 +000020012 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020013ac_cpp='$CXXCPP $CPPFLAGS'
20014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020018 cat >conftest.$ac_ext <<_ACEOF
20019/* confdefs.h. */
20020_ACEOF
20021cat confdefs.h >>conftest.$ac_ext
20022cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020023/* end confdefs.h. */
20024#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020025int
20026main ()
20027{
20028float f; finite(f);
20029 ;
20030 return 0;
20031}
Brian Gaeked59a6472004-07-21 03:33:58 +000020032_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020033rm -f conftest.$ac_objext
20034if { (ac_try="$ac_compile"
20035case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20038esac
20039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_compile") 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } &&
20047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20048 { (case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20051esac
20052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_try") 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; } &&
20057 { ac_try='test -s conftest.$ac_objext'
20058 { (case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061esac
20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_try") 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020067 ac_cv_func_finite_in_ieeefp_h=yes
20068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020069 echo "$as_me: failed program was:" >&5
20070sed 's/^/| /' conftest.$ac_ext >&5
20071
20072 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020074
Reid Spencera773bd52006-08-04 18:18:08 +000020075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020076 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020077ac_cpp='$CPP $CPPFLAGS'
20078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20080ac_compiler_gnu=$ac_cv_c_compiler_gnu
20081
20082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020083{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20084echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020085
Brian Gaeke6802b552004-10-28 05:06:45 +000020086if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088cat >>confdefs.h <<\_ACEOF
20089#define HAVE_FINITE_IN_IEEEFP_H 1
20090_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020091
Reid Spencerabec8f92004-10-27 23:03:44 +000020092fi
20093
20094
20095
Reid Spencer30fe5262007-01-20 07:48:49 +000020096if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020097
20098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020099for ac_header in stdlib.h unistd.h
20100do
20101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107fi
20108ac_res=`eval echo '${'$as_ac_Header'}'`
20109 { echo "$as_me:$LINENO: result: $ac_res" >&5
20110echo "${ECHO_T}$ac_res" >&6; }
20111else
20112 # Is the header compilable?
20113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20115cat >conftest.$ac_ext <<_ACEOF
20116/* confdefs.h. */
20117_ACEOF
20118cat confdefs.h >>conftest.$ac_ext
20119cat >>conftest.$ac_ext <<_ACEOF
20120/* end confdefs.h. */
20121$ac_includes_default
20122#include <$ac_header>
20123_ACEOF
20124rm -f conftest.$ac_objext
20125if { (ac_try="$ac_compile"
20126case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129esac
20130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_compile") 2>conftest.er1
20132 ac_status=$?
20133 grep -v '^ *+' conftest.er1 >conftest.err
20134 rm -f conftest.er1
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } &&
20138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20139 { (case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142esac
20143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_try") 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest.$ac_objext'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152esac
20153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_header_compiler=yes
20159else
20160 echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020163 ac_header_compiler=no
20164fi
20165
20166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20168echo "${ECHO_T}$ac_header_compiler" >&6; }
20169
20170# Is the header present?
20171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20173cat >conftest.$ac_ext <<_ACEOF
20174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
20179#include <$ac_header>
20180_ACEOF
20181if { (ac_try="$ac_cpp conftest.$ac_ext"
20182case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185esac
20186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } >/dev/null; then
20194 if test -s conftest.err; then
20195 ac_cpp_err=$ac_c_preproc_warn_flag
20196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20197 else
20198 ac_cpp_err=
20199 fi
20200else
20201 ac_cpp_err=yes
20202fi
20203if test -z "$ac_cpp_err"; then
20204 ac_header_preproc=yes
20205else
20206 echo "$as_me: failed program was:" >&5
20207sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 ac_header_preproc=no
20210fi
20211
20212rm -f conftest.err conftest.$ac_ext
20213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20214echo "${ECHO_T}$ac_header_preproc" >&6; }
20215
20216# So? What about this header?
20217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20218 yes:no: )
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20223 ac_header_preproc=yes
20224 ;;
20225 no:yes:* )
20226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20238 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020239## ------------------------------------ ##
20240## Report this to http://llvm.org/bugs/ ##
20241## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020242_ASBOX
20243 ) | sed "s/^/$as_me: WARNING: /" >&2
20244 ;;
20245esac
20246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20250else
20251 eval "$as_ac_Header=\$ac_header_preproc"
20252fi
20253ac_res=`eval echo '${'$as_ac_Header'}'`
20254 { echo "$as_me:$LINENO: result: $ac_res" >&5
20255echo "${ECHO_T}$ac_res" >&6; }
20256
20257fi
20258if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020261_ACEOF
20262
20263fi
20264
20265done
20266
20267
20268for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020269do
20270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20271{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20273if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20275else
20276 cat >conftest.$ac_ext <<_ACEOF
20277/* confdefs.h. */
20278_ACEOF
20279cat confdefs.h >>conftest.$ac_ext
20280cat >>conftest.$ac_ext <<_ACEOF
20281/* end confdefs.h. */
20282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20284#define $ac_func innocuous_$ac_func
20285
20286/* System header to define __stub macros and hopefully few prototypes,
20287 which can conflict with char $ac_func (); below.
20288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20289 <limits.h> exists even on freestanding compilers. */
20290
20291#ifdef __STDC__
20292# include <limits.h>
20293#else
20294# include <assert.h>
20295#endif
20296
20297#undef $ac_func
20298
20299/* Override any GCC internal prototype to avoid an error.
20300 Use char because int might match the return type of a GCC
20301 builtin and then its argument prototype would still apply. */
20302#ifdef __cplusplus
20303extern "C"
20304#endif
20305char $ac_func ();
20306/* The GNU C library defines this for functions which it implements
20307 to always fail with ENOSYS. Some functions are actually named
20308 something starting with __ and the normal name is an alias. */
20309#if defined __stub_$ac_func || defined __stub___$ac_func
20310choke me
20311#endif
20312
20313int
20314main ()
20315{
20316return $ac_func ();
20317 ;
20318 return 0;
20319}
20320_ACEOF
20321rm -f conftest.$ac_objext conftest$ac_exeext
20322if { (ac_try="$ac_link"
20323case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20326esac
20327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_link") 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20339esac
20340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest$ac_exeext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349esac
20350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 eval "$as_ac_var=yes"
20356else
20357 echo "$as_me: failed program was:" >&5
20358sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 eval "$as_ac_var=no"
20361fi
20362
20363rm -f core conftest.err conftest.$ac_objext \
20364 conftest$ac_exeext conftest.$ac_ext
20365fi
20366ac_res=`eval echo '${'$as_ac_var'}'`
20367 { echo "$as_me:$LINENO: result: $ac_res" >&5
20368echo "${ECHO_T}$ac_res" >&6; }
20369if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020370 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020372_ACEOF
20373
20374fi
20375done
20376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020377{ echo "$as_me:$LINENO: checking for working mmap" >&5
20378echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20379if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020382 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020383 ac_cv_func_mmap_fixed_mapped=no
20384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385 cat >conftest.$ac_ext <<_ACEOF
20386/* confdefs.h. */
20387_ACEOF
20388cat confdefs.h >>conftest.$ac_ext
20389cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020391$ac_includes_default
20392/* malloc might have been renamed as rpl_malloc. */
20393#undef malloc
20394
20395/* Thanks to Mike Haertel and Jim Avera for this test.
20396 Here is a matrix of mmap possibilities:
20397 mmap private not fixed
20398 mmap private fixed at somewhere currently unmapped
20399 mmap private fixed at somewhere already mapped
20400 mmap shared not fixed
20401 mmap shared fixed at somewhere currently unmapped
20402 mmap shared fixed at somewhere already mapped
20403 For private mappings, we should verify that changes cannot be read()
20404 back from the file, nor mmap's back from the file at a different
20405 address. (There have been systems where private was not correctly
20406 implemented like the infamous i386 svr4.0, and systems where the
20407 VM page cache was not coherent with the file system buffer cache
20408 like early versions of FreeBSD and possibly contemporary NetBSD.)
20409 For shared mappings, we should conversely verify that changes get
20410 propagated back to all the places they're supposed to be.
20411
20412 Grep wants private fixed already mapped.
20413 The main things grep needs to know about mmap are:
20414 * does it exist and is it safe to write into the mmap'd area
20415 * how to use it (BSD variants) */
20416
20417#include <fcntl.h>
20418#include <sys/mman.h>
20419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020420#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020421char *malloc ();
20422#endif
20423
20424/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020425#if !HAVE_GETPAGESIZE
20426/* Assume that all systems that can run configure have sys/param.h. */
20427# if !HAVE_SYS_PARAM_H
20428# define HAVE_SYS_PARAM_H 1
20429# endif
20430
John Criswell7a73b802003-06-30 21:59:07 +000020431# ifdef _SC_PAGESIZE
20432# define getpagesize() sysconf(_SC_PAGESIZE)
20433# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020434# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020435# include <sys/param.h>
20436# ifdef EXEC_PAGESIZE
20437# define getpagesize() EXEC_PAGESIZE
20438# else /* no EXEC_PAGESIZE */
20439# ifdef NBPG
20440# define getpagesize() NBPG * CLSIZE
20441# ifndef CLSIZE
20442# define CLSIZE 1
20443# endif /* no CLSIZE */
20444# else /* no NBPG */
20445# ifdef NBPC
20446# define getpagesize() NBPC
20447# else /* no NBPC */
20448# ifdef PAGESIZE
20449# define getpagesize() PAGESIZE
20450# endif /* PAGESIZE */
20451# endif /* no NBPC */
20452# endif /* no NBPG */
20453# endif /* no EXEC_PAGESIZE */
20454# else /* no HAVE_SYS_PARAM_H */
20455# define getpagesize() 8192 /* punt totally */
20456# endif /* no HAVE_SYS_PARAM_H */
20457# endif /* no _SC_PAGESIZE */
20458
20459#endif /* no HAVE_GETPAGESIZE */
20460
20461int
20462main ()
20463{
20464 char *data, *data2, *data3;
20465 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020467
20468 pagesize = getpagesize ();
20469
20470 /* First, make a file with some known garbage in it. */
20471 data = (char *) malloc (pagesize);
20472 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020473 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020474 for (i = 0; i < pagesize; ++i)
20475 *(data + i) = rand ();
20476 umask (0);
20477 fd = creat ("conftest.mmap", 0600);
20478 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020479 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020480 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020482 close (fd);
20483
20484 /* Next, try to mmap the file at a fixed address which already has
20485 something else allocated at it. If we can, also make sure that
20486 we see the same garbage. */
20487 fd = open ("conftest.mmap", O_RDWR);
20488 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489 return 1;
20490 data2 = (char *) malloc (2 * pagesize);
20491 if (!data2)
20492 return 1;
20493 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020494 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020495 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020496 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020497 for (i = 0; i < pagesize; ++i)
20498 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020499 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020500
20501 /* Finally, make sure that changes to the mapped area do not
20502 percolate back to the file as seen by read(). (This is a bug on
20503 some variants of i386 svr4.0.) */
20504 for (i = 0; i < pagesize; ++i)
20505 *(data2 + i) = *(data2 + i) + 1;
20506 data3 = (char *) malloc (pagesize);
20507 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020508 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020509 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020510 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020511 for (i = 0; i < pagesize; ++i)
20512 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020513 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020514 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020515 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020516}
20517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518rm -f conftest$ac_exeext
20519if { (ac_try="$ac_link"
20520case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523esac
20524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_link") 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20529 { (case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20532esac
20533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_try") 2>&5
20535 ac_status=$?
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020538 ac_cv_func_mmap_fixed_mapped=yes
20539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020540 echo "$as_me: program exited with status $ac_status" >&5
20541echo "$as_me: failed program was:" >&5
20542sed 's/^/| /' conftest.$ac_ext >&5
20543
20544( exit $ac_status )
20545ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020547rm -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 +000020548fi
Reid Spencera773bd52006-08-04 18:18:08 +000020549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020550
John Criswell7a73b802003-06-30 21:59:07 +000020551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020552{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20553echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020554if test $ac_cv_func_mmap_fixed_mapped = yes; then
20555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020556cat >>confdefs.h <<\_ACEOF
20557#define HAVE_MMAP 1
20558_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020559
20560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020561rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020563 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20564echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20565if test "${ac_cv_func_mmap_file+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020567else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020568 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020569ac_cpp='$CPP $CPPFLAGS'
20570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572ac_compiler_gnu=$ac_cv_c_compiler_gnu
20573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020575 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579 /* confdefs.h. */
20580_ACEOF
20581cat confdefs.h >>conftest.$ac_ext
20582cat >>conftest.$ac_ext <<_ACEOF
20583/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020584
John Criswell7a73b802003-06-30 21:59:07 +000020585#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020586#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020587#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020588
20589int
20590main ()
20591{
John Criswell7a73b802003-06-30 21:59:07 +000020592
20593 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020594 fd = creat ("foo",0777);
20595 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20596 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020597 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020598 ;
20599 return 0;
20600}
John Criswell7a73b802003-06-30 21:59:07 +000020601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020602rm -f conftest$ac_exeext
20603if { (ac_try="$ac_link"
20604case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607esac
20608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>&5
20610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20613 { (case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616esac
20617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_try") 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020622 ac_cv_func_mmap_file=yes
20623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020624 echo "$as_me: program exited with status $ac_status" >&5
20625echo "$as_me: failed program was:" >&5
20626sed 's/^/| /' conftest.$ac_ext >&5
20627
20628( exit $ac_status )
20629ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020631rm -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 +000020632fi
Reid Spencera773bd52006-08-04 18:18:08 +000020633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020634
John Criswell7a73b802003-06-30 21:59:07 +000020635 ac_ext=c
20636ac_cpp='$CPP $CPPFLAGS'
20637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640
20641
20642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020643{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20644echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020645if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020647cat >>confdefs.h <<\_ACEOF
20648#define HAVE_MMAP_FILE
20649_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020650
20651 MMAP_FILE=yes
20652
20653fi
20654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20656echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20657if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020659else
Reid Spencer582a23c2004-12-29 07:07:57 +000020660 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020661 ac_cv_need_dev_zero_for_mmap=yes
20662 else
20663 ac_cv_need_dev_zero_for_mmap=no
20664 fi
20665
20666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20668echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020669if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671cat >>confdefs.h <<\_ACEOF
20672#define NEED_DEV_ZERO_FOR_MMAP 1
20673_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020674
20675fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020676
Reid Spencer30fe5262007-01-20 07:48:49 +000020677 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20678 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020679 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20680echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020681 fi
20682 if test "$ac_cv_func_mmap_file" = "no"
20683 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020684 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20685echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020686 fi
John Criswellb13092b2003-07-22 21:00:24 +000020687fi
John Criswell7a73b802003-06-30 21:59:07 +000020688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020689{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20690echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020691ac_ext=cpp
20692ac_cpp='$CXXCPP $CPPFLAGS'
20693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697cat >conftest.$ac_ext <<_ACEOF
20698/* confdefs.h. */
20699_ACEOF
20700cat confdefs.h >>conftest.$ac_ext
20701cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020702/* end confdefs.h. */
20703int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020704 volatile unsigned long val = 1;
20705 __sync_synchronize();
20706 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020707 __sync_add_and_fetch(&val, 1);
20708 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020709 return 0;
20710 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020711
20712_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020713rm -f conftest.$ac_objext conftest$ac_exeext
20714if { (ac_try="$ac_link"
20715case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718esac
20719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_link") 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731esac
20732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; } &&
20737 { ac_try='test -s conftest$ac_exeext'
20738 { (case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20741esac
20742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_try") 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020747 ac_ext=c
20748ac_cpp='$CPP $CPPFLAGS'
20749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751ac_compiler_gnu=$ac_cv_c_compiler_gnu
20752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753 { echo "$as_me:$LINENO: result: yes" >&5
20754echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020756cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020757#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020758_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020759
Owen Andersond4b272b2009-05-18 23:58:51 +000020760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020761 echo "$as_me: failed program was:" >&5
20762sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020764 { echo "$as_me:$LINENO: result: no" >&5
20765echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020767cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020768#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020769_ACEOF
20770
20771 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20772echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774
Owen Andersond4b272b2009-05-18 23:58:51 +000020775rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020776 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020777
John Criswell7a73b802003-06-30 21:59:07 +000020778
Nick Lewycky4372e692009-09-29 06:18:23 +000020779if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020780 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20781echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20782if test "${llvm_cv_linux_mixed+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020784else
20785 ac_ext=c
20786ac_cpp='$CPP $CPPFLAGS'
20787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20789ac_compiler_gnu=$ac_cv_c_compiler_gnu
20790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020791 cat >conftest.$ac_ext <<_ACEOF
20792/* confdefs.h. */
20793_ACEOF
20794cat confdefs.h >>conftest.$ac_ext
20795cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020796/* end confdefs.h. */
20797#ifndef __x86_64__
20798 error: Not x86-64 even if uname says so!
20799 #endif
20800
20801int
20802main ()
20803{
20804
20805 ;
20806 return 0;
20807}
20808_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020809rm -f conftest.$ac_objext
20810if { (ac_try="$ac_compile"
20811case "(($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_compile") 2>conftest.er1
20817 ac_status=$?
20818 grep -v '^ *+' conftest.er1 >conftest.err
20819 rm -f conftest.er1
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20827esac
20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest.$ac_objext'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20837esac
20838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020843 llvm_cv_linux_mixed=no
20844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020845 echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020849fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850
Nick Lewycky4372e692009-09-29 06:18:23 +000020851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 ac_ext=c
20853ac_cpp='$CPP $CPPFLAGS'
20854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856ac_compiler_gnu=$ac_cv_c_compiler_gnu
20857
20858
20859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20861echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020862
20863 if test "$llvm_cv_linux_mixed" = "yes"; then
20864 llvm_cv_target_arch="x86"
20865 ARCH="x86"
20866 fi
20867fi
20868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020869
Reid Spencer9372f152007-07-30 20:13:24 +000020870for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871do
20872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20873{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20875if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20877else
20878 cat >conftest.$ac_ext <<_ACEOF
20879/* confdefs.h. */
20880_ACEOF
20881cat confdefs.h >>conftest.$ac_ext
20882cat >>conftest.$ac_ext <<_ACEOF
20883/* end confdefs.h. */
20884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20886#define $ac_func innocuous_$ac_func
20887
20888/* System header to define __stub macros and hopefully few prototypes,
20889 which can conflict with char $ac_func (); below.
20890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20891 <limits.h> exists even on freestanding compilers. */
20892
20893#ifdef __STDC__
20894# include <limits.h>
20895#else
20896# include <assert.h>
20897#endif
20898
20899#undef $ac_func
20900
20901/* Override any GCC internal prototype to avoid an error.
20902 Use char because int might match the return type of a GCC
20903 builtin and then its argument prototype would still apply. */
20904#ifdef __cplusplus
20905extern "C"
20906#endif
20907char $ac_func ();
20908/* The GNU C library defines this for functions which it implements
20909 to always fail with ENOSYS. Some functions are actually named
20910 something starting with __ and the normal name is an alias. */
20911#if defined __stub_$ac_func || defined __stub___$ac_func
20912choke me
20913#endif
20914
20915int
20916main ()
20917{
20918return $ac_func ();
20919 ;
20920 return 0;
20921}
20922_ACEOF
20923rm -f conftest.$ac_objext conftest$ac_exeext
20924if { (ac_try="$ac_link"
20925case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20928esac
20929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_link") 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20941esac
20942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; } &&
20947 { ac_try='test -s conftest$ac_exeext'
20948 { (case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20951esac
20952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_try") 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 eval "$as_ac_var=yes"
20958else
20959 echo "$as_me: failed program was:" >&5
20960sed 's/^/| /' conftest.$ac_ext >&5
20961
20962 eval "$as_ac_var=no"
20963fi
20964
20965rm -f core conftest.err conftest.$ac_objext \
20966 conftest$ac_exeext conftest.$ac_ext
20967fi
20968ac_res=`eval echo '${'$as_ac_var'}'`
20969 { echo "$as_me:$LINENO: result: $ac_res" >&5
20970echo "${ECHO_T}$ac_res" >&6; }
20971if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020972 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020974_ACEOF
20975
20976fi
20977done
20978
20979
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020980SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020981
20982
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020983SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20984
20985
Jeff Cohen28783c32007-01-12 18:22:38 +000020986if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020987 prefix="/usr/local"
20988fi
Reid Spencere9de0912004-08-20 09:03:57 +000020989eval LLVM_PREFIX="${prefix}";
20990eval LLVM_BINDIR="${prefix}/bin";
20991eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020992eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020993eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020994eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020995eval LLVM_INCLUDEDIR="${prefix}/include";
20996eval LLVM_INFODIR="${prefix}/info";
20997eval LLVM_MANDIR="${prefix}/man";
20998LLVM_CONFIGTIME=`date`
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021010if test "${ENABLE_TIMESTAMPS}" = "0"; then
21011 LLVM_CONFIGTIME="(timestamp not enabled)"
21012fi
21013
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021014
Reid Spencere9de0912004-08-20 09:03:57 +000021015cat >>confdefs.h <<_ACEOF
21016#define LLVM_PREFIX "$LLVM_PREFIX"
21017_ACEOF
21018
21019
21020cat >>confdefs.h <<_ACEOF
21021#define LLVM_BINDIR "$LLVM_BINDIR"
21022_ACEOF
21023
21024
21025cat >>confdefs.h <<_ACEOF
21026#define LLVM_LIBDIR "$LLVM_LIBDIR"
21027_ACEOF
21028
21029
21030cat >>confdefs.h <<_ACEOF
21031#define LLVM_DATADIR "$LLVM_DATADIR"
21032_ACEOF
21033
21034
21035cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021036#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021037_ACEOF
21038
21039
21040cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021041#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021042_ACEOF
21043
21044
21045cat >>confdefs.h <<_ACEOF
21046#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21047_ACEOF
21048
21049
21050cat >>confdefs.h <<_ACEOF
21051#define LLVM_INFODIR "$LLVM_INFODIR"
21052_ACEOF
21053
21054
21055cat >>confdefs.h <<_ACEOF
21056#define LLVM_MANDIR "$LLVM_MANDIR"
21057_ACEOF
21058
21059
21060cat >>confdefs.h <<_ACEOF
21061#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21062_ACEOF
21063
21064
Eric Christopher790e11c2007-12-01 00:34:39 +000021065cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021066#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021067_ACEOF
21068
21069
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021070if test "$BINDINGS_TO_BUILD" = auto ; then
21071 BINDINGS_TO_BUILD=""
21072 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21073 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21074 fi
21075fi
21076BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21077
21078
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021079ALL_BINDINGS=ocaml
21080
21081
Gordon Henriksenf0915682007-10-02 16:42:22 +000021082binding_prereqs_failed=0
21083for a_binding in $BINDINGS_TO_BUILD ; do
21084 case "$a_binding" in
21085 ocaml)
21086 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021087 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21088echo "$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 +000021089 binding_prereqs_failed=1
21090 fi
21091 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21093echo "$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 +000021094 binding_prereqs_failed=1
21095 fi
21096 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021097 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21098echo "$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 +000021099 fi
21100 if test "x$with_ocaml_libdir" != xauto ; then
21101 OCAML_LIBDIR=$with_ocaml_libdir
21102
21103 else
21104 ocaml_stdlib="`"$OCAMLC" -where`"
21105 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21106 then
21107 # ocaml stdlib is beneath our prefix; use stdlib
21108 OCAML_LIBDIR=$ocaml_stdlib
21109
21110 else
21111 # ocaml stdlib is outside our prefix; use libdir/ocaml
21112 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21113
21114 fi
21115 fi
21116 ;;
21117 esac
21118done
21119if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021120 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21121echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21122 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021123fi
21124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021125{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21126echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21127if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021129else
21130 ac_ext=cpp
21131ac_cpp='$CXXCPP $CPPFLAGS'
21132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21135
21136 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021137 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021138 cat >conftest.$ac_ext <<_ACEOF
21139/* confdefs.h. */
21140_ACEOF
21141cat confdefs.h >>conftest.$ac_ext
21142cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021143/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021144template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021145int
21146main ()
21147{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021148X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021149 ;
21150 return 0;
21151}
21152_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021153rm -f conftest.$ac_objext
21154if { (ac_try="$ac_compile"
21155case "(($ac_try" in
21156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157 *) ac_try_echo=$ac_try;;
21158esac
21159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21160 (eval "$ac_compile") 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21168 { (case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21171esac
21172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173 (eval "$ac_try") 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest.$ac_objext'
21178 { (case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21181esac
21182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_try") 2>&5
21184 ac_status=$?
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021187 llvm_cv_cxx_visibility_inlines_hidden=yes
21188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189 echo "$as_me: failed program was:" >&5
21190sed 's/^/| /' conftest.$ac_ext >&5
21191
21192 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021194
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 CXXFLAGS="$oldcxxflags"
21197 ac_ext=c
21198ac_cpp='$CPP $CPPFLAGS'
21199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201ac_compiler_gnu=$ac_cv_c_compiler_gnu
21202
21203
21204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021205{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21206echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021207if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21208 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21209
21210else
21211 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21212
21213fi
21214
Gordon Henriksenf0915682007-10-02 16:42:22 +000021215
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021216if test "$llvm_cv_link_use_r" = "yes" ; then
21217 RPATH="-Wl,-R"
21218else
21219 RPATH="-Wl,-rpath"
21220fi
21221
21222
21223if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21224 RDYNAMIC="-Wl,-export-dynamic"
21225else
21226 RDYNAMIC=""
21227fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021228
21229
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021230
Eric Christophera1cba682010-08-08 02:44:25 +000021231ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021232
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021233
21234
21235
21236
21237
Douglas Gregor1555a232009-06-16 20:12:29 +000021238ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21239
21240ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21241
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021242ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21243
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021244ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21245
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021246ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021247
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021248
Reid Spencera773bd52006-08-04 18:18:08 +000021249ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021250
Eric Christopher360fa9a2011-10-26 00:42:12 +000021251
Reid Spencerea949cf2006-08-16 00:45:38 +000021252ac_config_files="$ac_config_files llvm.spec"
21253
21254
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021255ac_config_files="$ac_config_files docs/doxygen.cfg"
21256
Eric Christopher63c09512012-02-02 00:16:55 +000021257
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021258if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021259 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021260fi
Eric Christopher63c09512012-02-02 00:16:55 +000021261if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021262 configh="include/clang/Config/config.h"
21263 doxy="docs/doxygen.cfg"
21264 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021265
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021266 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021267
21268fi
21269
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021270ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021271
Eric Christopher360fa9a2011-10-26 00:42:12 +000021272
Reid Spencera773bd52006-08-04 18:18:08 +000021273ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021274
Reid Spencera773bd52006-08-04 18:18:08 +000021275ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021276
21277
Reid Spencera773bd52006-08-04 18:18:08 +000021278ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021279
21280
Reid Spencera773bd52006-08-04 18:18:08 +000021281ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021282
21283
Reid Spencera773bd52006-08-04 18:18:08 +000021284ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021285
21286
Reid Spencer8b2e1412006-11-17 03:32:33 +000021287ac_config_commands="$ac_config_commands runtime/Makefile"
21288
21289
Reid Spencera773bd52006-08-04 18:18:08 +000021290ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021291
21292
Reid Spencera773bd52006-08-04 18:18:08 +000021293ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021294
21295
Bill Wendlingf24eb392009-01-04 23:12:30 +000021296ac_config_commands="$ac_config_commands unittests/Makefile"
21297
21298
Reid Spencera773bd52006-08-04 18:18:08 +000021299ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021300
21301
Reid Spencera773bd52006-08-04 18:18:08 +000021302ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021303
21304
Reid Spencera773bd52006-08-04 18:18:08 +000021305ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021306
21307
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021308ac_config_commands="$ac_config_commands bindings/Makefile"
21309
21310
21311ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21312
21313
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021314
John Criswell7a73b802003-06-30 21:59:07 +000021315cat >confcache <<\_ACEOF
21316# This file is a shell script that caches the results of configure
21317# tests run on this system so they can be shared between configure
21318# scripts and configure runs, see configure's option --config-cache.
21319# It is not useful on other systems. If it contains results you don't
21320# want to keep, you may remove or edit it.
21321#
21322# config.status only pays attention to the cache file if you give it
21323# the --recheck option to rerun configure.
21324#
John Criswell0c38eaf2003-09-10 15:17:25 +000021325# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021326# loading this file, other *unset* `ac_cv_foo' will be assigned the
21327# following values.
21328
21329_ACEOF
21330
21331# The following way of writing the cache mishandles newlines in values,
21332# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021333# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021334# Ultrix sh set writes to stderr and can't be redirected directly,
21335# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021336(
21337 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21338 eval ac_val=\$$ac_var
21339 case $ac_val in #(
21340 *${as_nl}*)
21341 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21343echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021344 esac
21345 case $ac_var in #(
21346 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021347 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021348 esac ;;
21349 esac
21350 done
21351
John Criswell7a73b802003-06-30 21:59:07 +000021352 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021353 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21354 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021355 # `set' does not quote correctly, so add quotes (double-quote
21356 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021357 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021358 "s/'/'\\\\''/g;
21359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021360 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021361 *)
21362 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021364 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021365 esac |
21366 sort
21367) |
John Criswell7a73b802003-06-30 21:59:07 +000021368 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021369 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021370 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021371 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021372 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21373 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021374 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21375 :end' >>confcache
21376if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21377 if test -w "$cache_file"; then
21378 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21380echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021381 cat confcache >$cache_file
21382 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21384echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021385 fi
21386fi
21387rm -f confcache
21388
21389test "x$prefix" = xNONE && prefix=$ac_default_prefix
21390# Let make expand exec_prefix.
21391test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21392
John Criswell7a73b802003-06-30 21:59:07 +000021393DEFS=-DHAVE_CONFIG_H
21394
John Criswell0c38eaf2003-09-10 15:17:25 +000021395ac_libobjs=
21396ac_ltlibobjs=
21397for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21398 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021399 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021400 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021401 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21402 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21404 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021405done
21406LIBOBJS=$ac_libobjs
21407
21408LTLIBOBJS=$ac_ltlibobjs
21409
21410
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021411if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21413Usually this means the macro was only invoked conditionally." >&5
21414echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21415Usually this means the macro was only invoked conditionally." >&2;}
21416 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021417fi
21418if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021419 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21420Usually this means the macro was only invoked conditionally." >&5
21421echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21422Usually this means the macro was only invoked conditionally." >&2;}
21423 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021424fi
John Criswell7a73b802003-06-30 21:59:07 +000021425
21426: ${CONFIG_STATUS=./config.status}
21427ac_clean_files_save=$ac_clean_files
21428ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21430echo "$as_me: creating $CONFIG_STATUS" >&6;}
21431cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021432#! $SHELL
21433# Generated by $as_me.
21434# Run this file to recreate the current configuration.
21435# Compiler output produced by configure, useful for debugging
21436# configure, is in config.log if it exists.
21437
21438debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021439ac_cs_recheck=false
21440ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021441SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021442_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021444cat >>$CONFIG_STATUS <<\_ACEOF
21445## --------------------- ##
21446## M4sh Initialization. ##
21447## --------------------- ##
21448
21449# Be Bourne compatible
21450if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021451 emulate sh
21452 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021453 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021454 # is contrary to our usage. Disable this feature.
21455 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021456 setopt NO_GLOB_SUBST
21457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021458 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021460BIN_SH=xpg4; export BIN_SH # for Tru64
21461DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021462
John Criswell7a73b802003-06-30 21:59:07 +000021463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021464# PATH needs CR
21465# Avoid depending upon Character Ranges.
21466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21469as_cr_digits='0123456789'
21470as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021471
21472# The user is always right.
21473if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021474 echo "#! /bin/sh" >conf$$.sh
21475 echo "exit 0" >>conf$$.sh
21476 chmod +x conf$$.sh
21477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21478 PATH_SEPARATOR=';'
21479 else
21480 PATH_SEPARATOR=:
21481 fi
21482 rm -f conf$$.sh
21483fi
21484
21485# Support unset when possible.
21486if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21487 as_unset=unset
21488else
21489 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021490fi
John Criswell7a73b802003-06-30 21:59:07 +000021491
Reid Spencera773bd52006-08-04 18:18:08 +000021492
21493# IFS
21494# We need space, tab and new line, in precisely that order. Quoting is
21495# there to prevent editors from complaining about space-tab.
21496# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21497# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021498as_nl='
21499'
Reid Spencera773bd52006-08-04 18:18:08 +000021500IFS=" "" $as_nl"
21501
21502# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021504 *[\\/]* ) as_myself=$0 ;;
21505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021506for as_dir in $PATH
21507do
21508 IFS=$as_save_IFS
21509 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21511done
Reid Spencera773bd52006-08-04 18:18:08 +000021512IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021513
Reid Spencera773bd52006-08-04 18:18:08 +000021514 ;;
21515esac
21516# We did not find ourselves, most probably we were run as `sh COMMAND'
21517# in which case we are not to be found in the path.
21518if test "x$as_myself" = x; then
21519 as_myself=$0
21520fi
21521if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21523 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021524fi
21525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021526# Work around bugs in pre-3.0 UWIN ksh.
21527for as_var in ENV MAIL MAILPATH
21528do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021529done
21530PS1='$ '
21531PS2='> '
21532PS4='+ '
21533
21534# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535for as_var in \
21536 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21537 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21538 LC_TELEPHONE LC_TIME
21539do
21540 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21541 eval $as_var=C; export $as_var
21542 else
21543 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021544 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021545done
Torok Edwin871384f2010-01-26 08:50:50 +000021546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021548if expr a : '\(a\)' >/dev/null 2>&1 &&
21549 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21550 as_expr=expr
21551else
21552 as_expr=false
21553fi
21554
21555if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21556 as_basename=basename
21557else
21558 as_basename=false
21559fi
21560
21561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021563as_me=`$as_basename -- "$0" ||
21564$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21565 X"$0" : 'X\(//\)$' \| \
21566 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021567echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021568 sed '/^.*\/\([^/][^/]*\)\/*$/{
21569 s//\1/
21570 q
21571 }
21572 /^X\/\(\/\/\)$/{
21573 s//\1/
21574 q
21575 }
21576 /^X\/\(\/\).*/{
21577 s//\1/
21578 q
21579 }
21580 s/.*/./; q'`
21581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582# CDPATH.
21583$as_unset CDPATH
21584
21585
21586
21587 as_lineno_1=$LINENO
21588 as_lineno_2=$LINENO
21589 test "x$as_lineno_1" != "x$as_lineno_2" &&
21590 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21591
21592 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21593 # uniformly replaced by the line number. The first 'sed' inserts a
21594 # line-number line after each line using $LINENO; the second 'sed'
21595 # does the real work. The second script uses 'N' to pair each
21596 # line-number line with the line containing $LINENO, and appends
21597 # trailing '-' during substitution so that $LINENO is not a special
21598 # case at line end.
21599 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21600 # scripts with optimization help from Paolo Bonzini. Blame Lee
21601 # E. McMahon (1931-1989) for sed's syntax. :-)
21602 sed -n '
21603 p
21604 /[$]LINENO/=
21605 ' <$as_myself |
21606 sed '
21607 s/[$]LINENO.*/&-/
21608 t lineno
21609 b
21610 :lineno
21611 N
21612 :loop
21613 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21614 t loop
21615 s/-\n.*//
21616 ' >$as_me.lineno &&
21617 chmod +x "$as_me.lineno" ||
21618 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21619 { (exit 1); exit 1; }; }
21620
21621 # Don't try to exec as it changes $[0], causing all sort of problems
21622 # (the dirname of $[0] is not the place where we might find the
21623 # original and so on. Autoconf is especially sensitive to this).
21624 . "./$as_me.lineno"
21625 # Exit status is that of the last command.
21626 exit
21627}
21628
21629
21630if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21631 as_dirname=dirname
21632else
21633 as_dirname=false
21634fi
Reid Spencera773bd52006-08-04 18:18:08 +000021635
21636ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021637case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021638-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021639 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021640 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021641 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021642 esac;;
21643*)
21644 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021645esac
21646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647if expr a : '\(a\)' >/dev/null 2>&1 &&
21648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21649 as_expr=expr
21650else
21651 as_expr=false
21652fi
21653
John Criswell7a73b802003-06-30 21:59:07 +000021654rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021655if test -d conf$$.dir; then
21656 rm -f conf$$.dir/conf$$.file
21657else
21658 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021661echo >conf$$.file
21662if ln -s conf$$.file conf$$ 2>/dev/null; then
21663 as_ln_s='ln -s'
21664 # ... but there are two gotchas:
21665 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21666 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21667 # In both cases, we have to default to `cp -p'.
21668 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021669 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670elif ln conf$$.file conf$$ 2>/dev/null; then
21671 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021672else
21673 as_ln_s='cp -p'
21674fi
Reid Spencera773bd52006-08-04 18:18:08 +000021675rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21676rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021677
John Criswell0c38eaf2003-09-10 15:17:25 +000021678if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021679 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021680else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021681 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021682 as_mkdir_p=false
21683fi
21684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21686# systems may use methods other than mode bits to determine executability.
21687cat >conf$$.file <<_ASEOF
21688#! /bin/sh
21689exit 0
21690_ASEOF
21691chmod +x conf$$.file
21692if test -x conf$$.file >/dev/null 2>&1; then
21693 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021695 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021696fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021697rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021698
21699# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021700as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021701
21702# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021703as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021704
21705
John Criswell7a73b802003-06-30 21:59:07 +000021706exec 6>&1
21707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021709# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021710# values after options handling.
21711ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021712This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021714
21715 CONFIG_FILES = $CONFIG_FILES
21716 CONFIG_HEADERS = $CONFIG_HEADERS
21717 CONFIG_LINKS = $CONFIG_LINKS
21718 CONFIG_COMMANDS = $CONFIG_COMMANDS
21719 $ $0 $@
21720
Reid Spencera773bd52006-08-04 18:18:08 +000021721on `(hostname || uname -n) 2>/dev/null | sed 1q`
21722"
21723
John Criswell7a73b802003-06-30 21:59:07 +000021724_ACEOF
21725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021726cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021727# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021728config_files="$ac_config_files"
21729config_headers="$ac_config_headers"
21730config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021731
Reid Spencera773bd52006-08-04 18:18:08 +000021732_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021734cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021735ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021736\`$as_me' instantiates files from templates according to the
21737current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021739Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021740
21741 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021742 -V, --version print version number, then exit
21743 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021744 -d, --debug don't remove temporary files
21745 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746 --file=FILE[:TEMPLATE]
21747 instantiate the configuration file FILE
21748 --header=FILE[:TEMPLATE]
21749 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021750
21751Configuration files:
21752$config_files
21753
21754Configuration headers:
21755$config_headers
21756
John Criswellc764fbc2003-09-06 15:17:13 +000021757Configuration commands:
21758$config_commands
21759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021760Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021761
Reid Spencera773bd52006-08-04 18:18:08 +000021762_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021764ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021765LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021766configured by $0, generated by GNU Autoconf 2.60,
21767 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021770This config.status script is free software; the Free Software Foundation
21771gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021772
21773ac_pwd='$ac_pwd'
21774srcdir='$srcdir'
21775INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021776_ACEOF
21777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021778cat >>$CONFIG_STATUS <<\_ACEOF
21779# If no file are specified by the user, then we need to provide default
21780# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021781ac_need_defaults=:
21782while test $# != 0
21783do
21784 case $1 in
21785 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21787 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021788 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021789 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021790 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021791 ac_option=$1
21792 ac_optarg=$2
21793 ac_shift=shift
21794 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021795 esac
21796
John Criswell0c38eaf2003-09-10 15:17:25 +000021797 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021798 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21800 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021801 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021803 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021804 debug=: ;;
21805 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021806 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021807 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021808 ac_need_defaults=false;;
21809 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021810 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021811 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021812 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021813 --he | --h)
21814 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815 { echo "$as_me: error: ambiguous option: $1
21816Try \`$0 --help' for more information." >&2
21817 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021818 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021819 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21821 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21822 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021823
21824 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825 -*) { echo "$as_me: error: unrecognized option: $1
21826Try \`$0 --help' for more information." >&2
21827 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021830 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021831
21832 esac
21833 shift
21834done
21835
John Criswell0c38eaf2003-09-10 15:17:25 +000021836ac_configure_extra_args=
21837
21838if $ac_cs_silent; then
21839 exec 6>/dev/null
21840 ac_configure_extra_args="$ac_configure_extra_args --silent"
21841fi
21842
21843_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021845if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21847 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021848 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021849 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021850fi
21851
John Criswell7a73b802003-06-30 21:59:07 +000021852_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021853cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021854exec 5>>config.log
21855{
21856 echo
21857 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21858## Running $as_me. ##
21859_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021861} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021862
Reid Spencera773bd52006-08-04 18:18:08 +000021863_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021865#
Reid Spencera773bd52006-08-04 18:18:08 +000021866# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021867#
Reid Spencerc0682832005-02-24 19:05:19 +000021868llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021869
21870_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021872cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021873
21874# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021875for ac_config_target in $ac_config_targets
21876do
Reid Spencera773bd52006-08-04 18:18:08 +000021877 case $ac_config_target in
21878 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021879 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021880 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21881 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021882 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021883 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021884 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021885 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021886 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021887 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021888 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21889 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021890 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021891 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21892 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21893 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21894 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21895 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021896 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021897 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21898 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021899 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021900 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21901 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21902 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021903 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21904 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21907echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21908 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021909 esac
21910done
21911
Reid Spencera773bd52006-08-04 18:18:08 +000021912
John Criswell7a73b802003-06-30 21:59:07 +000021913# If the user did not use the arguments to specify the items to instantiate,
21914# then the envvar interface is used. Set only those that are not.
21915# We use the long form for the default assignment because of an extremely
21916# bizarre bug on SunOS 4.1.3.
21917if $ac_need_defaults; then
21918 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21919 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021920 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021921fi
21922
John Criswell0c38eaf2003-09-10 15:17:25 +000021923# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021924# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021925# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021926# Hook for its removal unless debugging.
21927# Note that there is a small window in which the directory will not be cleaned:
21928# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021929$debug ||
21930{
Reid Spencera773bd52006-08-04 18:18:08 +000021931 tmp=
21932 trap 'exit_status=$?
21933 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21934' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021935 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021936}
John Criswell7a73b802003-06-30 21:59:07 +000021937# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021938
John Criswell7a73b802003-06-30 21:59:07 +000021939{
Reid Spencera773bd52006-08-04 18:18:08 +000021940 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021941 test -n "$tmp" && test -d "$tmp"
21942} ||
21943{
Reid Spencera773bd52006-08-04 18:18:08 +000021944 tmp=./conf$$-$RANDOM
21945 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946} ||
21947{
21948 echo "$me: cannot create a temporary directory in ." >&2
21949 { (exit 1); exit 1; }
21950}
John Criswell7a73b802003-06-30 21:59:07 +000021951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952#
21953# Set up the sed scripts for CONFIG_FILES section.
21954#
21955
21956# No need to generate the scripts if there are no CONFIG_FILES.
21957# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021958if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021959
21960_ACEOF
21961
Reid Spencera773bd52006-08-04 18:18:08 +000021962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021963
Reid Spencera773bd52006-08-04 18:18:08 +000021964ac_delim='%!_!# '
21965for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021966 cat >conf$$subs.sed <<_ACEOF
21967SHELL!$SHELL$ac_delim
21968PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21969PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21970PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21971PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21972PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21973PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21974exec_prefix!$exec_prefix$ac_delim
21975prefix!$prefix$ac_delim
21976program_transform_name!$program_transform_name$ac_delim
21977bindir!$bindir$ac_delim
21978sbindir!$sbindir$ac_delim
21979libexecdir!$libexecdir$ac_delim
21980datarootdir!$datarootdir$ac_delim
21981datadir!$datadir$ac_delim
21982sysconfdir!$sysconfdir$ac_delim
21983sharedstatedir!$sharedstatedir$ac_delim
21984localstatedir!$localstatedir$ac_delim
21985includedir!$includedir$ac_delim
21986oldincludedir!$oldincludedir$ac_delim
21987docdir!$docdir$ac_delim
21988infodir!$infodir$ac_delim
21989htmldir!$htmldir$ac_delim
21990dvidir!$dvidir$ac_delim
21991pdfdir!$pdfdir$ac_delim
21992psdir!$psdir$ac_delim
21993libdir!$libdir$ac_delim
21994localedir!$localedir$ac_delim
21995mandir!$mandir$ac_delim
21996DEFS!$DEFS$ac_delim
21997ECHO_C!$ECHO_C$ac_delim
21998ECHO_N!$ECHO_N$ac_delim
21999ECHO_T!$ECHO_T$ac_delim
22000LIBS!$LIBS$ac_delim
22001build_alias!$build_alias$ac_delim
22002host_alias!$host_alias$ac_delim
22003target_alias!$target_alias$ac_delim
22004LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022005CC!$CC$ac_delim
22006CFLAGS!$CFLAGS$ac_delim
22007LDFLAGS!$LDFLAGS$ac_delim
22008CPPFLAGS!$CPPFLAGS$ac_delim
22009ac_ct_CC!$ac_ct_CC$ac_delim
22010EXEEXT!$EXEEXT$ac_delim
22011OBJEXT!$OBJEXT$ac_delim
22012CXX!$CXX$ac_delim
22013CXXFLAGS!$CXXFLAGS$ac_delim
22014ac_ct_CXX!$ac_ct_CXX$ac_delim
22015CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022016subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022017ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22018LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022019build!$build$ac_delim
22020build_cpu!$build_cpu$ac_delim
22021build_vendor!$build_vendor$ac_delim
22022build_os!$build_os$ac_delim
22023host!$host$ac_delim
22024host_cpu!$host_cpu$ac_delim
22025host_vendor!$host_vendor$ac_delim
22026host_os!$host_os$ac_delim
22027target!$target$ac_delim
22028target_cpu!$target_cpu$ac_delim
22029target_vendor!$target_vendor$ac_delim
22030target_os!$target_os$ac_delim
22031OS!$OS$ac_delim
22032HOST_OS!$HOST_OS$ac_delim
22033TARGET_OS!$TARGET_OS$ac_delim
22034LINKALL!$LINKALL$ac_delim
22035NOLINKALL!$NOLINKALL$ac_delim
22036LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22037LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22038ARCH!$ARCH$ac_delim
22039ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022040GREP!$GREP$ac_delim
22041EGREP!$EGREP$ac_delim
22042LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22043BUILD_CC!$BUILD_CC$ac_delim
22044BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22045BUILD_CXX!$BUILD_CXX$ac_delim
22046CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022047ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022048ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22049ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22050DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22051ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22052EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22053DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22054DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22055JIT!$JIT$ac_delim
22056TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022057ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022059LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022060ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022061ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022062ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022063ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022064_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022067 break
22068 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022069 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22070echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22071 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022072 else
22073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022074 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022075done
22076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022077ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22078if test -n "$ac_eof"; then
22079 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22080 ac_eof=`expr $ac_eof + 1`
22081fi
22082
22083cat >>$CONFIG_STATUS <<_ACEOF
22084cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22085/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022086_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022087sed '
22088s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22089s/^/s,@/; s/!/@,|#_!!_#|/
22090:n
22091t n
22092s/'"$ac_delim"'$/,g/; t
22093s/$/\\/; p
22094N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22095' >>$CONFIG_STATUS <conf$$subs.sed
22096rm -f conf$$subs.sed
22097cat >>$CONFIG_STATUS <<_ACEOF
22098CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022099_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022100
22101
22102ac_delim='%!_!# '
22103for ac_last_try in false false false false false :; do
22104 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000022105ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022106TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22107LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22108LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022109LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022110LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022111OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022112EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022113EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022114CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022115BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022116INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022117NM!$NM$ac_delim
22118ifGNUmake!$ifGNUmake$ac_delim
22119LN_S!$LN_S$ac_delim
22120CMP!$CMP$ac_delim
22121CP!$CP$ac_delim
22122DATE!$DATE$ac_delim
22123FIND!$FIND$ac_delim
22124MKDIR!$MKDIR$ac_delim
22125MV!$MV$ac_delim
22126RANLIB!$RANLIB$ac_delim
22127AR!$AR$ac_delim
22128RM!$RM$ac_delim
22129SED!$SED$ac_delim
22130TAR!$TAR$ac_delim
22131BINPWD!$BINPWD$ac_delim
22132GRAPHVIZ!$GRAPHVIZ$ac_delim
22133DOT!$DOT$ac_delim
22134FDP!$FDP$ac_delim
22135NEATO!$NEATO$ac_delim
22136TWOPI!$TWOPI$ac_delim
22137CIRCO!$CIRCO$ac_delim
22138GV!$GV$ac_delim
22139DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022140XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022141INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22142INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22143INSTALL_DATA!$INSTALL_DATA$ac_delim
22144BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022145CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022146DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022147GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022148GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022149PDFROFF!$PDFROFF$ac_delim
22150RUNTEST!$RUNTEST$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022151TCLSH!$TCLSH$ac_delim
22152ZIP!$ZIP$ac_delim
22153OCAMLC!$OCAMLC$ac_delim
22154OCAMLOPT!$OCAMLOPT$ac_delim
22155OCAMLDEP!$OCAMLDEP$ac_delim
22156OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022157GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022158HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22160INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22161CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22162CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22163LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022164NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22165NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022166COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022167USE_UDIS86!$USE_UDIS86$ac_delim
22168USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022169USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22170INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22171INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22173HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22174MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022175SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022176SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022177LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22178LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22179LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22180LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22181LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22182LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22183LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22184LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22185LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22186LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22187BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22188ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022189OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22190ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22191RPATH!$RPATH$ac_delim
22192RDYNAMIC!$RDYNAMIC$ac_delim
22193LIBOBJS!$LIBOBJS$ac_delim
22194LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022195_ACEOF
22196
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198 break
22199 elif $ac_last_try; then
22200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22201echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22202 { (exit 1); exit 1; }; }
22203 else
22204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22205 fi
22206done
22207
22208ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22209if test -n "$ac_eof"; then
22210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22211 ac_eof=`expr $ac_eof + 1`
22212fi
22213
22214cat >>$CONFIG_STATUS <<_ACEOF
22215cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22217_ACEOF
22218sed '
22219s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22220s/^/s,@/; s/!/@,|#_!!_#|/
22221:n
22222t n
22223s/'"$ac_delim"'$/,g/; t
22224s/$/\\/; p
22225N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22226' >>$CONFIG_STATUS <conf$$subs.sed
22227rm -f conf$$subs.sed
22228cat >>$CONFIG_STATUS <<_ACEOF
22229:end
22230s/|#_!!_#|//g
22231CEOF$ac_eof
22232_ACEOF
22233
22234
Reid Spencera773bd52006-08-04 18:18:08 +000022235# VPATH may cause trouble with some makes, so we remove $(srcdir),
22236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22237# trailing colons and then remove the whole line if VPATH becomes empty
22238# (actually we leave an empty line to preserve line numbers).
22239if test "x$srcdir" = x.; then
22240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22241s/:*\$(srcdir):*/:/
22242s/:*\${srcdir}:*/:/
22243s/:*@srcdir@:*/:/
22244s/^\([^=]*=[ ]*\):*/\1/
22245s/:*$//
22246s/^[^=]*=[ ]*$//
22247}'
22248fi
22249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022250cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022251fi # test -n "$CONFIG_FILES"
22252
Reid Spencera773bd52006-08-04 18:18:08 +000022253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022254for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022255do
22256 case $ac_tag in
22257 :[FHLC]) ac_mode=$ac_tag; continue;;
22258 esac
22259 case $ac_mode$ac_tag in
22260 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022261 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22262echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22263 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022264 :[FH]-) ac_tag=-:-;;
22265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22266 esac
22267 ac_save_IFS=$IFS
22268 IFS=:
22269 set x $ac_tag
22270 IFS=$ac_save_IFS
22271 shift
22272 ac_file=$1
22273 shift
22274
22275 case $ac_mode in
22276 :L) ac_source=$1;;
22277 :[FH])
22278 ac_file_inputs=
22279 for ac_f
22280 do
22281 case $ac_f in
22282 -) ac_f="$tmp/stdin";;
22283 *) # Look for the file first in the build tree, then in the source tree
22284 # (if the path is not absolute). The absolute path cannot be DOS-style,
22285 # because $ac_f cannot contain `:'.
22286 test -f "$ac_f" ||
22287 case $ac_f in
22288 [\\/$]*) false;;
22289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22290 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022291 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22292echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22293 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022294 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022295 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022296 done
22297
22298 # Let's still pretend it is `configure' which instantiates (i.e., don't
22299 # use $as_me), people would be surprised to read:
22300 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022301 configure_input="Generated from "`IFS=:
22302 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022303 if test x"$ac_file" != x-; then
22304 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022305 { echo "$as_me:$LINENO: creating $ac_file" >&5
22306echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022307 fi
22308
22309 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022310 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022311 esac
22312 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022313 esac
22314
Reid Spencera773bd52006-08-04 18:18:08 +000022315 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022317 X"$ac_file" : 'X\(//\)[^/]' \| \
22318 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022320echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22322 s//\1/
22323 q
22324 }
22325 /^X\(\/\/\)[^/].*/{
22326 s//\1/
22327 q
22328 }
22329 /^X\(\/\/\)$/{
22330 s//\1/
22331 q
22332 }
22333 /^X\(\/\).*/{
22334 s//\1/
22335 q
22336 }
22337 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022338 { as_dir="$ac_dir"
22339 case $as_dir in #(
22340 -*) as_dir=./$as_dir;;
22341 esac
22342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22343 as_dirs=
22344 while :; do
22345 case $as_dir in #(
22346 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22347 *) as_qdir=$as_dir;;
22348 esac
22349 as_dirs="'$as_qdir' $as_dirs"
22350 as_dir=`$as_dirname -- "$as_dir" ||
22351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22352 X"$as_dir" : 'X\(//\)[^/]' \| \
22353 X"$as_dir" : 'X\(//\)$' \| \
22354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22355echo X"$as_dir" |
22356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22357 s//\1/
22358 q
22359 }
22360 /^X\(\/\/\)[^/].*/{
22361 s//\1/
22362 q
22363 }
22364 /^X\(\/\/\)$/{
22365 s//\1/
22366 q
22367 }
22368 /^X\(\/\).*/{
22369 s//\1/
22370 q
22371 }
22372 s/.*/./; q'`
22373 test -d "$as_dir" && break
22374 done
22375 test -z "$as_dirs" || eval "mkdir $as_dirs"
22376 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22377echo "$as_me: error: cannot create directory $as_dir" >&2;}
22378 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022379 ac_builddir=.
22380
Reid Spencera773bd52006-08-04 18:18:08 +000022381case "$ac_dir" in
22382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22383*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022385 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022387 case $ac_top_builddir_sub in
22388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22390 esac ;;
22391esac
22392ac_abs_top_builddir=$ac_pwd
22393ac_abs_builddir=$ac_pwd$ac_dir_suffix
22394# for backward compatibility:
22395ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022396
22397case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022398 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022399 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022400 ac_top_srcdir=$ac_top_builddir_sub
22401 ac_abs_top_srcdir=$ac_pwd ;;
22402 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022403 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022404 ac_top_srcdir=$srcdir
22405 ac_abs_top_srcdir=$srcdir ;;
22406 *) # Relative name.
22407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22408 ac_top_srcdir=$ac_top_build_prefix$srcdir
22409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022410esac
Reid Spencera773bd52006-08-04 18:18:08 +000022411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022412
John Criswell7a73b802003-06-30 21:59:07 +000022413
Reid Spencera773bd52006-08-04 18:18:08 +000022414 case $ac_mode in
22415 :F)
22416 #
22417 # CONFIG_FILE
22418 #
John Criswell7a73b802003-06-30 21:59:07 +000022419
22420 case $INSTALL in
22421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022423 esac
John Criswell7a73b802003-06-30 21:59:07 +000022424_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022426cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022427# If the template does not know about datarootdir, expand it.
22428# FIXME: This hack should be removed a few years after 2.60.
22429ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022430
22431case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022432 p
22433 q
22434}
22435/@datadir@/p
22436/@docdir@/p
22437/@infodir@/p
22438/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022439/@mandir@/p
22440' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022441*datarootdir*) ac_datarootdir_seen=yes;;
22442*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022443 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22444echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022446cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022447 ac_datarootdir_hack='
22448 s&@datadir@&$datadir&g
22449 s&@docdir@&$docdir&g
22450 s&@infodir@&$infodir&g
22451 s&@localedir@&$localedir&g
22452 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022453 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022454esac
22455_ACEOF
22456
22457# Neutralize VPATH when `$srcdir' = `.'.
22458# Shell code in configure.ac might set extrasub.
22459# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022460cat >>$CONFIG_STATUS <<_ACEOF
22461 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022462$extrasub
22463_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022464cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022465:t
22466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022467s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022468s&@top_builddir@&$ac_top_builddir_sub&;t t
22469s&@srcdir@&$ac_srcdir&;t t
22470s&@abs_srcdir@&$ac_abs_srcdir&;t t
22471s&@top_srcdir@&$ac_top_srcdir&;t t
22472s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22473s&@builddir@&$ac_builddir&;t t
22474s&@abs_builddir@&$ac_abs_builddir&;t t
22475s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22476s&@INSTALL@&$ac_INSTALL&;t t
22477$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022478" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022479
Reid Spencera773bd52006-08-04 18:18:08 +000022480test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022484which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022485echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022486which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022487
Reid Spencera773bd52006-08-04 18:18:08 +000022488 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022489 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022490 -) cat "$tmp/out"; rm -f "$tmp/out";;
22491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22492 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022493 ;;
22494 :H)
22495 #
22496 # CONFIG_HEADER
22497 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022498_ACEOF
22499
22500# Transform confdefs.h into a sed script `conftest.defines', that
22501# substitutes the proper values into config.h.in to produce config.h.
22502rm -f conftest.defines conftest.tail
22503# First, append a space to every undef/define line, to ease matching.
22504echo 's/$/ /' >conftest.defines
22505# Then, protect against being on the right side of a sed subst, or in
22506# an unquoted here document, in config.status. If some macros were
22507# called several times there might be several #defines for the same
22508# symbol, which is useless. But do not sort them, since the last
22509# AC_DEFINE must be honored.
22510ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22511# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22512# NAME is the cpp macro being defined, VALUE is the value it is being given.
22513# PARAMS is the parameter list in the macro definition--in most cases, it's
22514# just an empty string.
22515ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22516ac_dB='\\)[ (].*,\\1define\\2'
22517ac_dC=' '
22518ac_dD=' ,'
22519
22520uniq confdefs.h |
22521 sed -n '
22522 t rset
22523 :rset
22524 s/^[ ]*#[ ]*define[ ][ ]*//
22525 t ok
22526 d
22527 :ok
22528 s/[\\&,]/\\&/g
22529 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22530 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22531 ' >>conftest.defines
22532
22533# Remove the space that was appended to ease matching.
22534# Then replace #undef with comments. This is necessary, for
22535# example, in the case of _POSIX_SOURCE, which is predefined and required
22536# on some systems where configure will not decide to define it.
22537# (The regexp can be short, since the line contains either #define or #undef.)
22538echo 's/ $//
22539s,^[ #]*u.*,/* & */,' >>conftest.defines
22540
22541# Break up conftest.defines:
22542ac_max_sed_lines=50
22543
22544# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22545# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22546# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22547# et cetera.
22548ac_in='$ac_file_inputs'
22549ac_out='"$tmp/out1"'
22550ac_nxt='"$tmp/out2"'
22551
22552while :
22553do
22554 # Write a here document:
22555 cat >>$CONFIG_STATUS <<_ACEOF
22556 # First, check the format of the line:
22557 cat >"\$tmp/defines.sed" <<\\CEOF
22558/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22559/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22560b
22561:def
22562_ACEOF
22563 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22564 echo 'CEOF
22565 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22566 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22567 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22568 grep . conftest.tail >/dev/null || break
22569 rm -f conftest.defines
22570 mv conftest.tail conftest.defines
22571done
22572rm -f conftest.defines conftest.tail
22573
22574echo "ac_result=$ac_in" >>$CONFIG_STATUS
22575cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022576 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022577 echo "/* $configure_input */" >"$tmp/config.h"
22578 cat "$ac_result" >>"$tmp/config.h"
22579 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22581echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022582 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022583 rm -f $ac_file
22584 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022585 fi
22586 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022587 echo "/* $configure_input */"
22588 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022589 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022590 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022591 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022593 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22594echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022595 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022596 esac
John Criswell7a73b802003-06-30 21:59:07 +000022597
Reid Spencera773bd52006-08-04 18:18:08 +000022598
22599 case $ac_file$ac_mode in
22600 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022601 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022602 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022603 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022604 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022605 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022606 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022607 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022608 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022609 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022610 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022611 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022612 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022613 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022614 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022615 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022616 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022617 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022618 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022619 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022620 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022622 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022624 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022625 ${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 +000022626
22627 esac
22628done # for ac_tag
22629
John Criswell7a73b802003-06-30 21:59:07 +000022630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022631{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022632_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022633chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022634ac_clean_files=$ac_clean_files_save
22635
22636
22637# configure is writing to config.log, and then calls config.status.
22638# config.status does its own redirection, appending to config.log.
22639# Unfortunately, on DOS this fails, as config.log is still kept open
22640# by configure, so config.status won't be able to write to it; its
22641# output is simply discarded. So we exec the FD to /dev/null,
22642# effectively closing config.log, so it can be properly (re)opened and
22643# appended to by config.status. When coming back to configure, we
22644# need to make the FD available again.
22645if test "$no_create" != yes; then
22646 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022647 ac_config_status_args=
22648 test "$silent" = yes &&
22649 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022650 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022652 exec 5>>config.log
22653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22654 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022655 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022656fi
22657
John Criswell12399a12003-09-30 15:55:44 +000022658#
22659# CONFIG_SUBDIRS section.
22660#
22661if test "$no_recursion" != yes; then
22662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022663 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022664 ac_sub_configure_args=
22665 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022666 eval "set x $ac_configure_args"
22667 shift
22668 for ac_arg
22669 do
John Criswell12399a12003-09-30 15:55:44 +000022670 if test -n "$ac_prev"; then
22671 ac_prev=
22672 continue
22673 fi
22674 case $ac_arg in
22675 -cache-file | --cache-file | --cache-fil | --cache-fi \
22676 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22677 ac_prev=cache_file ;;
22678 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22679 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22680 | --c=*)
22681 ;;
22682 --config-cache | -C)
22683 ;;
22684 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22685 ac_prev=srcdir ;;
22686 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22687 ;;
22688 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22689 ac_prev=prefix ;;
22690 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022692 *)
22693 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022694 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022695 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022696 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022697 esac
22698 done
22699
22700 # Always prepend --prefix to ensure using the same prefix
22701 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022702 ac_arg="--prefix=$prefix"
22703 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022704 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022705 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022706 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022707
22708 ac_popdir=`pwd`
22709 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22710
22711 # Do not complain, so a configure script can configure whichever
22712 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022713 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022714
Reid Spencera773bd52006-08-04 18:18:08 +000022715 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022716 echo "$as_me:$LINENO: $ac_msg" >&5
22717 echo "$ac_msg" >&6
22718 { as_dir="$ac_dir"
22719 case $as_dir in #(
22720 -*) as_dir=./$as_dir;;
22721 esac
22722 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22723 as_dirs=
22724 while :; do
22725 case $as_dir in #(
22726 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22727 *) as_qdir=$as_dir;;
22728 esac
22729 as_dirs="'$as_qdir' $as_dirs"
22730 as_dir=`$as_dirname -- "$as_dir" ||
22731$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22732 X"$as_dir" : 'X\(//\)[^/]' \| \
22733 X"$as_dir" : 'X\(//\)$' \| \
22734 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22735echo X"$as_dir" |
22736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22737 s//\1/
22738 q
22739 }
22740 /^X\(\/\/\)[^/].*/{
22741 s//\1/
22742 q
22743 }
22744 /^X\(\/\/\)$/{
22745 s//\1/
22746 q
22747 }
22748 /^X\(\/\).*/{
22749 s//\1/
22750 q
22751 }
22752 s/.*/./; q'`
22753 test -d "$as_dir" && break
22754 done
22755 test -z "$as_dirs" || eval "mkdir $as_dirs"
22756 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22757echo "$as_me: error: cannot create directory $as_dir" >&2;}
22758 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022759 ac_builddir=.
22760
Reid Spencera773bd52006-08-04 18:18:08 +000022761case "$ac_dir" in
22762.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22763*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022764 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022765 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022766 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022767 case $ac_top_builddir_sub in
22768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22770 esac ;;
22771esac
22772ac_abs_top_builddir=$ac_pwd
22773ac_abs_builddir=$ac_pwd$ac_dir_suffix
22774# for backward compatibility:
22775ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022776
22777case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022778 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022779 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022780 ac_top_srcdir=$ac_top_builddir_sub
22781 ac_abs_top_srcdir=$ac_pwd ;;
22782 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022783 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022784 ac_top_srcdir=$srcdir
22785 ac_abs_top_srcdir=$srcdir ;;
22786 *) # Relative name.
22787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22788 ac_top_srcdir=$ac_top_build_prefix$srcdir
22789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022790esac
Reid Spencera773bd52006-08-04 18:18:08 +000022791ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022792
22793
Reid Spencera773bd52006-08-04 18:18:08 +000022794 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022795
22796 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022797 if test -f "$ac_srcdir/configure.gnu"; then
22798 ac_sub_configure=$ac_srcdir/configure.gnu
22799 elif test -f "$ac_srcdir/configure"; then
22800 ac_sub_configure=$ac_srcdir/configure
22801 elif test -f "$ac_srcdir/configure.in"; then
22802 # This should be Cygnus configure.
22803 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022804 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022805 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22806echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022807 ac_sub_configure=
22808 fi
22809
22810 # The recursion is here.
22811 if test -n "$ac_sub_configure"; then
22812 # Make the cache file name correct relative to the subdirectory.
22813 case $cache_file in
22814 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022815 *) # Relative name.
22816 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022817 esac
22818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022819 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22820echo "$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 +000022821 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022822 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22823 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022824 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22825echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22826 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022827 fi
22828
Reid Spencera773bd52006-08-04 18:18:08 +000022829 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022830 done
22831fi
22832