blob: ac2488928e6a36dbf7e528c1d87a4b1e19f4cf4d [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherb26697c2010-09-06 18:47:10 +00003# Generated by GNU Autoconf 2.60 for llvm 2.9svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
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#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 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.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Eric Christopherb26697c2010-09-06 18:47:10 +0000564PACKAGE_VERSION='2.9svn'
565PACKAGE_STRING='llvm 2.9svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
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
643subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000691ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_DOXYGEN
693ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000694ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000695ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000696ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000697ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000698TARGETS_TO_BUILD
699LLVM_ENUM_TARGETS
700LLVM_ENUM_ASM_PRINTERS
701LLVM_ENUM_ASM_PARSERS
702LLVM_ENUM_DISASSEMBLERS
703ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000704CLANGPATH
705CLANGXXPATH
706ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000707OPTIMIZE_OPTION
708EXTRA_OPTIONS
709BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000710CXX
711CXXFLAGS
712ac_ct_CXX
713NM
714ifGNUmake
715LN_S
716CMP
717CP
718DATE
719FIND
720MKDIR
721MV
722RANLIB
723AR
724RM
725SED
726TAR
727BINPWD
728GRAPHVIZ
729DOT
730FDP
731NEATO
732TWOPI
733CIRCO
734GV
735DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000736XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000737PERL
738HAVE_PERL
739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000743CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744DOXYGEN
745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747POD2HTML
748POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000749PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750RUNTEST
751TCLSH
752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
757GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
764LLVMGCCCOMMAND
765LLVMGXXCOMMAND
766LLVMGCC
767LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000768LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000769NO_VARIADIC_MACROS
770NO_MISSING_FIELD_INITIALIZERS
771USE_UDIS86
772USE_OPROFILE
773HAVE_PTHREAD
774HUGE_VAL_SANITY
775MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000776LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVMCC1
778LLVMCC1PLUS
779LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000780LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000781LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000782LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000783SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000784SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785LLVM_PREFIX
786LLVM_BINDIR
787LLVM_LIBDIR
788LLVM_DATADIR
789LLVM_DOCSDIR
790LLVM_ETCDIR
791LLVM_INCLUDEDIR
792LLVM_INFODIR
793LLVM_MANDIR
794LLVM_CONFIGTIME
795BINDINGS_TO_BUILD
796ALL_BINDINGS
797OCAML_LIBDIR
798ENABLE_VISIBILITY_INLINES_HIDDEN
799RPATH
800RDYNAMIC
801LIBOBJS
802LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000803ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000804 ac_precious_vars='build_alias
805host_alias
806target_alias
807CC
808CFLAGS
809LDFLAGS
810CPPFLAGS
811CPP
812CXX
813CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000814CCC'
John Criswell0157f502010-03-19 21:31:39 +0000815ac_subdirs_all='projects/llvm-gcc
816projects/test-suite
817projects/llvm-test
818projects/poolalloc
819projects/llvm-poolalloc
820projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000821projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000822projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000824projects/llvm-java
825projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000826projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000827projects/llvm-kernel
828tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000829
830# Initialize some variables set by options.
831ac_init_help=
832ac_init_version=false
833# The variables have the same names as the options, with
834# dashes changed to underlines.
835cache_file=/dev/null
836exec_prefix=NONE
837no_create=
838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
846verbose=
847x_includes=NONE
848x_libraries=NONE
849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000855# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000864includedir='${prefix}/include'
865oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867infodir='${datarootdir}/info'
868htmldir='${docdir}'
869dvidir='${docdir}'
870pdfdir='${docdir}'
871psdir='${docdir}'
872libdir='${exec_prefix}/lib'
873localedir='${datarootdir}/locale'
874mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000875
876ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000877ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000878for ac_option
879do
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000882 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000883 ac_prev=
884 continue
885 fi
886
Reid Spencera773bd52006-08-04 18:18:08 +0000887 case $ac_option in
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *) ac_optarg=yes ;;
890 esac
John Criswell7a73b802003-06-30 21:59:07 +0000891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
Reid Spencera773bd52006-08-04 18:18:08 +0000894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
902
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
917
Reid Spencera773bd52006-08-04 18:18:08 +0000918 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000919 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000921 datadir=$ac_optarg ;;
922
Reid Spencera773bd52006-08-04 18:18:08 +0000923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
John Criswell7a73b802003-06-30 21:59:07 +0000930 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000931 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000932 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935 { (exit 1); exit 1; }; }
936 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000950 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000951 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000952 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954 { (exit 1); exit 1; }; }
955 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
Reid Spencera773bd52006-08-04 18:18:08 +0000983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
John Criswell7a73b802003-06-30 21:59:07 +0000989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
Reid Spencera773bd52006-08-04 18:18:08 +00001013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
John Criswell7a73b802003-06-30 21:59:07 +00001018 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001019 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
Reid Spencera773bd52006-08-04 18:18:08 +00001087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
John Criswell7a73b802003-06-30 21:59:07 +00001097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package| sed 's/-/_/g'`
1153 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001156 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001157 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001158 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid package name: $ac_package" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_package=`echo $ac_package | sed 's/-/_/g'`
1162 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001163
1164 --x)
1165 # Obsolete; use --with-x.
1166 with_x=yes ;;
1167
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1174
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 -*) { echo "$as_me: error: unrecognized option: $ac_option
1183Try \`$0 --help' for more information." >&2
1184 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001193 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001194 export $ac_envvar ;;
1195
1196 *)
1197 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 ;;
1203
1204 esac
1205done
1206
1207if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001209 { echo "$as_me: error: missing argument to $ac_option" >&2
1210 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001211fi
1212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001218do
Reid Spencera773bd52006-08-04 18:18:08 +00001219 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001220 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001223 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001224 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001239 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
Reid Spencera773bd52006-08-04 18:18:08 +00001252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 { echo "$as_me: error: Working directory cannot be determined" >&2
1256 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001258 { echo "$as_me: error: pwd does not report name of working directory" >&2
1259 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001260
1261
John Criswell7a73b802003-06-30 21:59:07 +00001262# Find the source files, if location was not specified.
1263if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001265 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001266 ac_confdir=`$as_dirname -- "$0" ||
1267$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$0" : 'X\(//\)[^/]' \| \
1269 X"$0" : 'X\(//\)$' \| \
1270 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1271echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)[^/].*/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\).*/{
1285 s//\1/
1286 q
1287 }
1288 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001289 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001290 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001291 srcdir=..
1292 fi
1293else
1294 ac_srcdir_defaulted=no
1295fi
Reid Spencera773bd52006-08-04 18:18:08 +00001296if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001298 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001300fi
Reid Spencera773bd52006-08-04 18:18:08 +00001301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001303 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001305 pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001330\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
John Criswell7a73b802003-06-30 21:59:07 +00001350Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001383_ACEOF
1384
1385 cat <<\_ACEOF
1386
1387System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1391_ACEOF
1392fi
1393
1394if test -n "$ac_init_help"; then
1395 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001396 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001397 esac
1398 cat <<\_ACEOF
1399
1400Optional Features:
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001403 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001404 --enable-optimized Compile with optimizations enabled (default is NO)
1405 --enable-profiling Compile with profiling enabled (default is NO)
1406 --enable-assertions Compile with assertion checks enabled (default is
1407 YES)
David Greenea696d242007-06-28 19:36:08 +00001408 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001409 Compile with expensive debug checks enabled (default
1410 is NO)
1411 --enable-debug-runtime Build runtime libs with debug symbols (default is
1412 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001413 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1414 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001415 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001416 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001417 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001418 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001419 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001420 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001421 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001422 --enable-shared Build a shared library and link tools against it
1423 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001424 --enable-timestamps Enable embedding timestamp information in build
1425 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001426 --enable-targets Build specific host targets: all or
1427 target1,target2,... Valid targets are: host, x86,
1428 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001429 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1430 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001431 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1432 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001433 --enable-bindings Build specific language bindings:
1434 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001435 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001436 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001437
1438Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001441 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1442 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001443 --with-llvmgcc Specify location of llvm-gcc driver (default
1444 searches PATH)
1445 --with-llvmgxx Specify location of llvm-g++ driver (default
1446 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001447 --with-clang Specify location of clang compiler (default is
1448 --with-built-clang)
1449 --with-built-clang Use the compiled Clang as the LLVM compiler
1450 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001451 --with-optimize-option Select the compiler options to use for optimized
1452 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001453 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001454 --with-ocaml-libdir Specify install location for ocaml bindings (default
1455 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001456 --with-clang-resource-dir
1457 Relative directory from the Clang binary for
1458 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001459 --with-c-include-dirs Colon separated list of directories clang will
1460 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001461 --with-cxx-include-root Directory with the libstdc++ headers.
1462 --with-cxx-include-arch Architecture of the libstdc++ headers.
1463 --with-cxx-include-32bit-dir
1464 32 bit multilib dir.
1465 --with-cxx-include-64bit-dir
1466 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001467 --with-binutils-include Specify path to binutils/include/ containing
1468 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001469 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001470 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1471 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001472 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001473 --with-oprofile=<prefix>
1474 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001475
1476Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001477 CC C compiler command
1478 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001482 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001483 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001484 CXX C++ compiler command
1485 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487Use these variables to override the choices made by `configure' or to help
1488it to find libraries and programs with nonstandard names/locations.
1489
1490Report bugs to <llvmbugs@cs.uiuc.edu>.
1491_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001492ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001498 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001499 ac_builddir=.
1500
Reid Spencera773bd52006-08-04 18:18:08 +00001501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001505 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001506 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001516
1517case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001518 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001519 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001523 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001530esac
Reid Spencera773bd52006-08-04 18:18:08 +00001531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001532
Reid Spencera773bd52006-08-04 18:18:08 +00001533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001541 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001545 done
1546fi
1547
Reid Spencera773bd52006-08-04 18:18:08 +00001548test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001549if $ac_init_version; then
1550 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001551llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001552generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15552002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001558
John Criswell5a129712010-03-19 21:04:16 +00001559Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001560_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001561 exit
John Criswell7a73b802003-06-30 21:59:07 +00001562fi
Reid Spencera773bd52006-08-04 18:18:08 +00001563cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001564This file contains any messages produced by compilers while
1565running configure, to aid debugging if configure makes a mistake.
1566
Eric Christopherb26697c2010-09-06 18:47:10 +00001567It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001568generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001569
1570 $ $0 $@
1571
1572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001573exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001574{
1575cat <<_ASUNAME
1576## --------- ##
1577## Platform. ##
1578## --------- ##
1579
1580hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584uname -v = `(uname -v) 2>/dev/null || echo unknown`
1585
1586/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1588
1589/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1590/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1591/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001592/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001593/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1594/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1595/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1596
1597_ASUNAME
1598
1599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600for as_dir in $PATH
1601do
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001604 echo "PATH: $as_dir"
1605done
Reid Spencera773bd52006-08-04 18:18:08 +00001606IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001607
1608} >&5
1609
1610cat >&5 <<_ACEOF
1611
1612
1613## ----------- ##
1614## Core tests. ##
1615## ----------- ##
1616
1617_ACEOF
1618
1619
1620# Keep a trace of the command line.
1621# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001622# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001623# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001624# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001625ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001626ac_configure_args0=
1627ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001628ac_must_keep_next=false
1629for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001630do
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 for ac_arg
1632 do
1633 case $ac_arg in
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636 | -silent | --silent | --silen | --sile | --sil)
1637 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001638 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 esac
1641 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001646 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001648 case $ac_arg in
1649 *=* | --config-cache | -C | -disable-* | --disable-* \
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652 | -with-* | --with-* | -without-* | --without-* | --x)
1653 case "$ac_configure_args0 " in
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655 esac
1656 ;;
1657 -* ) ac_must_keep_next=true ;;
1658 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001660 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ;;
1662 esac
1663 done
John Criswell7a73b802003-06-30 21:59:07 +00001664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001665$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001667
1668# When interrupted or exit'd, cleanup temporary files, and complete
1669# config.log. We remove comments because anyway the quotes in there
1670# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001671# WARNING: Use '\'' to represent an apostrophe within the trap.
1672# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001673trap 'exit_status=$?
1674 # Save into config.log some information that might help in debugging.
1675 {
1676 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001677
John Criswell7a73b802003-06-30 21:59:07 +00001678 cat <<\_ASBOX
1679## ---------------- ##
1680## Cache variables. ##
1681## ---------------- ##
1682_ASBOX
1683 echo
1684 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001685(
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687 eval ac_val=\$$ac_var
1688 case $ac_val in #(
1689 *${as_nl}*)
1690 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac
1694 case $ac_var in #(
1695 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001696 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001697 esac ;;
1698 esac
1699 done
John Criswell7a73b802003-06-30 21:59:07 +00001700 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001703 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001704 "s/'\''/'\''\\\\'\'''\''/g;
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001707 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001709 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001710 esac |
1711 sort
1712)
John Criswell7a73b802003-06-30 21:59:07 +00001713 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001714
1715 cat <<\_ASBOX
1716## ----------------- ##
1717## Output variables. ##
1718## ----------------- ##
1719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_vars
1722 do
Reid Spencera773bd52006-08-04 18:18:08 +00001723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 done | sort
1729 echo
1730
1731 if test -n "$ac_subst_files"; then
1732 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001733## ------------------- ##
1734## File substitutions. ##
1735## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_files
1739 do
Reid Spencera773bd52006-08-04 18:18:08 +00001740 eval ac_val=\$$ac_var
1741 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001743 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001744 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 done | sort
1746 echo
1747 fi
1748
John Criswell7a73b802003-06-30 21:59:07 +00001749 if test -s confdefs.h; then
1750 cat <<\_ASBOX
1751## ----------- ##
1752## confdefs.h. ##
1753## ----------- ##
1754_ASBOX
1755 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001756 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001757 echo
1758 fi
1759 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001760 echo "$as_me: caught signal $ac_signal"
1761 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001762 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001763 rm -f core *.core core.conftest.* &&
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001765 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001766' 0
John Criswell7a73b802003-06-30 21:59:07 +00001767for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001769done
1770ac_signal=0
1771
1772# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001773rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001774
1775# Predefined preprocessor variables.
1776
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_NAME "$PACKAGE_NAME"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_VERSION "$PACKAGE_VERSION"
1789_ACEOF
1790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_STRING "$PACKAGE_STRING"
1794_ACEOF
1795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796
John Criswell7a73b802003-06-30 21:59:07 +00001797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1799_ACEOF
1800
1801
1802# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001804if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001806elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 set x "$ac_default_prefix/share/config.site" \
1810 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812shift
1813for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001814do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815 if test -r "$ac_site_file"; then
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001818 sed 's/^/| /' "$ac_site_file" >&5
1819 . "$ac_site_file"
1820 fi
1821done
1822
1823if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001824 # Some versions of bash will fail to source /dev/null (special
1825 # files actually), so we avoid doing that.
1826 if test -f "$cache_file"; then
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001829 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001832 esac
1833 fi
1834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 >$cache_file
1838fi
1839
1840# Check that the precious variables saved in the cache have kept the same
1841# value.
1842ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001843for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001848 case $ac_old_set,$ac_new_set in
1849 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001852 ac_cache_corrupted=: ;;
1853 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001856 ac_cache_corrupted=: ;;
1857 ,);;
1858 *)
1859 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1863echo "$as_me: former value: $ac_old_val" >&2;}
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1865echo "$as_me: current value: $ac_new_val" >&2;}
1866 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001867 fi;;
1868 esac
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1871 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001873 *) ac_arg=$ac_var=$ac_new_val ;;
1874 esac
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 esac
1879 fi
1880done
1881if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
Reid Spencera773bd52006-08-04 18:18:08 +00001912
John Criswell7a73b802003-06-30 21:59:07 +00001913ac_ext=c
1914ac_cpp='$CPP $CPPFLAGS'
1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920
John Criswell5a129712010-03-19 21:04:16 +00001921LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001922
1923
1924
1925
1926
1927
1928
John Criswell7a73b802003-06-30 21:59:07 +00001929ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001930for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 if test -f "$ac_dir/install-sh"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1934 break
1935 elif test -f "$ac_dir/install.sh"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1938 break
1939 elif test -f "$ac_dir/shtool"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1942 break
1943 fi
John Criswell7a73b802003-06-30 21:59:07 +00001944done
1945if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001949fi
Reid Spencera773bd52006-08-04 18:18:08 +00001950
1951# These three variables are undocumented and unsupported,
1952# and are intended to be withdrawn in a future Autoconf release.
1953# They can cause serious problems if a builder's source tree is in a directory
1954# whose full name contains unusual characters.
1955ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958
John Criswell7a73b802003-06-30 21:59:07 +00001959
John Criswell392aaa32003-07-22 19:18:09 +00001960
Reid Spencer2706f8c2004-09-19 23:53:36 +00001961if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001962 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001963 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001966 fi
John Criswell93e1c722003-09-15 17:04:06 +00001967fi
1968
John Criswell0157f502010-03-19 21:31:39 +00001969
1970
1971if test -d ${srcdir}/projects/llvm-gcc ; then
1972 subdirs="$subdirs projects/llvm-gcc"
1973
1974fi
1975
1976if test -d ${srcdir}/projects/test-suite ; then
1977 subdirs="$subdirs projects/test-suite"
1978
1979fi
1980
1981if test -d ${srcdir}/projects/llvm-test ; then
1982 subdirs="$subdirs projects/llvm-test"
1983
1984fi
1985
1986if test -d ${srcdir}/projects/poolalloc ; then
1987 subdirs="$subdirs projects/poolalloc"
1988
1989fi
1990
1991if test -d ${srcdir}/projects/llvm-poolalloc ; then
1992 subdirs="$subdirs projects/llvm-poolalloc"
1993
1994fi
1995
John Criswell33a911a2003-11-25 20:36:46 +00001996for i in `ls ${srcdir}/projects`
1997do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001998 if test -d ${srcdir}/projects/${i} ; then
1999 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002000 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002001 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002002 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002003 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002004 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002005 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002006 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002007;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002008 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002009 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002010 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002011 ;;
John Criswell7def2932010-02-25 22:57:19 +00002012 safecode) subdirs="$subdirs projects/safecode"
2013 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002014 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002015 ;;
John Criswell52c02862010-03-25 13:59:09 +00002016 llvm-gcc) ;;
2017 test-suite) ;;
2018 llvm-test) ;;
2019 poolalloc) ;;
2020 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002021 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002022 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2023echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002024 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002025 esac
John Criswell33a911a2003-11-25 20:36:46 +00002026 fi
2027done
John Criswell559a6c12003-09-30 16:31:48 +00002028
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002029# Check whether --enable-polly was given.
2030if test "${enable_polly+set}" = set; then
2031 enableval=$enable_polly;
2032else
2033 enableval=default
2034fi
2035
2036case "$enableval" in
2037 yes) ENABLE_POLLY=1
2038 ;;
2039 no) ENABLE_POLLY=0
2040 ;;
2041 default) ENABLE_POLLY=1
2042 ;;
2043 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2044echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2045 { (exit 1); exit 1; }; } ;;
2046esac
2047
2048
2049if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2050 LLVM_HAS_POLLY=1
2051
2052 subdirs="$subdirs tools/polly"
2053
2054fi
2055
John Criswell7a73b802003-06-30 21:59:07 +00002056
2057# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002058$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002059 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2060echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2061 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002063{ echo "$as_me:$LINENO: checking build system type" >&5
2064echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2065if test "${ac_cv_build+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002067else
Reid Spencera773bd52006-08-04 18:18:08 +00002068 ac_build_alias=$build_alias
2069test "x$ac_build_alias" = x &&
2070 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2071test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002072 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2073echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2074 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002075ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2077echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002079
2080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2082echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002083case $ac_cv_build in
2084*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002085*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2086echo "$as_me: error: invalid value of canonical build" >&2;}
2087 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002088esac
John Criswell7a73b802003-06-30 21:59:07 +00002089build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002090ac_save_IFS=$IFS; IFS='-'
2091set x $ac_cv_build
2092shift
2093build_cpu=$1
2094build_vendor=$2
2095shift; shift
2096# Remember, the first character of IFS is used to create $*,
2097# except with old shells:
2098build_os=$*
2099IFS=$ac_save_IFS
2100case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002101
2102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002103{ echo "$as_me:$LINENO: checking host system type" >&5
2104echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2105if test "${ac_cv_host+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002107else
Reid Spencera773bd52006-08-04 18:18:08 +00002108 if test "x$host_alias" = x; then
2109 ac_cv_host=$ac_cv_build
2110else
2111 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2113echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2114 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002115fi
John Criswell7a73b802003-06-30 21:59:07 +00002116
2117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002118{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2119echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002120case $ac_cv_host in
2121*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002122*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2123echo "$as_me: error: invalid value of canonical host" >&2;}
2124 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002125esac
John Criswell7a73b802003-06-30 21:59:07 +00002126host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002127ac_save_IFS=$IFS; IFS='-'
2128set x $ac_cv_host
2129shift
2130host_cpu=$1
2131host_vendor=$2
2132shift; shift
2133# Remember, the first character of IFS is used to create $*,
2134# except with old shells:
2135host_os=$*
2136IFS=$ac_save_IFS
2137case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002138
2139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002140{ echo "$as_me:$LINENO: checking target system type" >&5
2141echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2142if test "${ac_cv_target+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002144else
Reid Spencera773bd52006-08-04 18:18:08 +00002145 if test "x$target_alias" = x; then
2146 ac_cv_target=$ac_cv_host
2147else
2148 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002149 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2150echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2151 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002152fi
John Criswell7a73b802003-06-30 21:59:07 +00002153
2154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002155{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2156echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002157case $ac_cv_target in
2158*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2160echo "$as_me: error: invalid value of canonical target" >&2;}
2161 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002162esac
John Criswell7a73b802003-06-30 21:59:07 +00002163target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002164ac_save_IFS=$IFS; IFS='-'
2165set x $ac_cv_target
2166shift
2167target_cpu=$1
2168target_vendor=$2
2169shift; shift
2170# Remember, the first character of IFS is used to create $*,
2171# except with old shells:
2172target_os=$*
2173IFS=$ac_save_IFS
2174case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002175
2176
2177# The aliases save the names the user supplied, while $host etc.
2178# will get canonicalized.
2179test -n "$target_alias" &&
2180 test "$program_prefix$program_suffix$program_transform_name" = \
2181 NONENONEs,x,x, &&
2182 program_prefix=${target_alias}-
2183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002184{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2185echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2186if test "${llvm_cv_os_type+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002188else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002189 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002190 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002193 llvm_cv_os_type="AIX"
2194 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002195 *-*-irix*)
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="IRIX"
2199 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002200 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002203 llvm_cv_os_type="Cygwin"
2204 llvm_cv_platform_type="Unix" ;;
2205 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002206 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002207 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 llvm_cv_os_type="Darwin"
2209 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002210 *-*-minix*)
2211 llvm_cv_link_all_option="-Wl,-all_load"
2212 llvm_cv_no_link_all_option="-Wl,-noall_load"
2213 llvm_cv_os_type="Minix"
2214 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002216 llvm_cv_link_all_option="-Wl,--whole-archive"
2217 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 llvm_cv_os_type="FreeBSD"
2219 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002220 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002223 llvm_cv_os_type="OpenBSD"
2224 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002225 *-*-netbsd*)
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="NetBSD"
2229 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002230 *-*-dragonfly*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="DragonFly"
2234 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002235 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002238 llvm_cv_os_type="HP-UX"
2239 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002240 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 llvm_cv_os_type="Interix"
2244 llvm_cv_platform_type="Unix" ;;
2245 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 llvm_cv_os_type="Linux"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,-z,allextract"
2252 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="SunOS"
2254 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002255 *-*-auroraux*)
2256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2258 llvm_cv_os_type="AuroraUX"
2259 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 llvm_cv_os_type="Win32"
2264 llvm_cv_platform_type="Win32" ;;
2265 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="MingW"
2269 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002270 *-*-haiku*)
2271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2273 llvm_cv_os_type="Haiku"
2274 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002275 *-unknown-eabi*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Freestanding"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-unknown-elf*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002286 llvm_cv_link_all_option=""
2287 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 llvm_cv_os_type="Unknown"
2289 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002290esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2293echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2296echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2297if test "${llvm_cv_target_os_type+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002299else
2300 case $target in
2301 *-*-aix*)
2302 llvm_cv_target_os_type="AIX" ;;
2303 *-*-irix*)
2304 llvm_cv_target_os_type="IRIX" ;;
2305 *-*-cygwin*)
2306 llvm_cv_target_os_type="Cygwin" ;;
2307 *-*-darwin*)
2308 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002309 *-*-minix*)
2310 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002311 *-*-freebsd*)
2312 llvm_cv_target_os_type="FreeBSD" ;;
2313 *-*-openbsd*)
2314 llvm_cv_target_os_type="OpenBSD" ;;
2315 *-*-netbsd*)
2316 llvm_cv_target_os_type="NetBSD" ;;
2317 *-*-dragonfly*)
2318 llvm_cv_target_os_type="DragonFly" ;;
2319 *-*-hpux*)
2320 llvm_cv_target_os_type="HP-UX" ;;
2321 *-*-interix*)
2322 llvm_cv_target_os_type="Interix" ;;
2323 *-*-linux*)
2324 llvm_cv_target_os_type="Linux" ;;
2325 *-*-solaris*)
2326 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002327 *-*-auroraux*)
2328 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002329 *-*-win32*)
2330 llvm_cv_target_os_type="Win32" ;;
2331 *-*-mingw*)
2332 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002333 *-*-haiku*)
2334 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002335 *-unknown-eabi*)
2336 llvm_cv_target_os_type="Freestanding" ;;
2337 *)
2338 llvm_cv_target_os_type="Unknown" ;;
2339esac
2340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2342echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002343
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2346echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2347 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002348fi
2349
Reid Spencer7b3e8512004-12-24 06:29:05 +00002350OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002351
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002352HOST_OS=$llvm_cv_os_type
2353
2354TARGET_OS=$llvm_cv_target_os_type
2355
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356
Reid Spencera773bd52006-08-04 18:18:08 +00002357LINKALL=$llvm_cv_link_all_option
2358
2359NOLINKALL=$llvm_cv_no_link_all_option
2360
2361
Reid Spencer7b3e8512004-12-24 06:29:05 +00002362case $llvm_cv_platform_type in
2363 Unix)
2364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002365cat >>confdefs.h <<\_ACEOF
2366#define LLVM_ON_UNIX 1
2367_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002368
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002369 LLVM_ON_UNIX=1
2370
2371 LLVM_ON_WIN32=0
2372
Reid Spencer7b3e8512004-12-24 06:29:05 +00002373 ;;
2374 Win32)
2375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002376cat >>confdefs.h <<\_ACEOF
2377#define LLVM_ON_WIN32 1
2378_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002379
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002380 LLVM_ON_UNIX=0
2381
2382 LLVM_ON_WIN32=1
2383
Reid Spencer7b3e8512004-12-24 06:29:05 +00002384 ;;
2385esac
2386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002387{ echo "$as_me:$LINENO: checking target architecture" >&5
2388echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2389if test "${llvm_cv_target_arch+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391else
2392 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002393 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002394 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002395 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2396 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002397 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002398 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002399 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002400 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002401 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002402 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002403 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002404 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002405 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002406 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002407esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2410echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002411
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2414echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415fi
John Criswell76595452003-07-01 22:07:39 +00002416
Nick Lewycky83fc4472009-09-29 05:48:51 +00002417# Determine the LLVM native architecture for the target
2418case "$llvm_cv_target_arch" in
2419 x86) LLVM_NATIVE_ARCH="X86" ;;
2420 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2421 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2422esac
2423
2424ARCH=$llvm_cv_target_arch
2425
2426
2427ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428ac_cpp='$CPP $CPPFLAGS'
2429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002432if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2434set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437if test "${ac_cv_prog_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439else
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 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 +00002450 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452 break 2
2453 fi
2454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455done
Reid Spencera773bd52006-08-04 18:18:08 +00002456IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457
2458fi
2459fi
2460CC=$ac_cv_prog_CC
2461if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462 { echo "$as_me:$LINENO: result: $CC" >&5
2463echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467fi
2468
Reid Spencera773bd52006-08-04 18:18:08 +00002469
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470fi
2471if test -z "$ac_cv_prog_CC"; then
2472 ac_ct_CC=$CC
2473 # Extract the first word of "gcc", so it can be a program name with args.
2474set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479else
2480 if test -n "$ac_ct_CC"; then
2481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482else
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 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 +00002490 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002492 break 2
2493 fi
2494done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002495done
Reid Spencera773bd52006-08-04 18:18:08 +00002496IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497
2498fi
2499fi
2500ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002502 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002505 { echo "$as_me:$LINENO: result: no" >&5
2506echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507fi
2508
Reid Spencera773bd52006-08-04 18:18:08 +00002509 if test "x$ac_ct_CC" = x; then
2510 CC=""
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002514{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515whose name does not start with the host triplet. If you think this
2516configuration is useful to you, please write to autoconf@gnu.org." >&5
2517echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518whose name does not start with the host triplet. If you think this
2519configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002520ac_tool_warned=yes ;;
2521esac
2522 CC=$ac_ct_CC
2523 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524else
2525 CC="$ac_cv_prog_CC"
2526fi
2527
2528if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 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 +00002547 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549 break 2
2550 fi
2551done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552done
Reid Spencera773bd52006-08-04 18:18:08 +00002553IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554
2555fi
2556fi
2557CC=$ac_cv_prog_CC
2558if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559 { echo "$as_me:$LINENO: result: $CC" >&5
2560echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002562 { echo "$as_me:$LINENO: result: no" >&5
2563echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564fi
2565
Reid Spencera773bd52006-08-04 18:18:08 +00002566
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568fi
2569if test -z "$CC"; then
2570 # Extract the first word of "cc", so it can be a program name with args.
2571set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579else
2580 ac_prog_rejected=no
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 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 +00002588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2589 ac_prog_rejected=yes
2590 continue
2591 fi
2592 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594 break 2
2595 fi
2596done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002597done
Reid Spencera773bd52006-08-04 18:18:08 +00002598IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599
2600if test $ac_prog_rejected = yes; then
2601 # We found a bogon in the path, so make sure we never use it.
2602 set dummy $ac_cv_prog_CC
2603 shift
2604 if test $# != 0; then
2605 # We chose a different compiler from the bogus one.
2606 # However, it has the same basename, so the bogon will be chosen
2607 # first if we set CC to just the basename; use the full file name.
2608 shift
2609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 fi
2611fi
2612fi
2613fi
2614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616 { echo "$as_me:$LINENO: result: $CC" >&5
2617echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621fi
2622
Reid Spencera773bd52006-08-04 18:18:08 +00002623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624fi
2625if test -z "$CC"; then
2626 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002627 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002628 do
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002635else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 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 +00002646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002648 break 2
2649 fi
2650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002651done
Reid Spencera773bd52006-08-04 18:18:08 +00002652IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002653
2654fi
2655fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656CC=$ac_cv_prog_CC
2657if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002658 { echo "$as_me:$LINENO: result: $CC" >&5
2659echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002660else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002661 { echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002663fi
2664
Reid Spencera773bd52006-08-04 18:18:08 +00002665
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002667 done
2668fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669if test -z "$CC"; then
2670 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002671 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002672do
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002679else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 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 +00002690 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002692 break 2
2693 fi
2694done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695done
Reid Spencera773bd52006-08-04 18:18:08 +00002696IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002697
2698fi
2699fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002700ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705 { echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002707fi
2708
Reid Spencera773bd52006-08-04 18:18:08 +00002709
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002710 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002711done
John Criswell7a73b802003-06-30 21:59:07 +00002712
Reid Spencera773bd52006-08-04 18:18:08 +00002713 if test "x$ac_ct_CC" = x; then
2714 CC=""
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002718{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719whose name does not start with the host triplet. If you think this
2720configuration is useful to you, please write to autoconf@gnu.org." >&5
2721echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722whose name does not start with the host triplet. If you think this
2723configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002724ac_tool_warned=yes ;;
2725esac
2726 CC=$ac_ct_CC
2727 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728fi
2729
John Criswell7a73b802003-06-30 21:59:07 +00002730fi
2731
2732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002733test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2734See \`config.log' for more details." >&5
2735echo "$as_me: error: no acceptable C compiler found in \$PATH
2736See \`config.log' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002738
John Criswell7a73b802003-06-30 21:59:07 +00002739# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740echo "$as_me:$LINENO: checking for C compiler version" >&5
2741ac_compiler=`set X $ac_compile; echo $2`
2742{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002749 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752{ (ac_try="$ac_compiler -v >&5"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -v >&5") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762{ (ac_try="$ac_compiler -V >&5"
2763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compiler -V >&5") 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002773cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h. */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002778/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002779
John Criswell7a73b802003-06-30 21:59:07 +00002780int
2781main ()
2782{
2783
2784 ;
2785 return 0;
2786}
2787_ACEOF
2788ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002789ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002790# Try to create an executable without -o first, disregard a.out.
2791# It will help us diagnose broken compilers, and finding out an intuition
2792# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002793{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2794echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2795ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2796#
2797# List of possible output files, starting from the most likely.
2798# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2799# only as a last resort. b.out is created by i960 compilers.
2800ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2801#
2802# The IRIX 6 linker writes into existing files which may not be
2803# executable, retaining their permissions. Remove them first so a
2804# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002805ac_rmfiles=
2806for ac_file in $ac_files
2807do
2808 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002810 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811 esac
2812done
2813rm -f $ac_rmfiles
2814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002815if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002816case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002821 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002822 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827# in a Makefile. We should not override ac_cv_exeext if it was cached,
2828# so that the user can short-circuit this test for compilers unknown to
2829# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002830for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002831do
2832 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002833 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002835 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002836 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002837 # We found the default executable, but exeext='' is most
2838 # certainly right.
2839 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002840 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002842 then :; else
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 fi
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2849 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002850 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002851 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002852 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002853 esac
2854done
Reid Spencera773bd52006-08-04 18:18:08 +00002855test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
John Criswell7a73b802003-06-30 21:59:07 +00002857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002859sed 's/^/| /' conftest.$ac_ext >&5
2860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002861{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2862See \`config.log' for more details." >&5
2863echo "$as_me: error: C compiler cannot create executables
2864See \`config.log' for more details." >&2;}
2865 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002866fi
John Criswell7a73b802003-06-30 21:59:07 +00002867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002868ac_exeext=$ac_cv_exeext
2869{ echo "$as_me:$LINENO: result: $ac_file" >&5
2870echo "${ECHO_T}$ac_file" >&6; }
2871
2872# Check that the compiler produces executables we can run. If not, either
2873# the compiler is broken, or we cross compile.
2874{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2875echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2876# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2877# If not cross compiling, check that we can run a simple program.
2878if test "$cross_compiling" != yes; then
2879 if { ac_try='./$ac_file'
2880 { (case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883esac
2884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_try") 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 cross_compiling=no
2890 else
2891 if test "$cross_compiling" = maybe; then
2892 cross_compiling=yes
2893 else
2894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2895If you meant to cross compile, use \`--host'.
2896See \`config.log' for more details." >&5
2897echo "$as_me: error: cannot run C compiled programs.
2898If you meant to cross compile, use \`--host'.
2899See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902 fi
2903fi
2904{ echo "$as_me:$LINENO: result: yes" >&5
2905echo "${ECHO_T}yes" >&6; }
2906
2907rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002908ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002909# Check that the compiler produces executables we can run. If not, either
2910# the compiler is broken, or we cross compile.
2911{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2913{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914echo "${ECHO_T}$cross_compiling" >&6; }
2915
2916{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2918if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002919case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002924 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002925 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2930# work properly (i.e., refer to `conftest.exe'), while it won't with
2931# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002932for ac_file in conftest.exe conftest conftest.*; do
2933 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002934 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002937 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002938 * ) break;;
2939 esac
2940done
2941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943See \`config.log' for more details." >&5
2944echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002948
2949rm -f conftest$ac_cv_exeext
2950{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002952
2953rm -f conftest.$ac_ext
2954EXEEXT=$ac_cv_exeext
2955ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002956{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2958if test "${ac_cv_objext+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002961 cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002967
John Criswell7a73b802003-06-30 21:59:07 +00002968int
2969main ()
2970{
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002977if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002983 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002984 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002987 for ac_file in conftest.o conftest.obj conftest.*; do
2988 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002989 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2992 break;;
2993 esac
2994done
2995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002997sed 's/^/| /' conftest.$ac_ext >&5
2998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002999{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3000See \`config.log' for more details." >&5
3001echo "$as_me: error: cannot compute suffix of object files: cannot compile
3002See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003005
John Criswell7a73b802003-06-30 21:59:07 +00003006rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003008{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3009echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003010OBJEXT=$ac_cv_objext
3011ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003012{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3013echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3014if test "${ac_cv_c_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003016else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003017 cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003023
John Criswell7a73b802003-06-30 21:59:07 +00003024int
3025main ()
3026{
3027#ifndef __GNUC__
3028 choke me
3029#endif
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003035rm -f conftest.$ac_objext
3036if { (ac_try="$ac_compile"
3037case "(($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_compile") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
3064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003069 ac_compiler_gnu=yes
3070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003071 echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
3074 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003076
Reid Spencera773bd52006-08-04 18:18:08 +00003077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003078ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003079
3080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003081{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3082echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3083GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003084ac_test_CFLAGS=${CFLAGS+set}
3085ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003086{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3087echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3088if test "${ac_cv_prog_cc_g+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003090else
Reid Spencera773bd52006-08-04 18:18:08 +00003091 ac_save_c_werror_flag=$ac_c_werror_flag
3092 ac_c_werror_flag=yes
3093 ac_cv_prog_cc_g=no
3094 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003095 cat >conftest.$ac_ext <<_ACEOF
3096/* confdefs.h. */
3097_ACEOF
3098cat confdefs.h >>conftest.$ac_ext
3099cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003101
John Criswell7a73b802003-06-30 21:59:07 +00003102int
3103main ()
3104{
3105
3106 ;
3107 return 0;
3108}
3109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003110rm -f conftest.$ac_objext
3111if { (ac_try="$ac_compile"
3112case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } &&
3124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3125 { (case "(($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_try") 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003144 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003146 echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 CFLAGS=""
3150 cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003155/* end confdefs.h. */
3156
3157int
3158main ()
3159{
3160
3161 ;
3162 return 0;
3163}
3164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003165rm -f conftest.$ac_objext
3166if { (ac_try="$ac_compile"
3167case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183esac
3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
3194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 :
Torok Edwin871384f2010-01-26 08:50:50 +00003200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003201 echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003205 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221rm -f conftest.$ac_objext
3222if { (ac_try="$ac_compile"
3223case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compile") 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3236 { (case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_try") 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_try") 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003255 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003256else
3257 echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260
John Criswell7a73b802003-06-30 21:59:07 +00003261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003262
Reid Spencera773bd52006-08-04 18:18:08 +00003263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003265
Reid Spencera773bd52006-08-04 18:18:08 +00003266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003268
Reid Spencera773bd52006-08-04 18:18:08 +00003269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3273echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003274if test "$ac_test_CFLAGS" = set; then
3275 CFLAGS=$ac_save_CFLAGS
3276elif test $ac_cv_prog_cc_g = yes; then
3277 if test "$GCC" = yes; then
3278 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003279 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003281 fi
3282else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283 if test "$GCC" = yes; then
3284 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003285 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003287 fi
3288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003289{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3290echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3291if test "${ac_cv_prog_cc_c89+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293else
Reid Spencera773bd52006-08-04 18:18:08 +00003294 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003295ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003296cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301/* end confdefs.h. */
3302#include <stdarg.h>
3303#include <stdio.h>
3304#include <sys/types.h>
3305#include <sys/stat.h>
3306/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3307struct buf { int x; };
3308FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309static char *e (p, i)
3310 char **p;
3311 int i;
3312{
3313 return p[i];
3314}
3315static char *f (char * (*g) (char **, int), char **p, ...)
3316{
3317 char *s;
3318 va_list v;
3319 va_start (v,p);
3320 s = g (p, va_arg (v,int));
3321 va_end (v);
3322 return s;
3323}
3324
3325/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3326 function prototypes and stuff, but not '\xHH' hex character constants.
3327 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003328 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3330 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003331 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3333
Reid Spencera773bd52006-08-04 18:18:08 +00003334/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3335 inside strings and character constants. */
3336#define FOO(x) 'x'
3337int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3338
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339int test (int i, double x);
3340struct s1 {int (*f) (int a);};
3341struct s2 {int (*f) (double a);};
3342int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343int argc;
3344char **argv;
3345int
3346main ()
3347{
3348return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 ;
3350 return 0;
3351}
3352_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003353for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355do
3356 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357 rm -f conftest.$ac_objext
3358if { (ac_try="$ac_compile"
3359case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362esac
3363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_compile") 2>conftest.er1
3365 ac_status=$?
3366 grep -v '^ *+' conftest.er1 >conftest.err
3367 rm -f conftest.er1
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3372 { (case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_try") 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003391 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398
Reid Spencera773bd52006-08-04 18:18:08 +00003399rm -f core conftest.err conftest.$ac_objext
3400 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401done
Reid Spencera773bd52006-08-04 18:18:08 +00003402rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003403CC=$ac_save_CC
3404
3405fi
Reid Spencera773bd52006-08-04 18:18:08 +00003406# AC_CACHE_VAL
3407case "x$ac_cv_prog_cc_c89" in
3408 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003409 { echo "$as_me:$LINENO: result: none needed" >&5
3410echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003411 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003412 { echo "$as_me:$LINENO: result: unsupported" >&5
3413echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003415 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3417echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418esac
3419
John Criswell0c38eaf2003-09-10 15:17:25 +00003420
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
3427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003433{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3434echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435# On Suns, sometimes $CPP names a directory.
3436if test -n "$CPP" && test -d "$CPP"; then
3437 CPP=
3438fi
3439if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440 if test "${ac_cv_prog_CPP+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442else
3443 # Double quotes because CPP needs to be expanded
3444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3445 do
3446 ac_preproc_ok=false
3447for ac_c_preproc_warn_flag in '' yes
3448do
3449 # Use a header file that comes with gcc, so configuring glibc
3450 # with a fresh cross-compiler works.
3451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452 # <limits.h> exists even on freestanding compilers.
3453 # On the NeXT, cc -E runs the code through the compiler's parser,
3454 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003455 cat >conftest.$ac_ext <<_ACEOF
3456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460/* end confdefs.h. */
3461#ifdef __STDC__
3462# include <limits.h>
3463#else
3464# include <assert.h>
3465#endif
3466 Syntax error
3467_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003468if { (ac_try="$ac_cpp conftest.$ac_ext"
3469case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472esac
3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null; then
3481 if test -s conftest.err; then
3482 ac_cpp_err=$ac_c_preproc_warn_flag
3483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3484 else
3485 ac_cpp_err=
3486 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003488 ac_cpp_err=yes
3489fi
3490if test -z "$ac_cpp_err"; then
3491 :
3492else
3493 echo "$as_me: failed program was:" >&5
3494sed 's/^/| /' conftest.$ac_ext >&5
3495
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496 # Broken: fails on valid input.
3497continue
3498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003499
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003500rm -f conftest.err conftest.$ac_ext
3501
Reid Spencera773bd52006-08-04 18:18:08 +00003502 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003504 cat >conftest.$ac_ext <<_ACEOF
3505/* confdefs.h. */
3506_ACEOF
3507cat confdefs.h >>conftest.$ac_ext
3508cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003509/* end confdefs.h. */
3510#include <ac_nonexistent.h>
3511_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003512if { (ac_try="$ac_cpp conftest.$ac_ext"
3513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3528 else
3529 ac_cpp_err=
3530 fi
3531else
3532 ac_cpp_err=yes
3533fi
3534if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003535 # Broken: success on invalid input.
3536continue
3537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003538 echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541 # Passes both tests.
3542ac_preproc_ok=:
3543break
3544fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003546rm -f conftest.err conftest.$ac_ext
3547
3548done
3549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003551if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003552 break
3553fi
3554
3555 done
3556 ac_cv_prog_CPP=$CPP
3557
3558fi
3559 CPP=$ac_cv_prog_CPP
3560else
3561 ac_cv_prog_CPP=$CPP
3562fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003563{ echo "$as_me:$LINENO: result: $CPP" >&5
3564echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003565ac_preproc_ok=false
3566for ac_c_preproc_warn_flag in '' yes
3567do
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003574 cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h. */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579/* end confdefs.h. */
3580#ifdef __STDC__
3581# include <limits.h>
3582#else
3583# include <assert.h>
3584#endif
3585 Syntax error
3586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003587if { (ac_try="$ac_cpp conftest.$ac_ext"
3588case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591esac
3592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594 ac_status=$?
3595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } >/dev/null; then
3600 if test -s conftest.err; then
3601 ac_cpp_err=$ac_c_preproc_warn_flag
3602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3603 else
3604 ac_cpp_err=
3605 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003607 ac_cpp_err=yes
3608fi
3609if test -z "$ac_cpp_err"; then
3610 :
3611else
3612 echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615 # Broken: fails on valid input.
3616continue
3617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003618
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619rm -f conftest.err conftest.$ac_ext
3620
Reid Spencera773bd52006-08-04 18:18:08 +00003621 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003623 cat >conftest.$ac_ext <<_ACEOF
3624/* confdefs.h. */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003628/* end confdefs.h. */
3629#include <ac_nonexistent.h>
3630_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003631if { (ac_try="$ac_cpp conftest.$ac_ext"
3632case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635esac
3636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev/null; then
3644 if test -s conftest.err; then
3645 ac_cpp_err=$ac_c_preproc_warn_flag
3646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3647 else
3648 ac_cpp_err=
3649 fi
3650else
3651 ac_cpp_err=yes
3652fi
3653if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003654 # Broken: success on invalid input.
3655continue
3656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657 echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003660 # Passes both tests.
3661ac_preproc_ok=:
3662break
3663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003665rm -f conftest.err conftest.$ac_ext
3666
3667done
3668# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3669rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003670if $ac_preproc_ok; then
3671 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003673 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3674See \`config.log' for more details." >&5
3675echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3676See \`config.log' for more details." >&2;}
3677 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003678fi
3679
John Criswell7a73b802003-06-30 21:59:07 +00003680ac_ext=c
3681ac_cpp='$CPP $CPPFLAGS'
3682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
John Criswell7a73b802003-06-30 21:59:07 +00003686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003687{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3688echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3689if test "${ac_cv_path_GREP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003692 # Extract the first word of "grep ggrep" to use in msg output
3693if test -z "$GREP"; then
3694set dummy grep ggrep; ac_prog_name=$2
3695if test "${ac_cv_path_GREP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
Reid Spencera773bd52006-08-04 18:18:08 +00003698 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699# Loop through the user's path and test for each of PROGNAME-LIST
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003701for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003705 for ac_prog in grep ggrep; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3708 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3709 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003710 # Check for GNU $ac_path_GREP
3711case `"$ac_path_GREP" --version 2>&1` in
3712*GNU*)
3713 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3714*)
3715 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003716 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003717 while :
3718 do
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003722 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003723 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003726 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_GREP="$ac_path_GREP"
3729 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003730 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3733 done
3734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735esac
3736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003737
3738 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003739 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003740done
3741
3742done
Reid Spencera773bd52006-08-04 18:18:08 +00003743IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003744
3745
3746fi
3747
3748GREP="$ac_cv_path_GREP"
3749if test -z "$GREP"; then
3750 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752 { (exit 1); exit 1; }; }
3753fi
3754
Reid Spencera773bd52006-08-04 18:18:08 +00003755else
3756 ac_cv_path_GREP=$GREP
3757fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003759
Reid Spencera773bd52006-08-04 18:18:08 +00003760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003761{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3762echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003763 GREP="$ac_cv_path_GREP"
3764
3765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766{ echo "$as_me:$LINENO: checking for egrep" >&5
3767echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3768if test "${ac_cv_path_EGREP+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003770else
3771 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3772 then ac_cv_path_EGREP="$GREP -E"
3773 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003774 # Extract the first word of "egrep" to use in msg output
3775if test -z "$EGREP"; then
3776set dummy egrep; ac_prog_name=$2
3777if test "${ac_cv_path_EGREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
Reid Spencera773bd52006-08-04 18:18:08 +00003780 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781# Loop through the user's path and test for each of PROGNAME-LIST
3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003783for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003787 for ac_prog in egrep; do
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3790 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3791 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003792 # Check for GNU $ac_path_EGREP
3793case `"$ac_path_EGREP" --version 2>&1` in
3794*GNU*)
3795 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3796*)
3797 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003798 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003799 while :
3800 do
3801 cat "conftest.in" "conftest.in" >"conftest.tmp"
3802 mv "conftest.tmp" "conftest.in"
3803 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003804 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003805 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003808 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3809 # Best one so far, save it but keep looking for a better one
3810 ac_cv_path_EGREP="$ac_path_EGREP"
3811 ac_path_EGREP_max=$ac_count
3812 fi
3813 # 10*(2^10) chars as input seems more than enough
3814 test $ac_count -gt 10 && break
3815 done
3816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817esac
3818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003819
3820 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003821 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003822done
3823
3824done
Reid Spencera773bd52006-08-04 18:18:08 +00003825IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003826
3827
3828fi
3829
3830EGREP="$ac_cv_path_EGREP"
3831if test -z "$EGREP"; then
3832 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3834 { (exit 1); exit 1; }; }
3835fi
3836
Reid Spencera773bd52006-08-04 18:18:08 +00003837else
3838 ac_cv_path_EGREP=$EGREP
3839fi
3840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003841
Reid Spencera773bd52006-08-04 18:18:08 +00003842 fi
3843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003844{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3845echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003846 EGREP="$ac_cv_path_EGREP"
3847
3848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003849{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3850echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3851if test "${ac_cv_header_stdc+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003854 cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h. */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003860#include <stdlib.h>
3861#include <stdarg.h>
3862#include <string.h>
3863#include <float.h>
3864
John Criswell0c38eaf2003-09-10 15:17:25 +00003865int
3866main ()
3867{
3868
3869 ;
3870 return 0;
3871}
John Criswell7a73b802003-06-30 21:59:07 +00003872_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003873rm -f conftest.$ac_objext
3874if { (ac_try="$ac_compile"
3875case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
3879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compile") 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3888 { (case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891esac
3892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_try") 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; } &&
3897 { ac_try='test -s conftest.$ac_objext'
3898 { (case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901esac
3902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903 (eval "$ac_try") 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003907 ac_cv_header_stdc=yes
3908else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003909 echo "$as_me: failed program was:" >&5
3910sed 's/^/| /' conftest.$ac_ext >&5
3911
3912 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003913fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003914
Reid Spencera773bd52006-08-04 18:18:08 +00003915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003916
3917if test $ac_cv_header_stdc = yes; then
3918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003919 cat >conftest.$ac_ext <<_ACEOF
3920/* confdefs.h. */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003925#include <string.h>
3926
3927_ACEOF
3928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003929 $EGREP "memchr" >/dev/null 2>&1; then
3930 :
John Criswell7a73b802003-06-30 21:59:07 +00003931else
3932 ac_cv_header_stdc=no
3933fi
3934rm -f conftest*
3935
3936fi
3937
3938if test $ac_cv_header_stdc = yes; then
3939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003940 cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003946#include <stdlib.h>
3947
3948_ACEOF
3949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003950 $EGREP "free" >/dev/null 2>&1; then
3951 :
John Criswell7a73b802003-06-30 21:59:07 +00003952else
3953 ac_cv_header_stdc=no
3954fi
3955rm -f conftest*
3956
3957fi
3958
3959if test $ac_cv_header_stdc = yes; then
3960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003962 :
3963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h. */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003970#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003971#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003972#if ((' ' & 0x0FF) == 0x020)
3973# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3974# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3975#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003976# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003977 (('a' <= (c) && (c) <= 'i') \
3978 || ('j' <= (c) && (c) <= 'r') \
3979 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003980# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3981#endif
3982
3983#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3984int
3985main ()
3986{
3987 int i;
3988 for (i = 0; i < 256; i++)
3989 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003990 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003991 return 2;
3992 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003993}
3994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995rm -f conftest$ac_exeext
3996if { (ac_try="$ac_link"
3997case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000esac
4001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_link") 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4006 { (case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009esac
4010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_try") 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 :
John Criswell7a73b802003-06-30 21:59:07 +00004016else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004017 echo "$as_me: program exited with status $ac_status" >&5
4018echo "$as_me: failed program was:" >&5
4019sed 's/^/| /' conftest.$ac_ext >&5
4020
4021( exit $ac_status )
4022ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024rm -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 +00004025fi
4026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027
John Criswell7a73b802003-06-30 21:59:07 +00004028fi
4029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004030{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4031echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004032if test $ac_cv_header_stdc = yes; then
4033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034cat >>confdefs.h <<\_ACEOF
4035#define STDC_HEADERS 1
4036_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004037
4038fi
4039
Reid Spencera773bd52006-08-04 18:18:08 +00004040# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004041
4042
4043
4044
4045
4046
4047
4048
4049
Reid Spencera773bd52006-08-04 18:18:08 +00004050for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4051 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052do
4053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059 cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h. */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h. */
4065$ac_includes_default
4066
4067#include <$ac_header>
4068_ACEOF
4069rm -f conftest.$ac_objext
4070if { (ac_try="$ac_compile"
4071case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074esac
4075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087esac
4088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 eval "$as_ac_Header=yes"
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 eval "$as_ac_Header=no"
4109fi
4110
4111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112fi
4113ac_res=`eval echo '${'$as_ac_Header'}'`
4114 { echo "$as_me:$LINENO: result: $ac_res" >&5
4115echo "${ECHO_T}$ac_res" >&6; }
4116if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004117 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004119_ACEOF
4120
4121fi
4122
4123done
4124
4125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004126{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4127echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4128if test "${ac_cv_c_bigendian+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004131 # See if sys/param.h defines the BYTE_ORDER macro.
4132cat >conftest.$ac_ext <<_ACEOF
4133/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004134_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004137/* end confdefs.h. */
4138#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004139#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004140
4141int
4142main ()
4143{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4145 bogus endian macros
4146#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004147
4148 ;
4149 return 0;
4150}
4151_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152rm -f conftest.$ac_objext
4153if { (ac_try="$ac_compile"
4154case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157esac
4158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170esac
4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_try") 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180esac
4181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_try") 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004186 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004187cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004192/* end confdefs.h. */
4193#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004195
4196int
4197main ()
4198{
4199#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004200 not big endian
4201#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004202
4203 ;
4204 return 0;
4205}
4206_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004207rm -f conftest.$ac_objext
4208if { (ac_try="$ac_compile"
4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235esac
4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_try") 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004241 ac_cv_c_bigendian=yes
4242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004243 echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004246 ac_cv_c_bigendian=no
4247fi
4248
4249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250else
4251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 # It does not; compile a test program.
4255if test "$cross_compiling" = yes; then
4256 # try to guess the endianness by grepping values into an object file
4257 ac_cv_c_bigendian=unknown
4258 cat >conftest.$ac_ext <<_ACEOF
4259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
4264short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4265short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4266void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4267short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4268short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4269void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004270int
4271main ()
4272{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004274 ;
4275 return 0;
4276}
4277_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004278rm -f conftest.$ac_objext
4279if { (ac_try="$ac_compile"
4280case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_compile") 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4293 { (case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
4297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306esac
4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004313 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314fi
4315if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4316 if test "$ac_cv_c_bigendian" = unknown; then
4317 ac_cv_c_bigendian=no
4318 else
4319 # finding both strings is unlikely to happen, but who knows?
4320 ac_cv_c_bigendian=unknown
4321 fi
4322fi
Reid Spencera773bd52006-08-04 18:18:08 +00004323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004324 echo "$as_me: failed program was:" >&5
4325sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004327
Torok Edwin871384f2010-01-26 08:50:50 +00004328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004329
Reid Spencera773bd52006-08-04 18:18:08 +00004330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004332 cat >conftest.$ac_ext <<_ACEOF
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004337/* end confdefs.h. */
4338$ac_includes_default
4339int
4340main ()
4341{
4342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343 /* Are we little or big endian? From Harbison&Steele. */
4344 union
4345 {
4346 long int l;
4347 char c[sizeof (long int)];
4348 } u;
4349 u.l = 1;
4350 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004351
4352 ;
4353 return 0;
4354}
4355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356rm -f conftest$ac_exeext
4357if { (ac_try="$ac_link"
4358case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361esac
4362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_link") 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4367 { (case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004376 ac_cv_c_bigendian=no
4377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004378 echo "$as_me: program exited with status $ac_status" >&5
4379echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382( exit $ac_status )
4383ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385rm -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 +00004386fi
4387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004388
Reid Spencera773bd52006-08-04 18:18:08 +00004389fi
4390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392fi
4393{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4394echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4395case $ac_cv_c_bigendian in
4396 yes)
4397 ENDIAN=big
4398 ;;
4399 no)
4400 ENDIAN=little
4401 ;;
4402 *)
4403 { { echo "$as_me:$LINENO: error: unknown endianness
4404presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4405echo "$as_me: error: unknown endianness
4406presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4407 { (exit 1); exit 1; }; } ;;
4408esac
Reid Spencera773bd52006-08-04 18:18:08 +00004409
4410
4411if test "$cross_compiling" = yes; then
4412 LLVM_CROSS_COMPILING=1
4413
4414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4416echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4417if test "${ac_cv_build_exeext+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004419else
4420 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4421 ac_cv_build_exeext=.exe
4422else
4423 ac_build_prefix=${build_alias}-
4424
4425 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4426set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004431else
4432 if test -n "$BUILD_CC"; then
4433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4434else
4435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436for as_dir in $PATH
4437do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 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 +00004442 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004444 break 2
4445 fi
4446done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447done
Reid Spencera773bd52006-08-04 18:18:08 +00004448IFS=$as_save_IFS
4449
4450fi
4451fi
4452BUILD_CC=$ac_cv_prog_BUILD_CC
4453if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457 { echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004459fi
4460
4461
4462 if test -z "$BUILD_CC"; then
4463 # Extract the first word of "gcc", so it can be a program name with args.
4464set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004469else
4470 if test -n "$BUILD_CC"; then
4471 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 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 +00004480 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004482 break 2
4483 fi
4484done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004485done
Reid Spencera773bd52006-08-04 18:18:08 +00004486IFS=$as_save_IFS
4487
4488fi
4489fi
4490BUILD_CC=$ac_cv_prog_BUILD_CC
4491if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004492 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4493echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004495 { echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004497fi
4498
4499
4500 if test -z "$BUILD_CC"; then
4501 # Extract the first word of "cc", so it can be a program name with args.
4502set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004507else
4508 if test -n "$BUILD_CC"; then
4509 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4510else
4511 ac_prog_rejected=no
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 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 +00004519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4520 ac_prog_rejected=yes
4521 continue
4522 fi
4523 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004525 break 2
4526 fi
4527done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004528done
Reid Spencera773bd52006-08-04 18:18:08 +00004529IFS=$as_save_IFS
4530
4531if test $ac_prog_rejected = yes; then
4532 # We found a bogon in the path, so make sure we never use it.
4533 set dummy $ac_cv_prog_BUILD_CC
4534 shift
4535 if test $# != 0; then
4536 # We chose a different compiler from the bogus one.
4537 # However, it has the same basename, so the bogon will be chosen
4538 # first if we set BUILD_CC to just the basename; use the full file name.
4539 shift
4540 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4541 fi
4542fi
4543fi
4544fi
4545BUILD_CC=$ac_cv_prog_BUILD_CC
4546if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004547 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4548echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550 { echo "$as_me:$LINENO: result: no" >&5
4551echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004552fi
4553
4554
4555 fi
4556 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4558echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4559 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004560 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4561 rm -f conftest*
4562 echo 'int main () { return 0; }' > conftest.$ac_ext
4563 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004565 (eval $ac_build_link) 2>&5
4566 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004569 for file in conftest.*; do
4570 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004571 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004572 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4573 esac
4574 done
4575 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4577echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4578 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004579 fi
4580 rm -f conftest*
4581 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4582fi
4583fi
4584
4585BUILD_EXEEXT=""
4586test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4588echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004589ac_build_exeext=$BUILD_EXEEXT
4590
Jim Grosbach673612e2008-10-02 22:56:44 +00004591 ac_build_prefix=${build_alias}-
4592 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4593set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004598else
4599 if test -n "$BUILD_CXX"; then
4600 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 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 +00004609 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004611 break 2
4612 fi
4613done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614done
Jim Grosbach673612e2008-10-02 22:56:44 +00004615IFS=$as_save_IFS
4616
4617fi
4618fi
4619BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004624 { echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004626fi
4627
4628
4629 if test -z "$BUILD_CXX"; then
4630 # Extract the first word of "g++", so it can be a program name with args.
4631set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004636else
4637 if test -n "$BUILD_CXX"; then
4638 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639else
4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 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 +00004647 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004649 break 2
4650 fi
4651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652done
Jim Grosbach673612e2008-10-02 22:56:44 +00004653IFS=$as_save_IFS
4654
4655fi
4656fi
4657BUILD_CXX=$ac_cv_prog_BUILD_CXX
4658if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4660echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004662 { echo "$as_me:$LINENO: result: no" >&5
4663echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004664fi
4665
4666
4667 if test -z "$BUILD_CXX"; then
4668 # Extract the first word of "c++", so it can be a program name with args.
4669set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004674else
4675 if test -n "$BUILD_CXX"; then
4676 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4677else
4678 ac_prog_rejected=no
4679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH
4681do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 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 +00004686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4687 ac_prog_rejected=yes
4688 continue
4689 fi
4690 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004692 break 2
4693 fi
4694done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695done
Jim Grosbach673612e2008-10-02 22:56:44 +00004696IFS=$as_save_IFS
4697
4698if test $ac_prog_rejected = yes; then
4699 # We found a bogon in the path, so make sure we never use it.
4700 set dummy $ac_cv_prog_BUILD_CXX
4701 shift
4702 if test $# != 0; then
4703 # We chose a different compiler from the bogus one.
4704 # However, it has the same basename, so the bogon will be chosen
4705 # first if we set BUILD_CXX to just the basename; use the full file name.
4706 shift
4707 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4708 fi
4709fi
4710fi
4711fi
4712BUILD_CXX=$ac_cv_prog_BUILD_CXX
4713if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4715echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 { echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004719fi
4720
4721
4722 fi
4723 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004724else
4725 LLVM_CROSS_COMPILING=0
4726
4727fi
4728
Dan Gohman56fb5f92010-08-04 16:25:01 +00004729if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004730 cvsbuild="yes"
4731 optimize="no"
4732 CVSBUILD=CVSBUILD=1
4733
4734else
4735 cvsbuild="no"
4736 optimize="yes"
4737fi
4738
4739
4740# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004741if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004742 enableval=$enable_optimized;
4743else
4744 enableval=$optimize
4745fi
4746
4747if test ${enableval} = "no" ; then
4748 ENABLE_OPTIMIZED=
4749
4750else
4751 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4752
4753fi
4754
David Greene2a5a12c2009-04-17 14:50:39 +00004755# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004756if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004757 enableval=$enable_profiling;
4758else
4759 enableval="no"
4760fi
4761
4762if test ${enableval} = "no" ; then
4763 ENABLE_PROFILING=
4764
4765else
4766 ENABLE_PROFILING=ENABLE_PROFILING=1
4767
4768fi
4769
Reid Spencera773bd52006-08-04 18:18:08 +00004770# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004771if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004772 enableval=$enable_assertions;
4773else
4774 enableval="yes"
4775fi
4776
4777if test ${enableval} = "yes" ; then
4778 DISABLE_ASSERTIONS=
4779
4780else
4781 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4782
4783fi
4784
David Greenea696d242007-06-28 19:36:08 +00004785# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004786if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004787 enableval=$enable_expensive_checks;
4788else
4789 enableval="no"
4790fi
4791
4792if test ${enableval} = "yes" ; then
4793 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4794
4795 EXPENSIVE_CHECKS=yes
4796
4797else
4798 ENABLE_EXPENSIVE_CHECKS=
4799
4800 EXPENSIVE_CHECKS=no
4801
4802fi
4803
Reid Spencer8b2e1412006-11-17 03:32:33 +00004804# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004805if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004806 enableval=$enable_debug_runtime;
4807else
4808 enableval=no
4809fi
4810
4811if test ${enableval} = "no" ; then
4812 DEBUG_RUNTIME=
4813
4814else
4815 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4816
4817fi
4818
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004819# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004820if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004821 enableval=$enable_debug_symbols;
4822else
4823 enableval=no
4824fi
4825
4826if test ${enableval} = "no" ; then
4827 DEBUG_SYMBOLS=
4828
4829else
4830 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4831
4832fi
4833
Reid Spencera773bd52006-08-04 18:18:08 +00004834# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004836 enableval=$enable_jit;
4837else
4838 enableval=default
4839fi
4840
4841if test ${enableval} = "no"
4842then
4843 JIT=
4844
4845else
4846 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004847 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004848 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004849 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004850 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004851 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004852 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004853 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004854 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004855 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004856 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004857 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004858 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004859 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004860 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004861 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004862 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004863 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004864 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004865 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004866 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004867 Blackfin) TARGET_HAS_JIT=0
4868 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004869 MBlaze) TARGET_HAS_JIT=0
4870 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004871 PTX) TARGET_HAS_JIT=0
4872 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004873 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004874 ;;
4875 esac
4876fi
4877
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004878# Check whether --enable-docs was given.
4879if test "${enable_docs+set}" = set; then
4880 enableval=$enable_docs;
4881else
4882 enableval=default
4883fi
4884
4885case "$enableval" in
4886 yes) ENABLE_DOCS=1
4887 ;;
4888 no) ENABLE_DOCS=0
4889 ;;
4890 default) ENABLE_DOCS=1
4891 ;;
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4893echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4895esac
4896
Reid Spencera773bd52006-08-04 18:18:08 +00004897# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004898if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004899 enableval=$enable_doxygen;
4900else
4901 enableval=default
4902fi
4903
4904case "$enableval" in
4905 yes) ENABLE_DOXYGEN=1
4906 ;;
4907 no) ENABLE_DOXYGEN=0
4908 ;;
4909 default) ENABLE_DOXYGEN=0
4910 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004911 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4912echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4913 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004914esac
4915
4916# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004917if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004918 enableval=$enable_threads;
4919else
Reid Spencer65c5d752006-11-05 17:08:18 +00004920 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004921fi
4922
4923case "$enableval" in
4924 yes) ENABLE_THREADS=1
4925 ;;
4926 no) ENABLE_THREADS=0
4927 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004928 default) ENABLE_THREADS=1
4929 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004930 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4931echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4932 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004933esac
4934
Owen Andersona8603702009-05-19 22:18:56 +00004935cat >>confdefs.h <<_ACEOF
4936#define ENABLE_THREADS $ENABLE_THREADS
4937_ACEOF
4938
4939
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004940# Check whether --enable-pthreads was given.
4941if test "${enable_pthreads+set}" = set; then
4942 enableval=$enable_pthreads;
4943else
4944 enableval=default
4945fi
4946
4947case "$enableval" in
4948 yes) ENABLE_PTHREADS=1
4949 ;;
4950 no) ENABLE_PTHREADS=0
4951 ;;
4952 default) ENABLE_PTHREADS=1
4953 ;;
4954 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4955echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4956 { (exit 1); exit 1; }; } ;;
4957esac
4958
Reid Spencer89b0d992006-12-16 22:07:52 +00004959# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004960if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004961 enableval=$enable_pic;
4962else
4963 enableval=default
4964fi
4965
4966case "$enableval" in
4967 yes) ENABLE_PIC=1
4968 ;;
4969 no) ENABLE_PIC=0
4970 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004971 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004972 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4974echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4975 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004976esac
4977
4978cat >>confdefs.h <<_ACEOF
4979#define ENABLE_PIC $ENABLE_PIC
4980_ACEOF
4981
4982
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004983# Check whether --enable-shared was given.
4984if test "${enable_shared+set}" = set; then
4985 enableval=$enable_shared;
4986else
4987 enableval=default
4988fi
4989
4990case "$enableval" in
4991 yes) ENABLE_SHARED=1
4992 ;;
4993 no) ENABLE_SHARED=0
4994 ;;
4995 default) ENABLE_SHARED=0
4996 ;;
4997 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4998echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000esac
5001
Daniel Dunbardd464df2010-05-10 20:11:56 +00005002# Check whether --enable-timestamps was given.
5003if test "${enable_timestamps+set}" = set; then
5004 enableval=$enable_timestamps;
5005else
5006 enableval=default
5007fi
5008
5009case "$enableval" in
5010 yes) ENABLE_TIMESTAMPS=1
5011 ;;
5012 no) ENABLE_TIMESTAMPS=0
5013 ;;
5014 default) ENABLE_TIMESTAMPS=1
5015 ;;
5016 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5017echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5018 { (exit 1); exit 1; }; } ;;
5019esac
5020
5021cat >>confdefs.h <<_ACEOF
5022#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5023_ACEOF
5024
5025
Reid Spencera773bd52006-08-04 18:18:08 +00005026TARGETS_TO_BUILD=""
5027# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005028if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005029 enableval=$enable_targets;
5030else
5031 enableval=all
5032fi
5033
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005034if test "$enableval" = host-only ; then
5035 enableval=host
5036fi
Reid Spencera773bd52006-08-04 18:18:08 +00005037case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005038 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005039 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5040 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005041 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5042 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5043 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5044 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5045 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5046 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5047 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5048 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005049 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5050 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5051 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5052 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5053 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005054 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005055 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005056 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005057 host) case "$llvm_cv_target_arch" in
5058 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5059 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5060 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5061 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5062 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5063 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5064 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005065 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005066 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005067 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5068 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005069 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005070 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005071 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005072 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5073echo "$as_me: error: Can not set target to build" >&2;}
5074 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005075 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005076 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5077echo "$as_me: error: Unrecognized target $a_target" >&2;}
5078 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005079 esac
5080 done
5081 ;;
5082esac
Reid Spencera773bd52006-08-04 18:18:08 +00005083TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5084
5085
Douglas Gregor0711c302009-06-17 00:43:20 +00005086# Determine whether we are building LLVM support for the native architecture.
5087# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5088for a_target in $TARGETS_TO_BUILD; do
5089 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5090
5091cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005092#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5093_ACEOF
5094
5095 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5096 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5097 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5098
5099cat >>confdefs.h <<_ACEOF
5100#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005101_ACEOF
5102
5103
5104cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005105#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5106_ACEOF
5107
5108
5109cat >>confdefs.h <<_ACEOF
5110#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005111_ACEOF
5112
5113 fi
5114done
5115
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005116# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5117# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005118LLVM_ENUM_TARGETS=""
5119LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005120LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005121LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005122for target_to_build in $TARGETS_TO_BUILD; do
5123 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005124 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005125 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5126 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005127 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5128 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5129 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005130 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5131 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5132 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005133done
5134
5135
5136
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005137
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005138
Reid Spencer65c5d752006-11-05 17:08:18 +00005139# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005140if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005141 enableval=$enable_cbe_printf_a;
5142else
5143 enableval=default
5144fi
5145
5146case "$enableval" in
5147 yes) ENABLE_CBE_PRINTF_A=1
5148 ;;
5149 no) ENABLE_CBE_PRINTF_A=0
5150 ;;
5151 default) ENABLE_CBE_PRINTF_A=1
5152 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5154echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005156esac
5157
5158cat >>confdefs.h <<_ACEOF
5159#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5160_ACEOF
5161
5162
Reid Spencera773bd52006-08-04 18:18:08 +00005163
5164# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005165if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005166 withval=$with_llvmgccdir;
5167else
5168 withval=default
5169fi
5170
5171case "$withval" in
5172 default) WITH_LLVMGCCDIR=default ;;
5173 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005174 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5175echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5176 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005177esac
5178
5179
Devang Patel5d28b882007-12-04 22:54:47 +00005180# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005181if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005182 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5183 WITH_LLVMGCCDIR=""
5184fi
5185
5186
5187
5188# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005190 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5191 WITH_LLVMGCCDIR=""
5192fi
5193
Douglas Gregor01746742009-05-11 18:05:52 +00005194
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005195if test -n "$LLVMGCC"; then
5196 LLVMGCCCOMMAND="$LLVMGCC"
5197fi
5198
5199if test -n "$LLVMGXX"; then
5200 LLVMGXXCOMMAND="$LLVMGXX"
5201fi
Devang Patel5d28b882007-12-04 22:54:47 +00005202
5203if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005204 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5205echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5206 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005207fi
5208
5209if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005210 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5211echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5212 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005213fi
5214
5215
Daniel Dunbar98515672010-02-23 10:00:49 +00005216# Check whether --with-clang was given.
5217if test "${with_clang+set}" = set; then
5218 withval=$with_clang;
5219else
5220 with_clang=default
5221fi
5222
5223
5224
5225# Check whether --with-built-clang was given.
5226if test "${with_built_clang+set}" = set; then
5227 withval=$with_built_clang;
5228else
5229 with_built_clang=check
5230fi
5231
5232
5233{ echo "$as_me:$LINENO: checking clang compiler" >&5
5234echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5235WITH_CLANGPATH=""
5236WITH_BUILT_CLANG=0
5237if test "$with_clang" != "default"; then
5238 WITH_CLANGPATH="$with_clang"
5239 if ! test -x "$WITH_CLANGPATH"; then
5240 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5241echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5242 { (exit 1); exit 1; }; }
5243 fi
5244elif test "$with_built_clang" = "yes"; then
5245 WITH_BUILT_CLANG=1
5246elif test "$with_built_clang" = "no"; then
5247 WITH_BUILT_CLANG=0
5248else
5249 if test "$with_built_clang" != "check"; then
5250 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5251echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5252 { (exit 1); exit 1; }; }
5253 fi
5254
5255 if test -f ${srcdir}/tools/clang/README.txt; then
5256 WITH_BUILT_CLANG=1
5257 fi
5258fi
5259
5260if ! test -z "$WITH_CLANGPATH"; then
5261 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5262echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5263 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5264elif test "$WITH_BUILT_CLANG" = "1"; then
5265 { echo "$as_me:$LINENO: result: built" >&5
5266echo "${ECHO_T}built" >&6; }
5267else
5268 { echo "$as_me:$LINENO: result: none" >&5
5269echo "${ECHO_T}none" >&6; }
5270fi
5271CLANGPATH=$WITH_CLANGPATH
5272
5273CLANGXXPATH=$WITH_CLANGXXPATH
5274
5275ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5276
5277
5278
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005279# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005280if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005281 withval=$with_optimize_option;
5282else
5283 withval=default
5284fi
5285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005286{ echo "$as_me:$LINENO: checking optimization flags" >&5
5287echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005288case "$withval" in
5289 default)
5290 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005291 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005292 MingW) optimize_option=-O2 ;;
5293 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005294 esac ;;
5295 *) optimize_option="$withval" ;;
5296esac
5297OPTIMIZE_OPTION=$optimize_option
5298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005299{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5300echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005301
5302
Reid Spencera773bd52006-08-04 18:18:08 +00005303# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005304if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005305 withval=$with_extra_options;
5306else
5307 withval=default
5308fi
5309
5310case "$withval" in
5311 default) EXTRA_OPTIONS= ;;
5312 *) EXTRA_OPTIONS=$withval ;;
5313esac
5314EXTRA_OPTIONS=$EXTRA_OPTIONS
5315
5316
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005317# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005318if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005319 enableval=$enable_bindings;
5320else
5321 enableval=default
5322fi
5323
5324BINDINGS_TO_BUILD=""
5325case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005326 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005327 all ) BINDINGS_TO_BUILD="ocaml" ;;
5328 none | no) BINDINGS_TO_BUILD="" ;;
5329 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5330 case "$a_binding" in
5331 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005332 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5333echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5334 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005335 esac
5336 done
5337 ;;
5338esac
5339
Reid Spencera773bd52006-08-04 18:18:08 +00005340
Gordon Henriksenf0915682007-10-02 16:42:22 +00005341# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005342if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005343 withval=$with_ocaml_libdir;
5344else
5345 withval=auto
5346fi
5347
5348case "$withval" in
5349 auto) with_ocaml_libdir="$withval" ;;
5350 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005351 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5352echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5353 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005354esac
5355
5356
Chandler Carruth6b241162010-10-19 08:21:25 +00005357# Check whether --with-clang-resource-dir was given.
5358if test "${with_clang_resource_dir+set}" = set; then
5359 withval=$with_clang_resource_dir;
5360else
5361 withval=""
5362fi
5363
5364
5365cat >>confdefs.h <<_ACEOF
5366#define CLANG_RESOURCE_DIR "$withval"
5367_ACEOF
5368
5369
5370
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005371# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005372if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005373 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005374else
5375 withval=""
5376fi
5377
5378
5379cat >>confdefs.h <<_ACEOF
5380#define C_INCLUDE_DIRS "$withval"
5381_ACEOF
5382
5383
5384
Rafael Espindola420d23c2009-11-16 19:46:55 +00005385# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005386if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005387 withval=$with_cxx_include_root;
5388else
5389 withval=""
5390fi
5391
5392
5393cat >>confdefs.h <<_ACEOF
5394#define CXX_INCLUDE_ROOT "$withval"
5395_ACEOF
5396
5397
5398
5399# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005400if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005401 withval=$with_cxx_include_arch;
5402else
5403 withval=""
5404fi
5405
5406
5407cat >>confdefs.h <<_ACEOF
5408#define CXX_INCLUDE_ARCH "$withval"
5409_ACEOF
5410
5411
5412
5413# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005415 withval=$with_cxx_include_32bit_dir;
5416else
5417 withval=""
5418fi
5419
5420
5421cat >>confdefs.h <<_ACEOF
5422#define CXX_INCLUDE_32BIT_DIR "$withval"
5423_ACEOF
5424
5425
5426
5427# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005428if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005429 withval=$with_cxx_include_64bit_dir;
5430else
5431 withval=""
5432fi
5433
5434
5435cat >>confdefs.h <<_ACEOF
5436#define CXX_INCLUDE_64BIT_DIR "$withval"
5437_ACEOF
5438
5439
5440
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005441# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005442if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005443 withval=$with_binutils_include;
5444else
5445 withval=default
5446fi
5447
5448case "$withval" in
5449 default) WITH_BINUTILS_INCDIR=default ;;
5450 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005451 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5452echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5453 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005454esac
5455if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5456 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5457
5458 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5459 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5461echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5462 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005463 fi
5464fi
5465
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005466# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005467if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005468 enableval=$enable_libffi; case "$enableval" in
5469 yes) llvm_cv_enable_libffi="yes" ;;
5470 no) llvm_cv_enable_libffi="no" ;;
5471 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005472echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5473 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005474 esac
5475else
5476 llvm_cv_enable_libffi=no
5477fi
5478
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005479
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005480
Reid Spencera773bd52006-08-04 18:18:08 +00005481ac_ext=c
5482ac_cpp='$CPP $CPPFLAGS'
5483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005486{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5487echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005488# On Suns, sometimes $CPP names a directory.
5489if test -n "$CPP" && test -d "$CPP"; then
5490 CPP=
5491fi
5492if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493 if test "${ac_cv_prog_CPP+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005495else
5496 # Double quotes because CPP needs to be expanded
5497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5498 do
5499 ac_preproc_ok=false
5500for ac_c_preproc_warn_flag in '' yes
5501do
5502 # Use a header file that comes with gcc, so configuring glibc
5503 # with a fresh cross-compiler works.
5504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505 # <limits.h> exists even on freestanding compilers.
5506 # On the NeXT, cc -E runs the code through the compiler's parser,
5507 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005508 cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h. */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005513/* end confdefs.h. */
5514#ifdef __STDC__
5515# include <limits.h>
5516#else
5517# include <assert.h>
5518#endif
5519 Syntax error
5520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521if { (ac_try="$ac_cpp conftest.$ac_ext"
5522case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525esac
5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } >/dev/null; then
5534 if test -s conftest.err; then
5535 ac_cpp_err=$ac_c_preproc_warn_flag
5536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5537 else
5538 ac_cpp_err=
5539 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005541 ac_cpp_err=yes
5542fi
5543if test -z "$ac_cpp_err"; then
5544 :
5545else
5546 echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
Reid Spencera773bd52006-08-04 18:18:08 +00005549 # Broken: fails on valid input.
5550continue
5551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005552
Reid Spencera773bd52006-08-04 18:18:08 +00005553rm -f conftest.err conftest.$ac_ext
5554
5555 # OK, works on sane cases. Now check whether nonexistent headers
5556 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005557 cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h. */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005562/* end confdefs.h. */
5563#include <ac_nonexistent.h>
5564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565if { (ac_try="$ac_cpp conftest.$ac_ext"
5566case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5572 ac_status=$?
5573 grep -v '^ *+' conftest.er1 >conftest.err
5574 rm -f conftest.er1
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } >/dev/null; then
5578 if test -s conftest.err; then
5579 ac_cpp_err=$ac_c_preproc_warn_flag
5580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5581 else
5582 ac_cpp_err=
5583 fi
5584else
5585 ac_cpp_err=yes
5586fi
5587if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005588 # Broken: success on invalid input.
5589continue
5590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005591 echo "$as_me: failed program was:" >&5
5592sed 's/^/| /' conftest.$ac_ext >&5
5593
Reid Spencera773bd52006-08-04 18:18:08 +00005594 # Passes both tests.
5595ac_preproc_ok=:
5596break
5597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005598
Reid Spencera773bd52006-08-04 18:18:08 +00005599rm -f conftest.err conftest.$ac_ext
5600
5601done
5602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005604if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005605 break
5606fi
5607
5608 done
5609 ac_cv_prog_CPP=$CPP
5610
5611fi
5612 CPP=$ac_cv_prog_CPP
5613else
5614 ac_cv_prog_CPP=$CPP
5615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616{ echo "$as_me:$LINENO: result: $CPP" >&5
5617echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005618ac_preproc_ok=false
5619for ac_c_preproc_warn_flag in '' yes
5620do
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005627 cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h. */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005632/* end confdefs.h. */
5633#ifdef __STDC__
5634# include <limits.h>
5635#else
5636# include <assert.h>
5637#endif
5638 Syntax error
5639_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640if { (ac_try="$ac_cpp conftest.$ac_ext"
5641case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null; then
5653 if test -s conftest.err; then
5654 ac_cpp_err=$ac_c_preproc_warn_flag
5655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5656 else
5657 ac_cpp_err=
5658 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660 ac_cpp_err=yes
5661fi
5662if test -z "$ac_cpp_err"; then
5663 :
5664else
5665 echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
Reid Spencera773bd52006-08-04 18:18:08 +00005668 # Broken: fails on valid input.
5669continue
5670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671
Reid Spencera773bd52006-08-04 18:18:08 +00005672rm -f conftest.err conftest.$ac_ext
5673
5674 # OK, works on sane cases. Now check whether nonexistent headers
5675 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005681/* end confdefs.h. */
5682#include <ac_nonexistent.h>
5683_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005684if { (ac_try="$ac_cpp conftest.$ac_ext"
5685case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } >/dev/null; then
5697 if test -s conftest.err; then
5698 ac_cpp_err=$ac_c_preproc_warn_flag
5699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5700 else
5701 ac_cpp_err=
5702 fi
5703else
5704 ac_cpp_err=yes
5705fi
5706if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005707 # Broken: success on invalid input.
5708continue
5709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005710 echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
Reid Spencera773bd52006-08-04 18:18:08 +00005713 # Passes both tests.
5714ac_preproc_ok=:
5715break
5716fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005717
Reid Spencera773bd52006-08-04 18:18:08 +00005718rm -f conftest.err conftest.$ac_ext
5719
5720done
5721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5722rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005723if $ac_preproc_ok; then
5724 :
Reid Spencera773bd52006-08-04 18:18:08 +00005725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5727See \`config.log' for more details." >&5
5728echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5729See \`config.log' for more details." >&2;}
5730 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005731fi
5732
5733ac_ext=c
5734ac_cpp='$CPP $CPPFLAGS'
5735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738
5739ac_ext=c
5740ac_cpp='$CPP $CPPFLAGS'
5741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743ac_compiler_gnu=$ac_cv_c_compiler_gnu
5744if test -n "$ac_tool_prefix"; then
5745 for ac_prog in gcc
5746 do
5747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5751if test "${ac_cv_prog_CC+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005753else
5754 if test -n "$CC"; then
5755 ac_cv_prog_CC="$CC" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 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 +00005764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005766 break 2
5767 fi
5768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769done
Reid Spencera773bd52006-08-04 18:18:08 +00005770IFS=$as_save_IFS
5771
5772fi
5773fi
5774CC=$ac_cv_prog_CC
5775if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776 { echo "$as_me:$LINENO: result: $CC" >&5
5777echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779 { echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005781fi
5782
5783
5784 test -n "$CC" && break
5785 done
5786fi
5787if test -z "$CC"; then
5788 ac_ct_CC=$CC
5789 for ac_prog in gcc
5790do
5791 # Extract the first word of "$ac_prog", so it can be a program name with args.
5792set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5795if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005797else
5798 if test -n "$ac_ct_CC"; then
5799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 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 +00005808 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005810 break 2
5811 fi
5812done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813done
Reid Spencera773bd52006-08-04 18:18:08 +00005814IFS=$as_save_IFS
5815
5816fi
5817fi
5818ac_ct_CC=$ac_cv_prog_ac_ct_CC
5819if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005820 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5821echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823 { echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005825fi
5826
5827
5828 test -n "$ac_ct_CC" && break
5829done
5830
5831 if test "x$ac_ct_CC" = x; then
5832 CC=""
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005836{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5837whose name does not start with the host triplet. If you think this
5838configuration is useful to you, please write to autoconf@gnu.org." >&5
5839echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5840whose name does not start with the host triplet. If you think this
5841configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005842ac_tool_warned=yes ;;
5843esac
5844 CC=$ac_ct_CC
5845 fi
5846fi
5847
5848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5850See \`config.log' for more details." >&5
5851echo "$as_me: error: no acceptable C compiler found in \$PATH
5852See \`config.log' for more details." >&2;}
5853 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005854
5855# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856echo "$as_me:$LINENO: checking for C compiler version" >&5
5857ac_compiler=`set X $ac_compile; echo $2`
5858{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005859case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005865 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }
5868{ (ac_try="$ac_compiler -v >&5"
5869case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872esac
5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compiler -v >&5") 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }
5878{ (ac_try="$ac_compiler -V >&5"
5879case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compiler -V >&5") 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005889{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5890echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5891if test "${ac_cv_c_compiler_gnu+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005894 cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h. */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005899/* end confdefs.h. */
5900
5901int
5902main ()
5903{
5904#ifndef __GNUC__
5905 choke me
5906#endif
5907
5908 ;
5909 return 0;
5910}
5911_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912rm -f conftest.$ac_objext
5913if { (ac_try="$ac_compile"
5914case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917esac
5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_compile") 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5927 { (case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
5931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_try") 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest.$ac_objext'
5937 { (case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_try") 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005946 ac_compiler_gnu=yes
5947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005948 echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953
Reid Spencera773bd52006-08-04 18:18:08 +00005954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955ac_cv_c_compiler_gnu=$ac_compiler_gnu
5956
5957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5959echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5960GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005961ac_test_CFLAGS=${CFLAGS+set}
5962ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5964echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5965if test "${ac_cv_prog_cc_g+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005967else
5968 ac_save_c_werror_flag=$ac_c_werror_flag
5969 ac_c_werror_flag=yes
5970 ac_cv_prog_cc_g=no
5971 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005972 cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h. */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005977/* end confdefs.h. */
5978
5979int
5980main ()
5981{
5982
5983 ;
5984 return 0;
5985}
5986_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987rm -f conftest.$ac_objext
5988if { (ac_try="$ac_compile"
5989case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992esac
5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002 { (case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005esac
6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_try") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_try") 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006021 ac_cv_prog_cc_g=yes
6022else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023 echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
6026 CFLAGS=""
6027 cat >conftest.$ac_ext <<_ACEOF
6028/* confdefs.h. */
6029_ACEOF
6030cat confdefs.h >>conftest.$ac_ext
6031cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006032/* end confdefs.h. */
6033
6034int
6035main ()
6036{
6037
6038 ;
6039 return 0;
6040}
6041_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042rm -f conftest.$ac_objext
6043if { (ac_try="$ac_compile"
6044case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6050 ac_status=$?
6051 grep -v '^ *+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6057 { (case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_try") 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; } &&
6066 { ac_try='test -s conftest.$ac_objext'
6067 { (case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_try") 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 :
Torok Edwin871384f2010-01-26 08:50:50 +00006077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078 echo "$as_me: failed program was:" >&5
6079sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006082 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006088/* end confdefs.h. */
6089
6090int
6091main ()
6092{
6093
6094 ;
6095 return 0;
6096}
6097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006098rm -f conftest.$ac_objext
6099if { (ac_try="$ac_compile"
6100case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103esac
6104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6113 { (case "(($ac_try" in
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6116esac
6117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_try") 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; } &&
6122 { ac_try='test -s conftest.$ac_objext'
6123 { (case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_try") 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006132 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137
Reid Spencera773bd52006-08-04 18:18:08 +00006138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006139
Reid Spencera773bd52006-08-04 18:18:08 +00006140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142
Reid Spencera773bd52006-08-04 18:18:08 +00006143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145
Reid Spencera773bd52006-08-04 18:18:08 +00006146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 ac_c_werror_flag=$ac_save_c_werror_flag
6148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6150echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006151if test "$ac_test_CFLAGS" = set; then
6152 CFLAGS=$ac_save_CFLAGS
6153elif test $ac_cv_prog_cc_g = yes; then
6154 if test "$GCC" = yes; then
6155 CFLAGS="-g -O2"
6156 else
6157 CFLAGS="-g"
6158 fi
6159else
6160 if test "$GCC" = yes; then
6161 CFLAGS="-O2"
6162 else
6163 CFLAGS=
6164 fi
6165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6167echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6168if test "${ac_cv_prog_cc_c89+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006170else
6171 ac_cv_prog_cc_c89=no
6172ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006178/* end confdefs.h. */
6179#include <stdarg.h>
6180#include <stdio.h>
6181#include <sys/types.h>
6182#include <sys/stat.h>
6183/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6184struct buf { int x; };
6185FILE * (*rcsopen) (struct buf *, struct stat *, int);
6186static char *e (p, i)
6187 char **p;
6188 int i;
6189{
6190 return p[i];
6191}
6192static char *f (char * (*g) (char **, int), char **p, ...)
6193{
6194 char *s;
6195 va_list v;
6196 va_start (v,p);
6197 s = g (p, va_arg (v,int));
6198 va_end (v);
6199 return s;
6200}
6201
6202/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6203 function prototypes and stuff, but not '\xHH' hex character constants.
6204 These don't provoke an error unfortunately, instead are silently treated
6205 as 'x'. The following induces an error, until -std is added to get
6206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6207 array size at least. It's necessary to write '\x00'==0 to get something
6208 that's true only with -std. */
6209int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6210
6211/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6212 inside strings and character constants. */
6213#define FOO(x) 'x'
6214int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6215
6216int test (int i, double x);
6217struct s1 {int (*f) (int a);};
6218struct s2 {int (*f) (double a);};
6219int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6220int argc;
6221char **argv;
6222int
6223main ()
6224{
6225return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6226 ;
6227 return 0;
6228}
6229_ACEOF
6230for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6232do
6233 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234 rm -f conftest.$ac_objext
6235if { (ac_try="$ac_compile"
6236case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252esac
6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_try") 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006268 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269else
6270 echo "$as_me: failed program was:" >&5
6271sed 's/^/| /' conftest.$ac_ext >&5
6272
6273
Reid Spencera773bd52006-08-04 18:18:08 +00006274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006275
Reid Spencera773bd52006-08-04 18:18:08 +00006276rm -f core conftest.err conftest.$ac_objext
6277 test "x$ac_cv_prog_cc_c89" != "xno" && break
6278done
6279rm -f conftest.$ac_ext
6280CC=$ac_save_CC
6281
6282fi
6283# AC_CACHE_VAL
6284case "x$ac_cv_prog_cc_c89" in
6285 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286 { echo "$as_me:$LINENO: result: none needed" >&5
6287echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006288 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289 { echo "$as_me:$LINENO: result: unsupported" >&5
6290echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006291 *)
6292 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6294echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006295esac
6296
6297
6298ac_ext=c
6299ac_cpp='$CPP $CPPFLAGS'
6300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303
6304ac_ext=cpp
6305ac_cpp='$CXXCPP $CPPFLAGS'
6306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6309if test -z "$CXX"; then
6310 if test -n "$CCC"; then
6311 CXX=$CCC
6312 else
6313 if test -n "$ac_tool_prefix"; then
6314 for ac_prog in g++
6315 do
6316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6317set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320if test "${ac_cv_prog_CXX+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006322else
6323 if test -n "$CXX"; then
6324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6325else
6326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327for as_dir in $PATH
6328do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 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 +00006333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006335 break 2
6336 fi
6337done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338done
Reid Spencera773bd52006-08-04 18:18:08 +00006339IFS=$as_save_IFS
6340
6341fi
6342fi
6343CXX=$ac_cv_prog_CXX
6344if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006345 { echo "$as_me:$LINENO: result: $CXX" >&5
6346echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348 { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006350fi
6351
6352
6353 test -n "$CXX" && break
6354 done
6355fi
6356if test -z "$CXX"; then
6357 ac_ct_CXX=$CXX
6358 for ac_prog in g++
6359do
6360 # Extract the first word of "$ac_prog", so it can be a program name with args.
6361set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006366else
6367 if test -n "$ac_ct_CXX"; then
6368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 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 +00006377 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006379 break 2
6380 fi
6381done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382done
Reid Spencera773bd52006-08-04 18:18:08 +00006383IFS=$as_save_IFS
6384
6385fi
6386fi
6387ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6388if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6390echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392 { echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006394fi
6395
6396
6397 test -n "$ac_ct_CXX" && break
6398done
6399
6400 if test "x$ac_ct_CXX" = x; then
6401 CXX="g++"
6402 else
6403 case $cross_compiling:$ac_tool_warned in
6404yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006405{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6406whose name does not start with the host triplet. If you think this
6407configuration is useful to you, please write to autoconf@gnu.org." >&5
6408echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6409whose name does not start with the host triplet. If you think this
6410configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006411ac_tool_warned=yes ;;
6412esac
6413 CXX=$ac_ct_CXX
6414 fi
6415fi
6416
6417 fi
6418fi
6419# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6421ac_compiler=`set X $ac_compile; echo $2`
6422{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006423case "(($ac_try" in
6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6426esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006429 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }
6432{ (ac_try="$ac_compiler -v >&5"
6433case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436esac
6437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_compiler -v >&5") 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }
6442{ (ac_try="$ac_compiler -V >&5"
6443case "(($ac_try" in
6444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445 *) ac_try_echo=$ac_try;;
6446esac
6447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 (eval "$ac_compiler -V >&5") 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6454echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6455if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458 cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006463/* end confdefs.h. */
6464
6465int
6466main ()
6467{
6468#ifndef __GNUC__
6469 choke me
6470#endif
6471
6472 ;
6473 return 0;
6474}
6475_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476rm -f conftest.$ac_objext
6477if { (ac_try="$ac_compile"
6478case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481esac
6482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6491 { (case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494esac
6495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_try") 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (case "(($ac_try" in
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6504esac
6505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506 (eval "$ac_try") 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006510 ac_compiler_gnu=yes
6511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006512 echo "$as_me: failed program was:" >&5
6513sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006516fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517
Reid Spencera773bd52006-08-04 18:18:08 +00006518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6520
6521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006522{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6523echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6524GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006525ac_test_CXXFLAGS=${CXXFLAGS+set}
6526ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006527{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6528echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6529if test "${ac_cv_prog_cxx_g+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006531else
6532 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6533 ac_cxx_werror_flag=yes
6534 ac_cv_prog_cxx_g=no
6535 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006536 cat >conftest.$ac_ext <<_ACEOF
6537/* confdefs.h. */
6538_ACEOF
6539cat confdefs.h >>conftest.$ac_ext
6540cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006541/* end confdefs.h. */
6542
6543int
6544main ()
6545{
6546
6547 ;
6548 return 0;
6549}
6550_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006551rm -f conftest.$ac_objext
6552if { (ac_try="$ac_compile"
6553case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556esac
6557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6566 { (case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
6570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_try") 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579esac
6580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_try") 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006585 ac_cv_prog_cxx_g=yes
6586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587 echo "$as_me: failed program was:" >&5
6588sed 's/^/| /' conftest.$ac_ext >&5
6589
6590 CXXFLAGS=""
6591 cat >conftest.$ac_ext <<_ACEOF
6592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006596/* end confdefs.h. */
6597
6598int
6599main ()
6600{
6601
6602 ;
6603 return 0;
6604}
6605_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606rm -f conftest.$ac_objext
6607if { (ac_try="$ac_compile"
6608case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611esac
6612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_compile") 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6621 { (case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624esac
6625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_try") 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest.$ac_objext'
6631 { (case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634esac
6635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_try") 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 :
Torok Edwin871384f2010-01-26 08:50:50 +00006641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006642 echo "$as_me: failed program was:" >&5
6643sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006646 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006647 cat >conftest.$ac_ext <<_ACEOF
6648/* confdefs.h. */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006652/* end confdefs.h. */
6653
6654int
6655main ()
6656{
6657
6658 ;
6659 return 0;
6660}
6661_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662rm -f conftest.$ac_objext
6663if { (ac_try="$ac_compile"
6664case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667esac
6668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6677 { (case "(($ac_try" in
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6680esac
6681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682 (eval "$ac_try") 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest.$ac_objext'
6687 { (case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690esac
6691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_try") 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006696 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697else
6698 echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701
Reid Spencera773bd52006-08-04 18:18:08 +00006702fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703
Reid Spencera773bd52006-08-04 18:18:08 +00006704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006706
Reid Spencera773bd52006-08-04 18:18:08 +00006707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709
Reid Spencera773bd52006-08-04 18:18:08 +00006710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6714echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006715if test "$ac_test_CXXFLAGS" = set; then
6716 CXXFLAGS=$ac_save_CXXFLAGS
6717elif test $ac_cv_prog_cxx_g = yes; then
6718 if test "$GXX" = yes; then
6719 CXXFLAGS="-g -O2"
6720 else
6721 CXXFLAGS="-g"
6722 fi
6723else
6724 if test "$GXX" = yes; then
6725 CXXFLAGS="-O2"
6726 else
6727 CXXFLAGS=
6728 fi
6729fi
6730ac_ext=c
6731ac_cpp='$CPP $CPPFLAGS'
6732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734ac_compiler_gnu=$ac_cv_c_compiler_gnu
6735
Reid Spencera773bd52006-08-04 18:18:08 +00006736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6738echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6739if test "${lt_cv_path_NM+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006741else
6742 if test -n "$NM"; then
6743 # Let the user override the test.
6744 lt_cv_path_NM="$NM"
6745else
6746 lt_nm_to_check="${ac_tool_prefix}nm"
6747 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6748 lt_nm_to_check="$lt_nm_to_check nm"
6749 fi
6750 for lt_tmp_nm in $lt_nm_to_check; do
6751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6752 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6753 IFS="$lt_save_ifs"
6754 test -z "$ac_dir" && ac_dir=.
6755 tmp_nm="$ac_dir/$lt_tmp_nm"
6756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6757 # Check to see if the nm accepts a BSD-compat flag.
6758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6759 # nm: unknown option "B" ignored
6760 # Tru64's nm complains that /dev/null is an invalid object file
6761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6762 */dev/null* | *'Invalid file or object type'*)
6763 lt_cv_path_NM="$tmp_nm -B"
6764 break
6765 ;;
6766 *)
6767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6768 */dev/null*)
6769 lt_cv_path_NM="$tmp_nm -p"
6770 break
6771 ;;
6772 *)
6773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6774 continue # so that we can try to find one that supports BSD flags
6775 ;;
6776 esac
6777 ;;
6778 esac
6779 fi
6780 done
6781 IFS="$lt_save_ifs"
6782 done
6783 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6784fi
6785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6787echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006788NM="$lt_cv_path_NM"
6789
6790
6791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792{ echo "$as_me:$LINENO: checking for GNU make" >&5
6793echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6794if test "${llvm_cv_gnu_make_command+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006796else
6797 llvm_cv_gnu_make_command=''
6798 for a in "$MAKE" make gmake gnumake ; do
6799 if test -z "$a" ; then continue ; fi ;
6800 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6801 then
6802 llvm_cv_gnu_make_command=$a ;
6803 break;
6804 fi
6805 done
6806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6808echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006809 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6810 ifGNUmake='' ;
6811 else
6812 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006813 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6814echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006815 fi
6816
6817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6819echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006820LN_S=$as_ln_s
6821if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 { echo "$as_me:$LINENO: result: yes" >&5
6823echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6826echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006827fi
6828
6829# Extract the first word of "cmp", so it can be a program name with args.
6830set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833if test "${ac_cv_path_CMP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006835else
6836 case $CMP in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6839 ;;
6840 *)
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 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 +00006848 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006850 break 2
6851 fi
6852done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853done
Reid Spencera773bd52006-08-04 18:18:08 +00006854IFS=$as_save_IFS
6855
6856 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6857 ;;
6858esac
6859fi
6860CMP=$ac_cv_path_CMP
6861if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862 { echo "$as_me:$LINENO: result: $CMP" >&5
6863echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865 { echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006867fi
6868
6869
6870# Extract the first word of "cp", so it can be a program name with args.
6871set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874if test "${ac_cv_path_CP+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006876else
6877 case $CP in
6878 [\\/]* | ?:[\\/]*)
6879 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6880 ;;
6881 *)
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 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 +00006889 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006891 break 2
6892 fi
6893done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006894done
Reid Spencera773bd52006-08-04 18:18:08 +00006895IFS=$as_save_IFS
6896
6897 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6898 ;;
6899esac
6900fi
6901CP=$ac_cv_path_CP
6902if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006903 { echo "$as_me:$LINENO: result: $CP" >&5
6904echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906 { echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006908fi
6909
6910
6911# Extract the first word of "date", so it can be a program name with args.
6912set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915if test "${ac_cv_path_DATE+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006917else
6918 case $DATE in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6921 ;;
6922 *)
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 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 +00006930 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006932 break 2
6933 fi
6934done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935done
Reid Spencera773bd52006-08-04 18:18:08 +00006936IFS=$as_save_IFS
6937
6938 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6939 ;;
6940esac
6941fi
6942DATE=$ac_cv_path_DATE
6943if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 { echo "$as_me:$LINENO: result: $DATE" >&5
6945echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006946else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006949fi
6950
6951
6952# Extract the first word of "find", so it can be a program name with args.
6953set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956if test "${ac_cv_path_FIND+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006958else
6959 case $FIND in
6960 [\\/]* | ?:[\\/]*)
6961 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6962 ;;
6963 *)
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 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 +00006971 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006973 break 2
6974 fi
6975done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976done
Reid Spencera773bd52006-08-04 18:18:08 +00006977IFS=$as_save_IFS
6978
6979 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6980 ;;
6981esac
6982fi
6983FIND=$ac_cv_path_FIND
6984if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985 { echo "$as_me:$LINENO: result: $FIND" >&5
6986echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988 { echo "$as_me:$LINENO: result: no" >&5
6989echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006990fi
6991
6992
6993# Extract the first word of "grep", so it can be a program name with args.
6994set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997if test "${ac_cv_path_GREP+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006999else
7000 case $GREP in
7001 [\\/]* | ?:[\\/]*)
7002 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7003 ;;
7004 *)
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 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 +00007012 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007014 break 2
7015 fi
7016done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017done
Reid Spencera773bd52006-08-04 18:18:08 +00007018IFS=$as_save_IFS
7019
7020 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7021 ;;
7022esac
7023fi
7024GREP=$ac_cv_path_GREP
7025if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026 { echo "$as_me:$LINENO: result: $GREP" >&5
7027echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 { echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007031fi
7032
7033
7034# Extract the first word of "mkdir", so it can be a program name with args.
7035set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038if test "${ac_cv_path_MKDIR+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007040else
7041 case $MKDIR in
7042 [\\/]* | ?:[\\/]*)
7043 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7044 ;;
7045 *)
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007053 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007055 break 2
7056 fi
7057done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058done
Reid Spencera773bd52006-08-04 18:18:08 +00007059IFS=$as_save_IFS
7060
7061 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7062 ;;
7063esac
7064fi
7065MKDIR=$ac_cv_path_MKDIR
7066if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7068echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007069else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 { echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007072fi
7073
7074
7075# Extract the first word of "mv", so it can be a program name with args.
7076set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079if test "${ac_cv_path_MV+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007081else
7082 case $MV in
7083 [\\/]* | ?:[\\/]*)
7084 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7085 ;;
7086 *)
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 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 +00007094 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007096 break 2
7097 fi
7098done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099done
Reid Spencera773bd52006-08-04 18:18:08 +00007100IFS=$as_save_IFS
7101
7102 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7103 ;;
7104esac
7105fi
7106MV=$ac_cv_path_MV
7107if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007108 { echo "$as_me:$LINENO: result: $MV" >&5
7109echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007111 { echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007113fi
7114
7115
7116if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121if test "${ac_cv_prog_RANLIB+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007123else
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 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 +00007134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007136 break 2
7137 fi
7138done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139done
Reid Spencera773bd52006-08-04 18:18:08 +00007140IFS=$as_save_IFS
7141
7142fi
7143fi
7144RANLIB=$ac_cv_prog_RANLIB
7145if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7147echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007149 { echo "$as_me:$LINENO: result: no" >&5
7150echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007151fi
7152
7153
7154fi
7155if test -z "$ac_cv_prog_RANLIB"; then
7156 ac_ct_RANLIB=$RANLIB
7157 # Extract the first word of "ranlib", so it can be a program name with args.
7158set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007163else
7164 if test -n "$ac_ct_RANLIB"; then
7165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7166else
7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168for as_dir in $PATH
7169do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 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 +00007174 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007176 break 2
7177 fi
7178done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179done
Reid Spencera773bd52006-08-04 18:18:08 +00007180IFS=$as_save_IFS
7181
7182fi
7183fi
7184ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7185if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7187echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189 { echo "$as_me:$LINENO: result: no" >&5
7190echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007191fi
7192
7193 if test "x$ac_ct_RANLIB" = x; then
7194 RANLIB=":"
7195 else
7196 case $cross_compiling:$ac_tool_warned in
7197yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199whose name does not start with the host triplet. If you think this
7200configuration is useful to you, please write to autoconf@gnu.org." >&5
7201echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202whose name does not start with the host triplet. If you think this
7203configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007204ac_tool_warned=yes ;;
7205esac
7206 RANLIB=$ac_ct_RANLIB
7207 fi
7208else
7209 RANLIB="$ac_cv_prog_RANLIB"
7210fi
7211
Torok Edwin871384f2010-01-26 08:50:50 +00007212if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7214set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217if test "${ac_cv_prog_AR+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007219else
7220 if test -n "$AR"; then
7221 ac_cv_prog_AR="$AR" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 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 +00007230 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007232 break 2
7233 fi
7234done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235done
Torok Edwin871384f2010-01-26 08:50:50 +00007236IFS=$as_save_IFS
7237
7238fi
7239fi
7240AR=$ac_cv_prog_AR
7241if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007242 { echo "$as_me:$LINENO: result: $AR" >&5
7243echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245 { echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007247fi
7248
7249
7250fi
7251if test -z "$ac_cv_prog_AR"; then
7252 ac_ct_AR=$AR
7253 # Extract the first word of "ar", so it can be a program name with args.
7254set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007259else
7260 if test -n "$ac_ct_AR"; then
7261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 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 +00007270 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007272 break 2
7273 fi
7274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275done
Torok Edwin871384f2010-01-26 08:50:50 +00007276IFS=$as_save_IFS
7277
7278fi
7279fi
7280ac_ct_AR=$ac_cv_prog_ac_ct_AR
7281if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7283echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007285 { echo "$as_me:$LINENO: result: no" >&5
7286echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007287fi
7288
7289 if test "x$ac_ct_AR" = x; then
7290 AR="false"
7291 else
7292 case $cross_compiling:$ac_tool_warned in
7293yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7295whose name does not start with the host triplet. If you think this
7296configuration is useful to you, please write to autoconf@gnu.org." >&5
7297echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7298whose name does not start with the host triplet. If you think this
7299configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007300ac_tool_warned=yes ;;
7301esac
7302 AR=$ac_ct_AR
7303 fi
7304else
7305 AR="$ac_cv_prog_AR"
7306fi
7307
Reid Spencera773bd52006-08-04 18:18:08 +00007308# Extract the first word of "rm", so it can be a program name with args.
7309set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312if test "${ac_cv_path_RM+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007314else
7315 case $RM in
7316 [\\/]* | ?:[\\/]*)
7317 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7318 ;;
7319 *)
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 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 +00007327 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007329 break 2
7330 fi
7331done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332done
Reid Spencera773bd52006-08-04 18:18:08 +00007333IFS=$as_save_IFS
7334
7335 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7336 ;;
7337esac
7338fi
7339RM=$ac_cv_path_RM
7340if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007341 { echo "$as_me:$LINENO: result: $RM" >&5
7342echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344 { echo "$as_me:$LINENO: result: no" >&5
7345echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007346fi
7347
7348
7349# Extract the first word of "sed", so it can be a program name with args.
7350set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353if test "${ac_cv_path_SED+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007355else
7356 case $SED in
7357 [\\/]* | ?:[\\/]*)
7358 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7359 ;;
7360 *)
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 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 +00007368 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007370 break 2
7371 fi
7372done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373done
Reid Spencera773bd52006-08-04 18:18:08 +00007374IFS=$as_save_IFS
7375
7376 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7377 ;;
7378esac
7379fi
7380SED=$ac_cv_path_SED
7381if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382 { echo "$as_me:$LINENO: result: $SED" >&5
7383echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 { echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007387fi
7388
7389
7390# Extract the first word of "tar", so it can be a program name with args.
7391set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394if test "${ac_cv_path_TAR+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007396else
7397 case $TAR in
7398 [\\/]* | ?:[\\/]*)
7399 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7400 ;;
7401 *)
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 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 +00007409 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007411 break 2
7412 fi
7413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414done
Reid Spencera773bd52006-08-04 18:18:08 +00007415IFS=$as_save_IFS
7416
7417 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7418 ;;
7419esac
7420fi
7421TAR=$ac_cv_path_TAR
7422if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 { echo "$as_me:$LINENO: result: $TAR" >&5
7424echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 { echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007428fi
7429
7430
7431# Extract the first word of "pwd", so it can be a program name with args.
7432set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435if test "${ac_cv_path_BINPWD+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007437else
7438 case $BINPWD in
7439 [\\/]* | ?:[\\/]*)
7440 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7441 ;;
7442 *)
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 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 +00007450 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007452 break 2
7453 fi
7454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455done
Reid Spencera773bd52006-08-04 18:18:08 +00007456IFS=$as_save_IFS
7457
7458 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7459 ;;
7460esac
7461fi
7462BINPWD=$ac_cv_path_BINPWD
7463if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7465echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007469fi
7470
7471
7472
7473# Extract the first word of "Graphviz", so it can be a program name with args.
7474set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7477if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007479else
7480 case $GRAPHVIZ in
7481 [\\/]* | ?:[\\/]*)
7482 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7483 ;;
7484 *)
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 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 +00007492 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007494 break 2
7495 fi
7496done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497done
Reid Spencera773bd52006-08-04 18:18:08 +00007498IFS=$as_save_IFS
7499
7500 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7501 ;;
7502esac
7503fi
7504GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7505if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007506 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7507echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007509 { echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007511fi
7512
7513
7514if test "$GRAPHVIZ" != "echo Graphviz" ; then
7515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516cat >>confdefs.h <<\_ACEOF
7517#define HAVE_GRAPHVIZ 1
7518_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007519
Jeff Cohen28783c32007-01-12 18:22:38 +00007520 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007521 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7522 fi
7523
7524cat >>confdefs.h <<_ACEOF
7525#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7526_ACEOF
7527
7528fi
7529# Extract the first word of "dot", so it can be a program name with args.
7530set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7533if test "${ac_cv_path_DOT+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007535else
7536 case $DOT in
7537 [\\/]* | ?:[\\/]*)
7538 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7539 ;;
7540 *)
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 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 +00007548 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007550 break 2
7551 fi
7552done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553done
Reid Spencera773bd52006-08-04 18:18:08 +00007554IFS=$as_save_IFS
7555
7556 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7557 ;;
7558esac
7559fi
7560DOT=$ac_cv_path_DOT
7561if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007562 { echo "$as_me:$LINENO: result: $DOT" >&5
7563echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565 { echo "$as_me:$LINENO: result: no" >&5
7566echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007567fi
7568
7569
7570if test "$DOT" != "echo dot" ; then
7571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572cat >>confdefs.h <<\_ACEOF
7573#define HAVE_DOT 1
7574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007575
Jeff Cohen28783c32007-01-12 18:22:38 +00007576 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007577 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7578 fi
7579
7580cat >>confdefs.h <<_ACEOF
7581#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7582_ACEOF
7583
7584fi
David Greenef0b9eff2009-07-09 17:16:26 +00007585# Extract the first word of "fdp", so it can be a program name with args.
7586set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_FDP+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007591else
7592 case $FDP in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 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 +00007604 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007606 break 2
7607 fi
7608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609done
David Greenef0b9eff2009-07-09 17:16:26 +00007610IFS=$as_save_IFS
7611
7612 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7613 ;;
7614esac
7615fi
7616FDP=$ac_cv_path_FDP
7617if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007618 { echo "$as_me:$LINENO: result: $FDP" >&5
7619echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007623fi
7624
7625
7626if test "$FDP" != "echo fdp" ; then
7627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628cat >>confdefs.h <<\_ACEOF
7629#define HAVE_FDP 1
7630_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007631
7632 if test "$llvm_cv_os_type" = "MingW" ; then
7633 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7634 fi
7635
7636cat >>confdefs.h <<_ACEOF
7637#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7638_ACEOF
7639
7640fi
7641# Extract the first word of "neato", so it can be a program name with args.
7642set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645if test "${ac_cv_path_NEATO+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007647else
7648 case $NEATO in
7649 [\\/]* | ?:[\\/]*)
7650 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7651 ;;
7652 *)
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 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 +00007660 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007662 break 2
7663 fi
7664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665done
David Greenef0b9eff2009-07-09 17:16:26 +00007666IFS=$as_save_IFS
7667
7668 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7669 ;;
7670esac
7671fi
7672NEATO=$ac_cv_path_NEATO
7673if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 { echo "$as_me:$LINENO: result: $NEATO" >&5
7675echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 { echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007679fi
7680
7681
7682if test "$NEATO" != "echo neato" ; then
7683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684cat >>confdefs.h <<\_ACEOF
7685#define HAVE_NEATO 1
7686_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007687
7688 if test "$llvm_cv_os_type" = "MingW" ; then
7689 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7690 fi
7691
7692cat >>confdefs.h <<_ACEOF
7693#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7694_ACEOF
7695
7696fi
7697# Extract the first word of "twopi", so it can be a program name with args.
7698set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701if test "${ac_cv_path_TWOPI+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007703else
7704 case $TWOPI in
7705 [\\/]* | ?:[\\/]*)
7706 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7707 ;;
7708 *)
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 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 +00007716 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007718 break 2
7719 fi
7720done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721done
David Greenef0b9eff2009-07-09 17:16:26 +00007722IFS=$as_save_IFS
7723
7724 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7725 ;;
7726esac
7727fi
7728TWOPI=$ac_cv_path_TWOPI
7729if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7731echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007732else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733 { echo "$as_me:$LINENO: result: no" >&5
7734echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007735fi
7736
7737
7738if test "$TWOPI" != "echo twopi" ; then
7739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740cat >>confdefs.h <<\_ACEOF
7741#define HAVE_TWOPI 1
7742_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007743
7744 if test "$llvm_cv_os_type" = "MingW" ; then
7745 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7746 fi
7747
7748cat >>confdefs.h <<_ACEOF
7749#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7750_ACEOF
7751
7752fi
7753# Extract the first word of "circo", so it can be a program name with args.
7754set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757if test "${ac_cv_path_CIRCO+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007759else
7760 case $CIRCO in
7761 [\\/]* | ?:[\\/]*)
7762 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7763 ;;
7764 *)
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007772 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007774 break 2
7775 fi
7776done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007777done
David Greenef0b9eff2009-07-09 17:16:26 +00007778IFS=$as_save_IFS
7779
7780 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7781 ;;
7782esac
7783fi
7784CIRCO=$ac_cv_path_CIRCO
7785if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007786 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7787echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789 { echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007791fi
7792
7793
7794if test "$CIRCO" != "echo circo" ; then
7795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796cat >>confdefs.h <<\_ACEOF
7797#define HAVE_CIRCO 1
7798_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007799
7800 if test "$llvm_cv_os_type" = "MingW" ; then
7801 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7802 fi
7803
7804cat >>confdefs.h <<_ACEOF
7805#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7806_ACEOF
7807
7808fi
Reid Spencera773bd52006-08-04 18:18:08 +00007809for ac_prog in gv gsview32
7810do
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7815if test "${ac_cv_path_GV+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007817else
7818 case $GV in
7819 [\\/]* | ?:[\\/]*)
7820 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7821 ;;
7822 *)
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824for as_dir in $PATH
7825do
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 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 +00007830 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007832 break 2
7833 fi
7834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835done
Reid Spencera773bd52006-08-04 18:18:08 +00007836IFS=$as_save_IFS
7837
7838 ;;
7839esac
7840fi
7841GV=$ac_cv_path_GV
7842if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843 { echo "$as_me:$LINENO: result: $GV" >&5
7844echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007846 { echo "$as_me:$LINENO: result: no" >&5
7847echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007848fi
7849
7850
7851 test -n "$GV" && break
7852done
7853test -n "$GV" || GV="echo gv"
7854
7855if test "$GV" != "echo gv" ; then
7856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007857cat >>confdefs.h <<\_ACEOF
7858#define HAVE_GV 1
7859_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007860
Jeff Cohen28783c32007-01-12 18:22:38 +00007861 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007862 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7863 fi
7864
7865cat >>confdefs.h <<_ACEOF
7866#define LLVM_PATH_GV "$GV${EXEEXT}"
7867_ACEOF
7868
7869fi
7870# Extract the first word of "dotty", so it can be a program name with args.
7871set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7874if test "${ac_cv_path_DOTTY+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007876else
7877 case $DOTTY in
7878 [\\/]* | ?:[\\/]*)
7879 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7880 ;;
7881 *)
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 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 +00007889 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007891 break 2
7892 fi
7893done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894done
Reid Spencera773bd52006-08-04 18:18:08 +00007895IFS=$as_save_IFS
7896
7897 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7898 ;;
7899esac
7900fi
7901DOTTY=$ac_cv_path_DOTTY
7902if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7904echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 { echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007908fi
7909
7910
7911if test "$DOTTY" != "echo dotty" ; then
7912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913cat >>confdefs.h <<\_ACEOF
7914#define HAVE_DOTTY 1
7915_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007916
Jeff Cohen28783c32007-01-12 18:22:38 +00007917 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007918 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7919 fi
7920
7921cat >>confdefs.h <<_ACEOF
7922#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7923_ACEOF
7924
7925fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007926# Extract the first word of "xdot.py", so it can be a program name with args.
7927set dummy xdot.py; ac_word=$2
7928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930if test "${ac_cv_path_XDOT_PY+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932else
7933 case $XDOT_PY in
7934 [\\/]* | ?:[\\/]*)
7935 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7936 ;;
7937 *)
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7948 fi
7949done
7950done
7951IFS=$as_save_IFS
7952
7953 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7954 ;;
7955esac
7956fi
7957XDOT_PY=$ac_cv_path_XDOT_PY
7958if test -n "$XDOT_PY"; then
7959 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7960echo "${ECHO_T}$XDOT_PY" >&6; }
7961else
7962 { echo "$as_me:$LINENO: result: no" >&5
7963echo "${ECHO_T}no" >&6; }
7964fi
7965
7966
7967if test "$XDOT_PY" != "echo xdot.py" ; then
7968
7969cat >>confdefs.h <<\_ACEOF
7970#define HAVE_XDOT_PY 1
7971_ACEOF
7972
7973 if test "$llvm_cv_os_type" = "MingW" ; then
7974 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7975 fi
7976
7977cat >>confdefs.h <<_ACEOF
7978#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7979_ACEOF
7980
7981fi
Reid Spencera773bd52006-08-04 18:18:08 +00007982
7983
7984# Extract the first word of "perl", so it can be a program name with args.
7985set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7988if test "${ac_cv_path_PERL+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007990else
7991 case $PERL in
7992 [\\/]* | ?:[\\/]*)
7993 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7994 ;;
7995 *)
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 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 +00008003 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008005 break 2
8006 fi
8007done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008done
Reid Spencera773bd52006-08-04 18:18:08 +00008009IFS=$as_save_IFS
8010
8011 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8012 ;;
8013esac
8014fi
8015PERL=$ac_cv_path_PERL
8016if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008017 { echo "$as_me:$LINENO: result: $PERL" >&5
8018echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008020 { echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008022fi
8023
8024
8025if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008026 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8027echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008028 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029 { echo "$as_me:$LINENO: result: yes" >&5
8030echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008031 else
8032 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008033 { echo "$as_me:$LINENO: result: not found" >&5
8034echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008035 fi
8036fi
8037
8038
8039if test x"$PERL" = xnone; then
8040 HAVE_PERL=0
8041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8043echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8044 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008045else
8046 HAVE_PERL=1
8047
8048fi
8049
8050# Find a good install program. We prefer a C program (faster),
8051# so one script is as good as another. But avoid the broken or
8052# incompatible versions:
8053# SysV /etc/install, /usr/sbin/install
8054# SunOS /usr/etc/install
8055# IRIX /sbin/install
8056# AIX /bin/install
8057# AmigaOS /C/install, which installs bootblocks on floppy discs
8058# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8059# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8060# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8061# OS/2's system install, which has a completely different semantic
8062# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8064echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008065if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008066if test "${ac_cv_path_install+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008068else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074 # Account for people who put trailing slashes in PATH elements.
8075case $as_dir/ in
8076 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008077 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008079 /usr/ucb/* ) ;;
8080 *)
8081 # OSF1 and SCO ODT 3.0 have their own names for install.
8082 # Don't use installbsd from OSF since it installs stuff as root
8083 # by default.
8084 for ac_prog in ginstall scoinst install; do
8085 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008086 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 +00008087 if test $ac_prog = install &&
8088 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8089 # AIX install. It has an incompatible calling convention.
8090 :
8091 elif test $ac_prog = install &&
8092 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8093 # program-specific install script used by HP pwplus--don't use.
8094 :
8095 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8097 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008098 fi
8099 fi
8100 done
8101 done
8102 ;;
8103esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008104done
Reid Spencera773bd52006-08-04 18:18:08 +00008105IFS=$as_save_IFS
8106
8107
8108fi
8109 if test "${ac_cv_path_install+set}" = set; then
8110 INSTALL=$ac_cv_path_install
8111 else
8112 # As a last resort, use the slow shell script. Don't cache a
8113 # value for INSTALL within a source directory, because that will
8114 # break other packages using the cache if that directory is
8115 # removed, or if the value is a relative name.
8116 INSTALL=$ac_install_sh
8117 fi
8118fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008119{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8120echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008121
8122# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8123# It thinks the first close brace ends the variable substitution.
8124test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8125
8126test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8127
8128test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8129
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008130case "$INSTALL" in
8131 [\\/$]* | ?:[\\/]* ) ;;
8132 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8133esac
Reid Spencera773bd52006-08-04 18:18:08 +00008134
8135# Extract the first word of "bzip2", so it can be a program name with args.
8136set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8139if test "${ac_cv_path_BZIP2+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008141else
8142 case $BZIP2 in
8143 [\\/]* | ?:[\\/]*)
8144 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8145 ;;
8146 *)
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148for as_dir in $PATH
8149do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 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 +00008154 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008156 break 2
8157 fi
8158done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159done
Reid Spencera773bd52006-08-04 18:18:08 +00008160IFS=$as_save_IFS
8161
Reid Spencera773bd52006-08-04 18:18:08 +00008162 ;;
8163esac
8164fi
8165BZIP2=$ac_cv_path_BZIP2
8166if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8168echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170 { echo "$as_me:$LINENO: result: no" >&5
8171echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008172fi
8173
8174
mike-m68cb3192010-05-06 23:45:43 +00008175# Extract the first word of "cat", so it can be a program name with args.
8176set dummy cat; ac_word=$2
8177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8179if test "${ac_cv_path_CAT+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182 case $CAT in
8183 [\\/]* | ?:[\\/]*)
8184 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8185 ;;
8186 *)
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198done
8199done
8200IFS=$as_save_IFS
8201
8202 ;;
8203esac
8204fi
8205CAT=$ac_cv_path_CAT
8206if test -n "$CAT"; then
8207 { echo "$as_me:$LINENO: result: $CAT" >&5
8208echo "${ECHO_T}$CAT" >&6; }
8209else
8210 { echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6; }
8212fi
8213
8214
Reid Spencera773bd52006-08-04 18:18:08 +00008215# Extract the first word of "doxygen", so it can be a program name with args.
8216set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219if test "${ac_cv_path_DOXYGEN+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008221else
8222 case $DOXYGEN in
8223 [\\/]* | ?:[\\/]*)
8224 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8225 ;;
8226 *)
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 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 +00008234 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008236 break 2
8237 fi
8238done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239done
Reid Spencera773bd52006-08-04 18:18:08 +00008240IFS=$as_save_IFS
8241
Reid Spencera773bd52006-08-04 18:18:08 +00008242 ;;
8243esac
8244fi
8245DOXYGEN=$ac_cv_path_DOXYGEN
8246if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8248echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250 { echo "$as_me:$LINENO: result: no" >&5
8251echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008252fi
8253
8254
Reid Spencera773bd52006-08-04 18:18:08 +00008255# Extract the first word of "groff", so it can be a program name with args.
8256set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8259if test "${ac_cv_path_GROFF+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008261else
8262 case $GROFF in
8263 [\\/]* | ?:[\\/]*)
8264 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8265 ;;
8266 *)
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268for as_dir in $PATH
8269do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 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 +00008274 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008276 break 2
8277 fi
8278done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279done
Reid Spencera773bd52006-08-04 18:18:08 +00008280IFS=$as_save_IFS
8281
Reid Spencera773bd52006-08-04 18:18:08 +00008282 ;;
8283esac
8284fi
8285GROFF=$ac_cv_path_GROFF
8286if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008287 { echo "$as_me:$LINENO: result: $GROFF" >&5
8288echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290 { echo "$as_me:$LINENO: result: no" >&5
8291echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008292fi
8293
8294
8295# Extract the first word of "gzip", so it can be a program name with args.
8296set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008299if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008301else
Eric Christopher031d3072010-12-10 01:31:51 +00008302 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008303 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008304 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008305 ;;
8306 *)
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308for as_dir in $PATH
8309do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 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 +00008314 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008316 break 2
8317 fi
8318done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319done
Reid Spencera773bd52006-08-04 18:18:08 +00008320IFS=$as_save_IFS
8321
Reid Spencera773bd52006-08-04 18:18:08 +00008322 ;;
8323esac
8324fi
Eric Christopher031d3072010-12-10 01:31:51 +00008325GZIPBIN=$ac_cv_path_GZIPBIN
8326if test -n "$GZIPBIN"; then
8327 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8328echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008329else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330 { echo "$as_me:$LINENO: result: no" >&5
8331echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008332fi
8333
8334
8335# Extract the first word of "pod2html", so it can be a program name with args.
8336set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8339if test "${ac_cv_path_POD2HTML+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008341else
8342 case $POD2HTML in
8343 [\\/]* | ?:[\\/]*)
8344 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8345 ;;
8346 *)
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 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 +00008354 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008356 break 2
8357 fi
8358done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008359done
Reid Spencera773bd52006-08-04 18:18:08 +00008360IFS=$as_save_IFS
8361
Reid Spencera773bd52006-08-04 18:18:08 +00008362 ;;
8363esac
8364fi
8365POD2HTML=$ac_cv_path_POD2HTML
8366if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8368echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008370 { echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008372fi
8373
8374
8375# Extract the first word of "pod2man", so it can be a program name with args.
8376set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8379if test "${ac_cv_path_POD2MAN+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008381else
8382 case $POD2MAN in
8383 [\\/]* | ?:[\\/]*)
8384 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8385 ;;
8386 *)
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388for as_dir in $PATH
8389do
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 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 +00008394 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008396 break 2
8397 fi
8398done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008399done
Reid Spencera773bd52006-08-04 18:18:08 +00008400IFS=$as_save_IFS
8401
Reid Spencera773bd52006-08-04 18:18:08 +00008402 ;;
8403esac
8404fi
8405POD2MAN=$ac_cv_path_POD2MAN
8406if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008407 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8408echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008410 { echo "$as_me:$LINENO: result: no" >&5
8411echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008412fi
8413
8414
mike-m68cb3192010-05-06 23:45:43 +00008415# Extract the first word of "pdfroff", so it can be a program name with args.
8416set dummy pdfroff; ac_word=$2
8417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8419if test "${ac_cv_path_PDFROFF+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421else
8422 case $PDFROFF in
8423 [\\/]* | ?:[\\/]*)
8424 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8425 ;;
8426 *)
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428for as_dir in $PATH
8429do
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 break 2
8437 fi
8438done
8439done
8440IFS=$as_save_IFS
8441
8442 ;;
8443esac
8444fi
8445PDFROFF=$ac_cv_path_PDFROFF
8446if test -n "$PDFROFF"; then
8447 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8448echo "${ECHO_T}$PDFROFF" >&6; }
8449else
8450 { echo "$as_me:$LINENO: result: no" >&5
8451echo "${ECHO_T}no" >&6; }
8452fi
8453
8454
Reid Spencera773bd52006-08-04 18:18:08 +00008455# Extract the first word of "runtest", so it can be a program name with args.
8456set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8459if test "${ac_cv_path_RUNTEST+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008461else
8462 case $RUNTEST in
8463 [\\/]* | ?:[\\/]*)
8464 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8465 ;;
8466 *)
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468for as_dir in $PATH
8469do
8470 IFS=$as_save_IFS
8471 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 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 +00008474 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008476 break 2
8477 fi
8478done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479done
Reid Spencera773bd52006-08-04 18:18:08 +00008480IFS=$as_save_IFS
8481
Reid Spencera773bd52006-08-04 18:18:08 +00008482 ;;
8483esac
8484fi
8485RUNTEST=$ac_cv_path_RUNTEST
8486if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008487 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8488echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490 { echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008492fi
8493
8494
8495
8496no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8498echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008499
8500# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008501if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008502 withval=$with_tclinclude; with_tclinclude=${withval}
8503else
8504 with_tclinclude=''
8505fi
8506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507if test "${ac_cv_path_tclsh+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008509else
8510
8511if test x"${with_tclinclude}" != x ; then
8512 if test -f ${with_tclinclude}/tclsh ; then
8513 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8514 elif test -f ${with_tclinclude}/src/tclsh ; then
8515 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8516 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8518echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8519 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008520 fi
8521fi
Torok Edwin871384f2010-01-26 08:50:50 +00008522fi
8523
Reid Spencera773bd52006-08-04 18:18:08 +00008524
8525if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526 { echo "$as_me:$LINENO: result: none" >&5
8527echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008528 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
8529do
8530 # Extract the first word of "$ac_prog", so it can be a program name with args.
8531set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8534if test "${ac_cv_path_TCLSH+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008536else
8537 case $TCLSH in
8538 [\\/]* | ?:[\\/]*)
8539 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8540 ;;
8541 *)
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 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 +00008549 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008551 break 2
8552 fi
8553done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554done
Reid Spencera773bd52006-08-04 18:18:08 +00008555IFS=$as_save_IFS
8556
8557 ;;
8558esac
8559fi
8560TCLSH=$ac_cv_path_TCLSH
8561if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8563echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008565 { echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008567fi
8568
8569
8570 test -n "$TCLSH" && break
8571done
8572
8573 if test x"${TCLSH}" = x ; then
8574 ac_cv_path_tclsh='';
8575 else
8576 ac_cv_path_tclsh="${TCLSH}";
8577 fi
8578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8580echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008581 TCLSH="${ac_cv_path_tclsh}"
8582
8583fi
8584
Reid Spencera773bd52006-08-04 18:18:08 +00008585# Extract the first word of "zip", so it can be a program name with args.
8586set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8589if test "${ac_cv_path_ZIP+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008591else
8592 case $ZIP in
8593 [\\/]* | ?:[\\/]*)
8594 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8595 ;;
8596 *)
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598for as_dir in $PATH
8599do
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 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 +00008604 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008606 break 2
8607 fi
8608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008609done
Reid Spencera773bd52006-08-04 18:18:08 +00008610IFS=$as_save_IFS
8611
Reid Spencera773bd52006-08-04 18:18:08 +00008612 ;;
8613esac
8614fi
8615ZIP=$ac_cv_path_ZIP
8616if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008617 { echo "$as_me:$LINENO: result: $ZIP" >&5
8618echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008620 { echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008622fi
8623
8624
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008625for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008626do
8627 # Extract the first word of "$ac_prog", so it can be a program name with args.
8628set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8631if test "${ac_cv_path_OCAMLC+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008633else
8634 case $OCAMLC in
8635 [\\/]* | ?:[\\/]*)
8636 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8637 ;;
8638 *)
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640for as_dir in $PATH
8641do
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 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 +00008646 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008648 break 2
8649 fi
8650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008652IFS=$as_save_IFS
8653
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008654 ;;
8655esac
8656fi
8657OCAMLC=$ac_cv_path_OCAMLC
8658if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008659 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8660echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008662 { echo "$as_me:$LINENO: result: no" >&5
8663echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008664fi
8665
8666
Gordon Henriksene7072162008-03-07 18:20:01 +00008667 test -n "$OCAMLC" && break
8668done
8669
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008670for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008671do
8672 # Extract the first word of "$ac_prog", so it can be a program name with args.
8673set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8676if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008678else
8679 case $OCAMLOPT in
8680 [\\/]* | ?:[\\/]*)
8681 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8682 ;;
8683 *)
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685for as_dir in $PATH
8686do
8687 IFS=$as_save_IFS
8688 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 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 +00008691 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008693 break 2
8694 fi
8695done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008697IFS=$as_save_IFS
8698
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008699 ;;
8700esac
8701fi
8702OCAMLOPT=$ac_cv_path_OCAMLOPT
8703if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008704 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8705echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008706else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008707 { echo "$as_me:$LINENO: result: no" >&5
8708echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008709fi
8710
8711
Gordon Henriksene7072162008-03-07 18:20:01 +00008712 test -n "$OCAMLOPT" && break
8713done
8714
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008715for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008716do
8717 # Extract the first word of "$ac_prog", so it can be a program name with args.
8718set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8721if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008723else
8724 case $OCAMLDEP in
8725 [\\/]* | ?:[\\/]*)
8726 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8727 ;;
8728 *)
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730for as_dir in $PATH
8731do
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 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 +00008736 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008738 break 2
8739 fi
8740done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008742IFS=$as_save_IFS
8743
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008744 ;;
8745esac
8746fi
8747OCAMLDEP=$ac_cv_path_OCAMLDEP
8748if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008749 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8750echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008752 { echo "$as_me:$LINENO: result: no" >&5
8753echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008754fi
8755
8756
Gordon Henriksene7072162008-03-07 18:20:01 +00008757 test -n "$OCAMLDEP" && break
8758done
8759
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008760for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008761do
8762 # Extract the first word of "$ac_prog", so it can be a program name with args.
8763set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8766if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008768else
8769 case $OCAMLDOC in
8770 [\\/]* | ?:[\\/]*)
8771 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8772 ;;
8773 *)
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775for as_dir in $PATH
8776do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 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 +00008781 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008783 break 2
8784 fi
8785done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008787IFS=$as_save_IFS
8788
8789 ;;
8790esac
8791fi
8792OCAMLDOC=$ac_cv_path_OCAMLDOC
8793if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008794 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8795echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008797 { echo "$as_me:$LINENO: result: no" >&5
8798echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008799fi
8800
8801
8802 test -n "$OCAMLDOC" && break
8803done
8804
Torok Edwincc499a42008-10-22 09:56:27 +00008805for ac_prog in gas as
8806do
8807 # Extract the first word of "$ac_prog", so it can be a program name with args.
8808set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8811if test "${ac_cv_path_GAS+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008813else
8814 case $GAS in
8815 [\\/]* | ?:[\\/]*)
8816 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8817 ;;
8818 *)
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00008826 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008828 break 2
8829 fi
8830done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008831done
Torok Edwincc499a42008-10-22 09:56:27 +00008832IFS=$as_save_IFS
8833
8834 ;;
8835esac
8836fi
8837GAS=$ac_cv_path_GAS
8838if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008839 { echo "$as_me:$LINENO: result: $GAS" >&5
8840echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008842 { echo "$as_me:$LINENO: result: no" >&5
8843echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008844fi
8845
8846
8847 test -n "$GAS" && break
8848done
8849
Reid Spencera773bd52006-08-04 18:18:08 +00008850
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008851{ echo "$as_me:$LINENO: checking for linker version" >&5
8852echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8853if test "${llvm_cv_link_version+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8855else
8856
8857 version_string="$(ld -v 2>&1 | head -1)"
8858
8859 # Check for ld64.
8860 if (echo "$version_string" | grep -q "ld64"); then
8861 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8862 else
8863 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8864 fi
8865
8866fi
8867{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8868echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8869
8870cat >>confdefs.h <<_ACEOF
8871#define HOST_LINK_VERSION "$llvm_cv_link_version"
8872_ACEOF
8873
8874
8875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008876{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8877echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8878if test "${llvm_cv_link_use_r+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008880else
8881 ac_ext=c
8882ac_cpp='$CPP $CPPFLAGS'
8883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886
8887 oldcflags="$CFLAGS"
8888 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008889 cat >conftest.$ac_ext <<_ACEOF
8890/* confdefs.h. */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008894/* end confdefs.h. */
8895
8896int
8897main ()
8898{
Dan Gohman39ed6782010-04-25 00:12:20 +00008899
Reid Spencera773bd52006-08-04 18:18:08 +00008900 ;
8901 return 0;
8902}
8903_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008904rm -f conftest.$ac_objext conftest$ac_exeext
8905if { (ac_try="$ac_link"
8906case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909esac
8910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_link") 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8919 { (case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922esac
8923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_try") 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest$ac_exeext'
8929 { (case "(($ac_try" in
8930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8932esac
8933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934 (eval "$ac_try") 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008938 llvm_cv_link_use_r=yes
8939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008940 echo "$as_me: failed program was:" >&5
8941sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008945
Bill Wendlingebcceee2009-04-18 11:20:33 +00008946rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008947 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008948 CFLAGS="$oldcflags"
8949 ac_ext=c
8950ac_cpp='$CPP $CPPFLAGS'
8951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8953ac_compiler_gnu=$ac_cv_c_compiler_gnu
8954
8955
8956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008957{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8958echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008959if test "$llvm_cv_link_use_r" = yes ; then
8960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008961cat >>confdefs.h <<\_ACEOF
8962#define HAVE_LINK_R 1
8963_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008964
8965 fi
8966
8967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008968{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8969echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8970if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008972else
8973 ac_ext=c
8974ac_cpp='$CPP $CPPFLAGS'
8975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8977ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978
8979 oldcflags="$CFLAGS"
8980 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008981 cat >conftest.$ac_ext <<_ACEOF
8982/* confdefs.h. */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008986/* end confdefs.h. */
8987
8988int
8989main ()
8990{
Dan Gohman39ed6782010-04-25 00:12:20 +00008991
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008992 ;
8993 return 0;
8994}
8995_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008996rm -f conftest.$ac_objext conftest$ac_exeext
8997if { (ac_try="$ac_link"
8998case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9001esac
9002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9003 (eval "$ac_link") 2>conftest.er1
9004 ac_status=$?
9005 grep -v '^ *+' conftest.er1 >conftest.err
9006 rm -f conftest.er1
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011 { (case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9014esac
9015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_try") 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; } &&
9020 { ac_try='test -s conftest$ac_exeext'
9021 { (case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024esac
9025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_try") 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009030 llvm_cv_link_use_export_dynamic=yes
9031else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009032 echo "$as_me: failed program was:" >&5
9033sed 's/^/| /' conftest.$ac_ext >&5
9034
9035 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009037
Bill Wendlingebcceee2009-04-18 11:20:33 +00009038rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009039 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009040 CFLAGS="$oldcflags"
9041 ac_ext=c
9042ac_cpp='$CPP $CPPFLAGS'
9043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9045ac_compiler_gnu=$ac_cv_c_compiler_gnu
9046
9047
9048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009049{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9050echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009051if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009053cat >>confdefs.h <<\_ACEOF
9054#define HAVE_LINK_EXPORT_DYNAMIC 1
9055_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009056
9057 fi
9058
9059
Dan Gohmanda612d62010-06-01 14:56:56 +00009060{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9061echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9062if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009063 echo $ECHO_N "(cached) $ECHO_C" >&6
9064else
9065 ac_ext=c
9066ac_cpp='$CPP $CPPFLAGS'
9067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9069ac_compiler_gnu=$ac_cv_c_compiler_gnu
9070
9071 oldcflags="$CFLAGS"
9072
9073 # The following code is from the autoconf manual,
9074 # "11.13: Limitations of Usual Tools".
9075 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9076 # Use mktemp if possible; otherwise fall back on mkdir,
9077 # with $RANDOM to make collisions less likely.
9078 : ${TMPDIR=/tmp}
9079 {
9080 tmp=`
9081 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9082 ` &&
9083 test -n "$tmp" && test -d "$tmp"
9084 } || {
9085 tmp=$TMPDIR/foo$$-$RANDOM
9086 (umask 077 && mkdir "$tmp")
9087 } || exit $?
9088
Dan Gohmanda612d62010-06-01 14:56:56 +00009089 echo "{" > "$tmp/export.map"
9090 echo " global: main;" >> "$tmp/export.map"
9091 echo " local: *;" >> "$tmp/export.map"
9092 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009093
Dan Gohmanda612d62010-06-01 14:56:56 +00009094 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009095 cat >conftest.$ac_ext <<_ACEOF
9096/* confdefs.h. */
9097_ACEOF
9098cat confdefs.h >>conftest.$ac_ext
9099cat >>conftest.$ac_ext <<_ACEOF
9100/* end confdefs.h. */
9101
9102int
9103main ()
9104{
Dan Gohman39ed6782010-04-25 00:12:20 +00009105
Dan Gohman391569c2010-04-16 22:59:06 +00009106 ;
9107 return 0;
9108}
9109_ACEOF
9110rm -f conftest.$ac_objext conftest$ac_exeext
9111if { (ac_try="$ac_link"
9112case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115esac
9116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_link") 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9125 { (case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9128esac
9129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_try") 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9138esac
9139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_try") 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009144 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009145else
9146 echo "$as_me: failed program was:" >&5
9147sed 's/^/| /' conftest.$ac_ext >&5
9148
Dan Gohman943005e2010-06-01 16:22:27 +00009149 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009150fi
9151
9152rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009154 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009155 rmdir "$tmp"
9156 CFLAGS="$oldcflags"
9157 ac_ext=c
9158ac_cpp='$CPP $CPPFLAGS'
9159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9161ac_compiler_gnu=$ac_cv_c_compiler_gnu
9162
9163
9164fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009165{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9166echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9167if test "$llvm_cv_link_use_version_script" = yes ; then
9168 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009169
9170 fi
9171
9172
Reid Spencera773bd52006-08-04 18:18:08 +00009173
9174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009175{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9176echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9177if test "${ac_cv_c_const+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009180 cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009185/* end confdefs.h. */
9186
9187int
9188main ()
9189{
9190/* FIXME: Include the comments suggested by Paul. */
9191#ifndef __cplusplus
9192 /* Ultrix mips cc rejects this. */
9193 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009194 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009195 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009196 char const *const *ccp;
9197 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009198 /* NEC SVR4.0.2 mips cc rejects this. */
9199 struct point {int x, y;};
9200 static struct point const zero = {0,0};
9201 /* AIX XL C 1.02.0.0 rejects this.
9202 It does not let you subtract one const X* pointer from another in
9203 an arm of an if-expression whose if-part is not a constant
9204 expression */
9205 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009206 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009207 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009208 ++ccp;
9209 p = (char**) ccp;
9210 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009211 { /* SCO 3.2v4 cc rejects this. */
9212 char *t;
9213 char const *s = 0 ? (char *) 0 : (char const *) 0;
9214
9215 *t++ = 0;
9216 if (s) return 0;
9217 }
9218 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9219 int x[] = {25, 17};
9220 const int *foo = &x[0];
9221 ++foo;
9222 }
9223 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9224 typedef const int *iptr;
9225 iptr p = 0;
9226 ++p;
9227 }
9228 { /* AIX XL C 1.02.0.0 rejects this saying
9229 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9230 struct s { int j; const int *ap[3]; };
9231 struct s *b; b->j = 5;
9232 }
9233 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9234 const int foo = 10;
9235 if (!foo) return 0;
9236 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009237 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009238#endif
9239
9240 ;
9241 return 0;
9242}
9243_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009244rm -f conftest.$ac_objext
9245if { (ac_try="$ac_compile"
9246case "(($ac_try" in
9247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248 *) ac_try_echo=$ac_try;;
9249esac
9250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251 (eval "$ac_compile") 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9259 { (case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262esac
9263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_try") 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; } &&
9268 { ac_try='test -s conftest.$ac_objext'
9269 { (case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272esac
9273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_try") 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009278 ac_cv_c_const=yes
9279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009280 echo "$as_me: failed program was:" >&5
9281sed 's/^/| /' conftest.$ac_ext >&5
9282
9283 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009285
Reid Spencera773bd52006-08-04 18:18:08 +00009286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009288{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9289echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009290if test $ac_cv_c_const = no; then
9291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009292cat >>confdefs.h <<\_ACEOF
9293#define const
9294_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009295
9296fi
9297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009298
9299
9300
9301
9302
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009303ac_header_dirent=no
9304for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009305 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9306{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9307echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009311 cat >conftest.$ac_ext <<_ACEOF
9312/* confdefs.h. */
9313_ACEOF
9314cat confdefs.h >>conftest.$ac_ext
9315cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316/* end confdefs.h. */
9317#include <sys/types.h>
9318#include <$ac_hdr>
9319
9320int
9321main ()
9322{
9323if ((DIR *) 0)
9324return 0;
9325 ;
9326 return 0;
9327}
9328_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009329rm -f conftest.$ac_objext
9330if { (ac_try="$ac_compile"
9331case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334esac
9335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_compile") 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9344 { (case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347esac
9348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_try") 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest.$ac_objext'
9354 { (case "(($ac_try" in
9355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9357esac
9358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_try") 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009363 eval "$as_ac_Header=yes"
9364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009365 echo "$as_me: failed program was:" >&5
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009369fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370
Reid Spencera773bd52006-08-04 18:18:08 +00009371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009373ac_res=`eval echo '${'$as_ac_Header'}'`
9374 { echo "$as_me:$LINENO: result: $ac_res" >&5
9375echo "${ECHO_T}$ac_res" >&6; }
9376if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009377 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009378#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379_ACEOF
9380
9381ac_header_dirent=$ac_hdr; break
9382fi
9383
9384done
9385# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9386if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009387 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9388echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9389if test "${ac_cv_search_opendir+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391else
9392 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009393cat >conftest.$ac_ext <<_ACEOF
9394/* confdefs.h. */
9395_ACEOF
9396cat confdefs.h >>conftest.$ac_ext
9397cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398/* end confdefs.h. */
9399
Reid Spencera773bd52006-08-04 18:18:08 +00009400/* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403#ifdef __cplusplus
9404extern "C"
9405#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406char opendir ();
9407int
9408main ()
9409{
Reid Spencera773bd52006-08-04 18:18:08 +00009410return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411 ;
9412 return 0;
9413}
9414_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009415for ac_lib in '' dir; do
9416 if test -z "$ac_lib"; then
9417 ac_res="none required"
9418 else
9419 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009421 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009422 rm -f conftest.$ac_objext conftest$ac_exeext
9423if { (ac_try="$ac_link"
9424case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427esac
9428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9437 { (case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440esac
9441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_try") 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try='test -s conftest$ac_exeext'
9447 { (case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450esac
9451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_try") 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009456 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009463
Bill Wendlingebcceee2009-04-18 11:20:33 +00009464rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009465 conftest$ac_exeext
9466 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009467 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468fi
John Criswell7a73b802003-06-30 21:59:07 +00009469done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009470if test "${ac_cv_search_opendir+set}" = set; then
9471 :
Reid Spencera773bd52006-08-04 18:18:08 +00009472else
9473 ac_cv_search_opendir=no
9474fi
9475rm conftest.$ac_ext
9476LIBS=$ac_func_search_save_LIBS
9477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009478{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9479echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009480ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009481if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009483
Reid Spencera773bd52006-08-04 18:18:08 +00009484fi
9485
9486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009487 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9488echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9489if test "${ac_cv_search_opendir+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009491else
9492 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009493cat >conftest.$ac_ext <<_ACEOF
9494/* confdefs.h. */
9495_ACEOF
9496cat confdefs.h >>conftest.$ac_ext
9497cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009498/* end confdefs.h. */
9499
9500/* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
9503#ifdef __cplusplus
9504extern "C"
9505#endif
9506char opendir ();
9507int
9508main ()
9509{
9510return opendir ();
9511 ;
9512 return 0;
9513}
9514_ACEOF
9515for ac_lib in '' x; do
9516 if test -z "$ac_lib"; then
9517 ac_res="none required"
9518 else
9519 ac_res=-l$ac_lib
9520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9521 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009522 rm -f conftest.$ac_objext conftest$ac_exeext
9523if { (ac_try="$ac_link"
9524case "(($ac_try" in
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9527esac
9528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_link") 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537 { (case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540esac
9541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_try") 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest$ac_exeext'
9547 { (case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_try") 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009556 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009557else
9558 echo "$as_me: failed program was:" >&5
9559sed 's/^/| /' conftest.$ac_ext >&5
9560
9561
Reid Spencera773bd52006-08-04 18:18:08 +00009562fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009563
Bill Wendlingebcceee2009-04-18 11:20:33 +00009564rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009565 conftest$ac_exeext
9566 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009567 break
9568fi
9569done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009570if test "${ac_cv_search_opendir+set}" = set; then
9571 :
Reid Spencera773bd52006-08-04 18:18:08 +00009572else
9573 ac_cv_search_opendir=no
9574fi
9575rm conftest.$ac_ext
9576LIBS=$ac_func_search_save_LIBS
9577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009578{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9579echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009580ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009581if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9583
9584fi
9585
9586fi
John Criswell7a73b802003-06-30 21:59:07 +00009587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009588
John Criswell7a73b802003-06-30 21:59:07 +00009589for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009590do
9591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9597fi
9598ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600echo "${ECHO_T}$ac_res" >&6; }
9601else
9602 # Is the header compilable?
9603{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9605cat >conftest.$ac_ext <<_ACEOF
9606/* confdefs.h. */
9607_ACEOF
9608cat confdefs.h >>conftest.$ac_ext
9609cat >>conftest.$ac_ext <<_ACEOF
9610/* end confdefs.h. */
9611$ac_includes_default
9612#include <$ac_header>
9613_ACEOF
9614rm -f conftest.$ac_objext
9615if { (ac_try="$ac_compile"
9616case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_compile") 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629 { (case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632esac
9633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_try") 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_header_compiler=yes
9649else
9650 echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653 ac_header_compiler=no
9654fi
9655
9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9657{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9658echo "${ECHO_T}$ac_header_compiler" >&6; }
9659
9660# Is the header present?
9661{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9663cat >conftest.$ac_ext <<_ACEOF
9664/* confdefs.h. */
9665_ACEOF
9666cat confdefs.h >>conftest.$ac_ext
9667cat >>conftest.$ac_ext <<_ACEOF
9668/* end confdefs.h. */
9669#include <$ac_header>
9670_ACEOF
9671if { (ac_try="$ac_cpp conftest.$ac_ext"
9672case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675esac
9676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } >/dev/null; then
9684 if test -s conftest.err; then
9685 ac_cpp_err=$ac_c_preproc_warn_flag
9686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9687 else
9688 ac_cpp_err=
9689 fi
9690else
9691 ac_cpp_err=yes
9692fi
9693if test -z "$ac_cpp_err"; then
9694 ac_header_preproc=yes
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
9699 ac_header_preproc=no
9700fi
9701
9702rm -f conftest.err conftest.$ac_ext
9703{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704echo "${ECHO_T}$ac_header_preproc" >&6; }
9705
9706# So? What about this header?
9707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9708 yes:no: )
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9713 ac_header_preproc=yes
9714 ;;
9715 no:yes:* )
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9728 ( cat <<\_ASBOX
9729## ----------------------------------- ##
9730## Report this to llvmbugs@cs.uiuc.edu ##
9731## ----------------------------------- ##
9732_ASBOX
9733 ) | sed "s/^/$as_me: WARNING: /" >&2
9734 ;;
9735esac
9736{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740else
9741 eval "$as_ac_Header=\$ac_header_preproc"
9742fi
9743ac_res=`eval echo '${'$as_ac_Header'}'`
9744 { echo "$as_me:$LINENO: result: $ac_res" >&5
9745echo "${ECHO_T}$ac_res" >&6; }
9746
9747fi
9748if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009749 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009751_ACEOF
9752
9753fi
9754
9755done
9756
Reid Spencera773bd52006-08-04 18:18:08 +00009757# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009758if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009759 enableval=$enable_ltdl_install;
9760fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009763
9764
9765if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766 INSTALL_LTDL_TRUE=
9767 INSTALL_LTDL_FALSE='#'
9768else
9769 INSTALL_LTDL_TRUE='#'
9770 INSTALL_LTDL_FALSE=
9771fi
9772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009773
9774
9775if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776 CONVENIENCE_LTDL_TRUE=
9777 CONVENIENCE_LTDL_FALSE='#'
9778else
9779 CONVENIENCE_LTDL_TRUE='#'
9780 CONVENIENCE_LTDL_FALSE=
9781fi
9782
9783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009784{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9785echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786library_names_spec=
9787libname_spec='lib$name'
9788soname_spec=
9789shrext_cmds=".so"
9790postinstall_cmds=
9791postuninstall_cmds=
9792finish_cmds=
9793finish_eval=
9794shlibpath_var=
9795shlibpath_overrides_runpath=unknown
9796version_type=none
9797dynamic_linker="$host_os ld.so"
9798sys_lib_dlsearch_path_spec="/lib /usr/lib"
9799if test "$GCC" = yes; then
9800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9801 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9802 # if the path contains ";" then we assume it to be the separator
9803 # otherwise default to the standard path separator (i.e. ":") - it is
9804 # assumed that no part of a normal pathname contains ";" but that should
9805 # okay in the real world where ";" in dirpaths is itself problematic.
9806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9807 else
9808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9809 fi
9810else
9811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9812fi
9813need_lib_prefix=unknown
9814hardcode_into_libs=no
9815
9816# when you set need_version to no, make sure it does not cause -set_version
9817# flags to be left without arguments
9818need_version=unknown
9819
9820case $host_os in
9821aix3*)
9822 version_type=linux
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9824 shlibpath_var=LIBPATH
9825
9826 # AIX 3 has no versioning support, so we append a major version to the name.
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 ;;
9829
9830aix4* | aix5*)
9831 version_type=linux
9832 need_lib_prefix=no
9833 need_version=no
9834 hardcode_into_libs=yes
9835 if test "$host_cpu" = ia64; then
9836 # AIX 5 supports IA64
9837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 else
9840 # With GCC up to 2.95.x, collect2 would create an import file
9841 # for dependence libraries. The import file would start with
9842 # the line `#! .'. This would cause the generated library to
9843 # depend on `.', always an invalid library. This was fixed in
9844 # development snapshots of GCC prior to 3.0.
9845 case $host_os in
9846 aix4 | aix4.[01] | aix4.[01].*)
9847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9848 echo ' yes '
9849 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9850 :
9851 else
9852 can_build_shared=no
9853 fi
9854 ;;
9855 esac
9856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9857 # soname into executable. Probably we can add versioning support to
9858 # collect2, so additional links can be useful in future.
9859 if test "$aix_use_runtimelinking" = yes; then
9860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9861 # instead of lib<name>.a to let people know that these are not
9862 # typical AIX shared libraries.
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864 else
9865 # We preserve .a as extension for shared libraries through AIX4.2
9866 # and later when we are not doing run time linking.
9867 library_names_spec='${libname}${release}.a $libname.a'
9868 soname_spec='${libname}${release}${shared_ext}$major'
9869 fi
9870 shlibpath_var=LIBPATH
9871 fi
9872 ;;
9873
9874amigaos*)
9875 library_names_spec='$libname.ixlibrary $libname.a'
9876 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9877 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'
9878 ;;
9879
9880beos*)
9881 library_names_spec='${libname}${shared_ext}'
9882 dynamic_linker="$host_os ld.so"
9883 shlibpath_var=LIBRARY_PATH
9884 ;;
9885
9886bsdi[45]*)
9887 version_type=linux
9888 need_version=no
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9895 # the default ld.so.conf also contains /usr/contrib/lib and
9896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9897 # libtool to hard-code these into programs
9898 ;;
9899
9900cygwin* | mingw* | pw32*)
9901 version_type=windows
9902 shrext_cmds=".dll"
9903 need_version=no
9904 need_lib_prefix=no
9905
9906 case $GCC,$host_os in
9907 yes,cygwin* | yes,mingw* | yes,pw32*)
9908 library_names_spec='$libname.dll.a'
9909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9910 postinstall_cmds='base_file=`basename \${file}`~
9911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9912 dldir=$destdir/`dirname \$dlpath`~
9913 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009914 $install_prog $dir/$dlname \$dldir/$dlname~
9915 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9917 dlpath=$dir/\$dldll~
9918 $rm \$dlpath'
9919 shlibpath_overrides_runpath=yes
9920
9921 case $host_os in
9922 cygwin*)
9923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9926 ;;
9927 mingw*)
9928 # MinGW DLLs use traditional 'lib' prefix
9929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9930 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9931 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9932 # It is most probably a Windows format PATH printed by
9933 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9934 # path with ; separators, and with drive letters. We can handle the
9935 # drive letters (cygwin fileutils understands them), so leave them,
9936 # especially as we might pass files found there to a mingw objdump,
9937 # which wouldn't understand a cygwinified path. Ahh.
9938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9939 else
9940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9941 fi
9942 ;;
9943 pw32*)
9944 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009945 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 +00009946 ;;
9947 esac
9948 ;;
9949
9950 *)
9951 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9952 ;;
9953 esac
9954 dynamic_linker='Win32 ld.exe'
9955 # FIXME: first we should search . and the directory the executable is in
9956 shlibpath_var=PATH
9957 ;;
9958
9959darwin* | rhapsody*)
9960 dynamic_linker="$host_os dyld"
9961 version_type=darwin
9962 need_lib_prefix=no
9963 need_version=no
9964 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9965 soname_spec='${libname}${release}${major}$shared_ext'
9966 shlibpath_overrides_runpath=yes
9967 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009968 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9970 if test "$GCC" = yes; then
9971 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"`
9972 else
9973 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9974 fi
9975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9976 ;;
9977
9978dgux*)
9979 version_type=linux
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 ;;
9986
9987freebsd1*)
9988 dynamic_linker=no
9989 ;;
9990
9991kfreebsd*-gnu)
9992 version_type=linux
9993 need_lib_prefix=no
9994 need_version=no
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 shlibpath_var=LD_LIBRARY_PATH
9998 shlibpath_overrides_runpath=no
9999 hardcode_into_libs=yes
10000 dynamic_linker='GNU ld.so'
10001 ;;
10002
Reid Spencera773bd52006-08-04 18:18:08 +000010003freebsd* | dragonfly*)
10004 # DragonFly does not have aout. When/if they implement a new
10005 # versioning mechanism, adjust this.
10006 if test -x /usr/bin/objformat; then
10007 objformat=`/usr/bin/objformat`
10008 else
10009 case $host_os in
10010 freebsd[123]*) objformat=aout ;;
10011 *) objformat=elf ;;
10012 esac
10013 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010014 version_type=freebsd-$objformat
10015 case $version_type in
10016 freebsd-elf*)
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10018 need_version=no
10019 need_lib_prefix=no
10020 ;;
10021 freebsd-*)
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10023 need_version=yes
10024 ;;
10025 esac
10026 shlibpath_var=LD_LIBRARY_PATH
10027 case $host_os in
10028 freebsd2*)
10029 shlibpath_overrides_runpath=yes
10030 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010031 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 shlibpath_overrides_runpath=yes
10033 hardcode_into_libs=yes
10034 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037 shlibpath_overrides_runpath=no
10038 hardcode_into_libs=yes
10039 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010040 freebsd*) # from 4.6 on
10041 shlibpath_overrides_runpath=yes
10042 hardcode_into_libs=yes
10043 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010044 esac
10045 ;;
10046
10047gnu*)
10048 version_type=linux
10049 need_lib_prefix=no
10050 need_version=no
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 shlibpath_var=LD_LIBRARY_PATH
10054 hardcode_into_libs=yes
10055 ;;
10056
10057hpux9* | hpux10* | hpux11*)
10058 # Give a soname corresponding to the major version so that dld.sl refuses to
10059 # link against other versions.
10060 version_type=sunos
10061 need_lib_prefix=no
10062 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010063 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064 ia64*)
10065 shrext_cmds='.so'
10066 hardcode_into_libs=yes
10067 dynamic_linker="$host_os dld.so"
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 if test "X$HPUX_IA64_MODE" = X32; then
10073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10074 else
10075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10076 fi
10077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10078 ;;
10079 hppa*64*)
10080 shrext_cmds='.sl'
10081 hardcode_into_libs=yes
10082 dynamic_linker="$host_os dld.sl"
10083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10089 ;;
10090 *)
10091 shrext_cmds='.sl'
10092 dynamic_linker="$host_os dld.sl"
10093 shlibpath_var=SHLIB_PATH
10094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 ;;
10098 esac
10099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10100 postinstall_cmds='chmod 555 $lib'
10101 ;;
10102
Reid Spencera773bd52006-08-04 18:18:08 +000010103interix3*)
10104 version_type=linux
10105 need_lib_prefix=no
10106 need_version=no
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=no
10112 hardcode_into_libs=yes
10113 ;;
10114
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115irix5* | irix6* | nonstopux*)
10116 case $host_os in
10117 nonstopux*) version_type=nonstopux ;;
10118 *)
10119 if test "$lt_cv_prog_gnu_ld" = yes; then
10120 version_type=linux
10121 else
10122 version_type=irix
10123 fi ;;
10124 esac
10125 need_lib_prefix=no
10126 need_version=no
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10129 case $host_os in
10130 irix5* | nonstopux*)
10131 libsuff= shlibsuff=
10132 ;;
10133 *)
10134 case $LD in # libtool.m4 will add one of these switches to LD
10135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10136 libsuff= shlibsuff= libmagic=32-bit;;
10137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10138 libsuff=32 shlibsuff=N32 libmagic=N32;;
10139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10141 *) libsuff= shlibsuff= libmagic=never-match;;
10142 esac
10143 ;;
10144 esac
10145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10146 shlibpath_overrides_runpath=no
10147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10149 hardcode_into_libs=yes
10150 ;;
10151
10152# No shared lib support for Linux oldld, aout, or coff.
10153linux*oldld* | linux*aout* | linux*coff*)
10154 dynamic_linker=no
10155 ;;
10156
10157# This must be Linux ELF.
10158linux*)
10159 version_type=linux
10160 need_lib_prefix=no
10161 need_version=no
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=no
10167 # This implies no fast_install, which is unacceptable.
10168 # Some rework will be needed to allow for fast_install
10169 # before this can be enabled.
10170 hardcode_into_libs=yes
10171
10172 # Append ld.so.conf contents to the search path
10173 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010174 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 +000010175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10176 fi
10177
10178 # We used to test for /lib/ld.so.1 and disable shared libraries on
10179 # powerpc, because MkLinux only supported shared libraries with the
10180 # GNU dynamic linker. Since this was broken with cross compilers,
10181 # most powerpc-linux boxes support dynamic linking these days and
10182 # people can always --disable-shared, the test was removed, and we
10183 # assume the GNU/Linux dynamic linker is in use.
10184 dynamic_linker='GNU/Linux ld.so'
10185 ;;
10186
10187knetbsd*-gnu)
10188 version_type=linux
10189 need_lib_prefix=no
10190 need_version=no
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=no
10195 hardcode_into_libs=yes
10196 dynamic_linker='GNU ld.so'
10197 ;;
10198
10199netbsd*)
10200 version_type=sunos
10201 need_lib_prefix=no
10202 need_version=no
10203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10206 dynamic_linker='NetBSD (a.out) ld.so'
10207 else
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 dynamic_linker='NetBSD ld.elf_so'
10211 fi
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=yes
10214 hardcode_into_libs=yes
10215 ;;
10216
10217newsos6)
10218 version_type=linux
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 shlibpath_overrides_runpath=yes
10222 ;;
10223
10224nto-qnx*)
10225 version_type=linux
10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 shlibpath_overrides_runpath=yes
10232 ;;
10233
10234openbsd*)
10235 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010236 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10239 case $host_os in
10240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10241 *) need_version=no ;;
10242 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10247 case $host_os in
10248 openbsd2.[89] | openbsd2.[89].*)
10249 shlibpath_overrides_runpath=no
10250 ;;
10251 *)
10252 shlibpath_overrides_runpath=yes
10253 ;;
10254 esac
10255 else
10256 shlibpath_overrides_runpath=yes
10257 fi
10258 ;;
10259
10260os2*)
10261 libname_spec='$name'
10262 shrext_cmds=".dll"
10263 need_lib_prefix=no
10264 library_names_spec='$libname${shared_ext} $libname.a'
10265 dynamic_linker='OS/2 ld.exe'
10266 shlibpath_var=LIBPATH
10267 ;;
10268
10269osf3* | osf4* | osf5*)
10270 version_type=osf
10271 need_lib_prefix=no
10272 need_version=no
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10278 ;;
10279
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010280solaris*)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10289 # ldd complains unless libraries are executable
10290 postinstall_cmds='chmod +x $lib'
10291 ;;
10292
10293sunos4*)
10294 version_type=sunos
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10299 if test "$with_gnu_ld" = yes; then
10300 need_lib_prefix=no
10301 fi
10302 need_version=yes
10303 ;;
10304
Reid Spencera773bd52006-08-04 18:18:08 +000010305sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306 version_type=linux
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 case $host_vendor in
10311 sni)
10312 shlibpath_overrides_runpath=no
10313 need_lib_prefix=no
10314 export_dynamic_flag_spec='${wl}-Blargedynsym'
10315 runpath_var=LD_RUN_PATH
10316 ;;
10317 siemens)
10318 need_lib_prefix=no
10319 ;;
10320 motorola)
10321 need_lib_prefix=no
10322 need_version=no
10323 shlibpath_overrides_runpath=no
10324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10325 ;;
10326 esac
10327 ;;
10328
10329sysv4*MP*)
10330 if test -d /usr/nec ;then
10331 version_type=linux
10332 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10333 soname_spec='$libname${shared_ext}.$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 fi
10336 ;;
10337
Reid Spencera773bd52006-08-04 18:18:08 +000010338sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10339 version_type=freebsd-elf
10340 need_lib_prefix=no
10341 need_version=no
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 hardcode_into_libs=yes
10346 if test "$with_gnu_ld" = yes; then
10347 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10348 shlibpath_overrides_runpath=no
10349 else
10350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10351 shlibpath_overrides_runpath=yes
10352 case $host_os in
10353 sco3.2v5*)
10354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10355 ;;
10356 esac
10357 fi
10358 sys_lib_dlsearch_path_spec='/usr/lib'
10359 ;;
10360
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010361uts4*)
10362 version_type=linux
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 ;;
10367
10368*)
10369 dynamic_linker=no
10370 ;;
10371esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010372{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10373echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010374test "$dynamic_linker" = no && can_build_shared=no
10375
Reid Spencera773bd52006-08-04 18:18:08 +000010376variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10377if test "$GCC" = yes; then
10378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10379fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010380
Reid Spencera773bd52006-08-04 18:18:08 +000010381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010382{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10383echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10384if test "${libltdl_cv_shlibext+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386else
10387
10388module=yes
10389eval libltdl_cv_shlibext=$shrext_cmds
10390
10391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010392{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10393echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010394if test -n "$libltdl_cv_shlibext"; then
10395
10396cat >>confdefs.h <<_ACEOF
10397#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10398_ACEOF
10399
10400fi
10401
10402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010403{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10404echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10405if test "${libltdl_cv_shlibpath_var+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407else
10408 libltdl_cv_shlibpath_var="$shlibpath_var"
10409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010410{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10411echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412if test -n "$libltdl_cv_shlibpath_var"; then
10413
10414cat >>confdefs.h <<_ACEOF
10415#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10416_ACEOF
10417
10418fi
10419
10420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10422echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10423if test "${libltdl_cv_sys_search_path+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425else
10426 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010428{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10429echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430if test -n "$libltdl_cv_sys_search_path"; then
10431 sys_search_path=
10432 for dir in $libltdl_cv_sys_search_path; do
10433 if test -z "$sys_search_path"; then
10434 sys_search_path="$dir"
10435 else
10436 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10437 fi
10438 done
10439
10440cat >>confdefs.h <<_ACEOF
10441#define LTDL_SYSSEARCHPATH "$sys_search_path"
10442_ACEOF
10443
10444fi
10445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010446{ echo "$as_me:$LINENO: checking for objdir" >&5
10447echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10448if test "${libltdl_cv_objdir+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450else
10451 libltdl_cv_objdir="$objdir"
10452 if test -n "$objdir"; then
10453 :
10454 else
10455 rm -f .libs 2>/dev/null
10456 mkdir .libs 2>/dev/null
10457 if test -d .libs; then
10458 libltdl_cv_objdir=.libs
10459 else
10460 # MS-DOS does not allow filenames that begin with a dot.
10461 libltdl_cv_objdir=_libs
10462 fi
10463 rmdir .libs 2>/dev/null
10464 fi
10465
10466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010467{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10468echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469
10470cat >>confdefs.h <<_ACEOF
10471#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10472_ACEOF
10473
10474
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010475
10476
10477
10478
10479# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010480{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10481echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10482if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484else
10485
10486# These are sane defaults that work on at least a few old systems.
10487# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10488
10489# Character class describing NM global symbol codes.
10490symcode='[BCDEGRST]'
10491
10492# Regexp to match symbols that can be accessed directly from C.
10493sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10494
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010495# Transform an extracted symbol line into a proper C declaration
10496lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10497
10498# Transform an extracted symbol line into symbol name and symbol address
10499lt_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'"
10500
10501# Define system-specific variables.
10502case $host_os in
10503aix*)
10504 symcode='[BCDT]'
10505 ;;
10506cygwin* | mingw* | pw32*)
10507 symcode='[ABCDGISTW]'
10508 ;;
10509hpux*) # Its linker distinguishes data from code symbols
10510 if test "$host_cpu" = ia64; then
10511 symcode='[ABCDEGRST]'
10512 fi
10513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10514 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'"
10515 ;;
10516linux*)
10517 if test "$host_cpu" = ia64; then
10518 symcode='[ABCDGIRSTW]'
10519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10520 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'"
10521 fi
10522 ;;
10523irix* | nonstopux*)
10524 symcode='[BCDEGRST]'
10525 ;;
10526osf*)
10527 symcode='[BCDEGQRST]'
10528 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010529solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530 symcode='[BDRT]'
10531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010532sco3.2v5*)
10533 symcode='[DT]'
10534 ;;
10535sysv4.2uw2*)
10536 symcode='[DT]'
10537 ;;
10538sysv5* | sco5v6* | unixware* | OpenUNIX*)
10539 symcode='[ABDT]'
10540 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541sysv4)
10542 symcode='[DFNSTU]'
10543 ;;
10544esac
10545
10546# Handle CRLF in mingw tool chain
10547opt_cr=
10548case $build_os in
10549mingw*)
10550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10551 ;;
10552esac
10553
10554# If we're using GNU nm, then use its standard symbol codes.
10555case `$NM -V 2>&1` in
10556*GNU* | *'with BFD'*)
10557 symcode='[ABCDGIRSTW]' ;;
10558esac
10559
10560# Try without a prefix undercore, then with it.
10561for ac_symprfx in "" "_"; do
10562
Reid Spencera773bd52006-08-04 18:18:08 +000010563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10564 symxfrm="\\1 $ac_symprfx\\2 \\2"
10565
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010567 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 +000010568
10569 # Check to see that the pipe works correctly.
10570 pipe_works=no
10571
10572 rm -f conftest*
10573 cat > conftest.$ac_ext <<EOF
10574#ifdef __cplusplus
10575extern "C" {
10576#endif
10577char nm_test_var;
10578void nm_test_func(){}
10579#ifdef __cplusplus
10580}
10581#endif
10582int main(){nm_test_var='a';nm_test_func();return(0);}
10583EOF
10584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586 (eval $ac_compile) 2>&5
10587 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590 # Now try to grab the symbols.
10591 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010592 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 +000010593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10594 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597 # Try sorting and uniquifying the output.
10598 if sort "$nlist" | uniq > "$nlist"T; then
10599 mv -f "$nlist"T "$nlist"
10600 else
10601 rm -f "$nlist"T
10602 fi
10603
10604 # Make sure that we snagged all the symbols we need.
10605 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10606 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10607 cat <<EOF > conftest.$ac_ext
10608#ifdef __cplusplus
10609extern "C" {
10610#endif
10611
10612EOF
10613 # Now generate the symbol file.
10614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10615
10616 cat <<EOF >> conftest.$ac_ext
10617#if defined (__STDC__) && __STDC__
10618# define lt_ptr_t void *
10619#else
10620# define lt_ptr_t char *
10621# define const
10622#endif
10623
10624/* The mapping between symbol names and symbols. */
10625const struct {
10626 const char *name;
10627 lt_ptr_t address;
10628}
10629lt_preloaded_symbols[] =
10630{
10631EOF
10632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10633 cat <<\EOF >> conftest.$ac_ext
10634 {0, (lt_ptr_t) 0}
10635};
10636
10637#ifdef __cplusplus
10638}
10639#endif
10640EOF
10641 # Now try linking the two files.
10642 mv conftest.$ac_objext conftstm.$ac_objext
10643 lt_save_LIBS="$LIBS"
10644 lt_save_CFLAGS="$CFLAGS"
10645 LIBS="conftstm.$ac_objext"
10646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648 (eval $ac_link) 2>&5
10649 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652 pipe_works=yes
10653 fi
10654 LIBS="$lt_save_LIBS"
10655 CFLAGS="$lt_save_CFLAGS"
10656 else
10657 echo "cannot find nm_test_func in $nlist" >&5
10658 fi
10659 else
10660 echo "cannot find nm_test_var in $nlist" >&5
10661 fi
10662 else
10663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10664 fi
10665 else
10666 echo "$progname: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 fi
10669 rm -f conftest* conftst*
10670
10671 # Do not use the global_symbol_pipe unless it works.
10672 if test "$pipe_works" = yes; then
10673 break
10674 else
10675 lt_cv_sys_global_symbol_pipe=
10676 fi
10677done
10678
10679fi
10680
10681if test -z "$lt_cv_sys_global_symbol_pipe"; then
10682 lt_cv_sys_global_symbol_to_cdecl=
10683fi
10684if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010685 { echo "$as_me:$LINENO: result: failed" >&5
10686echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010688 { echo "$as_me:$LINENO: result: ok" >&5
10689echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690fi
10691
10692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010693{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10694echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10695if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697else
10698 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10699 libltdl_cv_preloaded_symbols=yes
10700 else
10701 libltdl_cv_preloaded_symbols=no
10702 fi
10703
10704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010705{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10706echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010707if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010709cat >>confdefs.h <<\_ACEOF
10710#define HAVE_PRELOADED_SYMBOLS 1
10711_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712
10713fi
10714
10715LIBADD_DL=
10716
10717ac_ext=c
10718ac_cpp='$CPP $CPPFLAGS'
10719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722
10723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010724{ echo "$as_me:$LINENO: checking for shl_load" >&5
10725echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10726if test "${ac_cv_func_shl_load+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728else
10729 cat >conftest.$ac_ext <<_ACEOF
10730/* confdefs.h. */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h. */
10735/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10737#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010739/* System header to define __stub macros and hopefully few prototypes,
10740 which can conflict with char shl_load (); below.
10741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10742 <limits.h> exists even on freestanding compilers. */
10743
10744#ifdef __STDC__
10745# include <limits.h>
10746#else
10747# include <assert.h>
10748#endif
10749
10750#undef shl_load
10751
10752/* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10755#ifdef __cplusplus
10756extern "C"
10757#endif
10758char shl_load ();
10759/* The GNU C library defines this for functions which it implements
10760 to always fail with ENOSYS. Some functions are actually named
10761 something starting with __ and the normal name is an alias. */
10762#if defined __stub_shl_load || defined __stub___shl_load
10763choke me
10764#endif
10765
10766int
10767main ()
10768{
10769return shl_load ();
10770 ;
10771 return 0;
10772}
10773_ACEOF
10774rm -f conftest.$ac_objext conftest$ac_exeext
10775if { (ac_try="$ac_link"
10776case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802esac
10803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_func_shl_load=yes
10809else
10810 echo "$as_me: failed program was:" >&5
10811sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 ac_cv_func_shl_load=no
10814fi
10815
10816rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818fi
10819{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10820echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10821if test $ac_cv_func_shl_load = yes; then
10822
10823cat >>confdefs.h <<\_ACEOF
10824#define HAVE_SHL_LOAD 1
10825_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010826
10827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010828 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10829echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10830if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832else
10833 ac_check_lib_save_LIBS=$LIBS
10834LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010835cat >conftest.$ac_ext <<_ACEOF
10836/* confdefs.h. */
10837_ACEOF
10838cat confdefs.h >>conftest.$ac_ext
10839cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010840/* end confdefs.h. */
10841
Reid Spencera773bd52006-08-04 18:18:08 +000010842/* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845#ifdef __cplusplus
10846extern "C"
10847#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848char shl_load ();
10849int
10850main ()
10851{
Reid Spencera773bd52006-08-04 18:18:08 +000010852return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853 ;
10854 return 0;
10855}
10856_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010857rm -f conftest.$ac_objext conftest$ac_exeext
10858if { (ac_try="$ac_link"
10859case "(($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_link") 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875esac
10876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest$ac_exeext'
10882 { (case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10885esac
10886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_try") 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891 ac_cv_lib_dld_shl_load=yes
10892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010893 echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010898
Bill Wendlingebcceee2009-04-18 11:20:33 +000010899rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010900 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901LIBS=$ac_check_lib_save_LIBS
10902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010903{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10904echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10905if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010907cat >>confdefs.h <<\_ACEOF
10908#define HAVE_SHL_LOAD 1
10909_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910
10911 LIBADD_DL="$LIBADD_DL -ldld"
10912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010913 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10914echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10915if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010917else
10918 ac_check_lib_save_LIBS=$LIBS
10919LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010920cat >conftest.$ac_ext <<_ACEOF
10921/* confdefs.h. */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010925/* end confdefs.h. */
10926
Reid Spencera773bd52006-08-04 18:18:08 +000010927/* Override any GCC internal prototype to avoid an error.
10928 Use char because int might match the return type of a GCC
10929 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930#ifdef __cplusplus
10931extern "C"
10932#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933char dlopen ();
10934int
10935main ()
10936{
Reid Spencera773bd52006-08-04 18:18:08 +000010937return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938 ;
10939 return 0;
10940}
10941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010942rm -f conftest.$ac_objext conftest$ac_exeext
10943if { (ac_try="$ac_link"
10944case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947esac
10948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_link") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960esac
10961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; } &&
10966 { ac_try='test -s conftest$ac_exeext'
10967 { (case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_try") 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976 ac_cv_lib_dl_dlopen=yes
10977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010978 echo "$as_me: failed program was:" >&5
10979sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010983
Bill Wendlingebcceee2009-04-18 11:20:33 +000010984rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010985 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010986LIBS=$ac_check_lib_save_LIBS
10987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010988{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10989echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10990if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010992cat >>confdefs.h <<\_ACEOF
10993#define HAVE_LIBDL 1
10994_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995
10996 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010998 cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003/* end confdefs.h. */
11004#if HAVE_DLFCN_H
11005# include <dlfcn.h>
11006#endif
11007
11008int
11009main ()
11010{
11011dlopen(0, 0);
11012 ;
11013 return 0;
11014}
11015_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011016rm -f conftest.$ac_objext conftest$ac_exeext
11017if { (ac_try="$ac_link"
11018case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021esac
11022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_link") 2>conftest.er1
11024 ac_status=$?
11025 grep -v '^ *+' conftest.er1 >conftest.err
11026 rm -f conftest.er1
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034esac
11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest$ac_exeext'
11041 { (case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044esac
11045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011051cat >>confdefs.h <<\_ACEOF
11052#define HAVE_LIBDL 1
11053_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054 libltdl_cv_func_dlopen="yes"
11055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011056 echo "$as_me: failed program was:" >&5
11057sed 's/^/| /' conftest.$ac_ext >&5
11058
11059 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11060echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11061if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063else
11064 ac_check_lib_save_LIBS=$LIBS
11065LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011066cat >conftest.$ac_ext <<_ACEOF
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071/* end confdefs.h. */
11072
Reid Spencera773bd52006-08-04 18:18:08 +000011073/* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076#ifdef __cplusplus
11077extern "C"
11078#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011079char dlopen ();
11080int
11081main ()
11082{
Reid Spencera773bd52006-08-04 18:18:08 +000011083return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084 ;
11085 return 0;
11086}
11087_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011088rm -f conftest.$ac_objext conftest$ac_exeext
11089if { (ac_try="$ac_link"
11090case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093esac
11094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_link") 2>conftest.er1
11096 ac_status=$?
11097 grep -v '^ *+' conftest.er1 >conftest.err
11098 rm -f conftest.er1
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11103 { (case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11106esac
11107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_try") 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; } &&
11112 { ac_try='test -s conftest$ac_exeext'
11113 { (case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116esac
11117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_try") 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011122 ac_cv_lib_svld_dlopen=yes
11123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011124 echo "$as_me: failed program was:" >&5
11125sed 's/^/| /' conftest.$ac_ext >&5
11126
11127 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011129
Bill Wendlingebcceee2009-04-18 11:20:33 +000011130rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011131 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011132LIBS=$ac_check_lib_save_LIBS
11133fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011134{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11135echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11136if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011138cat >>confdefs.h <<\_ACEOF
11139#define HAVE_LIBDL 1
11140_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011141
11142 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11143else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011144 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11145echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11146if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011148else
11149 ac_check_lib_save_LIBS=$LIBS
11150LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011151cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h. */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156/* end confdefs.h. */
11157
Reid Spencera773bd52006-08-04 18:18:08 +000011158/* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161#ifdef __cplusplus
11162extern "C"
11163#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011164char dld_link ();
11165int
11166main ()
11167{
Reid Spencera773bd52006-08-04 18:18:08 +000011168return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011169 ;
11170 return 0;
11171}
11172_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011173rm -f conftest.$ac_objext conftest$ac_exeext
11174if { (ac_try="$ac_link"
11175case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_link") 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191esac
11192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest$ac_exeext'
11198 { (case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11201esac
11202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_try") 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207 ac_cv_lib_dld_dld_link=yes
11208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011214
Bill Wendlingebcceee2009-04-18 11:20:33 +000011215rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011216 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217LIBS=$ac_check_lib_save_LIBS
11218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011219{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11220echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11221if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011223cat >>confdefs.h <<\_ACEOF
11224#define HAVE_DLD 1
11225_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226
11227 LIBADD_DL="$LIBADD_DL -ldld"
11228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011229 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11230echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11231if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11242#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011244/* System header to define __stub macros and hopefully few prototypes,
11245 which can conflict with char _dyld_func_lookup (); below.
11246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011249#ifdef __STDC__
11250# include <limits.h>
11251#else
11252# include <assert.h>
11253#endif
11254
11255#undef _dyld_func_lookup
11256
11257/* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11260#ifdef __cplusplus
11261extern "C"
11262#endif
11263char _dyld_func_lookup ();
11264/* The GNU C library defines this for functions which it implements
11265 to always fail with ENOSYS. Some functions are actually named
11266 something starting with __ and the normal name is an alias. */
11267#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11268choke me
11269#endif
11270
11271int
11272main ()
11273{
11274return _dyld_func_lookup ();
11275 ;
11276 return 0;
11277}
11278_ACEOF
11279rm -f conftest.$ac_objext conftest$ac_exeext
11280if { (ac_try="$ac_link"
11281case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284esac
11285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_link") 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11294 { (case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297esac
11298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_try") 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try='test -s conftest$ac_exeext'
11304 { (case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307esac
11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_try") 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_func__dyld_func_lookup=yes
11314else
11315 echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319fi
Reid Spencera773bd52006-08-04 18:18:08 +000011320
Bill Wendlingebcceee2009-04-18 11:20:33 +000011321rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011322 conftest$ac_exeext conftest.$ac_ext
11323fi
11324{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11325echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11326if test $ac_cv_func__dyld_func_lookup = yes; then
11327
11328cat >>confdefs.h <<\_ACEOF
11329#define HAVE_DYLD 1
11330_ACEOF
11331
11332fi
11333
11334
11335fi
11336
11337
11338fi
11339
11340
11341fi
11342
11343rm -f core conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345
11346fi
11347
11348
11349fi
11350
11351
11352fi
11353
11354
11355if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11356then
11357 lt_save_LIBS="$LIBS"
11358 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011359
11360for ac_func in dlerror
11361do
11362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11363{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11365if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367else
11368 cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h. */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h. */
11374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11376#define $ac_func innocuous_$ac_func
11377
11378/* System header to define __stub macros and hopefully few prototypes,
11379 which can conflict with char $ac_func (); below.
11380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11381 <limits.h> exists even on freestanding compilers. */
11382
11383#ifdef __STDC__
11384# include <limits.h>
11385#else
11386# include <assert.h>
11387#endif
11388
11389#undef $ac_func
11390
11391/* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11394#ifdef __cplusplus
11395extern "C"
11396#endif
11397char $ac_func ();
11398/* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401#if defined __stub_$ac_func || defined __stub___$ac_func
11402choke me
11403#endif
11404
11405int
11406main ()
11407{
11408return $ac_func ();
11409 ;
11410 return 0;
11411}
11412_ACEOF
11413rm -f conftest.$ac_objext conftest$ac_exeext
11414if { (ac_try="$ac_link"
11415case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418esac
11419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_link") 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11428 { (case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431esac
11432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_try") 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try='test -s conftest$ac_exeext'
11438 { (case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11441esac
11442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_try") 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
11447 eval "$as_ac_var=yes"
11448else
11449 echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 eval "$as_ac_var=no"
11453fi
11454
11455rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11457fi
11458ac_res=`eval echo '${'$as_ac_var'}'`
11459 { echo "$as_me:$LINENO: result: $ac_res" >&5
11460echo "${ECHO_T}$ac_res" >&6; }
11461if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464_ACEOF
11465
11466fi
11467done
11468
11469 LIBS="$lt_save_LIBS"
11470fi
11471ac_ext=c
11472ac_cpp='$CPP $CPPFLAGS'
11473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11475ac_compiler_gnu=$ac_cv_c_compiler_gnu
11476
11477
11478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011479{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11480echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11481if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483else
11484 ac_cv_sys_symbol_underscore=no
11485 cat > conftest.$ac_ext <<EOF
11486void nm_test_func(){}
11487int main(){nm_test_func;return 0;}
11488EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490 (eval $ac_compile) 2>&5
11491 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494 # Now try to grab the symbols.
11495 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011496 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 +000011497 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11498 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501 # See whether the symbols have a leading underscore.
11502 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11503 ac_cv_sys_symbol_underscore=yes
11504 else
11505 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11506 :
11507 else
11508 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11509 fi
11510 fi
11511 else
11512 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11513 fi
11514 else
11515 echo "configure: failed program was:" >&5
11516 cat conftest.c >&5
11517 fi
11518 rm -rf conftest*
11519
11520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011521{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11522echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523
11524
11525if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11526 if test x"$libltdl_cv_func_dlopen" = xyes ||
11527 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011528 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11529echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11530if test "${libltdl_cv_need_uscore+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532else
11533 libltdl_cv_need_uscore=unknown
11534 save_LIBS="$LIBS"
11535 LIBS="$LIBS $LIBADD_DL"
11536 if test "$cross_compiling" = yes; then :
11537 libltdl_cv_need_uscore=cross
11538else
11539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11540 lt_status=$lt_dlunknown
11541 cat > conftest.$ac_ext <<EOF
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000011542#line 11542 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543#include "confdefs.h"
11544
11545#if HAVE_DLFCN_H
11546#include <dlfcn.h>
11547#endif
11548
11549#include <stdio.h>
11550
11551#ifdef RTLD_GLOBAL
11552# define LT_DLGLOBAL RTLD_GLOBAL
11553#else
11554# ifdef DL_GLOBAL
11555# define LT_DLGLOBAL DL_GLOBAL
11556# else
11557# define LT_DLGLOBAL 0
11558# endif
11559#endif
11560
11561/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11562 find out it does not work in some platform. */
11563#ifndef LT_DLLAZY_OR_NOW
11564# ifdef RTLD_LAZY
11565# define LT_DLLAZY_OR_NOW RTLD_LAZY
11566# else
11567# ifdef DL_LAZY
11568# define LT_DLLAZY_OR_NOW DL_LAZY
11569# else
11570# ifdef RTLD_NOW
11571# define LT_DLLAZY_OR_NOW RTLD_NOW
11572# else
11573# ifdef DL_NOW
11574# define LT_DLLAZY_OR_NOW DL_NOW
11575# else
11576# define LT_DLLAZY_OR_NOW 0
11577# endif
11578# endif
11579# endif
11580# endif
11581#endif
11582
11583#ifdef __cplusplus
11584extern "C" void exit (int);
11585#endif
11586
11587void fnord() { int i=42;}
11588int main ()
11589{
11590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11591 int status = $lt_dlunknown;
11592
11593 if (self)
11594 {
11595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11596 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597 /* dlclose (self); */
11598 }
Reid Spencera773bd52006-08-04 18:18:08 +000011599 else
11600 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601
11602 exit (status);
11603}
11604EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606 (eval $ac_link) 2>&5
11607 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011610 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611 lt_status=$?
11612 case x$lt_status in
11613 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11614 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011615 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616 esac
11617 else :
11618 # compilation failed
11619
11620 fi
11621fi
11622rm -fr conftest*
11623
11624 LIBS="$save_LIBS"
11625
11626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011627{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11628echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629 fi
11630fi
11631
11632if test x"$libltdl_cv_need_uscore" = xyes; then
11633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011634cat >>confdefs.h <<\_ACEOF
11635#define NEED_USCORE 1
11636_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637
11638fi
11639
11640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011641{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11642echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11643if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645else
11646 # PORTME does your system automatically load deplibs for dlopen?
11647 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11648 # For now, we just catch OSes we know something about -- in the
11649 # future, we'll try test this programmatically.
11650 libltdl_cv_sys_dlopen_deplibs=unknown
11651 case "$host_os" in
11652 aix3*|aix4.1.*|aix4.2.*)
11653 # Unknown whether this is true for these versions of AIX, but
11654 # we want this `case' here to explicitly catch those versions.
11655 libltdl_cv_sys_dlopen_deplibs=unknown
11656 ;;
11657 aix[45]*)
11658 libltdl_cv_sys_dlopen_deplibs=yes
11659 ;;
11660 darwin*)
11661 # Assuming the user has installed a libdl from somewhere, this is true
11662 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11663 libltdl_cv_sys_dlopen_deplibs=yes
11664 ;;
11665 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11666 # GNU and its variants, using gnu ld.so (Glibc)
11667 libltdl_cv_sys_dlopen_deplibs=yes
11668 ;;
11669 hpux10*|hpux11*)
11670 libltdl_cv_sys_dlopen_deplibs=yes
11671 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011672 interix*)
11673 libltdl_cv_sys_dlopen_deplibs=yes
11674 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675 irix[12345]*|irix6.[01]*)
11676 # Catch all versions of IRIX before 6.2, and indicate that we don't
11677 # know how it worked for any of those versions.
11678 libltdl_cv_sys_dlopen_deplibs=unknown
11679 ;;
11680 irix*)
11681 # The case above catches anything before 6.2, and it's known that
11682 # at 6.2 and later dlopen does load deplibs.
11683 libltdl_cv_sys_dlopen_deplibs=yes
11684 ;;
11685 netbsd*)
11686 libltdl_cv_sys_dlopen_deplibs=yes
11687 ;;
11688 openbsd*)
11689 libltdl_cv_sys_dlopen_deplibs=yes
11690 ;;
11691 osf[1234]*)
11692 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11693 # it did *not* use an RPATH in a shared library to find objects the
11694 # library depends on, so we explictly say `no'.
11695 libltdl_cv_sys_dlopen_deplibs=no
11696 ;;
11697 osf5.0|osf5.0a|osf5.1)
11698 # dlopen *does* load deplibs and with the right loader patch applied
11699 # it even uses RPATH in a shared library to search for shared objects
11700 # that the library depends on, but there's no easy way to know if that
11701 # patch is installed. Since this is the case, all we can really
11702 # say is unknown -- it depends on the patch being installed. If
11703 # it is, this changes to `yes'. Without it, it would be `no'.
11704 libltdl_cv_sys_dlopen_deplibs=unknown
11705 ;;
11706 osf*)
11707 # the two cases above should catch all versions of osf <= 5.1. Read
11708 # the comments above for what we know about them.
11709 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11710 # is used to find them so we can finally say `yes'.
11711 libltdl_cv_sys_dlopen_deplibs=yes
11712 ;;
11713 solaris*)
11714 libltdl_cv_sys_dlopen_deplibs=yes
11715 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11717 libltdl_cv_sys_dlopen_deplibs=yes
11718 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011719 esac
11720
11721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011722{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11723echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011726cat >>confdefs.h <<\_ACEOF
11727#define LTDL_DLOPEN_DEPLIBS 1
11728_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729
11730fi
11731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011732
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011734do
11735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741fi
11742ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744echo "${ECHO_T}$ac_res" >&6; }
11745else
11746 # Is the header compilable?
11747{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11749cat >conftest.$ac_ext <<_ACEOF
11750/* confdefs.h. */
11751_ACEOF
11752cat confdefs.h >>conftest.$ac_ext
11753cat >>conftest.$ac_ext <<_ACEOF
11754/* end confdefs.h. */
11755$ac_includes_default
11756#include <$ac_header>
11757_ACEOF
11758rm -f conftest.$ac_objext
11759if { (ac_try="$ac_compile"
11760case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
11764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_compile") 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest.$ac_objext'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 ac_header_compiler=yes
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797 ac_header_compiler=no
11798fi
11799
11800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11802echo "${ECHO_T}$ac_header_compiler" >&6; }
11803
11804# Is the header present?
11805{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11807cat >conftest.$ac_ext <<_ACEOF
11808/* confdefs.h. */
11809_ACEOF
11810cat confdefs.h >>conftest.$ac_ext
11811cat >>conftest.$ac_ext <<_ACEOF
11812/* end confdefs.h. */
11813#include <$ac_header>
11814_ACEOF
11815if { (ac_try="$ac_cpp conftest.$ac_ext"
11816case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } >/dev/null; then
11828 if test -s conftest.err; then
11829 ac_cpp_err=$ac_c_preproc_warn_flag
11830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11831 else
11832 ac_cpp_err=
11833 fi
11834else
11835 ac_cpp_err=yes
11836fi
11837if test -z "$ac_cpp_err"; then
11838 ac_header_preproc=yes
11839else
11840 echo "$as_me: failed program was:" >&5
11841sed 's/^/| /' conftest.$ac_ext >&5
11842
11843 ac_header_preproc=no
11844fi
11845
11846rm -f conftest.err conftest.$ac_ext
11847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11848echo "${ECHO_T}$ac_header_preproc" >&6; }
11849
11850# So? What about this header?
11851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11852 yes:no: )
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11857 ac_header_preproc=yes
11858 ;;
11859 no:yes:* )
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11863echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11867echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11872 ( cat <<\_ASBOX
11873## ----------------------------------- ##
11874## Report this to llvmbugs@cs.uiuc.edu ##
11875## ----------------------------------- ##
11876_ASBOX
11877 ) | sed "s/^/$as_me: WARNING: /" >&2
11878 ;;
11879esac
11880{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884else
11885 eval "$as_ac_Header=\$ac_header_preproc"
11886fi
11887ac_res=`eval echo '${'$as_ac_Header'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889echo "${ECHO_T}$ac_res" >&6; }
11890
11891fi
11892if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895_ACEOF
11896
11897fi
11898
11899done
11900
11901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011902{ echo "$as_me:$LINENO: checking for error_t" >&5
11903echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11904if test "${ac_cv_type_error_t+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906else
11907 cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914# include <argz.h>
11915#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011916
11917typedef error_t ac__type_new_;
11918int
11919main ()
11920{
11921if ((ac__type_new_ *) 0)
11922 return 0;
11923if (sizeof (ac__type_new_))
11924 return 0;
11925 ;
11926 return 0;
11927}
11928_ACEOF
11929rm -f conftest.$ac_objext
11930if { (ac_try="$ac_compile"
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_compile") 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_objext'
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 ac_cv_type_error_t=yes
11964else
11965 echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 ac_cv_type_error_t=no
11969fi
11970
11971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972fi
11973{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11974echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11975if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011976
11977cat >>confdefs.h <<_ACEOF
11978#define HAVE_ERROR_T 1
11979_ACEOF
11980
11981
11982else
11983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011984cat >>confdefs.h <<\_ACEOF
11985#define error_t int
11986_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987
11988fi
11989
11990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011991
11992
11993
11994
11995
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011996for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011997do
11998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11999{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12001if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003else
12004 cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12012#define $ac_func innocuous_$ac_func
12013
12014/* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char $ac_func (); below.
12016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 <limits.h> exists even on freestanding compilers. */
12018
12019#ifdef __STDC__
12020# include <limits.h>
12021#else
12022# include <assert.h>
12023#endif
12024
12025#undef $ac_func
12026
12027/* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12030#ifdef __cplusplus
12031extern "C"
12032#endif
12033char $ac_func ();
12034/* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
12037#if defined __stub_$ac_func || defined __stub___$ac_func
12038choke me
12039#endif
12040
12041int
12042main ()
12043{
12044return $ac_func ();
12045 ;
12046 return 0;
12047}
12048_ACEOF
12049rm -f conftest.$ac_objext conftest$ac_exeext
12050if { (ac_try="$ac_link"
12051case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_link") 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12064 { (case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_try") 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; } &&
12073 { ac_try='test -s conftest$ac_exeext'
12074 { (case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12077esac
12078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_try") 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 eval "$as_ac_var=yes"
12084else
12085 echo "$as_me: failed program was:" >&5
12086sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 eval "$as_ac_var=no"
12089fi
12090
12091rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12093fi
12094ac_res=`eval echo '${'$as_ac_var'}'`
12095 { echo "$as_me:$LINENO: result: $ac_res" >&5
12096echo "${ECHO_T}$ac_res" >&6; }
12097if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012098 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012100_ACEOF
12101
12102fi
12103done
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012124
12125
12126
12127
12128
12129
12130
12131
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12133 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012134do
12135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141fi
12142ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144echo "${ECHO_T}$ac_res" >&6; }
12145else
12146 # Is the header compilable?
12147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12149cat >conftest.$ac_ext <<_ACEOF
12150/* confdefs.h. */
12151_ACEOF
12152cat confdefs.h >>conftest.$ac_ext
12153cat >>conftest.$ac_ext <<_ACEOF
12154/* end confdefs.h. */
12155$ac_includes_default
12156#include <$ac_header>
12157_ACEOF
12158rm -f conftest.$ac_objext
12159if { (ac_try="$ac_compile"
12160case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12163esac
12164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_compile") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest.$ac_objext'
12183 { (case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186esac
12187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_try") 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_header_compiler=yes
12193else
12194 echo "$as_me: failed program was:" >&5
12195sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 ac_header_compiler=no
12198fi
12199
12200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12202echo "${ECHO_T}$ac_header_compiler" >&6; }
12203
12204# Is the header present?
12205{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12207cat >conftest.$ac_ext <<_ACEOF
12208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
12212/* end confdefs.h. */
12213#include <$ac_header>
12214_ACEOF
12215if { (ac_try="$ac_cpp conftest.$ac_ext"
12216case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219esac
12220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } >/dev/null; then
12228 if test -s conftest.err; then
12229 ac_cpp_err=$ac_c_preproc_warn_flag
12230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12231 else
12232 ac_cpp_err=
12233 fi
12234else
12235 ac_cpp_err=yes
12236fi
12237if test -z "$ac_cpp_err"; then
12238 ac_header_preproc=yes
12239else
12240 echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_header_preproc=no
12244fi
12245
12246rm -f conftest.err conftest.$ac_ext
12247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12248echo "${ECHO_T}$ac_header_preproc" >&6; }
12249
12250# So? What about this header?
12251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12252 yes:no: )
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12257 ac_header_preproc=yes
12258 ;;
12259 no:yes:* )
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12272 ( cat <<\_ASBOX
12273## ----------------------------------- ##
12274## Report this to llvmbugs@cs.uiuc.edu ##
12275## ----------------------------------- ##
12276_ASBOX
12277 ) | sed "s/^/$as_me: WARNING: /" >&2
12278 ;;
12279esac
12280{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12284else
12285 eval "$as_ac_Header=\$ac_header_preproc"
12286fi
12287ac_res=`eval echo '${'$as_ac_Header'}'`
12288 { echo "$as_me:$LINENO: result: $ac_res" >&5
12289echo "${ECHO_T}$ac_res" >&6; }
12290
12291fi
12292if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012293 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012295_ACEOF
12296
12297fi
12298
12299done
12300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012301
12302
12303
12304
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012305for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012306do
12307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313fi
12314ac_res=`eval echo '${'$as_ac_Header'}'`
12315 { echo "$as_me:$LINENO: result: $ac_res" >&5
12316echo "${ECHO_T}$ac_res" >&6; }
12317else
12318 # Is the header compilable?
12319{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12321cat >conftest.$ac_ext <<_ACEOF
12322/* confdefs.h. */
12323_ACEOF
12324cat confdefs.h >>conftest.$ac_ext
12325cat >>conftest.$ac_ext <<_ACEOF
12326/* end confdefs.h. */
12327$ac_includes_default
12328#include <$ac_header>
12329_ACEOF
12330rm -f conftest.$ac_objext
12331if { (ac_try="$ac_compile"
12332case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335esac
12336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_compile") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12345 { (case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348esac
12349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_try") 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest.$ac_objext'
12355 { (case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12358esac
12359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_try") 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_header_compiler=yes
12365else
12366 echo "$as_me: failed program was:" >&5
12367sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_header_compiler=no
12370fi
12371
12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12374echo "${ECHO_T}$ac_header_compiler" >&6; }
12375
12376# Is the header present?
12377{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12378echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12379cat >conftest.$ac_ext <<_ACEOF
12380/* confdefs.h. */
12381_ACEOF
12382cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h. */
12385#include <$ac_header>
12386_ACEOF
12387if { (ac_try="$ac_cpp conftest.$ac_ext"
12388case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391esac
12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } >/dev/null; then
12400 if test -s conftest.err; then
12401 ac_cpp_err=$ac_c_preproc_warn_flag
12402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12403 else
12404 ac_cpp_err=
12405 fi
12406else
12407 ac_cpp_err=yes
12408fi
12409if test -z "$ac_cpp_err"; then
12410 ac_header_preproc=yes
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_header_preproc=no
12416fi
12417
12418rm -f conftest.err conftest.$ac_ext
12419{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420echo "${ECHO_T}$ac_header_preproc" >&6; }
12421
12422# So? What about this header?
12423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12424 yes:no: )
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12429 ac_header_preproc=yes
12430 ;;
12431 no:yes:* )
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12444 ( cat <<\_ASBOX
12445## ----------------------------------- ##
12446## Report this to llvmbugs@cs.uiuc.edu ##
12447## ----------------------------------- ##
12448_ASBOX
12449 ) | sed "s/^/$as_me: WARNING: /" >&2
12450 ;;
12451esac
12452{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456else
12457 eval "$as_ac_Header=\$ac_header_preproc"
12458fi
12459ac_res=`eval echo '${'$as_ac_Header'}'`
12460 { echo "$as_me:$LINENO: result: $ac_res" >&5
12461echo "${ECHO_T}$ac_res" >&6; }
12462
12463fi
12464if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012467_ACEOF
12468
12469fi
12470
12471done
12472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012473
12474
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012476do
12477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483fi
12484ac_res=`eval echo '${'$as_ac_Header'}'`
12485 { echo "$as_me:$LINENO: result: $ac_res" >&5
12486echo "${ECHO_T}$ac_res" >&6; }
12487else
12488 # Is the header compilable?
12489{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12491cat >conftest.$ac_ext <<_ACEOF
12492/* confdefs.h. */
12493_ACEOF
12494cat confdefs.h >>conftest.$ac_ext
12495cat >>conftest.$ac_ext <<_ACEOF
12496/* end confdefs.h. */
12497$ac_includes_default
12498#include <$ac_header>
12499_ACEOF
12500rm -f conftest.$ac_objext
12501if { (ac_try="$ac_compile"
12502case "(($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_compile") 2>conftest.er1
12508 ac_status=$?
12509 grep -v '^ *+' conftest.er1 >conftest.err
12510 rm -f conftest.er1
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518esac
12519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12528esac
12529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_try") 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12534 ac_header_compiler=yes
12535else
12536 echo "$as_me: failed program was:" >&5
12537sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 ac_header_compiler=no
12540fi
12541
12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12544echo "${ECHO_T}$ac_header_compiler" >&6; }
12545
12546# Is the header present?
12547{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12549cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h. */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */
12555#include <$ac_header>
12556_ACEOF
12557if { (ac_try="$ac_cpp conftest.$ac_ext"
12558case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561esac
12562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } >/dev/null; then
12570 if test -s conftest.err; then
12571 ac_cpp_err=$ac_c_preproc_warn_flag
12572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12573 else
12574 ac_cpp_err=
12575 fi
12576else
12577 ac_cpp_err=yes
12578fi
12579if test -z "$ac_cpp_err"; then
12580 ac_header_preproc=yes
12581else
12582 echo "$as_me: failed program was:" >&5
12583sed 's/^/| /' conftest.$ac_ext >&5
12584
12585 ac_header_preproc=no
12586fi
12587
12588rm -f conftest.err conftest.$ac_ext
12589{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12590echo "${ECHO_T}$ac_header_preproc" >&6; }
12591
12592# So? What about this header?
12593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12594 yes:no: )
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12599 ac_header_preproc=yes
12600 ;;
12601 no:yes:* )
12602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12614 ( cat <<\_ASBOX
12615## ----------------------------------- ##
12616## Report this to llvmbugs@cs.uiuc.edu ##
12617## ----------------------------------- ##
12618_ASBOX
12619 ) | sed "s/^/$as_me: WARNING: /" >&2
12620 ;;
12621esac
12622{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12626else
12627 eval "$as_ac_Header=\$ac_header_preproc"
12628fi
12629ac_res=`eval echo '${'$as_ac_Header'}'`
12630 { echo "$as_me:$LINENO: result: $ac_res" >&5
12631echo "${ECHO_T}$ac_res" >&6; }
12632
12633fi
12634if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012635 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637_ACEOF
12638 break
12639fi
12640
12641done
12642
12643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012644
12645
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012646for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012647do
12648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12649{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653else
12654 cat >conftest.$ac_ext <<_ACEOF
12655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
12660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12662#define $ac_func innocuous_$ac_func
12663
12664/* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
12668
12669#ifdef __STDC__
12670# include <limits.h>
12671#else
12672# include <assert.h>
12673#endif
12674
12675#undef $ac_func
12676
12677/* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
12680#ifdef __cplusplus
12681extern "C"
12682#endif
12683char $ac_func ();
12684/* The GNU C library defines this for functions which it implements
12685 to always fail with ENOSYS. Some functions are actually named
12686 something starting with __ and the normal name is an alias. */
12687#if defined __stub_$ac_func || defined __stub___$ac_func
12688choke me
12689#endif
12690
12691int
12692main ()
12693{
12694return $ac_func ();
12695 ;
12696 return 0;
12697}
12698_ACEOF
12699rm -f conftest.$ac_objext conftest$ac_exeext
12700if { (ac_try="$ac_link"
12701case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12704esac
12705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_link") 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12714 { (case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717esac
12718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_try") 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest$ac_exeext'
12724 { (case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727esac
12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_try") 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 eval "$as_ac_var=yes"
12734else
12735 echo "$as_me: failed program was:" >&5
12736sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 eval "$as_ac_var=no"
12739fi
12740
12741rm -f core conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743fi
12744ac_res=`eval echo '${'$as_ac_var'}'`
12745 { echo "$as_me:$LINENO: result: $ac_res" >&5
12746echo "${ECHO_T}$ac_res" >&6; }
12747if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012748 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012750_ACEOF
12751 break
12752fi
12753done
12754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012755
12756
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012757for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012758do
12759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12760{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
12771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12773#define $ac_func innocuous_$ac_func
12774
12775/* System header to define __stub macros and hopefully few prototypes,
12776 which can conflict with char $ac_func (); below.
12777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12778 <limits.h> exists even on freestanding compilers. */
12779
12780#ifdef __STDC__
12781# include <limits.h>
12782#else
12783# include <assert.h>
12784#endif
12785
12786#undef $ac_func
12787
12788/* Override any GCC internal prototype to avoid an error.
12789 Use char because int might match the return type of a GCC
12790 builtin and then its argument prototype would still apply. */
12791#ifdef __cplusplus
12792extern "C"
12793#endif
12794char $ac_func ();
12795/* The GNU C library defines this for functions which it implements
12796 to always fail with ENOSYS. Some functions are actually named
12797 something starting with __ and the normal name is an alias. */
12798#if defined __stub_$ac_func || defined __stub___$ac_func
12799choke me
12800#endif
12801
12802int
12803main ()
12804{
12805return $ac_func ();
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810rm -f conftest.$ac_objext conftest$ac_exeext
12811if { (ac_try="$ac_link"
12812case "(($ac_try" in
12813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814 *) ac_try_echo=$ac_try;;
12815esac
12816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_link") 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12825 { (case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12828esac
12829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_try") 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest$ac_exeext'
12835 { (case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838esac
12839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_try") 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 eval "$as_ac_var=yes"
12845else
12846 echo "$as_me: failed program was:" >&5
12847sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 eval "$as_ac_var=no"
12850fi
12851
12852rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12854fi
12855ac_res=`eval echo '${'$as_ac_var'}'`
12856 { echo "$as_me:$LINENO: result: $ac_res" >&5
12857echo "${ECHO_T}$ac_res" >&6; }
12858if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012859 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012861_ACEOF
12862 break
12863fi
12864done
12865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866
12867
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012868for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012869do
12870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875else
12876 cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h. */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h. */
12882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12884#define $ac_func innocuous_$ac_func
12885
12886/* System header to define __stub macros and hopefully few prototypes,
12887 which can conflict with char $ac_func (); below.
12888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12889 <limits.h> exists even on freestanding compilers. */
12890
12891#ifdef __STDC__
12892# include <limits.h>
12893#else
12894# include <assert.h>
12895#endif
12896
12897#undef $ac_func
12898
12899/* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12902#ifdef __cplusplus
12903extern "C"
12904#endif
12905char $ac_func ();
12906/* The GNU C library defines this for functions which it implements
12907 to always fail with ENOSYS. Some functions are actually named
12908 something starting with __ and the normal name is an alias. */
12909#if defined __stub_$ac_func || defined __stub___$ac_func
12910choke me
12911#endif
12912
12913int
12914main ()
12915{
12916return $ac_func ();
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921rm -f conftest.$ac_objext conftest$ac_exeext
12922if { (ac_try="$ac_link"
12923case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926esac
12927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_link") 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } &&
12935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12936 { (case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12939esac
12940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_try") 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949esac
12950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_try") 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 eval "$as_ac_var=yes"
12956else
12957 echo "$as_me: failed program was:" >&5
12958sed 's/^/| /' conftest.$ac_ext >&5
12959
12960 eval "$as_ac_var=no"
12961fi
12962
12963rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965fi
12966ac_res=`eval echo '${'$as_ac_var'}'`
12967 { echo "$as_me:$LINENO: result: $ac_res" >&5
12968echo "${ECHO_T}$ac_res" >&6; }
12969if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012970 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012972_ACEOF
12973 break
12974fi
12975done
12976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012977
12978
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012979for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012980do
12981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12982{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 cat >conftest.$ac_ext <<_ACEOF
12988/* confdefs.h. */
12989_ACEOF
12990cat confdefs.h >>conftest.$ac_ext
12991cat >>conftest.$ac_ext <<_ACEOF
12992/* end confdefs.h. */
12993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12995#define $ac_func innocuous_$ac_func
12996
12997/* System header to define __stub macros and hopefully few prototypes,
12998 which can conflict with char $ac_func (); below.
12999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000 <limits.h> exists even on freestanding compilers. */
13001
13002#ifdef __STDC__
13003# include <limits.h>
13004#else
13005# include <assert.h>
13006#endif
13007
13008#undef $ac_func
13009
13010/* Override any GCC internal prototype to avoid an error.
13011 Use char because int might match the return type of a GCC
13012 builtin and then its argument prototype would still apply. */
13013#ifdef __cplusplus
13014extern "C"
13015#endif
13016char $ac_func ();
13017/* The GNU C library defines this for functions which it implements
13018 to always fail with ENOSYS. Some functions are actually named
13019 something starting with __ and the normal name is an alias. */
13020#if defined __stub_$ac_func || defined __stub___$ac_func
13021choke me
13022#endif
13023
13024int
13025main ()
13026{
13027return $ac_func ();
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext conftest$ac_exeext
13033if { (ac_try="$ac_link"
13034case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037esac
13038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_link") 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try='test -s conftest$ac_exeext'
13057 { (case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060esac
13061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_try") 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 eval "$as_ac_var=yes"
13067else
13068 echo "$as_me: failed program was:" >&5
13069sed 's/^/| /' conftest.$ac_ext >&5
13070
13071 eval "$as_ac_var=no"
13072fi
13073
13074rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076fi
13077ac_res=`eval echo '${'$as_ac_var'}'`
13078 { echo "$as_me:$LINENO: result: $ac_res" >&5
13079echo "${ECHO_T}$ac_res" >&6; }
13080if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013081 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013083_ACEOF
13084
13085fi
13086done
13087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088
13089
13090
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013091for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092do
13093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13096if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098else
13099 cat >conftest.$ac_ext <<_ACEOF
13100/* confdefs.h. */
13101_ACEOF
13102cat confdefs.h >>conftest.$ac_ext
13103cat >>conftest.$ac_ext <<_ACEOF
13104/* end confdefs.h. */
13105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13107#define $ac_func innocuous_$ac_func
13108
13109/* System header to define __stub macros and hopefully few prototypes,
13110 which can conflict with char $ac_func (); below.
13111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13112 <limits.h> exists even on freestanding compilers. */
13113
13114#ifdef __STDC__
13115# include <limits.h>
13116#else
13117# include <assert.h>
13118#endif
13119
13120#undef $ac_func
13121
13122/* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13125#ifdef __cplusplus
13126extern "C"
13127#endif
13128char $ac_func ();
13129/* The GNU C library defines this for functions which it implements
13130 to always fail with ENOSYS. Some functions are actually named
13131 something starting with __ and the normal name is an alias. */
13132#if defined __stub_$ac_func || defined __stub___$ac_func
13133choke me
13134#endif
13135
13136int
13137main ()
13138{
13139return $ac_func ();
13140 ;
13141 return 0;
13142}
13143_ACEOF
13144rm -f conftest.$ac_objext conftest$ac_exeext
13145if { (ac_try="$ac_link"
13146case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149esac
13150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_link") 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest$ac_exeext'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
13178 eval "$as_ac_var=yes"
13179else
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
13183 eval "$as_ac_var=no"
13184fi
13185
13186rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13188fi
13189ac_res=`eval echo '${'$as_ac_var'}'`
13190 { echo "$as_me:$LINENO: result: $ac_res" >&5
13191echo "${ECHO_T}$ac_res" >&6; }
13192if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013193 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013195_ACEOF
13196
13197fi
13198done
13199
13200
Douglas Gregor01746742009-05-11 18:05:52 +000013201
Reid Spencer7931a782004-12-27 06:15:02 +000013202if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013203 LLVMGCC="llvm-gcc${EXEEXT}"
13204 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013205 LLVMGCCCOMMAND="$LLVMGCC"
13206 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013207 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13208
13209 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13210
Reid Spencerc84492c2005-06-02 22:34:49 +000013211 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13212set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13215if test "${ac_cv_path_LLVMGCC+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013217else
13218 case $LLVMGCC in
13219 [\\/]* | ?:[\\/]*)
13220 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13221 ;;
13222 *)
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224for as_dir in $PATH
13225do
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013230 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013232 break 2
13233 fi
13234done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013235done
Reid Spencera773bd52006-08-04 18:18:08 +000013236IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013237
Reid Spencer59473af2004-12-25 07:31:29 +000013238 ;;
13239esac
13240fi
13241LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013242if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013243 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13244echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013246 { echo "$as_me:$LINENO: result: no" >&5
13247echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013248fi
13249
Reid Spencera773bd52006-08-04 18:18:08 +000013250
Reid Spencerc84492c2005-06-02 22:34:49 +000013251 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13252set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13255if test "${ac_cv_path_LLVMGXX+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013257else
13258 case $LLVMGXX in
13259 [\\/]* | ?:[\\/]*)
13260 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13261 ;;
13262 *)
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264for as_dir in $PATH
13265do
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013270 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013272 break 2
13273 fi
13274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275done
Reid Spencera773bd52006-08-04 18:18:08 +000013276IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013277
Reid Spencer59473af2004-12-25 07:31:29 +000013278 ;;
13279esac
13280fi
13281LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013282if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013283 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13284echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013286 { echo "$as_me:$LINENO: result: no" >&5
13287echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013288fi
13289
Reid Spencera773bd52006-08-04 18:18:08 +000013290
Reid Spencer59473af2004-12-25 07:31:29 +000013291else
Devang Patel5d28b882007-12-04 22:54:47 +000013292 if test -z "$LLVMGCC"; then
13293 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013294 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013295 fi
13296 if test -z "$LLVMGXX"; then
13297 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013298 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013299 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013300
Reid Spencer59473af2004-12-25 07:31:29 +000013301 LLVMGCC=$LLVMGCC
13302
13303 LLVMGXX=$LLVMGXX
13304
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013305 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13306
13307 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13308
Reid Spencer59473af2004-12-25 07:31:29 +000013309fi
13310
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013311
Daniel Dunbar98515672010-02-23 10:00:49 +000013312# Check whether --with-llvmcc was given.
13313if test "${with_llvmcc+set}" = set; then
13314 withval=$with_llvmcc;
13315else
13316 with_llvmcc=check
13317fi
13318
13319{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13320echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13321if test "$with_llvmcc" != "check"; then
13322 if (test "$with_llvmcc" != "llvm-gcc" &&
13323 test "$with_llvmcc" != "clang" &&
13324 test "$with_llvmcc" != "none"); then
13325 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13326echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13327 { (exit 1); exit 1; }; }
13328 fi
13329 WITH_LLVMCC="$with_llvmcc"
13330elif test -n "$LLVMGCC"; then
13331 WITH_LLVMCC=llvm-gcc
13332elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13333 WITH_LLVMCC=clang
13334else
13335 WITH_LLVMCC=none
13336fi
13337{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13338echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13339LLVMCC_OPTION=$WITH_LLVMCC
13340
13341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013342{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13343echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013344
Reid Spencer86901802004-12-08 23:07:27 +000013345ICC=no
13346IXX=no
13347case $CC in
13348 icc*|icpc*)
13349 ICC=yes
13350 IXX=yes
13351 ;;
13352 *)
13353 ;;
13354esac
13355
Duraid Madina937c60a2006-02-15 07:57:42 +000013356if test "$GCC" != "yes" && test "$ICC" != "yes"
13357then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013358 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13359echo "$as_me: error: gcc|icc required but not found" >&2;}
13360 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013361fi
13362
13363if test "$GXX" != "yes" && test "$IXX" != "yes"
13364then
Eric Christopher73e36da2010-12-08 02:02:14 +000013365 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13366echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013367 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013368fi
13369
Reid Spencer86901802004-12-08 23:07:27 +000013370if test "$GCC" = "yes"
13371then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013372 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013373#if !defined(__GNUC__) || __GNUC__ < 3
13374#error Unsupported GCC version
13375#endif
13376
13377_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013378rm -f conftest.$ac_objext
13379if { (ac_try="$ac_compile"
13380case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383esac
13384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_compile") 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13393 { (case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13396esac
13397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_try") 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest.$ac_objext'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406esac
13407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_try") 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013414 echo "$as_me: failed program was:" >&5
13415sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13418echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13419 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013421
Chris Lattner399c7c72008-02-05 19:43:53 +000013422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013423fi
13424
13425if test -z "$llvm_cv_gnu_make_command"
13426then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13428echo "$as_me: error: GNU Make required but not found" >&2;}
13429 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013430fi
13431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013432{ echo "$as_me:$LINENO: result: ok" >&5
13433echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13436echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013437NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13438
13439NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013441{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13442echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013443
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013445
13446{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13447echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13448if test "${ac_cv_lib_m_sin+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013450else
13451 ac_check_lib_save_LIBS=$LIBS
13452LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013458/* end confdefs.h. */
13459
Reid Spencera773bd52006-08-04 18:18:08 +000013460/* Override any GCC internal prototype to avoid an error.
13461 Use char because int might match the return type of a GCC
13462 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013463#ifdef __cplusplus
13464extern "C"
13465#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013466char sin ();
13467int
13468main ()
13469{
Reid Spencera773bd52006-08-04 18:18:08 +000013470return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013471 ;
13472 return 0;
13473}
13474_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013475rm -f conftest.$ac_objext conftest$ac_exeext
13476if { (ac_try="$ac_link"
13477case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480esac
13481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_link") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493esac
13494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; } &&
13499 { ac_try='test -s conftest$ac_exeext'
13500 { (case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503esac
13504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013509 ac_cv_lib_m_sin=yes
13510else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511 echo "$as_me: failed program was:" >&5
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516
Bill Wendlingebcceee2009-04-18 11:20:33 +000013517rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013518 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013519LIBS=$ac_check_lib_save_LIBS
13520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013521{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13522echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13523if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013524 cat >>confdefs.h <<_ACEOF
13525#define HAVE_LIBM 1
13526_ACEOF
13527
13528 LIBS="-lm $LIBS"
13529
13530fi
13531
Jeff Cohen28783c32007-01-12 18:22:38 +000013532if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013533
13534{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13535echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13536if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013538else
13539 ac_check_lib_save_LIBS=$LIBS
13540LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013541cat >conftest.$ac_ext <<_ACEOF
13542/* confdefs.h. */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013546/* end confdefs.h. */
13547
Reid Spencer48fdf912006-06-01 19:03:21 +000013548
Reid Spencer484fc8e2006-06-01 16:55:59 +000013549int
13550main ()
13551{
Reid Spencera773bd52006-08-04 18:18:08 +000013552return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013553 ;
13554 return 0;
13555}
13556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013557rm -f conftest.$ac_objext conftest$ac_exeext
13558if { (ac_try="$ac_link"
13559case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562esac
13563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_link") 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13572 { (case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13575esac
13576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_try") 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13585esac
13586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_try") 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013591 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013593 echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013598
Bill Wendlingebcceee2009-04-18 11:20:33 +000013599rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013600 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013601LIBS=$ac_check_lib_save_LIBS
13602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013603{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13604echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13605if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013606 cat >>confdefs.h <<_ACEOF
13607#define HAVE_LIBIMAGEHLP 1
13608_ACEOF
13609
13610 LIBS="-limagehlp $LIBS"
13611
13612fi
13613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614
13615{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13616echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13617if test "${ac_cv_lib_psapi_main+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013619else
13620 ac_check_lib_save_LIBS=$LIBS
13621LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013622cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013627/* end confdefs.h. */
13628
Reid Spencer48fdf912006-06-01 19:03:21 +000013629
Reid Spencer484fc8e2006-06-01 16:55:59 +000013630int
13631main ()
13632{
Reid Spencera773bd52006-08-04 18:18:08 +000013633return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013634 ;
13635 return 0;
13636}
13637_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013638rm -f conftest.$ac_objext conftest$ac_exeext
13639if { (ac_try="$ac_link"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_link") 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13653 { (case "(($ac_try" in
13654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655 *) ac_try_echo=$ac_try;;
13656esac
13657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_try") 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try='test -s conftest$ac_exeext'
13663 { (case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666esac
13667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_try") 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013672 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013674 echo "$as_me: failed program was:" >&5
13675sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013678fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679
Bill Wendlingebcceee2009-04-18 11:20:33 +000013680rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013681 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013682LIBS=$ac_check_lib_save_LIBS
13683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013684{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13685echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13686if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013687 cat >>confdefs.h <<_ACEOF
13688#define HAVE_LIBPSAPI 1
13689_ACEOF
13690
13691 LIBS="-lpsapi $LIBS"
13692
13693fi
13694
13695fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013697{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13698echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13699if test "${ac_cv_search_dlopen+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013701else
13702 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013708/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013709
Reid Spencera773bd52006-08-04 18:18:08 +000013710/* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013713#ifdef __cplusplus
13714extern "C"
13715#endif
John Criswell7a73b802003-06-30 21:59:07 +000013716char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013717int
13718main ()
13719{
Reid Spencera773bd52006-08-04 18:18:08 +000013720return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013721 ;
13722 return 0;
13723}
13724_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013725for ac_lib in '' dl; do
13726 if test -z "$ac_lib"; then
13727 ac_res="none required"
13728 else
13729 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013731 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013732 rm -f conftest.$ac_objext conftest$ac_exeext
13733if { (ac_try="$ac_link"
13734case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737esac
13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760esac
13761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013766 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013767else
13768 echo "$as_me: failed program was:" >&5
13769sed 's/^/| /' conftest.$ac_ext >&5
13770
13771
John Criswell7a73b802003-06-30 21:59:07 +000013772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013773
Bill Wendlingebcceee2009-04-18 11:20:33 +000013774rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013775 conftest$ac_exeext
13776 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013777 break
John Criswell7a73b802003-06-30 21:59:07 +000013778fi
Reid Spencera773bd52006-08-04 18:18:08 +000013779done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013780if test "${ac_cv_search_dlopen+set}" = set; then
13781 :
Reid Spencera773bd52006-08-04 18:18:08 +000013782else
13783 ac_cv_search_dlopen=no
13784fi
13785rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013786LIBS=$ac_func_search_save_LIBS
13787fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013788{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13789echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013790ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013791if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794cat >>confdefs.h <<\_ACEOF
13795#define HAVE_DLOPEN 1
13796_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013797
13798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13800echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013801fi
13802
13803
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013804if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013805 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13806echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13807if test "${ac_cv_search_ffi_call+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013809else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013810 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013811cat >conftest.$ac_ext <<_ACEOF
13812/* confdefs.h. */
13813_ACEOF
13814cat confdefs.h >>conftest.$ac_ext
13815cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013816/* end confdefs.h. */
13817
13818/* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13821#ifdef __cplusplus
13822extern "C"
13823#endif
13824char ffi_call ();
13825int
13826main ()
13827{
13828return ffi_call ();
13829 ;
13830 return 0;
13831}
13832_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013833for ac_lib in '' ffi; do
13834 if test -z "$ac_lib"; then
13835 ac_res="none required"
13836 else
13837 ac_res=-l$ac_lib
13838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13839 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013840 rm -f conftest.$ac_objext conftest$ac_exeext
13841if { (ac_try="$ac_link"
13842case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868esac
13869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_try") 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013874 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013875else
13876 echo "$as_me: failed program was:" >&5
13877sed 's/^/| /' conftest.$ac_ext >&5
13878
13879
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013881
Bill Wendlingebcceee2009-04-18 11:20:33 +000013882rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013883 conftest$ac_exeext
13884 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013885 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013886fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013888if test "${ac_cv_search_ffi_call+set}" = set; then
13889 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013890else
13891 ac_cv_search_ffi_call=no
13892fi
13893rm conftest.$ac_ext
13894LIBS=$ac_func_search_save_LIBS
13895fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013896{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13897echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013898ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013902cat >>confdefs.h <<\_ACEOF
13903#define HAVE_FFI_CALL 1
13904_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013905
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013906else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013907 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13908echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13909 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013910fi
13911
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013912fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013914{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13915echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13916if test "${ac_cv_search_mallinfo+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013918else
13919 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920cat >conftest.$ac_ext <<_ACEOF
13921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013926
Reid Spencera773bd52006-08-04 18:18:08 +000013927/* Override any GCC internal prototype to avoid an error.
13928 Use char because int might match the return type of a GCC
13929 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013930#ifdef __cplusplus
13931extern "C"
13932#endif
John Criswell7a73b802003-06-30 21:59:07 +000013933char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013934int
13935main ()
13936{
Reid Spencera773bd52006-08-04 18:18:08 +000013937return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013938 ;
13939 return 0;
13940}
13941_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013942for ac_lib in '' malloc; do
13943 if test -z "$ac_lib"; then
13944 ac_res="none required"
13945 else
13946 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013948 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013949 rm -f conftest.$ac_objext conftest$ac_exeext
13950if { (ac_try="$ac_link"
13951case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13954esac
13955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_link") 2>conftest.er1
13957 ac_status=$?
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
13963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13964 { (case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967esac
13968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_try") 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest$ac_exeext'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977esac
13978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013983 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013984else
13985 echo "$as_me: failed program was:" >&5
13986sed 's/^/| /' conftest.$ac_ext >&5
13987
13988
John Criswell7a73b802003-06-30 21:59:07 +000013989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013990
Bill Wendlingebcceee2009-04-18 11:20:33 +000013991rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013992 conftest$ac_exeext
13993 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013994 break
John Criswell7a73b802003-06-30 21:59:07 +000013995fi
Reid Spencera773bd52006-08-04 18:18:08 +000013996done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013997if test "${ac_cv_search_mallinfo+set}" = set; then
13998 :
Reid Spencera773bd52006-08-04 18:18:08 +000013999else
14000 ac_cv_search_mallinfo=no
14001fi
14002rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014003LIBS=$ac_func_search_save_LIBS
14004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014005{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14006echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014007ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014008if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014011cat >>confdefs.h <<\_ACEOF
14012#define HAVE_MALLINFO 1
14013_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014014
14015fi
14016
14017
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014018if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014019
14020{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14021echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14022if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014024else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014025 ac_check_lib_save_LIBS=$LIBS
14026LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027cat >conftest.$ac_ext <<_ACEOF
14028/* confdefs.h. */
14029_ACEOF
14030cat confdefs.h >>conftest.$ac_ext
14031cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014032/* end confdefs.h. */
14033
Reid Spencera773bd52006-08-04 18:18:08 +000014034/* Override any GCC internal prototype to avoid an error.
14035 Use char because int might match the return type of a GCC
14036 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014037#ifdef __cplusplus
14038extern "C"
14039#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014040char pthread_mutex_init ();
14041int
14042main ()
14043{
Reid Spencera773bd52006-08-04 18:18:08 +000014044return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014045 ;
14046 return 0;
14047}
14048_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014049rm -f conftest.$ac_objext conftest$ac_exeext
14050if { (ac_try="$ac_link"
14051case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14054esac
14055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_link") 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } &&
14063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14064 { (case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067esac
14068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_try") 2>&5
14070 ac_status=$?
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; } &&
14073 { ac_try='test -s conftest$ac_exeext'
14074 { (case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14077esac
14078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_try") 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014083 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014085 echo "$as_me: failed program was:" >&5
14086sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090
Bill Wendlingebcceee2009-04-18 11:20:33 +000014091rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014092 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014093LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14096echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14097if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014098 cat >>confdefs.h <<_ACEOF
14099#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014100_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014101
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014102 LIBS="-lpthread $LIBS"
14103
Reid Spencer22177fe2005-07-12 15:24:20 +000014104fi
14105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14107echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14108if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014110else
14111 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112cat >conftest.$ac_ext <<_ACEOF
14113/* confdefs.h. */
14114_ACEOF
14115cat confdefs.h >>conftest.$ac_ext
14116cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014117/* end confdefs.h. */
14118
Reid Spencera773bd52006-08-04 18:18:08 +000014119/* Override any GCC internal prototype to avoid an error.
14120 Use char because int might match the return type of a GCC
14121 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014122#ifdef __cplusplus
14123extern "C"
14124#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014125char pthread_mutex_lock ();
14126int
14127main ()
14128{
Reid Spencera773bd52006-08-04 18:18:08 +000014129return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014130 ;
14131 return 0;
14132}
14133_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014134for ac_lib in '' pthread; do
14135 if test -z "$ac_lib"; then
14136 ac_res="none required"
14137 else
14138 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014140 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141 rm -f conftest.$ac_objext conftest$ac_exeext
14142if { (ac_try="$ac_link"
14143case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14146esac
14147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_link") 2>conftest.er1
14149 ac_status=$?
14150 grep -v '^ *+' conftest.er1 >conftest.err
14151 rm -f conftest.er1
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } &&
14155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14156 { (case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14159esac
14160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_try") 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; } &&
14165 { ac_try='test -s conftest$ac_exeext'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14169esac
14170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_try") 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014175 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014176else
14177 echo "$as_me: failed program was:" >&5
14178sed 's/^/| /' conftest.$ac_ext >&5
14179
14180
Brian Gaeke5f268f72003-12-05 19:29:01 +000014181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182
Bill Wendlingebcceee2009-04-18 11:20:33 +000014183rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014184 conftest$ac_exeext
14185 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014186 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014187fi
Reid Spencera773bd52006-08-04 18:18:08 +000014188done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014189if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14190 :
Reid Spencera773bd52006-08-04 18:18:08 +000014191else
14192 ac_cv_search_pthread_mutex_lock=no
14193fi
14194rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014195LIBS=$ac_func_search_save_LIBS
14196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014197{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14198echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014199ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014200if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014203cat >>confdefs.h <<\_ACEOF
14204#define HAVE_PTHREAD_MUTEX_LOCK 1
14205_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014206
14207fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014209 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14210echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14211if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014213else
14214 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014215cat >conftest.$ac_ext <<_ACEOF
14216/* confdefs.h. */
14217_ACEOF
14218cat confdefs.h >>conftest.$ac_ext
14219cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014220/* end confdefs.h. */
14221
14222/* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14225#ifdef __cplusplus
14226extern "C"
14227#endif
14228char pthread_rwlock_init ();
14229int
14230main ()
14231{
14232return pthread_rwlock_init ();
14233 ;
14234 return 0;
14235}
14236_ACEOF
14237for ac_lib in '' pthread; do
14238 if test -z "$ac_lib"; then
14239 ac_res="none required"
14240 else
14241 ac_res=-l$ac_lib
14242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14243 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014244 rm -f conftest.$ac_objext conftest$ac_exeext
14245if { (ac_try="$ac_link"
14246case "(($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_link") 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
14258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14259 { (case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14262esac
14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_try") 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; } &&
14268 { ac_try='test -s conftest$ac_exeext'
14269 { (case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272esac
14273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_try") 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014278 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014279else
14280 echo "$as_me: failed program was:" >&5
14281sed 's/^/| /' conftest.$ac_ext >&5
14282
14283
Owen Andersonde8aed22009-06-16 18:20:20 +000014284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014285
Owen Andersonde8aed22009-06-16 18:20:20 +000014286rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287 conftest$ac_exeext
14288 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014289 break
14290fi
14291done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014292if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14293 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014294else
14295 ac_cv_search_pthread_rwlock_init=no
14296fi
14297rm conftest.$ac_ext
14298LIBS=$ac_func_search_save_LIBS
14299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14301echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014302ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014303if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014306cat >>confdefs.h <<\_ACEOF
14307#define HAVE_PTHREAD_RWLOCK_INIT 1
14308_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014309
14310fi
14311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014312 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14313echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14314if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014316else
14317 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318cat >conftest.$ac_ext <<_ACEOF
14319/* confdefs.h. */
14320_ACEOF
14321cat confdefs.h >>conftest.$ac_ext
14322cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014323/* end confdefs.h. */
14324
14325/* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14328#ifdef __cplusplus
14329extern "C"
14330#endif
14331char pthread_getspecific ();
14332int
14333main ()
14334{
14335return pthread_getspecific ();
14336 ;
14337 return 0;
14338}
14339_ACEOF
14340for ac_lib in '' pthread; do
14341 if test -z "$ac_lib"; then
14342 ac_res="none required"
14343 else
14344 ac_res=-l$ac_lib
14345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14346 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347 rm -f conftest.$ac_objext conftest$ac_exeext
14348if { (ac_try="$ac_link"
14349case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14352esac
14353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_link") 2>conftest.er1
14355 ac_status=$?
14356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14365esac
14366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (case "(($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_try") 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014381 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382else
14383 echo "$as_me: failed program was:" >&5
14384sed 's/^/| /' conftest.$ac_ext >&5
14385
14386
Owen Anderson27fcfe12009-06-25 23:10:26 +000014387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014388
Owen Anderson27fcfe12009-06-25 23:10:26 +000014389rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014390 conftest$ac_exeext
14391 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014392 break
14393fi
14394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014395if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14396 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014397else
14398 ac_cv_search_pthread_getspecific=no
14399fi
14400rm conftest.$ac_ext
14401LIBS=$ac_func_search_save_LIBS
14402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14404echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014405ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014406if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014409cat >>confdefs.h <<\_ACEOF
14410#define HAVE_PTHREAD_GETSPECIFIC 1
14411_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014412
14413fi
14414
Reid Spencer0a262ba2005-08-24 10:07:20 +000014415fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014416
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014417
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014418# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014419if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014420 withval=$with_udis86;
14421 USE_UDIS86=1
14422
14423 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014424 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014425 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14426 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014427
14428{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14429echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14430if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014432else
14433 ac_check_lib_save_LIBS=$LIBS
14434LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014435cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014440/* end confdefs.h. */
14441
14442/* Override any GCC internal prototype to avoid an error.
14443 Use char because int might match the return type of a GCC
14444 builtin and then its argument prototype would still apply. */
14445#ifdef __cplusplus
14446extern "C"
14447#endif
14448char ud_init ();
14449int
14450main ()
14451{
14452return ud_init ();
14453 ;
14454 return 0;
14455}
14456_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014457rm -f conftest.$ac_objext conftest$ac_exeext
14458if { (ac_try="$ac_link"
14459case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462esac
14463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_link") 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475esac
14476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest$ac_exeext'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014491 ac_cv_lib_udis86_ud_init=yes
14492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493 echo "$as_me: failed program was:" >&5
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014498
Bill Wendlingebcceee2009-04-18 11:20:33 +000014499rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014500 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014501LIBS=$ac_check_lib_save_LIBS
14502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014503{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14504echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14505if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014506 cat >>confdefs.h <<_ACEOF
14507#define HAVE_LIBUDIS86 1
14508_ACEOF
14509
14510 LIBS="-ludis86 $LIBS"
14511
14512else
14513
14514 echo "Error! You need to have libudis86 around."
14515 exit -1
14516
14517fi
14518
14519
14520else
14521 USE_UDIS86=0
14522
14523fi
14524
14525
14526cat >>confdefs.h <<_ACEOF
14527#define USE_UDIS86 $USE_UDIS86
14528_ACEOF
14529
14530
14531
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014532# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014533if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014534 withval=$with_oprofile;
14535 USE_OPROFILE=1
14536
14537 case "$withval" in
14538 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014539 no) llvm_cv_oppath=
14540 USE_OPROFILE=0
14541 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014542 *) llvm_cv_oppath="${withval}/lib/oprofile"
14543 CPPFLAGS="-I${withval}/include";;
14544 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014545 if test -n "$llvm_cv_oppath" ; then
14546 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014547 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14548echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14549if test "${ac_cv_search_bfd_init+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014551else
14552 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014553cat >conftest.$ac_ext <<_ACEOF
14554/* confdefs.h. */
14555_ACEOF
14556cat confdefs.h >>conftest.$ac_ext
14557cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014558/* end confdefs.h. */
14559
14560/* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14563#ifdef __cplusplus
14564extern "C"
14565#endif
14566char bfd_init ();
14567int
14568main ()
14569{
14570return bfd_init ();
14571 ;
14572 return 0;
14573}
14574_ACEOF
14575for ac_lib in '' bfd; do
14576 if test -z "$ac_lib"; then
14577 ac_res="none required"
14578 else
14579 ac_res=-l$ac_lib
14580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14581 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582 rm -f conftest.$ac_objext conftest$ac_exeext
14583if { (ac_try="$ac_link"
14584case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587esac
14588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_link") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597 { (case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600esac
14601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_try") 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest$ac_exeext'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14610esac
14611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014616 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014617else
14618 echo "$as_me: failed program was:" >&5
14619sed 's/^/| /' conftest.$ac_ext >&5
14620
14621
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014623
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014624rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014625 conftest$ac_exeext
14626 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014627 break
14628fi
14629done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014630if test "${ac_cv_search_bfd_init+set}" = set; then
14631 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014632else
14633 ac_cv_search_bfd_init=no
14634fi
14635rm conftest.$ac_ext
14636LIBS=$ac_func_search_save_LIBS
14637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014638{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14639echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014640ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014641if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14643
14644fi
14645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014646 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14647echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14648if test "${ac_cv_search_op_open_agent+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014650else
14651 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014652cat >conftest.$ac_ext <<_ACEOF
14653/* confdefs.h. */
14654_ACEOF
14655cat confdefs.h >>conftest.$ac_ext
14656cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014657/* end confdefs.h. */
14658
14659/* Override any GCC internal prototype to avoid an error.
14660 Use char because int might match the return type of a GCC
14661 builtin and then its argument prototype would still apply. */
14662#ifdef __cplusplus
14663extern "C"
14664#endif
14665char op_open_agent ();
14666int
14667main ()
14668{
14669return op_open_agent ();
14670 ;
14671 return 0;
14672}
14673_ACEOF
14674for ac_lib in '' opagent; do
14675 if test -z "$ac_lib"; then
14676 ac_res="none required"
14677 else
14678 ac_res=-l$ac_lib
14679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14680 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014681 rm -f conftest.$ac_objext conftest$ac_exeext
14682if { (ac_try="$ac_link"
14683case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686esac
14687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_link") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14696 { (case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699esac
14700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_try") 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; } &&
14705 { ac_try='test -s conftest$ac_exeext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14709esac
14710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014715 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014716else
14717 echo "$as_me: failed program was:" >&5
14718sed 's/^/| /' conftest.$ac_ext >&5
14719
14720
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014722
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014723rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014724 conftest$ac_exeext
14725 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014726 break
14727fi
14728done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014729if test "${ac_cv_search_op_open_agent+set}" = set; then
14730 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014731else
14732 ac_cv_search_op_open_agent=no
14733fi
14734rm conftest.$ac_ext
14735LIBS=$ac_func_search_save_LIBS
14736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014737{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14738echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014739ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014740if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14742
14743else
14744
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014745 echo "Error! You need to have libopagent around."
14746 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014747
14748fi
14749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014750 if test "${ac_cv_header_opagent_h+set}" = set; then
14751 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14752echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14753if test "${ac_cv_header_opagent_h+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755fi
14756{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14757echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14758else
14759 # Is the header compilable?
14760{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14761echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14762cat >conftest.$ac_ext <<_ACEOF
14763/* confdefs.h. */
14764_ACEOF
14765cat confdefs.h >>conftest.$ac_ext
14766cat >>conftest.$ac_ext <<_ACEOF
14767/* end confdefs.h. */
14768$ac_includes_default
14769#include <opagent.h>
14770_ACEOF
14771rm -f conftest.$ac_objext
14772if { (ac_try="$ac_compile"
14773case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776esac
14777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_compile") 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789esac
14790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_try") 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest.$ac_objext'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799esac
14800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_header_compiler=yes
14806else
14807 echo "$as_me: failed program was:" >&5
14808sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014810 ac_header_compiler=no
14811fi
14812
14813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14815echo "${ECHO_T}$ac_header_compiler" >&6; }
14816
14817# Is the header present?
14818{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14819echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14820cat >conftest.$ac_ext <<_ACEOF
14821/* confdefs.h. */
14822_ACEOF
14823cat confdefs.h >>conftest.$ac_ext
14824cat >>conftest.$ac_ext <<_ACEOF
14825/* end confdefs.h. */
14826#include <opagent.h>
14827_ACEOF
14828if { (ac_try="$ac_cpp conftest.$ac_ext"
14829case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832esac
14833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } >/dev/null; then
14841 if test -s conftest.err; then
14842 ac_cpp_err=$ac_c_preproc_warn_flag
14843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14844 else
14845 ac_cpp_err=
14846 fi
14847else
14848 ac_cpp_err=yes
14849fi
14850if test -z "$ac_cpp_err"; then
14851 ac_header_preproc=yes
14852else
14853 echo "$as_me: failed program was:" >&5
14854sed 's/^/| /' conftest.$ac_ext >&5
14855
14856 ac_header_preproc=no
14857fi
14858
14859rm -f conftest.err conftest.$ac_ext
14860{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861echo "${ECHO_T}$ac_header_preproc" >&6; }
14862
14863# So? What about this header?
14864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14865 yes:no: )
14866 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14867echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14869echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14870 ac_header_preproc=yes
14871 ;;
14872 no:yes:* )
14873 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14874echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14876echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14878echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14880echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14882echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14884echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14885 ( cat <<\_ASBOX
14886## ----------------------------------- ##
14887## Report this to llvmbugs@cs.uiuc.edu ##
14888## ----------------------------------- ##
14889_ASBOX
14890 ) | sed "s/^/$as_me: WARNING: /" >&2
14891 ;;
14892esac
14893{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14894echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14895if test "${ac_cv_header_opagent_h+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897else
14898 ac_cv_header_opagent_h=$ac_header_preproc
14899fi
14900{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14901echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14902
14903fi
14904if test $ac_cv_header_opagent_h = yes; then
14905 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014906else
14907
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014908 echo "Error! You need to have opagent.h around."
14909 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014910
14911fi
14912
14913
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014914 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014915
14916else
14917
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014918 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014919
14920
14921fi
14922
14923
14924cat >>confdefs.h <<_ACEOF
14925#define USE_OPROFILE $USE_OPROFILE
14926_ACEOF
14927
14928
14929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014930
14931
14932
14933
14934
Reid Spencer59473af2004-12-25 07:31:29 +000014935ac_header_dirent=no
14936for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014937 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14938{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14939echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014942else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014943 cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014948/* end confdefs.h. */
14949#include <sys/types.h>
14950#include <$ac_hdr>
14951
14952int
14953main ()
14954{
14955if ((DIR *) 0)
14956return 0;
14957 ;
14958 return 0;
14959}
14960_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014961rm -f conftest.$ac_objext
14962if { (ac_try="$ac_compile"
14963case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966esac
14967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_compile") 2>conftest.er1
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14976 { (case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14979esac
14980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_try") 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; } &&
14985 { ac_try='test -s conftest.$ac_objext'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989esac
14990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014995 eval "$as_ac_Header=yes"
14996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015002
Reid Spencera773bd52006-08-04 18:18:08 +000015003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015005ac_res=`eval echo '${'$as_ac_Header'}'`
15006 { echo "$as_me:$LINENO: result: $ac_res" >&5
15007echo "${ECHO_T}$ac_res" >&6; }
15008if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015009 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015010#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015011_ACEOF
15012
15013ac_header_dirent=$ac_hdr; break
15014fi
15015
15016done
15017# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15018if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015019 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15020echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15021if test "${ac_cv_search_opendir+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015023else
15024 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015025cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015030/* end confdefs.h. */
15031
Reid Spencera773bd52006-08-04 18:18:08 +000015032/* Override any GCC internal prototype to avoid an error.
15033 Use char because int might match the return type of a GCC
15034 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015035#ifdef __cplusplus
15036extern "C"
15037#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015038char opendir ();
15039int
15040main ()
15041{
Reid Spencera773bd52006-08-04 18:18:08 +000015042return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015043 ;
15044 return 0;
15045}
15046_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015047for ac_lib in '' dir; do
15048 if test -z "$ac_lib"; then
15049 ac_res="none required"
15050 else
15051 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015053 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015054 rm -f conftest.$ac_objext conftest$ac_exeext
15055if { (ac_try="$ac_link"
15056case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059esac
15060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_link") 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest$ac_exeext'
15079 { (case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082esac
15083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_try") 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015088 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015089else
15090 echo "$as_me: failed program was:" >&5
15091sed 's/^/| /' conftest.$ac_ext >&5
15092
15093
Reid Spencer59473af2004-12-25 07:31:29 +000015094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015095
Bill Wendlingebcceee2009-04-18 11:20:33 +000015096rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015097 conftest$ac_exeext
15098 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015099 break
Reid Spencer59473af2004-12-25 07:31:29 +000015100fi
Reid Spencera773bd52006-08-04 18:18:08 +000015101done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015102if test "${ac_cv_search_opendir+set}" = set; then
15103 :
Reid Spencera773bd52006-08-04 18:18:08 +000015104else
15105 ac_cv_search_opendir=no
15106fi
15107rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015108LIBS=$ac_func_search_save_LIBS
15109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015110{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15111echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015112ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015113if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015115
15116fi
15117
15118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015119 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15120echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15121if test "${ac_cv_search_opendir+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015123else
15124 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015125cat >conftest.$ac_ext <<_ACEOF
15126/* confdefs.h. */
15127_ACEOF
15128cat confdefs.h >>conftest.$ac_ext
15129cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015130/* end confdefs.h. */
15131
Reid Spencera773bd52006-08-04 18:18:08 +000015132/* Override any GCC internal prototype to avoid an error.
15133 Use char because int might match the return type of a GCC
15134 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015135#ifdef __cplusplus
15136extern "C"
15137#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015138char opendir ();
15139int
15140main ()
15141{
Reid Spencera773bd52006-08-04 18:18:08 +000015142return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015143 ;
15144 return 0;
15145}
15146_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015147for ac_lib in '' x; do
15148 if test -z "$ac_lib"; then
15149 ac_res="none required"
15150 else
15151 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015153 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015154 rm -f conftest.$ac_objext conftest$ac_exeext
15155if { (ac_try="$ac_link"
15156case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159esac
15160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172esac
15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest$ac_exeext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15182esac
15183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015188 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015189else
15190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193
Reid Spencer59473af2004-12-25 07:31:29 +000015194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015195
Bill Wendlingebcceee2009-04-18 11:20:33 +000015196rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015197 conftest$ac_exeext
15198 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015199 break
Reid Spencer59473af2004-12-25 07:31:29 +000015200fi
Reid Spencera773bd52006-08-04 18:18:08 +000015201done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015202if test "${ac_cv_search_opendir+set}" = set; then
15203 :
Reid Spencera773bd52006-08-04 18:18:08 +000015204else
15205 ac_cv_search_opendir=no
15206fi
15207rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015208LIBS=$ac_func_search_save_LIBS
15209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015210{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15211echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015212ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015213if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015215
15216fi
15217
15218fi
15219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015220{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15221echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15222if test "${ac_cv_header_mmap_anon+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015224else
15225 ac_ext=c
15226ac_cpp='$CPP $CPPFLAGS'
15227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15229ac_compiler_gnu=$ac_cv_c_compiler_gnu
15230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015231 cat >conftest.$ac_ext <<_ACEOF
15232/* confdefs.h. */
15233_ACEOF
15234cat confdefs.h >>conftest.$ac_ext
15235cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015236/* end confdefs.h. */
15237#include <sys/mman.h>
15238#include <unistd.h>
15239#include <fcntl.h>
15240int
15241main ()
15242{
15243mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15244 ;
15245 return 0;
15246}
15247_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248rm -f conftest.$ac_objext
15249if { (ac_try="$ac_compile"
15250case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_compile") 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015282 ac_cv_header_mmap_anon=yes
15283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015289
Reid Spencera773bd52006-08-04 18:18:08 +000015290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015291 ac_ext=c
15292ac_cpp='$CPP $CPPFLAGS'
15293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15295ac_compiler_gnu=$ac_cv_c_compiler_gnu
15296
15297
15298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015299{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15300echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015301if test "$ac_cv_header_mmap_anon" = yes; then
15302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015303cat >>confdefs.h <<\_ACEOF
15304#define HAVE_MMAP_ANONYMOUS 1
15305_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015306
15307fi
15308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015309{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15310echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15311if test "${ac_cv_header_stat_broken+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015314 cat >conftest.$ac_ext <<_ACEOF
15315/* confdefs.h. */
15316_ACEOF
15317cat confdefs.h >>conftest.$ac_ext
15318cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015319/* end confdefs.h. */
15320#include <sys/types.h>
15321#include <sys/stat.h>
15322
Reid Spencera773bd52006-08-04 18:18:08 +000015323#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015324# if S_ISBLK (S_IFDIR)
15325You lose.
15326# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015327#endif
15328
Reid Spencera773bd52006-08-04 18:18:08 +000015329#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015330# if S_ISBLK (S_IFCHR)
15331You lose.
15332# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015333#endif
15334
Reid Spencera773bd52006-08-04 18:18:08 +000015335#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015336# if S_ISLNK (S_IFREG)
15337You lose.
15338# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015339#endif
15340
Reid Spencera773bd52006-08-04 18:18:08 +000015341#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015342# if S_ISSOCK (S_IFREG)
15343You lose.
15344# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015345#endif
15346
15347_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15349 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015350 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015351else
15352 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015354rm -f conftest*
15355
Reid Spencer59473af2004-12-25 07:31:29 +000015356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015357{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15358echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015359if test $ac_cv_header_stat_broken = yes; then
15360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015361cat >>confdefs.h <<\_ACEOF
15362#define STAT_MACROS_BROKEN 1
15363_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015364
15365fi
15366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015367{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15368echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15369if test "${ac_cv_header_stdc+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015372 cat >conftest.$ac_ext <<_ACEOF
15373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015377/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015378#include <stdlib.h>
15379#include <stdarg.h>
15380#include <string.h>
15381#include <float.h>
15382
John Criswell0c38eaf2003-09-10 15:17:25 +000015383int
15384main ()
15385{
15386
15387 ;
15388 return 0;
15389}
John Criswell7a73b802003-06-30 21:59:07 +000015390_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015391rm -f conftest.$ac_objext
15392if { (ac_try="$ac_compile"
15393case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396esac
15397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_compile") 2>conftest.er1
15399 ac_status=$?
15400 grep -v '^ *+' conftest.er1 >conftest.err
15401 rm -f conftest.er1
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409esac
15410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419esac
15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015425 ac_cv_header_stdc=yes
15426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015427 echo "$as_me: failed program was:" >&5
15428sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015432
Reid Spencera773bd52006-08-04 18:18:08 +000015433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015434
15435if test $ac_cv_header_stdc = yes; then
15436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015437 cat >conftest.$ac_ext <<_ACEOF
15438/* confdefs.h. */
15439_ACEOF
15440cat confdefs.h >>conftest.$ac_ext
15441cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015443#include <string.h>
15444
15445_ACEOF
15446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015447 $EGREP "memchr" >/dev/null 2>&1; then
15448 :
John Criswell7a73b802003-06-30 21:59:07 +000015449else
15450 ac_cv_header_stdc=no
15451fi
15452rm -f conftest*
15453
15454fi
15455
15456if test $ac_cv_header_stdc = yes; then
15457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015458 cat >conftest.$ac_ext <<_ACEOF
15459/* confdefs.h. */
15460_ACEOF
15461cat confdefs.h >>conftest.$ac_ext
15462cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015463/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015464#include <stdlib.h>
15465
15466_ACEOF
15467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015468 $EGREP "free" >/dev/null 2>&1; then
15469 :
John Criswell7a73b802003-06-30 21:59:07 +000015470else
15471 ac_cv_header_stdc=no
15472fi
15473rm -f conftest*
15474
15475fi
15476
15477if test $ac_cv_header_stdc = yes; then
15478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015479 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015480 :
15481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015482 cat >conftest.$ac_ext <<_ACEOF
15483/* confdefs.h. */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015488#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015489#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015490#if ((' ' & 0x0FF) == 0x020)
15491# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15492# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15493#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015494# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015495 (('a' <= (c) && (c) <= 'i') \
15496 || ('j' <= (c) && (c) <= 'r') \
15497 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015498# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15499#endif
15500
15501#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15502int
15503main ()
15504{
15505 int i;
15506 for (i = 0; i < 256; i++)
15507 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015508 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015509 return 2;
15510 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015511}
15512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015513rm -f conftest$ac_exeext
15514if { (ac_try="$ac_link"
15515case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518esac
15519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527esac
15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 :
John Criswell7a73b802003-06-30 21:59:07 +000015534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015535 echo "$as_me: program exited with status $ac_status" >&5
15536echo "$as_me: failed program was:" >&5
15537sed 's/^/| /' conftest.$ac_ext >&5
15538
15539( exit $ac_status )
15540ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015542rm -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 +000015543fi
15544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015545
John Criswell7a73b802003-06-30 21:59:07 +000015546fi
15547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015548{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15549echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015550if test $ac_cv_header_stdc = yes; then
15551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015552cat >>confdefs.h <<\_ACEOF
15553#define STDC_HEADERS 1
15554_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015555
15556fi
15557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015558{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15559echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15560if test "${ac_cv_header_sys_wait_h+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015563 cat >conftest.$ac_ext <<_ACEOF
15564/* confdefs.h. */
15565_ACEOF
15566cat confdefs.h >>conftest.$ac_ext
15567cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015569#include <sys/types.h>
15570#include <sys/wait.h>
15571#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015572# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015573#endif
15574#ifndef WIFEXITED
15575# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15576#endif
15577
John Criswell7a73b802003-06-30 21:59:07 +000015578int
15579main ()
15580{
15581 int s;
15582 wait (&s);
15583 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15584 ;
15585 return 0;
15586}
15587_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015588rm -f conftest.$ac_objext
15589if { (ac_try="$ac_compile"
15590case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15593esac
15594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_compile") 2>conftest.er1
15596 ac_status=$?
15597 grep -v '^ *+' conftest.er1 >conftest.err
15598 rm -f conftest.er1
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_try") 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015622 ac_cv_header_sys_wait_h=yes
15623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015624 echo "$as_me: failed program was:" >&5
15625sed 's/^/| /' conftest.$ac_ext >&5
15626
15627 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015629
Reid Spencera773bd52006-08-04 18:18:08 +000015630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015632{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15633echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015634if test $ac_cv_header_sys_wait_h = yes; then
15635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015636cat >>confdefs.h <<\_ACEOF
15637#define HAVE_SYS_WAIT_H 1
15638_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015639
15640fi
15641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015642{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15643echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15644if test "${ac_cv_header_time+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015647 cat >conftest.$ac_ext <<_ACEOF
15648/* confdefs.h. */
15649_ACEOF
15650cat confdefs.h >>conftest.$ac_ext
15651cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015652/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015653#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015654#include <sys/time.h>
15655#include <time.h>
15656
15657int
15658main ()
15659{
15660if ((struct tm *) 0)
15661return 0;
15662 ;
15663 return 0;
15664}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015665_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015666rm -f conftest.$ac_objext
15667if { (ac_try="$ac_compile"
15668case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671esac
15672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_compile") 2>conftest.er1
15674 ac_status=$?
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684esac
15685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15694esac
15695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015700 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015702 echo "$as_me: failed program was:" >&5
15703sed 's/^/| /' conftest.$ac_ext >&5
15704
15705 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015707
Reid Spencera773bd52006-08-04 18:18:08 +000015708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015710{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15711echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015712if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015714cat >>confdefs.h <<\_ACEOF
15715#define TIME_WITH_SYS_TIME 1
15716_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015717
15718fi
15719
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015721
15722
15723
15724
15725
15726
Reid Spencer59473af2004-12-25 07:31:29 +000015727for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015728do
15729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15735fi
15736ac_res=`eval echo '${'$as_ac_Header'}'`
15737 { echo "$as_me:$LINENO: result: $ac_res" >&5
15738echo "${ECHO_T}$ac_res" >&6; }
15739else
15740 # Is the header compilable?
15741{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15743cat >conftest.$ac_ext <<_ACEOF
15744/* confdefs.h. */
15745_ACEOF
15746cat confdefs.h >>conftest.$ac_ext
15747cat >>conftest.$ac_ext <<_ACEOF
15748/* end confdefs.h. */
15749$ac_includes_default
15750#include <$ac_header>
15751_ACEOF
15752rm -f conftest.$ac_objext
15753if { (ac_try="$ac_compile"
15754case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757esac
15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15767 { (case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770esac
15771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_try") 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try='test -s conftest.$ac_objext'
15777 { (case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15780esac
15781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782 (eval "$ac_try") 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; }; then
15786 ac_header_compiler=yes
15787else
15788 echo "$as_me: failed program was:" >&5
15789sed 's/^/| /' conftest.$ac_ext >&5
15790
15791 ac_header_compiler=no
15792fi
15793
15794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15796echo "${ECHO_T}$ac_header_compiler" >&6; }
15797
15798# Is the header present?
15799{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15800echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15801cat >conftest.$ac_ext <<_ACEOF
15802/* confdefs.h. */
15803_ACEOF
15804cat confdefs.h >>conftest.$ac_ext
15805cat >>conftest.$ac_ext <<_ACEOF
15806/* end confdefs.h. */
15807#include <$ac_header>
15808_ACEOF
15809if { (ac_try="$ac_cpp conftest.$ac_ext"
15810case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15813esac
15814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15816 ac_status=$?
15817 grep -v '^ *+' conftest.er1 >conftest.err
15818 rm -f conftest.er1
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } >/dev/null; then
15822 if test -s conftest.err; then
15823 ac_cpp_err=$ac_c_preproc_warn_flag
15824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15825 else
15826 ac_cpp_err=
15827 fi
15828else
15829 ac_cpp_err=yes
15830fi
15831if test -z "$ac_cpp_err"; then
15832 ac_header_preproc=yes
15833else
15834 echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837 ac_header_preproc=no
15838fi
15839
15840rm -f conftest.err conftest.$ac_ext
15841{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15842echo "${ECHO_T}$ac_header_preproc" >&6; }
15843
15844# So? What about this header?
15845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15846 yes:no: )
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15851 ac_header_preproc=yes
15852 ;;
15853 no:yes:* )
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15866 ( cat <<\_ASBOX
15867## ----------------------------------- ##
15868## Report this to llvmbugs@cs.uiuc.edu ##
15869## ----------------------------------- ##
15870_ASBOX
15871 ) | sed "s/^/$as_me: WARNING: /" >&2
15872 ;;
15873esac
15874{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15878else
15879 eval "$as_ac_Header=\$ac_header_preproc"
15880fi
15881ac_res=`eval echo '${'$as_ac_Header'}'`
15882 { echo "$as_me:$LINENO: result: $ac_res" >&5
15883echo "${ECHO_T}$ac_res" >&6; }
15884
15885fi
15886if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015887 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015889_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015890
15891fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015892
Reid Spencer59473af2004-12-25 07:31:29 +000015893done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015895
15896
15897
15898
15899
15900
Douglas Gregor071d73d2009-05-18 17:21:34 +000015901for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015902do
15903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15909fi
15910ac_res=`eval echo '${'$as_ac_Header'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912echo "${ECHO_T}$ac_res" >&6; }
15913else
15914 # Is the header compilable?
15915{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15917cat >conftest.$ac_ext <<_ACEOF
15918/* confdefs.h. */
15919_ACEOF
15920cat confdefs.h >>conftest.$ac_ext
15921cat >>conftest.$ac_ext <<_ACEOF
15922/* end confdefs.h. */
15923$ac_includes_default
15924#include <$ac_header>
15925_ACEOF
15926rm -f conftest.$ac_objext
15927if { (ac_try="$ac_compile"
15928case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15931esac
15932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_compile") 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15941 { (case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15944esac
15945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_try") 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest.$ac_objext'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954esac
15955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_header_compiler=yes
15961else
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965 ac_header_compiler=no
15966fi
15967
15968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15970echo "${ECHO_T}$ac_header_compiler" >&6; }
15971
15972# Is the header present?
15973{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15975cat >conftest.$ac_ext <<_ACEOF
15976/* confdefs.h. */
15977_ACEOF
15978cat confdefs.h >>conftest.$ac_ext
15979cat >>conftest.$ac_ext <<_ACEOF
15980/* end confdefs.h. */
15981#include <$ac_header>
15982_ACEOF
15983if { (ac_try="$ac_cpp conftest.$ac_ext"
15984case "(($ac_try" in
15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986 *) ac_try_echo=$ac_try;;
15987esac
15988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15990 ac_status=$?
15991 grep -v '^ *+' conftest.er1 >conftest.err
15992 rm -f conftest.er1
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } >/dev/null; then
15996 if test -s conftest.err; then
15997 ac_cpp_err=$ac_c_preproc_warn_flag
15998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15999 else
16000 ac_cpp_err=
16001 fi
16002else
16003 ac_cpp_err=yes
16004fi
16005if test -z "$ac_cpp_err"; then
16006 ac_header_preproc=yes
16007else
16008 echo "$as_me: failed program was:" >&5
16009sed 's/^/| /' conftest.$ac_ext >&5
16010
16011 ac_header_preproc=no
16012fi
16013
16014rm -f conftest.err conftest.$ac_ext
16015{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16016echo "${ECHO_T}$ac_header_preproc" >&6; }
16017
16018# So? What about this header?
16019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16020 yes:no: )
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16025 ac_header_preproc=yes
16026 ;;
16027 no:yes:* )
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16040 ( cat <<\_ASBOX
16041## ----------------------------------- ##
16042## Report this to llvmbugs@cs.uiuc.edu ##
16043## ----------------------------------- ##
16044_ASBOX
16045 ) | sed "s/^/$as_me: WARNING: /" >&2
16046 ;;
16047esac
16048{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052else
16053 eval "$as_ac_Header=\$ac_header_preproc"
16054fi
16055ac_res=`eval echo '${'$as_ac_Header'}'`
16056 { echo "$as_me:$LINENO: result: $ac_res" >&5
16057echo "${ECHO_T}$ac_res" >&6; }
16058
16059fi
16060if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016061 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016063_ACEOF
16064
16065fi
16066
16067done
16068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016069
16070
Douglas Gregor071d73d2009-05-18 17:21:34 +000016071for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016072do
16073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16079fi
16080ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082echo "${ECHO_T}$ac_res" >&6; }
16083else
16084 # Is the header compilable?
16085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16087cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
16093$ac_includes_default
16094#include <$ac_header>
16095_ACEOF
16096rm -f conftest.$ac_objext
16097if { (ac_try="$ac_compile"
16098case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101esac
16102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_compile") 2>conftest.er1
16104 ac_status=$?
16105 grep -v '^ *+' conftest.er1 >conftest.err
16106 rm -f conftest.er1
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114esac
16115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest.$ac_objext'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16124esac
16125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_header_compiler=yes
16131else
16132 echo "$as_me: failed program was:" >&5
16133sed 's/^/| /' conftest.$ac_ext >&5
16134
16135 ac_header_compiler=no
16136fi
16137
16138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16140echo "${ECHO_T}$ac_header_compiler" >&6; }
16141
16142# Is the header present?
16143{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16145cat >conftest.$ac_ext <<_ACEOF
16146/* confdefs.h. */
16147_ACEOF
16148cat confdefs.h >>conftest.$ac_ext
16149cat >>conftest.$ac_ext <<_ACEOF
16150/* end confdefs.h. */
16151#include <$ac_header>
16152_ACEOF
16153if { (ac_try="$ac_cpp conftest.$ac_ext"
16154case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16157esac
16158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } >/dev/null; then
16166 if test -s conftest.err; then
16167 ac_cpp_err=$ac_c_preproc_warn_flag
16168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16169 else
16170 ac_cpp_err=
16171 fi
16172else
16173 ac_cpp_err=yes
16174fi
16175if test -z "$ac_cpp_err"; then
16176 ac_header_preproc=yes
16177else
16178 echo "$as_me: failed program was:" >&5
16179sed 's/^/| /' conftest.$ac_ext >&5
16180
16181 ac_header_preproc=no
16182fi
16183
16184rm -f conftest.err conftest.$ac_ext
16185{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186echo "${ECHO_T}$ac_header_preproc" >&6; }
16187
16188# So? What about this header?
16189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190 yes:no: )
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16194echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16195 ac_header_preproc=yes
16196 ;;
16197 no:yes:* )
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16203echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16205echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16207echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16209echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16210 ( cat <<\_ASBOX
16211## ----------------------------------- ##
16212## Report this to llvmbugs@cs.uiuc.edu ##
16213## ----------------------------------- ##
16214_ASBOX
16215 ) | sed "s/^/$as_me: WARNING: /" >&2
16216 ;;
16217esac
16218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16222else
16223 eval "$as_ac_Header=\$ac_header_preproc"
16224fi
16225ac_res=`eval echo '${'$as_ac_Header'}'`
16226 { echo "$as_me:$LINENO: result: $ac_res" >&5
16227echo "${ECHO_T}$ac_res" >&6; }
16228
16229fi
16230if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016231 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016233_ACEOF
16234
16235fi
16236
16237done
Reid Spencer59473af2004-12-25 07:31:29 +000016238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016239
16240
16241
16242
Reid Spencerbe3e4192007-08-17 05:45:26 +000016243for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016244do
16245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16251fi
16252ac_res=`eval echo '${'$as_ac_Header'}'`
16253 { echo "$as_me:$LINENO: result: $ac_res" >&5
16254echo "${ECHO_T}$ac_res" >&6; }
16255else
16256 # Is the header compilable?
16257{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16259cat >conftest.$ac_ext <<_ACEOF
16260/* confdefs.h. */
16261_ACEOF
16262cat confdefs.h >>conftest.$ac_ext
16263cat >>conftest.$ac_ext <<_ACEOF
16264/* end confdefs.h. */
16265$ac_includes_default
16266#include <$ac_header>
16267_ACEOF
16268rm -f conftest.$ac_objext
16269if { (ac_try="$ac_compile"
16270case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16273esac
16274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_compile") 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16286esac
16287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest.$ac_objext'
16293 { (case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296esac
16297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_try") 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_header_compiler=yes
16303else
16304 echo "$as_me: failed program was:" >&5
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
16307 ac_header_compiler=no
16308fi
16309
16310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16311{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16312echo "${ECHO_T}$ac_header_compiler" >&6; }
16313
16314# Is the header present?
16315{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16316echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16317cat >conftest.$ac_ext <<_ACEOF
16318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
16323#include <$ac_header>
16324_ACEOF
16325if { (ac_try="$ac_cpp conftest.$ac_ext"
16326case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16329esac
16330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16332 ac_status=$?
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } >/dev/null; then
16338 if test -s conftest.err; then
16339 ac_cpp_err=$ac_c_preproc_warn_flag
16340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16341 else
16342 ac_cpp_err=
16343 fi
16344else
16345 ac_cpp_err=yes
16346fi
16347if test -z "$ac_cpp_err"; then
16348 ac_header_preproc=yes
16349else
16350 echo "$as_me: failed program was:" >&5
16351sed 's/^/| /' conftest.$ac_ext >&5
16352
16353 ac_header_preproc=no
16354fi
16355
16356rm -f conftest.err conftest.$ac_ext
16357{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16358echo "${ECHO_T}$ac_header_preproc" >&6; }
16359
16360# So? What about this header?
16361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16362 yes:no: )
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16364echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16366echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16367 ac_header_preproc=yes
16368 ;;
16369 no:yes:* )
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16371echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16373echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16375echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16377echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16379echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16381echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16382 ( cat <<\_ASBOX
16383## ----------------------------------- ##
16384## Report this to llvmbugs@cs.uiuc.edu ##
16385## ----------------------------------- ##
16386_ASBOX
16387 ) | sed "s/^/$as_me: WARNING: /" >&2
16388 ;;
16389esac
16390{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16393 echo $ECHO_N "(cached) $ECHO_C" >&6
16394else
16395 eval "$as_ac_Header=\$ac_header_preproc"
16396fi
16397ac_res=`eval echo '${'$as_ac_Header'}'`
16398 { echo "$as_me:$LINENO: result: $ac_res" >&5
16399echo "${ECHO_T}$ac_res" >&6; }
16400
16401fi
16402if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016403 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016404#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016405_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016406
16407fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016408
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016409done
16410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016411
16412
16413
16414
Douglas Gregor01746742009-05-11 18:05:52 +000016415for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016416do
16417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16423fi
16424ac_res=`eval echo '${'$as_ac_Header'}'`
16425 { echo "$as_me:$LINENO: result: $ac_res" >&5
16426echo "${ECHO_T}$ac_res" >&6; }
16427else
16428 # Is the header compilable?
16429{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16431cat >conftest.$ac_ext <<_ACEOF
16432/* confdefs.h. */
16433_ACEOF
16434cat confdefs.h >>conftest.$ac_ext
16435cat >>conftest.$ac_ext <<_ACEOF
16436/* end confdefs.h. */
16437$ac_includes_default
16438#include <$ac_header>
16439_ACEOF
16440rm -f conftest.$ac_objext
16441if { (ac_try="$ac_compile"
16442case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_compile") 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
16454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458esac
16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest.$ac_objext'
16465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468esac
16469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_try") 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_header_compiler=yes
16475else
16476 echo "$as_me: failed program was:" >&5
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 ac_header_compiler=no
16480fi
16481
16482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16484echo "${ECHO_T}$ac_header_compiler" >&6; }
16485
16486# Is the header present?
16487{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16488echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16489cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
16495#include <$ac_header>
16496_ACEOF
16497if { (ac_try="$ac_cpp conftest.$ac_ext"
16498case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501esac
16502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } >/dev/null; then
16510 if test -s conftest.err; then
16511 ac_cpp_err=$ac_c_preproc_warn_flag
16512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16513 else
16514 ac_cpp_err=
16515 fi
16516else
16517 ac_cpp_err=yes
16518fi
16519if test -z "$ac_cpp_err"; then
16520 ac_header_preproc=yes
16521else
16522 echo "$as_me: failed program was:" >&5
16523sed 's/^/| /' conftest.$ac_ext >&5
16524
16525 ac_header_preproc=no
16526fi
16527
16528rm -f conftest.err conftest.$ac_ext
16529{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16530echo "${ECHO_T}$ac_header_preproc" >&6; }
16531
16532# So? What about this header?
16533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16534 yes:no: )
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16536echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16538echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16539 ac_header_preproc=yes
16540 ;;
16541 no:yes:* )
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16547echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16549echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16553echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16554 ( cat <<\_ASBOX
16555## ----------------------------------- ##
16556## Report this to llvmbugs@cs.uiuc.edu ##
16557## ----------------------------------- ##
16558_ASBOX
16559 ) | sed "s/^/$as_me: WARNING: /" >&2
16560 ;;
16561esac
16562{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566else
16567 eval "$as_ac_Header=\$ac_header_preproc"
16568fi
16569ac_res=`eval echo '${'$as_ac_Header'}'`
16570 { echo "$as_me:$LINENO: result: $ac_res" >&5
16571echo "${ECHO_T}$ac_res" >&6; }
16572
16573fi
16574if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016575 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016577_ACEOF
16578
16579fi
16580
16581done
16582
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016583
16584for ac_header in valgrind/valgrind.h
16585do
16586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592fi
16593ac_res=`eval echo '${'$as_ac_Header'}'`
16594 { echo "$as_me:$LINENO: result: $ac_res" >&5
16595echo "${ECHO_T}$ac_res" >&6; }
16596else
16597 # Is the header compilable?
16598{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16600cat >conftest.$ac_ext <<_ACEOF
16601/* confdefs.h. */
16602_ACEOF
16603cat confdefs.h >>conftest.$ac_ext
16604cat >>conftest.$ac_ext <<_ACEOF
16605/* end confdefs.h. */
16606$ac_includes_default
16607#include <$ac_header>
16608_ACEOF
16609rm -f conftest.$ac_objext
16610if { (ac_try="$ac_compile"
16611case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614esac
16615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } &&
16623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16624 { (case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16627esac
16628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_try") 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16643 ac_header_compiler=yes
16644else
16645 echo "$as_me: failed program was:" >&5
16646sed 's/^/| /' conftest.$ac_ext >&5
16647
16648 ac_header_compiler=no
16649fi
16650
16651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16653echo "${ECHO_T}$ac_header_compiler" >&6; }
16654
16655# Is the header present?
16656{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16658cat >conftest.$ac_ext <<_ACEOF
16659/* confdefs.h. */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h. */
16664#include <$ac_header>
16665_ACEOF
16666if { (ac_try="$ac_cpp conftest.$ac_ext"
16667case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670esac
16671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } >/dev/null; then
16679 if test -s conftest.err; then
16680 ac_cpp_err=$ac_c_preproc_warn_flag
16681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16682 else
16683 ac_cpp_err=
16684 fi
16685else
16686 ac_cpp_err=yes
16687fi
16688if test -z "$ac_cpp_err"; then
16689 ac_header_preproc=yes
16690else
16691 echo "$as_me: failed program was:" >&5
16692sed 's/^/| /' conftest.$ac_ext >&5
16693
16694 ac_header_preproc=no
16695fi
16696
16697rm -f conftest.err conftest.$ac_ext
16698{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16699echo "${ECHO_T}$ac_header_preproc" >&6; }
16700
16701# So? What about this header?
16702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16703 yes:no: )
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16708 ac_header_preproc=yes
16709 ;;
16710 no:yes:* )
16711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16714echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16718echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16723 ( cat <<\_ASBOX
16724## ----------------------------------- ##
16725## Report this to llvmbugs@cs.uiuc.edu ##
16726## ----------------------------------- ##
16727_ASBOX
16728 ) | sed "s/^/$as_me: WARNING: /" >&2
16729 ;;
16730esac
16731{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736 eval "$as_ac_Header=\$ac_header_preproc"
16737fi
16738ac_res=`eval echo '${'$as_ac_Header'}'`
16739 { echo "$as_me:$LINENO: result: $ac_res" >&5
16740echo "${ECHO_T}$ac_res" >&6; }
16741
16742fi
16743if test `eval echo '${'$as_ac_Header'}'` = yes; then
16744 cat >>confdefs.h <<_ACEOF
16745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16746_ACEOF
16747
16748fi
16749
16750done
16751
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016752
16753for ac_header in fenv.h
16754do
16755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761fi
16762ac_res=`eval echo '${'$as_ac_Header'}'`
16763 { echo "$as_me:$LINENO: result: $ac_res" >&5
16764echo "${ECHO_T}$ac_res" >&6; }
16765else
16766 # Is the header compilable?
16767{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16769cat >conftest.$ac_ext <<_ACEOF
16770/* confdefs.h. */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h. */
16775$ac_includes_default
16776#include <$ac_header>
16777_ACEOF
16778rm -f conftest.$ac_objext
16779if { (ac_try="$ac_compile"
16780case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16783esac
16784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16786 ac_status=$?
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16793 { (case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796esac
16797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_try") 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest.$ac_objext'
16803 { (case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806esac
16807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_try") 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_header_compiler=yes
16813else
16814 echo "$as_me: failed program was:" >&5
16815sed 's/^/| /' conftest.$ac_ext >&5
16816
16817 ac_header_compiler=no
16818fi
16819
16820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16821{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16822echo "${ECHO_T}$ac_header_compiler" >&6; }
16823
16824# Is the header present?
16825{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16827cat >conftest.$ac_ext <<_ACEOF
16828/* confdefs.h. */
16829_ACEOF
16830cat confdefs.h >>conftest.$ac_ext
16831cat >>conftest.$ac_ext <<_ACEOF
16832/* end confdefs.h. */
16833#include <$ac_header>
16834_ACEOF
16835if { (ac_try="$ac_cpp conftest.$ac_ext"
16836case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16842 ac_status=$?
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } >/dev/null; then
16848 if test -s conftest.err; then
16849 ac_cpp_err=$ac_c_preproc_warn_flag
16850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16851 else
16852 ac_cpp_err=
16853 fi
16854else
16855 ac_cpp_err=yes
16856fi
16857if test -z "$ac_cpp_err"; then
16858 ac_header_preproc=yes
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 ac_header_preproc=no
16864fi
16865
16866rm -f conftest.err conftest.$ac_ext
16867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16868echo "${ECHO_T}$ac_header_preproc" >&6; }
16869
16870# So? What about this header?
16871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16872 yes:no: )
16873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16877 ac_header_preproc=yes
16878 ;;
16879 no:yes:* )
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16892 ( cat <<\_ASBOX
16893## ----------------------------------- ##
16894## Report this to llvmbugs@cs.uiuc.edu ##
16895## ----------------------------------- ##
16896_ASBOX
16897 ) | sed "s/^/$as_me: WARNING: /" >&2
16898 ;;
16899esac
16900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16904else
16905 eval "$as_ac_Header=\$ac_header_preproc"
16906fi
16907ac_res=`eval echo '${'$as_ac_Header'}'`
16908 { echo "$as_me:$LINENO: result: $ac_res" >&5
16909echo "${ECHO_T}$ac_res" >&6; }
16910
16911fi
16912if test `eval echo '${'$as_ac_Header'}'` = yes; then
16913 cat >>confdefs.h <<_ACEOF
16914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16915_ACEOF
16916
16917fi
16918
16919done
16920
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016921if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016922
16923for ac_header in pthread.h
16924do
16925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16931fi
16932ac_res=`eval echo '${'$as_ac_Header'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934echo "${ECHO_T}$ac_res" >&6; }
16935else
16936 # Is the header compilable?
16937{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16939cat >conftest.$ac_ext <<_ACEOF
16940/* confdefs.h. */
16941_ACEOF
16942cat confdefs.h >>conftest.$ac_ext
16943cat >>conftest.$ac_ext <<_ACEOF
16944/* end confdefs.h. */
16945$ac_includes_default
16946#include <$ac_header>
16947_ACEOF
16948rm -f conftest.$ac_objext
16949if { (ac_try="$ac_compile"
16950case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953esac
16954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_compile") 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16963 { (case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16966esac
16967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_try") 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest.$ac_objext'
16973 { (case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976esac
16977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_try") 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 ac_header_compiler=yes
16983else
16984 echo "$as_me: failed program was:" >&5
16985sed 's/^/| /' conftest.$ac_ext >&5
16986
16987 ac_header_compiler=no
16988fi
16989
16990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16992echo "${ECHO_T}$ac_header_compiler" >&6; }
16993
16994# Is the header present?
16995{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16997cat >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#include <$ac_header>
17004_ACEOF
17005if { (ac_try="$ac_cpp conftest.$ac_ext"
17006case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } >/dev/null; then
17018 if test -s conftest.err; then
17019 ac_cpp_err=$ac_c_preproc_warn_flag
17020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17021 else
17022 ac_cpp_err=
17023 fi
17024else
17025 ac_cpp_err=yes
17026fi
17027if test -z "$ac_cpp_err"; then
17028 ac_header_preproc=yes
17029else
17030 echo "$as_me: failed program was:" >&5
17031sed 's/^/| /' conftest.$ac_ext >&5
17032
17033 ac_header_preproc=no
17034fi
17035
17036rm -f conftest.err conftest.$ac_ext
17037{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17038echo "${ECHO_T}$ac_header_preproc" >&6; }
17039
17040# So? What about this header?
17041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17042 yes:no: )
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17047 ac_header_preproc=yes
17048 ;;
17049 no:yes:* )
17050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17062 ( cat <<\_ASBOX
17063## ----------------------------------- ##
17064## Report this to llvmbugs@cs.uiuc.edu ##
17065## ----------------------------------- ##
17066_ASBOX
17067 ) | sed "s/^/$as_me: WARNING: /" >&2
17068 ;;
17069esac
17070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074else
17075 eval "$as_ac_Header=\$ac_header_preproc"
17076fi
17077ac_res=`eval echo '${'$as_ac_Header'}'`
17078 { echo "$as_me:$LINENO: result: $ac_res" >&5
17079echo "${ECHO_T}$ac_res" >&6; }
17080
17081fi
17082if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017083 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017085_ACEOF
17086 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017087
17088else
17089 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017090
17091fi
17092
Reid Spencerbe3e4192007-08-17 05:45:26 +000017093done
Reid Spencer1000b732006-12-01 00:37:14 +000017094
17095else
17096 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017097
17098fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017099
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017100if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017101
17102
17103for ac_header in ffi.h ffi/ffi.h
17104do
17105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111fi
17112ac_res=`eval echo '${'$as_ac_Header'}'`
17113 { echo "$as_me:$LINENO: result: $ac_res" >&5
17114echo "${ECHO_T}$ac_res" >&6; }
17115else
17116 # Is the header compilable?
17117{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17119cat >conftest.$ac_ext <<_ACEOF
17120/* confdefs.h. */
17121_ACEOF
17122cat confdefs.h >>conftest.$ac_ext
17123cat >>conftest.$ac_ext <<_ACEOF
17124/* end confdefs.h. */
17125$ac_includes_default
17126#include <$ac_header>
17127_ACEOF
17128rm -f conftest.$ac_objext
17129if { (ac_try="$ac_compile"
17130case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17133esac
17134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_compile") 2>conftest.er1
17136 ac_status=$?
17137 grep -v '^ *+' conftest.er1 >conftest.err
17138 rm -f conftest.er1
17139 cat conftest.err >&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
17142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17143 { (case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17146esac
17147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_try") 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
17153 { (case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156esac
17157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_try") 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; }; then
17162 ac_header_compiler=yes
17163else
17164 echo "$as_me: failed program was:" >&5
17165sed 's/^/| /' conftest.$ac_ext >&5
17166
17167 ac_header_compiler=no
17168fi
17169
17170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17172echo "${ECHO_T}$ac_header_compiler" >&6; }
17173
17174# Is the header present?
17175{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17177cat >conftest.$ac_ext <<_ACEOF
17178/* confdefs.h. */
17179_ACEOF
17180cat confdefs.h >>conftest.$ac_ext
17181cat >>conftest.$ac_ext <<_ACEOF
17182/* end confdefs.h. */
17183#include <$ac_header>
17184_ACEOF
17185if { (ac_try="$ac_cpp conftest.$ac_ext"
17186case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189esac
17190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17192 ac_status=$?
17193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } >/dev/null; then
17198 if test -s conftest.err; then
17199 ac_cpp_err=$ac_c_preproc_warn_flag
17200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17201 else
17202 ac_cpp_err=
17203 fi
17204else
17205 ac_cpp_err=yes
17206fi
17207if test -z "$ac_cpp_err"; then
17208 ac_header_preproc=yes
17209else
17210 echo "$as_me: failed program was:" >&5
17211sed 's/^/| /' conftest.$ac_ext >&5
17212
17213 ac_header_preproc=no
17214fi
17215
17216rm -f conftest.err conftest.$ac_ext
17217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17218echo "${ECHO_T}$ac_header_preproc" >&6; }
17219
17220# So? What about this header?
17221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17222 yes:no: )
17223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17227 ac_header_preproc=yes
17228 ;;
17229 no:yes:* )
17230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17242 ( cat <<\_ASBOX
17243## ----------------------------------- ##
17244## Report this to llvmbugs@cs.uiuc.edu ##
17245## ----------------------------------- ##
17246_ASBOX
17247 ) | sed "s/^/$as_me: WARNING: /" >&2
17248 ;;
17249esac
17250{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254else
17255 eval "$as_ac_Header=\$ac_header_preproc"
17256fi
17257ac_res=`eval echo '${'$as_ac_Header'}'`
17258 { echo "$as_me:$LINENO: result: $ac_res" >&5
17259echo "${ECHO_T}$ac_res" >&6; }
17260
17261fi
17262if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017263 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017265_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017266
17267fi
17268
17269done
17270
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017271fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017272
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017273
Eric Christopher654dee42010-06-22 21:01:04 +000017274for ac_header in CrashReporterClient.h
17275do
17276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282fi
17283ac_res=`eval echo '${'$as_ac_Header'}'`
17284 { echo "$as_me:$LINENO: result: $ac_res" >&5
17285echo "${ECHO_T}$ac_res" >&6; }
17286else
17287 # Is the header compilable?
17288{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17290cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
17296$ac_includes_default
17297#include <$ac_header>
17298_ACEOF
17299rm -f conftest.$ac_objext
17300if { (ac_try="$ac_compile"
17301case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17304esac
17305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314 { (case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317esac
17318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_try") 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
17324 { (case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327esac
17328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_try") 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_header_compiler=yes
17334else
17335 echo "$as_me: failed program was:" >&5
17336sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 ac_header_compiler=no
17339fi
17340
17341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17343echo "${ECHO_T}$ac_header_compiler" >&6; }
17344
17345# Is the header present?
17346{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17348cat >conftest.$ac_ext <<_ACEOF
17349/* confdefs.h. */
17350_ACEOF
17351cat confdefs.h >>conftest.$ac_ext
17352cat >>conftest.$ac_ext <<_ACEOF
17353/* end confdefs.h. */
17354#include <$ac_header>
17355_ACEOF
17356if { (ac_try="$ac_cpp conftest.$ac_ext"
17357case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360esac
17361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17363 ac_status=$?
17364 grep -v '^ *+' conftest.er1 >conftest.err
17365 rm -f conftest.er1
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } >/dev/null; then
17369 if test -s conftest.err; then
17370 ac_cpp_err=$ac_c_preproc_warn_flag
17371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17372 else
17373 ac_cpp_err=
17374 fi
17375else
17376 ac_cpp_err=yes
17377fi
17378if test -z "$ac_cpp_err"; then
17379 ac_header_preproc=yes
17380else
17381 echo "$as_me: failed program was:" >&5
17382sed 's/^/| /' conftest.$ac_ext >&5
17383
17384 ac_header_preproc=no
17385fi
17386
17387rm -f conftest.err conftest.$ac_ext
17388{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17389echo "${ECHO_T}$ac_header_preproc" >&6; }
17390
17391# So? What about this header?
17392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17393 yes:no: )
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17398 ac_header_preproc=yes
17399 ;;
17400 no:yes:* )
17401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17413 ( cat <<\_ASBOX
17414## ----------------------------------- ##
17415## Report this to llvmbugs@cs.uiuc.edu ##
17416## ----------------------------------- ##
17417_ASBOX
17418 ) | sed "s/^/$as_me: WARNING: /" >&2
17419 ;;
17420esac
17421{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17425else
17426 eval "$as_ac_Header=\$ac_header_preproc"
17427fi
17428ac_res=`eval echo '${'$as_ac_Header'}'`
17429 { echo "$as_me:$LINENO: result: $ac_res" >&5
17430echo "${ECHO_T}$ac_res" >&6; }
17431
17432fi
17433if test `eval echo '${'$as_ac_Header'}'` = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17436_ACEOF
17437
17438fi
17439
17440done
17441
17442
Eric Christopher51e57132010-12-07 02:05:42 +000017443{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17444echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017445cat >conftest.$ac_ext <<_ACEOF
17446/* confdefs.h. */
17447_ACEOF
17448cat confdefs.h >>conftest.$ac_ext
17449cat >>conftest.$ac_ext <<_ACEOF
17450/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017451extern const char *__crashreporter_info__;
17452 int main() {
17453 __crashreporter_info__ = "test";
17454 return 0;
17455 }
Eric Christopher481d4022010-12-03 07:45:22 +000017456
Eric Christopher481d4022010-12-03 07:45:22 +000017457_ACEOF
17458rm -f conftest.$ac_objext conftest$ac_exeext
17459if { (ac_try="$ac_link"
17460case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463esac
17464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_link") 2>conftest.er1
17466 ac_status=$?
17467 grep -v '^ *+' conftest.er1 >conftest.err
17468 rm -f conftest.er1
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } &&
17472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17473 { (case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476esac
17477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_try") 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest$ac_exeext'
17483 { (case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486esac
17487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_try") 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017492 { echo "$as_me:$LINENO: result: yes" >&5
17493echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017494
17495cat >>confdefs.h <<\_ACEOF
17496#define HAVE_CRASHREPORTER_INFO 1
17497_ACEOF
17498
Eric Christopher51e57132010-12-07 02:05:42 +000017499else
17500 echo "$as_me: failed program was:" >&5
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
17503 { echo "$as_me:$LINENO: result: no" >&5
17504echo "${ECHO_T}no" >&6; }
17505
17506cat >>confdefs.h <<\_ACEOF
17507#define HAVE_CRASHREPORTER_INFO 0
17508_ACEOF
17509
Eric Christopher481d4022010-12-03 07:45:22 +000017510fi
Eric Christopher654dee42010-06-22 21:01:04 +000017511
Eric Christopher51e57132010-12-07 02:05:42 +000017512rm -f core conftest.err conftest.$ac_objext \
17513 conftest$ac_exeext conftest.$ac_ext
17514
17515
Reid Spencer8085cff2005-01-16 02:58:39 +000017516
Torok Edwin871384f2010-01-26 08:50:50 +000017517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017518 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17519echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17520if test "${ac_cv_huge_val_sanity+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017522else
17523
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017524 ac_ext=cpp
17525ac_cpp='$CXXCPP $CPPFLAGS'
17526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017529
Eric Christopherc7718502010-03-02 05:06:54 +000017530 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017531 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017532 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017533 ac_cv_huge_val_sanity=yes
17534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017535 cat >conftest.$ac_ext <<_ACEOF
17536/* confdefs.h. */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017540/* end confdefs.h. */
17541#include <math.h>
17542int
17543main ()
17544{
17545double x = HUGE_VAL; return x != x;
17546 ;
17547 return 0;
17548}
17549_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017550rm -f conftest$ac_exeext
17551if { (ac_try="$ac_link"
17552case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17555esac
17556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_link") 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017570 ac_cv_huge_val_sanity=yes
17571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017572 echo "$as_me: program exited with status $ac_status" >&5
17573echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576( exit $ac_status )
17577ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017578fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017579rm -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 +000017580fi
17581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017582
Eric Christopherc7718502010-03-02 05:06:54 +000017583 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017584 ac_ext=c
17585ac_cpp='$CPP $CPPFLAGS'
17586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17588ac_compiler_gnu=$ac_cv_c_compiler_gnu
17589
17590
17591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017592{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17593echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017594 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17595
17596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017597{ echo "$as_me:$LINENO: checking for pid_t" >&5
17598echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17599if test "${ac_cv_type_pid_t+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601else
17602 cat >conftest.$ac_ext <<_ACEOF
17603/* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
17608$ac_includes_default
17609typedef pid_t ac__type_new_;
17610int
17611main ()
17612{
17613if ((ac__type_new_ *) 0)
17614 return 0;
17615if (sizeof (ac__type_new_))
17616 return 0;
17617 ;
17618 return 0;
17619}
17620_ACEOF
17621rm -f conftest.$ac_objext
17622if { (ac_try="$ac_compile"
17623case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626esac
17627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_compile") 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest.$ac_objext'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_type_pid_t=yes
17656else
17657 echo "$as_me: failed program was:" >&5
17658sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017660 ac_cv_type_pid_t=no
17661fi
17662
17663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664fi
17665{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17666echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17667if test $ac_cv_type_pid_t = yes; then
17668 :
John Criswell7a73b802003-06-30 21:59:07 +000017669else
17670
17671cat >>confdefs.h <<_ACEOF
17672#define pid_t int
17673_ACEOF
17674
17675fi
17676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017677{ echo "$as_me:$LINENO: checking for size_t" >&5
17678echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17679if test "${ac_cv_type_size_t+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682 cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689typedef size_t ac__type_new_;
17690int
17691main ()
17692{
17693if ((ac__type_new_ *) 0)
17694 return 0;
17695if (sizeof (ac__type_new_))
17696 return 0;
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
17702if { (ac_try="$ac_compile"
17703case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706esac
17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($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_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_type_size_t=yes
17736else
17737 echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017740 ac_cv_type_size_t=no
17741fi
17742
17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744fi
17745{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17746echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17747if test $ac_cv_type_size_t = yes; then
17748 :
John Criswell7a73b802003-06-30 21:59:07 +000017749else
17750
17751cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017752#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017753_ACEOF
17754
17755fi
17756
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017757
17758cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017759#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017760_ACEOF
17761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017762{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17763echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17764if test "${ac_cv_struct_tm+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017767 cat >conftest.$ac_ext <<_ACEOF
17768/* confdefs.h. */
17769_ACEOF
17770cat confdefs.h >>conftest.$ac_ext
17771cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017772/* end confdefs.h. */
17773#include <sys/types.h>
17774#include <time.h>
17775
17776int
17777main ()
17778{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017779struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017780 ;
17781 return 0;
17782}
17783_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017784rm -f conftest.$ac_objext
17785if { (ac_try="$ac_compile"
17786case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789esac
17790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_compile") 2>conftest.er1
17792 ac_status=$?
17793 grep -v '^ *+' conftest.er1 >conftest.err
17794 rm -f conftest.er1
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17799 { (case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17802esac
17803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_try") 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest.$ac_objext'
17809 { (case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17812esac
17813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_try") 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017818 ac_cv_struct_tm=time.h
17819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017820 echo "$as_me: failed program was:" >&5
17821sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017825
Reid Spencera773bd52006-08-04 18:18:08 +000017826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017828{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17829echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017830if test $ac_cv_struct_tm = sys/time.h; then
17831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017832cat >>confdefs.h <<\_ACEOF
17833#define TM_IN_SYS_TIME 1
17834_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017835
17836fi
17837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017838{ echo "$as_me:$LINENO: checking for int64_t" >&5
17839echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17840if test "${ac_cv_type_int64_t+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842else
17843 cat >conftest.$ac_ext <<_ACEOF
17844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h. */
17849$ac_includes_default
17850typedef int64_t ac__type_new_;
17851int
17852main ()
17853{
17854if ((ac__type_new_ *) 0)
17855 return 0;
17856if (sizeof (ac__type_new_))
17857 return 0;
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext
17863if { (ac_try="$ac_compile"
17864case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17867esac
17868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_compile") 2>conftest.er1
17870 ac_status=$?
17871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17877 { (case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880esac
17881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_try") 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890esac
17891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_type_int64_t=yes
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901 ac_cv_type_int64_t=no
17902fi
17903
17904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17905fi
17906{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17907echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17908if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017909
17910cat >>confdefs.h <<_ACEOF
17911#define HAVE_INT64_T 1
17912_ACEOF
17913
17914
17915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017916 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17917echo "$as_me: error: Type int64_t required but not found" >&2;}
17918 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017919fi
17920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017921{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17922echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17923if test "${ac_cv_type_uint64_t+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17925else
17926 cat >conftest.$ac_ext <<_ACEOF
17927/* confdefs.h. */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h. */
17932$ac_includes_default
17933typedef uint64_t ac__type_new_;
17934int
17935main ()
17936{
17937if ((ac__type_new_ *) 0)
17938 return 0;
17939if (sizeof (ac__type_new_))
17940 return 0;
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext
17946if { (ac_try="$ac_compile"
17947case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17950esac
17951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_compile") 2>conftest.er1
17953 ac_status=$?
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } &&
17959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17960 { (case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17963esac
17964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_try") 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17973esac
17974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_try") 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 ac_cv_type_uint64_t=yes
17980else
17981 echo "$as_me: failed program was:" >&5
17982sed 's/^/| /' conftest.$ac_ext >&5
17983
17984 ac_cv_type_uint64_t=no
17985fi
17986
17987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17988fi
17989{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17990echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17991if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017992
17993cat >>confdefs.h <<_ACEOF
17994#define HAVE_UINT64_T 1
17995_ACEOF
17996
17997
17998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017999 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18000echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18001if test "${ac_cv_type_u_int64_t+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003else
18004 cat >conftest.$ac_ext <<_ACEOF
18005/* confdefs.h. */
18006_ACEOF
18007cat confdefs.h >>conftest.$ac_ext
18008cat >>conftest.$ac_ext <<_ACEOF
18009/* end confdefs.h. */
18010$ac_includes_default
18011typedef u_int64_t ac__type_new_;
18012int
18013main ()
18014{
18015if ((ac__type_new_ *) 0)
18016 return 0;
18017if (sizeof (ac__type_new_))
18018 return 0;
18019 ;
18020 return 0;
18021}
18022_ACEOF
18023rm -f conftest.$ac_objext
18024if { (ac_try="$ac_compile"
18025case "(($ac_try" in
18026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18027 *) ac_try_echo=$ac_try;;
18028esac
18029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18030 (eval "$ac_compile") 2>conftest.er1
18031 ac_status=$?
18032 grep -v '^ *+' conftest.er1 >conftest.err
18033 rm -f conftest.er1
18034 cat conftest.err >&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
18037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18038 { (case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041esac
18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_try") 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest.$ac_objext'
18048 { (case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18051esac
18052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_try") 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_cv_type_u_int64_t=yes
18058else
18059 echo "$as_me: failed program was:" >&5
18060sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 ac_cv_type_u_int64_t=no
18063fi
18064
18065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18066fi
18067{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18068echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18069if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018070
18071cat >>confdefs.h <<_ACEOF
18072#define HAVE_U_INT64_T 1
18073_ACEOF
18074
18075
Misha Brukmanceca9042004-09-02 23:02:30 +000018076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018077 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18078echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18079 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018080fi
18081
John Criswell679ff312004-09-02 18:44:44 +000018082fi
18083
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018084
18085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018086
18087
18088
18089
18090
18091
18092
Reid Spencerdf3be822006-01-23 08:15:53 +000018093for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018094do
18095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18100else
18101 cat >conftest.$ac_ext <<_ACEOF
18102/* confdefs.h. */
18103_ACEOF
18104cat confdefs.h >>conftest.$ac_ext
18105cat >>conftest.$ac_ext <<_ACEOF
18106/* end confdefs.h. */
18107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18109#define $ac_func innocuous_$ac_func
18110
18111/* System header to define __stub macros and hopefully few prototypes,
18112 which can conflict with char $ac_func (); below.
18113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114 <limits.h> exists even on freestanding compilers. */
18115
18116#ifdef __STDC__
18117# include <limits.h>
18118#else
18119# include <assert.h>
18120#endif
18121
18122#undef $ac_func
18123
18124/* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18127#ifdef __cplusplus
18128extern "C"
18129#endif
18130char $ac_func ();
18131/* The GNU C library defines this for functions which it implements
18132 to always fail with ENOSYS. Some functions are actually named
18133 something starting with __ and the normal name is an alias. */
18134#if defined __stub_$ac_func || defined __stub___$ac_func
18135choke me
18136#endif
18137
18138int
18139main ()
18140{
18141return $ac_func ();
18142 ;
18143 return 0;
18144}
18145_ACEOF
18146rm -f conftest.$ac_objext conftest$ac_exeext
18147if { (ac_try="$ac_link"
18148case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18151esac
18152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_link") 2>conftest.er1
18154 ac_status=$?
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164esac
18165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest$ac_exeext'
18171 { (case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18174esac
18175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_try") 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 eval "$as_ac_var=yes"
18181else
18182 echo "$as_me: failed program was:" >&5
18183sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 eval "$as_ac_var=no"
18186fi
18187
18188rm -f core conftest.err conftest.$ac_objext \
18189 conftest$ac_exeext conftest.$ac_ext
18190fi
18191ac_res=`eval echo '${'$as_ac_var'}'`
18192 { echo "$as_me:$LINENO: result: $ac_res" >&5
18193echo "${ECHO_T}$ac_res" >&6; }
18194if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018195 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018197_ACEOF
18198
18199fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018200done
John Criswell7a73b802003-06-30 21:59:07 +000018201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018202
18203
18204
18205
Reid Spencer96cf5872007-07-13 10:05:30 +000018206for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018207do
18208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18209{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18211if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18213else
18214 cat >conftest.$ac_ext <<_ACEOF
18215/* confdefs.h. */
18216_ACEOF
18217cat confdefs.h >>conftest.$ac_ext
18218cat >>conftest.$ac_ext <<_ACEOF
18219/* end confdefs.h. */
18220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222#define $ac_func innocuous_$ac_func
18223
18224/* System header to define __stub macros and hopefully few prototypes,
18225 which can conflict with char $ac_func (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 <limits.h> exists even on freestanding compilers. */
18228
18229#ifdef __STDC__
18230# include <limits.h>
18231#else
18232# include <assert.h>
18233#endif
18234
18235#undef $ac_func
18236
18237/* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18240#ifdef __cplusplus
18241extern "C"
18242#endif
18243char $ac_func ();
18244/* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247#if defined __stub_$ac_func || defined __stub___$ac_func
18248choke me
18249#endif
18250
18251int
18252main ()
18253{
18254return $ac_func ();
18255 ;
18256 return 0;
18257}
18258_ACEOF
18259rm -f conftest.$ac_objext conftest$ac_exeext
18260if { (ac_try="$ac_link"
18261case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18264esac
18265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_link") 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277esac
18278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287esac
18288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 eval "$as_ac_var=yes"
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298 eval "$as_ac_var=no"
18299fi
18300
18301rm -f core conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18303fi
18304ac_res=`eval echo '${'$as_ac_var'}'`
18305 { echo "$as_me:$LINENO: result: $ac_res" >&5
18306echo "${ECHO_T}$ac_res" >&6; }
18307if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018308 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018310_ACEOF
18311
18312fi
18313done
18314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018315
18316
18317
18318
18319
Reid Spencerb90645c2007-02-16 19:17:20 +000018320for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018321do
18322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18323{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18325if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18327else
18328 cat >conftest.$ac_ext <<_ACEOF
18329/* confdefs.h. */
18330_ACEOF
18331cat confdefs.h >>conftest.$ac_ext
18332cat >>conftest.$ac_ext <<_ACEOF
18333/* end confdefs.h. */
18334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18336#define $ac_func innocuous_$ac_func
18337
18338/* System header to define __stub macros and hopefully few prototypes,
18339 which can conflict with char $ac_func (); below.
18340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18341 <limits.h> exists even on freestanding compilers. */
18342
18343#ifdef __STDC__
18344# include <limits.h>
18345#else
18346# include <assert.h>
18347#endif
18348
18349#undef $ac_func
18350
18351/* Override any GCC internal prototype to avoid an error.
18352 Use char because int might match the return type of a GCC
18353 builtin and then its argument prototype would still apply. */
18354#ifdef __cplusplus
18355extern "C"
18356#endif
18357char $ac_func ();
18358/* The GNU C library defines this for functions which it implements
18359 to always fail with ENOSYS. Some functions are actually named
18360 something starting with __ and the normal name is an alias. */
18361#if defined __stub_$ac_func || defined __stub___$ac_func
18362choke me
18363#endif
18364
18365int
18366main ()
18367{
18368return $ac_func ();
18369 ;
18370 return 0;
18371}
18372_ACEOF
18373rm -f conftest.$ac_objext conftest$ac_exeext
18374if { (ac_try="$ac_link"
18375case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_link") 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391esac
18392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest$ac_exeext'
18398 { (case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401esac
18402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_try") 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 eval "$as_ac_var=yes"
18408else
18409 echo "$as_me: failed program was:" >&5
18410sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 eval "$as_ac_var=no"
18413fi
18414
18415rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18417fi
18418ac_res=`eval echo '${'$as_ac_var'}'`
18419 { echo "$as_me:$LINENO: result: $ac_res" >&5
18420echo "${ECHO_T}$ac_res" >&6; }
18421if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018422 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018424_ACEOF
18425
18426fi
18427done
18428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018429
18430
18431
Reid Spencerb90645c2007-02-16 19:17:20 +000018432for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018433do
18434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18437if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18439else
18440 cat >conftest.$ac_ext <<_ACEOF
18441/* confdefs.h. */
18442_ACEOF
18443cat confdefs.h >>conftest.$ac_ext
18444cat >>conftest.$ac_ext <<_ACEOF
18445/* end confdefs.h. */
18446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18448#define $ac_func innocuous_$ac_func
18449
18450/* System header to define __stub macros and hopefully few prototypes,
18451 which can conflict with char $ac_func (); below.
18452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453 <limits.h> exists even on freestanding compilers. */
18454
18455#ifdef __STDC__
18456# include <limits.h>
18457#else
18458# include <assert.h>
18459#endif
18460
18461#undef $ac_func
18462
18463/* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18466#ifdef __cplusplus
18467extern "C"
18468#endif
18469char $ac_func ();
18470/* The GNU C library defines this for functions which it implements
18471 to always fail with ENOSYS. Some functions are actually named
18472 something starting with __ and the normal name is an alias. */
18473#if defined __stub_$ac_func || defined __stub___$ac_func
18474choke me
18475#endif
18476
18477int
18478main ()
18479{
18480return $ac_func ();
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest.$ac_objext conftest$ac_exeext
18486if { (ac_try="$ac_link"
18487case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490esac
18491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_link") 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18500 { (case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503esac
18504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_try") 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try='test -s conftest$ac_exeext'
18510 { (case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18513esac
18514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_try") 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; }; then
18519 eval "$as_ac_var=yes"
18520else
18521 echo "$as_me: failed program was:" >&5
18522sed 's/^/| /' conftest.$ac_ext >&5
18523
18524 eval "$as_ac_var=no"
18525fi
18526
18527rm -f core conftest.err conftest.$ac_objext \
18528 conftest$ac_exeext conftest.$ac_ext
18529fi
18530ac_res=`eval echo '${'$as_ac_var'}'`
18531 { echo "$as_me:$LINENO: result: $ac_res" >&5
18532echo "${ECHO_T}$ac_res" >&6; }
18533if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018534 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018536_ACEOF
18537
18538fi
18539done
18540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018541
18542
18543
18544
18545
Eric Christophere4291822010-04-16 05:14:21 +000018546
18547for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018548do
18549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18550{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 cat >conftest.$ac_ext <<_ACEOF
18556/* confdefs.h. */
18557_ACEOF
18558cat confdefs.h >>conftest.$ac_ext
18559cat >>conftest.$ac_ext <<_ACEOF
18560/* end confdefs.h. */
18561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18563#define $ac_func innocuous_$ac_func
18564
18565/* System header to define __stub macros and hopefully few prototypes,
18566 which can conflict with char $ac_func (); below.
18567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18568 <limits.h> exists even on freestanding compilers. */
18569
18570#ifdef __STDC__
18571# include <limits.h>
18572#else
18573# include <assert.h>
18574#endif
18575
18576#undef $ac_func
18577
18578/* Override any GCC internal prototype to avoid an error.
18579 Use char because int might match the return type of a GCC
18580 builtin and then its argument prototype would still apply. */
18581#ifdef __cplusplus
18582extern "C"
18583#endif
18584char $ac_func ();
18585/* The GNU C library defines this for functions which it implements
18586 to always fail with ENOSYS. Some functions are actually named
18587 something starting with __ and the normal name is an alias. */
18588#if defined __stub_$ac_func || defined __stub___$ac_func
18589choke me
18590#endif
18591
18592int
18593main ()
18594{
18595return $ac_func ();
18596 ;
18597 return 0;
18598}
18599_ACEOF
18600rm -f conftest.$ac_objext conftest$ac_exeext
18601if { (ac_try="$ac_link"
18602case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18605esac
18606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618esac
18619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest$ac_exeext'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 eval "$as_ac_var=yes"
18635else
18636 echo "$as_me: failed program was:" >&5
18637sed 's/^/| /' conftest.$ac_ext >&5
18638
18639 eval "$as_ac_var=no"
18640fi
18641
18642rm -f core conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
18644fi
18645ac_res=`eval echo '${'$as_ac_var'}'`
18646 { echo "$as_me:$LINENO: result: $ac_res" >&5
18647echo "${ECHO_T}$ac_res" >&6; }
18648if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018649 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018651_ACEOF
18652
18653fi
18654done
Reid Spencerdf3be822006-01-23 08:15:53 +000018655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018656
18657
18658
18659
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018660for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018661do
18662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18663{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18665if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18667else
18668 cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18676#define $ac_func innocuous_$ac_func
18677
18678/* System header to define __stub macros and hopefully few prototypes,
18679 which can conflict with char $ac_func (); below.
18680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18681 <limits.h> exists even on freestanding compilers. */
18682
18683#ifdef __STDC__
18684# include <limits.h>
18685#else
18686# include <assert.h>
18687#endif
18688
18689#undef $ac_func
18690
18691/* Override any GCC internal prototype to avoid an error.
18692 Use char because int might match the return type of a GCC
18693 builtin and then its argument prototype would still apply. */
18694#ifdef __cplusplus
18695extern "C"
18696#endif
18697char $ac_func ();
18698/* The GNU C library defines this for functions which it implements
18699 to always fail with ENOSYS. Some functions are actually named
18700 something starting with __ and the normal name is an alias. */
18701#if defined __stub_$ac_func || defined __stub___$ac_func
18702choke me
18703#endif
18704
18705int
18706main ()
18707{
18708return $ac_func ();
18709 ;
18710 return 0;
18711}
18712_ACEOF
18713rm -f conftest.$ac_objext conftest$ac_exeext
18714if { (ac_try="$ac_link"
18715case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_link") 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18731esac
18732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest$ac_exeext'
18738 { (case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741esac
18742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_try") 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18747 eval "$as_ac_var=yes"
18748else
18749 echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 eval "$as_ac_var=no"
18753fi
18754
18755rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18757fi
18758ac_res=`eval echo '${'$as_ac_var'}'`
18759 { echo "$as_me:$LINENO: result: $ac_res" >&5
18760echo "${ECHO_T}$ac_res" >&6; }
18761if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018762 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018764_ACEOF
18765
18766fi
18767done
18768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018769
18770
18771
18772
Chris Lattner511f11d2005-11-14 07:25:50 +000018773for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018774do
18775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18776{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18778if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780else
18781 cat >conftest.$ac_ext <<_ACEOF
18782/* confdefs.h. */
18783_ACEOF
18784cat confdefs.h >>conftest.$ac_ext
18785cat >>conftest.$ac_ext <<_ACEOF
18786/* end confdefs.h. */
18787/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18789#define $ac_func innocuous_$ac_func
18790
18791/* System header to define __stub macros and hopefully few prototypes,
18792 which can conflict with char $ac_func (); below.
18793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18794 <limits.h> exists even on freestanding compilers. */
18795
18796#ifdef __STDC__
18797# include <limits.h>
18798#else
18799# include <assert.h>
18800#endif
18801
18802#undef $ac_func
18803
18804/* Override any GCC internal prototype to avoid an error.
18805 Use char because int might match the return type of a GCC
18806 builtin and then its argument prototype would still apply. */
18807#ifdef __cplusplus
18808extern "C"
18809#endif
18810char $ac_func ();
18811/* The GNU C library defines this for functions which it implements
18812 to always fail with ENOSYS. Some functions are actually named
18813 something starting with __ and the normal name is an alias. */
18814#if defined __stub_$ac_func || defined __stub___$ac_func
18815choke me
18816#endif
18817
18818int
18819main ()
18820{
18821return $ac_func ();
18822 ;
18823 return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext conftest$ac_exeext
18827if { (ac_try="$ac_link"
18828case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844esac
18845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18854esac
18855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 eval "$as_ac_var=yes"
18861else
18862 echo "$as_me: failed program was:" >&5
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
18865 eval "$as_ac_var=no"
18866fi
18867
18868rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870fi
18871ac_res=`eval echo '${'$as_ac_var'}'`
18872 { echo "$as_me:$LINENO: result: $ac_res" >&5
18873echo "${ECHO_T}$ac_res" >&6; }
18874if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018875 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018877_ACEOF
18878
18879fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018880done
John Criswell7a73b802003-06-30 21:59:07 +000018881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018882
18883
18884
18885
Reid Spencerafa22e22006-12-10 23:29:19 +000018886for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018887do
18888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18889{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18891if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893else
18894 cat >conftest.$ac_ext <<_ACEOF
18895/* confdefs.h. */
18896_ACEOF
18897cat confdefs.h >>conftest.$ac_ext
18898cat >>conftest.$ac_ext <<_ACEOF
18899/* end confdefs.h. */
18900/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18902#define $ac_func innocuous_$ac_func
18903
18904/* System header to define __stub macros and hopefully few prototypes,
18905 which can conflict with char $ac_func (); below.
18906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18907 <limits.h> exists even on freestanding compilers. */
18908
18909#ifdef __STDC__
18910# include <limits.h>
18911#else
18912# include <assert.h>
18913#endif
18914
18915#undef $ac_func
18916
18917/* Override any GCC internal prototype to avoid an error.
18918 Use char because int might match the return type of a GCC
18919 builtin and then its argument prototype would still apply. */
18920#ifdef __cplusplus
18921extern "C"
18922#endif
18923char $ac_func ();
18924/* The GNU C library defines this for functions which it implements
18925 to always fail with ENOSYS. Some functions are actually named
18926 something starting with __ and the normal name is an alias. */
18927#if defined __stub_$ac_func || defined __stub___$ac_func
18928choke me
18929#endif
18930
18931int
18932main ()
18933{
18934return $ac_func ();
18935 ;
18936 return 0;
18937}
18938_ACEOF
18939rm -f conftest.$ac_objext conftest$ac_exeext
18940if { (ac_try="$ac_link"
18941case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18944esac
18945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_link") 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18954 { (case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18957esac
18958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_try") 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest$ac_exeext'
18964 { (case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967esac
18968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_try") 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 eval "$as_ac_var=yes"
18974else
18975 echo "$as_me: failed program was:" >&5
18976sed 's/^/| /' conftest.$ac_ext >&5
18977
18978 eval "$as_ac_var=no"
18979fi
18980
18981rm -f core conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
18983fi
18984ac_res=`eval echo '${'$as_ac_var'}'`
18985 { echo "$as_me:$LINENO: result: $ac_res" >&5
18986echo "${ECHO_T}$ac_res" >&6; }
18987if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018988 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018990_ACEOF
18991
18992fi
18993done
18994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018995{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18996echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18997if test "${llvm_cv_c_printf_a+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018999else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019000 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019001ac_cpp='$CPP $CPPFLAGS'
19002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004ac_compiler_gnu=$ac_cv_c_compiler_gnu
19005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019006 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019007 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019008else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019009 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019011 /* confdefs.h. */
19012_ACEOF
19013cat confdefs.h >>conftest.$ac_ext
19014cat >>conftest.$ac_ext <<_ACEOF
19015/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019016
John Criswella0137d32003-10-13 16:22:01 +000019017#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019018#include <stdlib.h>
19019
John Criswella0137d32003-10-13 16:22:01 +000019020int
19021main ()
19022{
19023
Reid Spencer2706f8c2004-09-19 23:53:36 +000019024volatile double A, B;
19025char Buffer[100];
19026A = 1;
19027A /= 10.0;
19028sprintf(Buffer, "%a", A);
19029B = atof(Buffer);
19030if (A != B)
19031 return (1);
19032if (A != 0x1.999999999999ap-4)
19033 return (1);
19034return (0);
John Criswella0137d32003-10-13 16:22:01 +000019035 ;
19036 return 0;
19037}
19038_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019039rm -f conftest$ac_exeext
19040if { (ac_try="$ac_link"
19041case "(($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_link") 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19050 { (case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19053esac
19054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_try") 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019059 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019061 echo "$as_me: program exited with status $ac_status" >&5
19062echo "$as_me: failed program was:" >&5
19063sed 's/^/| /' conftest.$ac_ext >&5
19064
19065( exit $ac_status )
19066llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019068rm -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 +000019069fi
Reid Spencera773bd52006-08-04 18:18:08 +000019070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019071
Reid Spencer2706f8c2004-09-19 23:53:36 +000019072 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019073ac_cpp='$CPP $CPPFLAGS'
19074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019079{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19080echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019081 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019083cat >>confdefs.h <<\_ACEOF
19084#define HAVE_PRINTF_A 1
19085_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019086
Reid Spencer2706f8c2004-09-19 23:53:36 +000019087 fi
John Criswella0137d32003-10-13 16:22:01 +000019088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019090{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19091echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19092if test "${ac_cv_func_rand48+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019094else
Reid Spencera773bd52006-08-04 18:18:08 +000019095 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019096ac_cpp='$CXXCPP $CPPFLAGS'
19097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019101 cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019106/* end confdefs.h. */
19107#include <stdlib.h>
19108int
19109main ()
19110{
19111srand48(0);lrand48();drand48();
19112 ;
19113 return 0;
19114}
19115_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019116rm -f conftest.$ac_objext
19117if { (ac_try="$ac_compile"
19118case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121esac
19122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_compile") 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19134esac
19135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest.$ac_objext'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019150 ac_cv_func_rand48=yes
19151else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019152 echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019156fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019157
Reid Spencera773bd52006-08-04 18:18:08 +000019158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019159 ac_ext=c
19160ac_cpp='$CPP $CPPFLAGS'
19161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163ac_compiler_gnu=$ac_cv_c_compiler_gnu
19164
19165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019166{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19167echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019168
19169if test "$ac_cv_func_rand48" = "yes" ; then
19170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019171cat >>confdefs.h <<\_ACEOF
19172#define HAVE_RAND48 1
19173_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019174
19175fi
John Criswell0021c312004-02-13 21:57:29 +000019176
19177
Torok Edwin871384f2010-01-26 08:50:50 +000019178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019179{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19180echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19181if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019183else
Reid Spencera773bd52006-08-04 18:18:08 +000019184 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019185ac_cpp='$CXXCPP $CPPFLAGS'
19186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019190 cat >conftest.$ac_ext <<_ACEOF
19191/* confdefs.h. */
19192_ACEOF
19193cat confdefs.h >>conftest.$ac_ext
19194cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019195/* end confdefs.h. */
19196#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019197int
19198main ()
19199{
19200float f; isnan(f);
19201 ;
19202 return 0;
19203}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019204_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019205rm -f conftest.$ac_objext
19206if { (ac_try="$ac_compile"
19207case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19210esac
19211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19213 ac_status=$?
19214 grep -v '^ *+' conftest.er1 >conftest.err
19215 rm -f conftest.er1
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } &&
19219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19223esac
19224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19233esac
19234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019239 ac_cv_func_isnan_in_math_h=yes
19240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019246
Reid Spencera773bd52006-08-04 18:18:08 +000019247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019248 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019249ac_cpp='$CPP $CPPFLAGS'
19250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252ac_compiler_gnu=$ac_cv_c_compiler_gnu
19253
19254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019255{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19256echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019257
19258
19259if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019261cat >>confdefs.h <<\_ACEOF
19262#define HAVE_ISNAN_IN_MATH_H 1
19263_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019264
Reid Spencerabec8f92004-10-27 23:03:44 +000019265fi
19266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019267{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19268echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19269if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019271else
Reid Spencera773bd52006-08-04 18:18:08 +000019272 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019273ac_cpp='$CXXCPP $CPPFLAGS'
19274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019278 cat >conftest.$ac_ext <<_ACEOF
19279/* confdefs.h. */
19280_ACEOF
19281cat confdefs.h >>conftest.$ac_ext
19282cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019283/* end confdefs.h. */
19284#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019285int
19286main ()
19287{
19288float f; isnan(f);
19289 ;
19290 return 0;
19291}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019293rm -f conftest.$ac_objext
19294if { (ac_try="$ac_compile"
19295case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19298esac
19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_compile") 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19311esac
19312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest.$ac_objext'
19318 { (case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321esac
19322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_try") 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019327 ac_cv_func_isnan_in_cmath=yes
19328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019329 echo "$as_me: failed program was:" >&5
19330sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019334
Reid Spencera773bd52006-08-04 18:18:08 +000019335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019336 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019337ac_cpp='$CPP $CPPFLAGS'
19338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340ac_compiler_gnu=$ac_cv_c_compiler_gnu
19341
19342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019343{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19344echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019345
19346if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019348cat >>confdefs.h <<\_ACEOF
19349#define HAVE_ISNAN_IN_CMATH 1
19350_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019351
Reid Spencerabec8f92004-10-27 23:03:44 +000019352fi
19353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019354{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19355echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19356if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019358else
Reid Spencera773bd52006-08-04 18:18:08 +000019359 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019360ac_cpp='$CXXCPP $CPPFLAGS'
19361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019365 cat >conftest.$ac_ext <<_ACEOF
19366/* confdefs.h. */
19367_ACEOF
19368cat confdefs.h >>conftest.$ac_ext
19369cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019370/* end confdefs.h. */
19371#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019372int
19373main ()
19374{
19375float f; std::isnan(f);
19376 ;
19377 return 0;
19378}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019379_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019380rm -f conftest.$ac_objext
19381if { (ac_try="$ac_compile"
19382case "(($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_compile") 2>conftest.er1
19388 ac_status=$?
19389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19395 { (case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19398esac
19399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400 (eval "$ac_try") 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
19405 { (case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19408esac
19409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_try") 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019414 ac_cv_func_std_isnan_in_cmath=yes
19415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019416 echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019421
Reid Spencera773bd52006-08-04 18:18:08 +000019422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019423 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019424ac_cpp='$CPP $CPPFLAGS'
19425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427ac_compiler_gnu=$ac_cv_c_compiler_gnu
19428
19429fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019430{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19431echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019432
19433if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019435cat >>confdefs.h <<\_ACEOF
19436#define HAVE_STD_ISNAN_IN_CMATH 1
19437_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019438
Reid Spencerabec8f92004-10-27 23:03:44 +000019439fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019440
19441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019442{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19443echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19444if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019446else
Reid Spencera773bd52006-08-04 18:18:08 +000019447 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019448ac_cpp='$CXXCPP $CPPFLAGS'
19449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019453 cat >conftest.$ac_ext <<_ACEOF
19454/* confdefs.h. */
19455_ACEOF
19456cat confdefs.h >>conftest.$ac_ext
19457cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019458/* end confdefs.h. */
19459#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019460int
19461main ()
19462{
19463float f; isinf(f);
19464 ;
19465 return 0;
19466}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019467_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019468rm -f conftest.$ac_objext
19469if { (ac_try="$ac_compile"
19470case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19473esac
19474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_compile") 2>conftest.er1
19476 ac_status=$?
19477 grep -v '^ *+' conftest.er1 >conftest.err
19478 rm -f conftest.er1
19479 cat conftest.err >&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19483 { (case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19486esac
19487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_try") 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest.$ac_objext'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496esac
19497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019502 ac_cv_func_isinf_in_math_h=yes
19503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019504 echo "$as_me: failed program was:" >&5
19505sed 's/^/| /' conftest.$ac_ext >&5
19506
19507 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019509
Reid Spencera773bd52006-08-04 18:18:08 +000019510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019511 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019512ac_cpp='$CPP $CPPFLAGS'
19513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516
19517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019518{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19519echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019520
19521if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019523cat >>confdefs.h <<\_ACEOF
19524#define HAVE_ISINF_IN_MATH_H 1
19525_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019526
Reid Spencerabec8f92004-10-27 23:03:44 +000019527fi
19528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019529{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19530echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19531if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019533else
Reid Spencera773bd52006-08-04 18:18:08 +000019534 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019535ac_cpp='$CXXCPP $CPPFLAGS'
19536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019540 cat >conftest.$ac_ext <<_ACEOF
19541/* confdefs.h. */
19542_ACEOF
19543cat confdefs.h >>conftest.$ac_ext
19544cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019545/* end confdefs.h. */
19546#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019547int
19548main ()
19549{
19550float f; isinf(f);
19551 ;
19552 return 0;
19553}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019554_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019555rm -f conftest.$ac_objext
19556if { (ac_try="$ac_compile"
19557case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19560esac
19561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_compile") 2>conftest.er1
19563 ac_status=$?
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19573esac
19574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583esac
19584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019589 ac_cv_func_isinf_in_cmath=yes
19590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019591 echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019596
Reid Spencera773bd52006-08-04 18:18:08 +000019597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019598 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019599ac_cpp='$CPP $CPPFLAGS'
19600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602ac_compiler_gnu=$ac_cv_c_compiler_gnu
19603
19604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019605{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19606echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019607
19608if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019610cat >>confdefs.h <<\_ACEOF
19611#define HAVE_ISINF_IN_CMATH 1
19612_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019613
Reid Spencerabec8f92004-10-27 23:03:44 +000019614fi
19615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019616{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19617echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19618if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019620else
Reid Spencera773bd52006-08-04 18:18:08 +000019621 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019622ac_cpp='$CXXCPP $CPPFLAGS'
19623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019627 cat >conftest.$ac_ext <<_ACEOF
19628/* confdefs.h. */
19629_ACEOF
19630cat confdefs.h >>conftest.$ac_ext
19631cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019632/* end confdefs.h. */
19633#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019634int
19635main ()
19636{
19637float f; std::isinf(f)}
19638 ;
19639 return 0;
19640}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019641_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019642rm -f conftest.$ac_objext
19643if { (ac_try="$ac_compile"
19644case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19647esac
19648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_compile") 2>conftest.er1
19650 ac_status=$?
19651 grep -v '^ *+' conftest.er1 >conftest.err
19652 rm -f conftest.er1
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19657 { (case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19660esac
19661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_try") 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
19667 { (case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670esac
19671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_try") 2>&5
19673 ac_status=$?
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019676 ac_cv_func_std_isinf_in_cmath=yes
19677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019678 echo "$as_me: failed program was:" >&5
19679sed 's/^/| /' conftest.$ac_ext >&5
19680
19681 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019683
Reid Spencera773bd52006-08-04 18:18:08 +000019684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019685 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019686ac_cpp='$CPP $CPPFLAGS'
19687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689ac_compiler_gnu=$ac_cv_c_compiler_gnu
19690
19691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019692{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19693echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019694
19695if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019697cat >>confdefs.h <<\_ACEOF
19698#define HAVE_STD_ISINF_IN_CMATH 1
19699_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019700
Reid Spencerabec8f92004-10-27 23:03:44 +000019701fi
19702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019703{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19704echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19705if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019707else
Reid Spencera773bd52006-08-04 18:18:08 +000019708 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019709ac_cpp='$CXXCPP $CPPFLAGS'
19710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019714 cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019719/* end confdefs.h. */
19720#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019721int
19722main ()
19723{
19724float f; finite(f);
19725 ;
19726 return 0;
19727}
Brian Gaeked59a6472004-07-21 03:33:58 +000019728_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019729rm -f conftest.$ac_objext
19730if { (ac_try="$ac_compile"
19731case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734esac
19735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_compile") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
19743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19744 { (case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747esac
19748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_try") 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19757esac
19758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_try") 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019763 ac_cv_func_finite_in_ieeefp_h=yes
19764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019765 echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019770
Reid Spencera773bd52006-08-04 18:18:08 +000019771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019772 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019773ac_cpp='$CPP $CPPFLAGS'
19774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776ac_compiler_gnu=$ac_cv_c_compiler_gnu
19777
19778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019779{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19780echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019781
Brian Gaeke6802b552004-10-28 05:06:45 +000019782if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019784cat >>confdefs.h <<\_ACEOF
19785#define HAVE_FINITE_IN_IEEEFP_H 1
19786_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019787
Reid Spencerabec8f92004-10-27 23:03:44 +000019788fi
19789
19790
19791
Reid Spencer30fe5262007-01-20 07:48:49 +000019792if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019793
19794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019795for ac_header in stdlib.h unistd.h
19796do
19797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803fi
19804ac_res=`eval echo '${'$as_ac_Header'}'`
19805 { echo "$as_me:$LINENO: result: $ac_res" >&5
19806echo "${ECHO_T}$ac_res" >&6; }
19807else
19808 # Is the header compilable?
19809{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19810echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19811cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
19817$ac_includes_default
19818#include <$ac_header>
19819_ACEOF
19820rm -f conftest.$ac_objext
19821if { (ac_try="$ac_compile"
19822case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825esac
19826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_compile") 2>conftest.er1
19828 ac_status=$?
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838esac
19839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; } &&
19844 { ac_try='test -s conftest.$ac_objext'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848esac
19849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 ac_header_compiler=yes
19855else
19856 echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019859 ac_header_compiler=no
19860fi
19861
19862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19864echo "${ECHO_T}$ac_header_compiler" >&6; }
19865
19866# Is the header present?
19867{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19869cat >conftest.$ac_ext <<_ACEOF
19870/* confdefs.h. */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
19874/* end confdefs.h. */
19875#include <$ac_header>
19876_ACEOF
19877if { (ac_try="$ac_cpp conftest.$ac_ext"
19878case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19881esac
19882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19884 ac_status=$?
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } >/dev/null; then
19890 if test -s conftest.err; then
19891 ac_cpp_err=$ac_c_preproc_warn_flag
19892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19893 else
19894 ac_cpp_err=
19895 fi
19896else
19897 ac_cpp_err=yes
19898fi
19899if test -z "$ac_cpp_err"; then
19900 ac_header_preproc=yes
19901else
19902 echo "$as_me: failed program was:" >&5
19903sed 's/^/| /' conftest.$ac_ext >&5
19904
19905 ac_header_preproc=no
19906fi
19907
19908rm -f conftest.err conftest.$ac_ext
19909{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19910echo "${ECHO_T}$ac_header_preproc" >&6; }
19911
19912# So? What about this header?
19913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19914 yes:no: )
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19916echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19918echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19919 ac_header_preproc=yes
19920 ;;
19921 no:yes:* )
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19925echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19927echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19929echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19931echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19933echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19934 ( cat <<\_ASBOX
19935## ----------------------------------- ##
19936## Report this to llvmbugs@cs.uiuc.edu ##
19937## ----------------------------------- ##
19938_ASBOX
19939 ) | sed "s/^/$as_me: WARNING: /" >&2
19940 ;;
19941esac
19942{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946else
19947 eval "$as_ac_Header=\$ac_header_preproc"
19948fi
19949ac_res=`eval echo '${'$as_ac_Header'}'`
19950 { echo "$as_me:$LINENO: result: $ac_res" >&5
19951echo "${ECHO_T}$ac_res" >&6; }
19952
19953fi
19954if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019955 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019957_ACEOF
19958
19959fi
19960
19961done
19962
19963
19964for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019965do
19966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19967{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19969if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971else
19972 cat >conftest.$ac_ext <<_ACEOF
19973/* confdefs.h. */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h. */
19978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19980#define $ac_func innocuous_$ac_func
19981
19982/* System header to define __stub macros and hopefully few prototypes,
19983 which can conflict with char $ac_func (); below.
19984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19985 <limits.h> exists even on freestanding compilers. */
19986
19987#ifdef __STDC__
19988# include <limits.h>
19989#else
19990# include <assert.h>
19991#endif
19992
19993#undef $ac_func
19994
19995/* Override any GCC internal prototype to avoid an error.
19996 Use char because int might match the return type of a GCC
19997 builtin and then its argument prototype would still apply. */
19998#ifdef __cplusplus
19999extern "C"
20000#endif
20001char $ac_func ();
20002/* The GNU C library defines this for functions which it implements
20003 to always fail with ENOSYS. Some functions are actually named
20004 something starting with __ and the normal name is an alias. */
20005#if defined __stub_$ac_func || defined __stub___$ac_func
20006choke me
20007#endif
20008
20009int
20010main ()
20011{
20012return $ac_func ();
20013 ;
20014 return 0;
20015}
20016_ACEOF
20017rm -f conftest.$ac_objext conftest$ac_exeext
20018if { (ac_try="$ac_link"
20019case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022esac
20023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_link") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035esac
20036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } &&
20041 { ac_try='test -s conftest$ac_exeext'
20042 { (case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045esac
20046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_try") 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 eval "$as_ac_var=yes"
20052else
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056 eval "$as_ac_var=no"
20057fi
20058
20059rm -f core conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext conftest.$ac_ext
20061fi
20062ac_res=`eval echo '${'$as_ac_var'}'`
20063 { echo "$as_me:$LINENO: result: $ac_res" >&5
20064echo "${ECHO_T}$ac_res" >&6; }
20065if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020066 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020068_ACEOF
20069
20070fi
20071done
20072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020073{ echo "$as_me:$LINENO: checking for working mmap" >&5
20074echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20075if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020078 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020079 ac_cv_func_mmap_fixed_mapped=no
20080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020081 cat >conftest.$ac_ext <<_ACEOF
20082/* confdefs.h. */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020086/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020087$ac_includes_default
20088/* malloc might have been renamed as rpl_malloc. */
20089#undef malloc
20090
20091/* Thanks to Mike Haertel and Jim Avera for this test.
20092 Here is a matrix of mmap possibilities:
20093 mmap private not fixed
20094 mmap private fixed at somewhere currently unmapped
20095 mmap private fixed at somewhere already mapped
20096 mmap shared not fixed
20097 mmap shared fixed at somewhere currently unmapped
20098 mmap shared fixed at somewhere already mapped
20099 For private mappings, we should verify that changes cannot be read()
20100 back from the file, nor mmap's back from the file at a different
20101 address. (There have been systems where private was not correctly
20102 implemented like the infamous i386 svr4.0, and systems where the
20103 VM page cache was not coherent with the file system buffer cache
20104 like early versions of FreeBSD and possibly contemporary NetBSD.)
20105 For shared mappings, we should conversely verify that changes get
20106 propagated back to all the places they're supposed to be.
20107
20108 Grep wants private fixed already mapped.
20109 The main things grep needs to know about mmap are:
20110 * does it exist and is it safe to write into the mmap'd area
20111 * how to use it (BSD variants) */
20112
20113#include <fcntl.h>
20114#include <sys/mman.h>
20115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020116#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020117char *malloc ();
20118#endif
20119
20120/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020121#if !HAVE_GETPAGESIZE
20122/* Assume that all systems that can run configure have sys/param.h. */
20123# if !HAVE_SYS_PARAM_H
20124# define HAVE_SYS_PARAM_H 1
20125# endif
20126
John Criswell7a73b802003-06-30 21:59:07 +000020127# ifdef _SC_PAGESIZE
20128# define getpagesize() sysconf(_SC_PAGESIZE)
20129# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020130# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020131# include <sys/param.h>
20132# ifdef EXEC_PAGESIZE
20133# define getpagesize() EXEC_PAGESIZE
20134# else /* no EXEC_PAGESIZE */
20135# ifdef NBPG
20136# define getpagesize() NBPG * CLSIZE
20137# ifndef CLSIZE
20138# define CLSIZE 1
20139# endif /* no CLSIZE */
20140# else /* no NBPG */
20141# ifdef NBPC
20142# define getpagesize() NBPC
20143# else /* no NBPC */
20144# ifdef PAGESIZE
20145# define getpagesize() PAGESIZE
20146# endif /* PAGESIZE */
20147# endif /* no NBPC */
20148# endif /* no NBPG */
20149# endif /* no EXEC_PAGESIZE */
20150# else /* no HAVE_SYS_PARAM_H */
20151# define getpagesize() 8192 /* punt totally */
20152# endif /* no HAVE_SYS_PARAM_H */
20153# endif /* no _SC_PAGESIZE */
20154
20155#endif /* no HAVE_GETPAGESIZE */
20156
20157int
20158main ()
20159{
20160 char *data, *data2, *data3;
20161 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020162 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020163
20164 pagesize = getpagesize ();
20165
20166 /* First, make a file with some known garbage in it. */
20167 data = (char *) malloc (pagesize);
20168 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020169 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020170 for (i = 0; i < pagesize; ++i)
20171 *(data + i) = rand ();
20172 umask (0);
20173 fd = creat ("conftest.mmap", 0600);
20174 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020175 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020176 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020177 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020178 close (fd);
20179
20180 /* Next, try to mmap the file at a fixed address which already has
20181 something else allocated at it. If we can, also make sure that
20182 we see the same garbage. */
20183 fd = open ("conftest.mmap", O_RDWR);
20184 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020185 return 1;
20186 data2 = (char *) malloc (2 * pagesize);
20187 if (!data2)
20188 return 1;
20189 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020190 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020191 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020192 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020193 for (i = 0; i < pagesize; ++i)
20194 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020195 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020196
20197 /* Finally, make sure that changes to the mapped area do not
20198 percolate back to the file as seen by read(). (This is a bug on
20199 some variants of i386 svr4.0.) */
20200 for (i = 0; i < pagesize; ++i)
20201 *(data2 + i) = *(data2 + i) + 1;
20202 data3 = (char *) malloc (pagesize);
20203 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020204 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020205 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020206 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020207 for (i = 0; i < pagesize; ++i)
20208 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020209 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020210 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020211 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020212}
20213_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020214rm -f conftest$ac_exeext
20215if { (ac_try="$ac_link"
20216case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20219esac
20220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20228esac
20229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020234 ac_cv_func_mmap_fixed_mapped=yes
20235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020236 echo "$as_me: program exited with status $ac_status" >&5
20237echo "$as_me: failed program was:" >&5
20238sed 's/^/| /' conftest.$ac_ext >&5
20239
20240( exit $ac_status )
20241ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020243rm -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 +000020244fi
Reid Spencera773bd52006-08-04 18:18:08 +000020245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020246
John Criswell7a73b802003-06-30 21:59:07 +000020247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020248{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20249echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020250if test $ac_cv_func_mmap_fixed_mapped = yes; then
20251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020252cat >>confdefs.h <<\_ACEOF
20253#define HAVE_MMAP 1
20254_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020255
20256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020257rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020259 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20260echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20261if test "${ac_cv_func_mmap_file+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020263else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020264 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020265ac_cpp='$CPP $CPPFLAGS'
20266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268ac_compiler_gnu=$ac_cv_c_compiler_gnu
20269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020270 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020271 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020273 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020275 /* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020280
John Criswell7a73b802003-06-30 21:59:07 +000020281#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020282#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020283#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020284
20285int
20286main ()
20287{
John Criswell7a73b802003-06-30 21:59:07 +000020288
20289 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020290 fd = creat ("foo",0777);
20291 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20292 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020293 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020294 ;
20295 return 0;
20296}
John Criswell7a73b802003-06-30 21:59:07 +000020297_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020298rm -f conftest$ac_exeext
20299if { (ac_try="$ac_link"
20300case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20303esac
20304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305 (eval "$ac_link") 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20312esac
20313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020318 ac_cv_func_mmap_file=yes
20319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320 echo "$as_me: program exited with status $ac_status" >&5
20321echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324( exit $ac_status )
20325ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020327rm -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 +000020328fi
Reid Spencera773bd52006-08-04 18:18:08 +000020329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020330
John Criswell7a73b802003-06-30 21:59:07 +000020331 ac_ext=c
20332ac_cpp='$CPP $CPPFLAGS'
20333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335ac_compiler_gnu=$ac_cv_c_compiler_gnu
20336
20337
20338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020339{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20340echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020341if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020343cat >>confdefs.h <<\_ACEOF
20344#define HAVE_MMAP_FILE
20345_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020346
20347 MMAP_FILE=yes
20348
20349fi
20350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020351 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20352echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20353if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020355else
Reid Spencer582a23c2004-12-29 07:07:57 +000020356 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020357 ac_cv_need_dev_zero_for_mmap=yes
20358 else
20359 ac_cv_need_dev_zero_for_mmap=no
20360 fi
20361
20362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20364echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020365if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020367cat >>confdefs.h <<\_ACEOF
20368#define NEED_DEV_ZERO_FOR_MMAP 1
20369_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020370
20371fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020372
Reid Spencer30fe5262007-01-20 07:48:49 +000020373 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20374 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020375 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20376echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020377 fi
20378 if test "$ac_cv_func_mmap_file" = "no"
20379 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020380 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20381echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020382 fi
John Criswellb13092b2003-07-22 21:00:24 +000020383fi
John Criswell7a73b802003-06-30 21:59:07 +000020384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20386echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020387ac_ext=cpp
20388ac_cpp='$CXXCPP $CPPFLAGS'
20389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020393cat >conftest.$ac_ext <<_ACEOF
20394/* confdefs.h. */
20395_ACEOF
20396cat confdefs.h >>conftest.$ac_ext
20397cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020398/* end confdefs.h. */
20399int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020400 volatile unsigned long val = 1;
20401 __sync_synchronize();
20402 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020403 __sync_add_and_fetch(&val, 1);
20404 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020405 return 0;
20406 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020407
20408_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020409rm -f conftest.$ac_objext conftest$ac_exeext
20410if { (ac_try="$ac_link"
20411case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414esac
20415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>conftest.er1
20417 ac_status=$?
20418 grep -v '^ *+' conftest.er1 >conftest.err
20419 rm -f conftest.er1
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20427esac
20428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest$ac_exeext'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437esac
20438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020443 ac_ext=c
20444ac_cpp='$CPP $CPPFLAGS'
20445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447ac_compiler_gnu=$ac_cv_c_compiler_gnu
20448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449 { echo "$as_me:$LINENO: result: yes" >&5
20450echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020452cat >>confdefs.h <<\_ACEOF
20453#define LLVM_MULTITHREADED 1
20454_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020455
Owen Andersond4b272b2009-05-18 23:58:51 +000020456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457 echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020460 { echo "$as_me:$LINENO: result: no" >&5
20461echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463cat >>confdefs.h <<\_ACEOF
20464#define LLVM_MULTITHREADED 0
20465_ACEOF
20466
20467 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20468echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020470
Owen Andersond4b272b2009-05-18 23:58:51 +000020471rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020472 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020473
John Criswell7a73b802003-06-30 21:59:07 +000020474
Nick Lewycky4372e692009-09-29 06:18:23 +000020475if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020476 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20477echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20478if test "${llvm_cv_linux_mixed+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020480else
20481 ac_ext=c
20482ac_cpp='$CPP $CPPFLAGS'
20483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20485ac_compiler_gnu=$ac_cv_c_compiler_gnu
20486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020487 cat >conftest.$ac_ext <<_ACEOF
20488/* confdefs.h. */
20489_ACEOF
20490cat confdefs.h >>conftest.$ac_ext
20491cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020492/* end confdefs.h. */
20493#ifndef __x86_64__
20494 error: Not x86-64 even if uname says so!
20495 #endif
20496
20497int
20498main ()
20499{
20500
20501 ;
20502 return 0;
20503}
20504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020505rm -f conftest.$ac_objext
20506if { (ac_try="$ac_compile"
20507case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20510esac
20511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_compile") 2>conftest.er1
20513 ac_status=$?
20514 grep -v '^ *+' conftest.er1 >conftest.err
20515 rm -f conftest.er1
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20520 { (case "(($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_try") 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
20530 { (case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20533esac
20534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535 (eval "$ac_try") 2>&5
20536 ac_status=$?
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020539 llvm_cv_linux_mixed=no
20540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541 echo "$as_me: failed program was:" >&5
20542sed 's/^/| /' conftest.$ac_ext >&5
20543
20544 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020546
Nick Lewycky4372e692009-09-29 06:18:23 +000020547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20548 ac_ext=c
20549ac_cpp='$CPP $CPPFLAGS'
20550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552ac_compiler_gnu=$ac_cv_c_compiler_gnu
20553
20554
20555fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020556{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20557echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020558
20559 if test "$llvm_cv_linux_mixed" = "yes"; then
20560 llvm_cv_target_arch="x86"
20561 ARCH="x86"
20562 fi
20563fi
20564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565
Reid Spencer9372f152007-07-30 20:13:24 +000020566for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020567do
20568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20571if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20573else
20574 cat >conftest.$ac_ext <<_ACEOF
20575/* confdefs.h. */
20576_ACEOF
20577cat confdefs.h >>conftest.$ac_ext
20578cat >>conftest.$ac_ext <<_ACEOF
20579/* end confdefs.h. */
20580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20582#define $ac_func innocuous_$ac_func
20583
20584/* System header to define __stub macros and hopefully few prototypes,
20585 which can conflict with char $ac_func (); below.
20586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20587 <limits.h> exists even on freestanding compilers. */
20588
20589#ifdef __STDC__
20590# include <limits.h>
20591#else
20592# include <assert.h>
20593#endif
20594
20595#undef $ac_func
20596
20597/* Override any GCC internal prototype to avoid an error.
20598 Use char because int might match the return type of a GCC
20599 builtin and then its argument prototype would still apply. */
20600#ifdef __cplusplus
20601extern "C"
20602#endif
20603char $ac_func ();
20604/* The GNU C library defines this for functions which it implements
20605 to always fail with ENOSYS. Some functions are actually named
20606 something starting with __ and the normal name is an alias. */
20607#if defined __stub_$ac_func || defined __stub___$ac_func
20608choke me
20609#endif
20610
20611int
20612main ()
20613{
20614return $ac_func ();
20615 ;
20616 return 0;
20617}
20618_ACEOF
20619rm -f conftest.$ac_objext conftest$ac_exeext
20620if { (ac_try="$ac_link"
20621case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624esac
20625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_link") 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637esac
20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest$ac_exeext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647esac
20648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 eval "$as_ac_var=yes"
20654else
20655 echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 eval "$as_ac_var=no"
20659fi
20660
20661rm -f core conftest.err conftest.$ac_objext \
20662 conftest$ac_exeext conftest.$ac_ext
20663fi
20664ac_res=`eval echo '${'$as_ac_var'}'`
20665 { echo "$as_me:$LINENO: result: $ac_res" >&5
20666echo "${ECHO_T}$ac_res" >&6; }
20667if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020668 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020670_ACEOF
20671
20672fi
20673done
20674
20675
Tobias Grossera84b5672010-11-10 16:31:34 +000020676{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20677echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20678if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20680else
20681 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000020682if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000020683 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000020684 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000020685 if test $? -eq 0 ; then
20686 llvm_cv_llvmgcc_dragonegg="yes"
20687 fi
20688 rm conftest.c
20689fi
20690fi
20691{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20692echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20693
20694if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20695 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sands1ac320e2010-11-25 17:57:43 +000020696 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000020697else
20698 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000020699 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000020700fi
20701
20702
20703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20705echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20706if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020708else
20709 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000020710if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020711 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000020712 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000020713 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020714 if test $? -eq 0 ; then
20715 llvm_cv_llvmgcc_sanity="yes"
20716 fi
20717 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020718fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020720{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20721echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020722
20723if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020724 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20725echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000020726 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020727 LLVMCC1=$llvmcc1path
20728
Duncan Sands1526b192010-11-25 17:47:42 +000020729 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020730 LLVMCC1PLUS=$llvmcc1pluspath
20731
Reid Spencer502935f2004-12-22 05:56:56 +000020732 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20733 LLVMGCCDIR=$llvmgccdir
20734
Duncan Sands1526b192010-11-25 17:47:42 +000020735 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020736 LLVMGCC_LANGS=$llvmgcclangs
20737
Tobias Grossera84b5672010-11-10 16:31:34 +000020738 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20739
20740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020741 { echo "$as_me:$LINENO: result: ok" >&5
20742echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020743fi
20744
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020745SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020746
20747
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020748SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20749
20750
Reid Spencere9de0912004-08-20 09:03:57 +000020751# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020752# information into substitutions that will end up in Makefile.config.in
20753# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020754if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020755 prefix="/usr/local"
20756fi
Reid Spencere9de0912004-08-20 09:03:57 +000020757eval LLVM_PREFIX="${prefix}";
20758eval LLVM_BINDIR="${prefix}/bin";
20759eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020760eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020761eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020762eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020763eval LLVM_INCLUDEDIR="${prefix}/include";
20764eval LLVM_INFODIR="${prefix}/info";
20765eval LLVM_MANDIR="${prefix}/man";
20766LLVM_CONFIGTIME=`date`
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020778# Place the various directores into the config.h file as #defines so that we
20779# can know about the installation paths within LLVM.
20780
Reid Spencere9de0912004-08-20 09:03:57 +000020781cat >>confdefs.h <<_ACEOF
20782#define LLVM_PREFIX "$LLVM_PREFIX"
20783_ACEOF
20784
20785
20786cat >>confdefs.h <<_ACEOF
20787#define LLVM_BINDIR "$LLVM_BINDIR"
20788_ACEOF
20789
20790
20791cat >>confdefs.h <<_ACEOF
20792#define LLVM_LIBDIR "$LLVM_LIBDIR"
20793_ACEOF
20794
20795
20796cat >>confdefs.h <<_ACEOF
20797#define LLVM_DATADIR "$LLVM_DATADIR"
20798_ACEOF
20799
20800
20801cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020802#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020803_ACEOF
20804
20805
20806cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020807#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020808_ACEOF
20809
20810
20811cat >>confdefs.h <<_ACEOF
20812#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20813_ACEOF
20814
20815
20816cat >>confdefs.h <<_ACEOF
20817#define LLVM_INFODIR "$LLVM_INFODIR"
20818_ACEOF
20819
20820
20821cat >>confdefs.h <<_ACEOF
20822#define LLVM_MANDIR "$LLVM_MANDIR"
20823_ACEOF
20824
20825
20826cat >>confdefs.h <<_ACEOF
20827#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20828_ACEOF
20829
20830
Eric Christopher790e11c2007-12-01 00:34:39 +000020831cat >>confdefs.h <<_ACEOF
20832#define LLVM_HOSTTRIPLE "$host"
20833_ACEOF
20834
20835
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020836# Determine which bindings to build.
20837if test "$BINDINGS_TO_BUILD" = auto ; then
20838 BINDINGS_TO_BUILD=""
20839 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20840 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20841 fi
20842fi
20843BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20844
20845
20846# This isn't really configurey, but it avoids having to repeat the list in
20847# other files.
20848ALL_BINDINGS=ocaml
20849
20850
Gordon Henriksenf0915682007-10-02 16:42:22 +000020851# Do any work necessary to ensure that bindings have what they need.
20852binding_prereqs_failed=0
20853for a_binding in $BINDINGS_TO_BUILD ; do
20854 case "$a_binding" in
20855 ocaml)
20856 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020857 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20858echo "$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 +000020859 binding_prereqs_failed=1
20860 fi
20861 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020862 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20863echo "$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 +000020864 binding_prereqs_failed=1
20865 fi
20866 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020867 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20868echo "$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 +000020869 fi
20870 if test "x$with_ocaml_libdir" != xauto ; then
20871 OCAML_LIBDIR=$with_ocaml_libdir
20872
20873 else
20874 ocaml_stdlib="`"$OCAMLC" -where`"
20875 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20876 then
20877 # ocaml stdlib is beneath our prefix; use stdlib
20878 OCAML_LIBDIR=$ocaml_stdlib
20879
20880 else
20881 # ocaml stdlib is outside our prefix; use libdir/ocaml
20882 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20883
20884 fi
20885 fi
20886 ;;
20887 esac
20888done
20889if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020890 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20891echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20892 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020893fi
20894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020895{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20896echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20897if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020899else
20900 ac_ext=cpp
20901ac_cpp='$CXXCPP $CPPFLAGS'
20902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20905
20906 oldcxxflags="$CXXFLAGS"
20907 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020908 cat >conftest.$ac_ext <<_ACEOF
20909/* confdefs.h. */
20910_ACEOF
20911cat confdefs.h >>conftest.$ac_ext
20912cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020913/* end confdefs.h. */
20914
20915int
20916main ()
20917{
20918
20919 ;
20920 return 0;
20921}
20922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923rm -f conftest.$ac_objext
20924if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020957 llvm_cv_cxx_visibility_inlines_hidden=yes
20958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020959 echo "$as_me: failed program was:" >&5
20960sed 's/^/| /' conftest.$ac_ext >&5
20961
20962 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020964
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966 CXXFLAGS="$oldcxxflags"
20967 ac_ext=c
20968ac_cpp='$CPP $CPPFLAGS'
20969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20971ac_compiler_gnu=$ac_cv_c_compiler_gnu
20972
20973
20974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020975{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20976echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020977if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20978 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20979
20980else
20981 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20982
20983fi
20984
Gordon Henriksenf0915682007-10-02 16:42:22 +000020985
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020986if test "$llvm_cv_link_use_r" = "yes" ; then
20987 RPATH="-Wl,-R"
20988else
20989 RPATH="-Wl,-rpath"
20990fi
20991
20992
20993if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20994 RDYNAMIC="-Wl,-export-dynamic"
20995else
20996 RDYNAMIC=""
20997fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020998
20999
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021000
Eric Christophera1cba682010-08-08 02:44:25 +000021001ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021002
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021003
21004
21005
21006
21007
Douglas Gregor1555a232009-06-16 20:12:29 +000021008ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21009
21010ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21011
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021012ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21013
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021014ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21015
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021016ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021017
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021018
Reid Spencera773bd52006-08-04 18:18:08 +000021019ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021020
21021
Reid Spencerea949cf2006-08-16 00:45:38 +000021022ac_config_files="$ac_config_files llvm.spec"
21023
21024
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021025ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000021026
21027
Reid Spencera773bd52006-08-04 18:18:08 +000021028ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021029
21030
Reid Spencera773bd52006-08-04 18:18:08 +000021031ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021032
Reid Spencera773bd52006-08-04 18:18:08 +000021033ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021034
21035
Reid Spencera773bd52006-08-04 18:18:08 +000021036ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021037
21038
Reid Spencera773bd52006-08-04 18:18:08 +000021039ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021040
21041
Reid Spencera773bd52006-08-04 18:18:08 +000021042ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021043
21044
Reid Spencer8b2e1412006-11-17 03:32:33 +000021045ac_config_commands="$ac_config_commands runtime/Makefile"
21046
21047
Reid Spencera773bd52006-08-04 18:18:08 +000021048ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021049
21050
Reid Spencera773bd52006-08-04 18:18:08 +000021051ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021052
21053
Bill Wendlingf24eb392009-01-04 23:12:30 +000021054ac_config_commands="$ac_config_commands unittests/Makefile"
21055
21056
Reid Spencera773bd52006-08-04 18:18:08 +000021057ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021058
21059
Reid Spencera773bd52006-08-04 18:18:08 +000021060ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021061
21062
Reid Spencera773bd52006-08-04 18:18:08 +000021063ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021064
21065
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021066ac_config_commands="$ac_config_commands bindings/Makefile"
21067
21068
21069ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21070
21071
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021072
John Criswell7a73b802003-06-30 21:59:07 +000021073cat >confcache <<\_ACEOF
21074# This file is a shell script that caches the results of configure
21075# tests run on this system so they can be shared between configure
21076# scripts and configure runs, see configure's option --config-cache.
21077# It is not useful on other systems. If it contains results you don't
21078# want to keep, you may remove or edit it.
21079#
21080# config.status only pays attention to the cache file if you give it
21081# the --recheck option to rerun configure.
21082#
John Criswell0c38eaf2003-09-10 15:17:25 +000021083# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021084# loading this file, other *unset* `ac_cv_foo' will be assigned the
21085# following values.
21086
21087_ACEOF
21088
21089# The following way of writing the cache mishandles newlines in values,
21090# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021091# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021092# Ultrix sh set writes to stderr and can't be redirected directly,
21093# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021094(
21095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21096 eval ac_val=\$$ac_var
21097 case $ac_val in #(
21098 *${as_nl}*)
21099 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021100 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21101echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021102 esac
21103 case $ac_var in #(
21104 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021105 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021106 esac ;;
21107 esac
21108 done
21109
John Criswell7a73b802003-06-30 21:59:07 +000021110 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21112 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021113 # `set' does not quote correctly, so add quotes (double-quote
21114 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021115 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021116 "s/'/'\\\\''/g;
21117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021118 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021119 *)
21120 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021122 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021123 esac |
21124 sort
21125) |
John Criswell7a73b802003-06-30 21:59:07 +000021126 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021127 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021128 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021129 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21131 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21133 :end' >>confcache
21134if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21135 if test -w "$cache_file"; then
21136 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021137 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21138echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021139 cat confcache >$cache_file
21140 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021141 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21142echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021143 fi
21144fi
21145rm -f confcache
21146
21147test "x$prefix" = xNONE && prefix=$ac_default_prefix
21148# Let make expand exec_prefix.
21149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21150
John Criswell7a73b802003-06-30 21:59:07 +000021151DEFS=-DHAVE_CONFIG_H
21152
John Criswell0c38eaf2003-09-10 15:17:25 +000021153ac_libobjs=
21154ac_ltlibobjs=
21155for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21156 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021158 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21160 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021161 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21162 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021163done
21164LIBOBJS=$ac_libobjs
21165
21166LTLIBOBJS=$ac_ltlibobjs
21167
21168
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021169if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21171Usually this means the macro was only invoked conditionally." >&5
21172echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21173Usually this means the macro was only invoked conditionally." >&2;}
21174 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021175fi
21176if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021177 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21178Usually this means the macro was only invoked conditionally." >&5
21179echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21180Usually this means the macro was only invoked conditionally." >&2;}
21181 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021182fi
John Criswell7a73b802003-06-30 21:59:07 +000021183
21184: ${CONFIG_STATUS=./config.status}
21185ac_clean_files_save=$ac_clean_files
21186ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21188echo "$as_me: creating $CONFIG_STATUS" >&6;}
21189cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021190#! $SHELL
21191# Generated by $as_me.
21192# Run this file to recreate the current configuration.
21193# Compiler output produced by configure, useful for debugging
21194# configure, is in config.log if it exists.
21195
21196debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021197ac_cs_recheck=false
21198ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021199SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021200_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202cat >>$CONFIG_STATUS <<\_ACEOF
21203## --------------------- ##
21204## M4sh Initialization. ##
21205## --------------------- ##
21206
21207# Be Bourne compatible
21208if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021209 emulate sh
21210 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021212 # is contrary to our usage. Disable this feature.
21213 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021214 setopt NO_GLOB_SUBST
21215else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021216 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021218BIN_SH=xpg4; export BIN_SH # for Tru64
21219DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021220
John Criswell7a73b802003-06-30 21:59:07 +000021221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021222# PATH needs CR
21223# Avoid depending upon Character Ranges.
21224as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21225as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21226as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21227as_cr_digits='0123456789'
21228as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021229
21230# The user is always right.
21231if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021232 echo "#! /bin/sh" >conf$$.sh
21233 echo "exit 0" >>conf$$.sh
21234 chmod +x conf$$.sh
21235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21236 PATH_SEPARATOR=';'
21237 else
21238 PATH_SEPARATOR=:
21239 fi
21240 rm -f conf$$.sh
21241fi
21242
21243# Support unset when possible.
21244if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21245 as_unset=unset
21246else
21247 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021248fi
John Criswell7a73b802003-06-30 21:59:07 +000021249
Reid Spencera773bd52006-08-04 18:18:08 +000021250
21251# IFS
21252# We need space, tab and new line, in precisely that order. Quoting is
21253# there to prevent editors from complaining about space-tab.
21254# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21255# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021256as_nl='
21257'
Reid Spencera773bd52006-08-04 18:18:08 +000021258IFS=" "" $as_nl"
21259
21260# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021261case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021262 *[\\/]* ) as_myself=$0 ;;
21263 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021264for as_dir in $PATH
21265do
21266 IFS=$as_save_IFS
21267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021268 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21269done
Reid Spencera773bd52006-08-04 18:18:08 +000021270IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021271
Reid Spencera773bd52006-08-04 18:18:08 +000021272 ;;
21273esac
21274# We did not find ourselves, most probably we were run as `sh COMMAND'
21275# in which case we are not to be found in the path.
21276if test "x$as_myself" = x; then
21277 as_myself=$0
21278fi
21279if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21281 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021282fi
21283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021284# Work around bugs in pre-3.0 UWIN ksh.
21285for as_var in ENV MAIL MAILPATH
21286do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021287done
21288PS1='$ '
21289PS2='> '
21290PS4='+ '
21291
21292# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021293for as_var in \
21294 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21295 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21296 LC_TELEPHONE LC_TIME
21297do
21298 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21299 eval $as_var=C; export $as_var
21300 else
21301 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021302 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021303done
Torok Edwin871384f2010-01-26 08:50:50 +000021304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021305# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021306if expr a : '\(a\)' >/dev/null 2>&1 &&
21307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21308 as_expr=expr
21309else
21310 as_expr=false
21311fi
21312
21313if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21314 as_basename=basename
21315else
21316 as_basename=false
21317fi
21318
21319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021320# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021321as_me=`$as_basename -- "$0" ||
21322$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21323 X"$0" : 'X\(//\)$' \| \
21324 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021325echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021326 sed '/^.*\/\([^/][^/]*\)\/*$/{
21327 s//\1/
21328 q
21329 }
21330 /^X\/\(\/\/\)$/{
21331 s//\1/
21332 q
21333 }
21334 /^X\/\(\/\).*/{
21335 s//\1/
21336 q
21337 }
21338 s/.*/./; q'`
21339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021340# CDPATH.
21341$as_unset CDPATH
21342
21343
21344
21345 as_lineno_1=$LINENO
21346 as_lineno_2=$LINENO
21347 test "x$as_lineno_1" != "x$as_lineno_2" &&
21348 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21349
21350 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21351 # uniformly replaced by the line number. The first 'sed' inserts a
21352 # line-number line after each line using $LINENO; the second 'sed'
21353 # does the real work. The second script uses 'N' to pair each
21354 # line-number line with the line containing $LINENO, and appends
21355 # trailing '-' during substitution so that $LINENO is not a special
21356 # case at line end.
21357 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21358 # scripts with optimization help from Paolo Bonzini. Blame Lee
21359 # E. McMahon (1931-1989) for sed's syntax. :-)
21360 sed -n '
21361 p
21362 /[$]LINENO/=
21363 ' <$as_myself |
21364 sed '
21365 s/[$]LINENO.*/&-/
21366 t lineno
21367 b
21368 :lineno
21369 N
21370 :loop
21371 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21372 t loop
21373 s/-\n.*//
21374 ' >$as_me.lineno &&
21375 chmod +x "$as_me.lineno" ||
21376 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21377 { (exit 1); exit 1; }; }
21378
21379 # Don't try to exec as it changes $[0], causing all sort of problems
21380 # (the dirname of $[0] is not the place where we might find the
21381 # original and so on. Autoconf is especially sensitive to this).
21382 . "./$as_me.lineno"
21383 # Exit status is that of the last command.
21384 exit
21385}
21386
21387
21388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21389 as_dirname=dirname
21390else
21391 as_dirname=false
21392fi
Reid Spencera773bd52006-08-04 18:18:08 +000021393
21394ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021395case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021396-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021397 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021398 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021399 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021400 esac;;
21401*)
21402 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021403esac
21404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021405if expr a : '\(a\)' >/dev/null 2>&1 &&
21406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21407 as_expr=expr
21408else
21409 as_expr=false
21410fi
21411
John Criswell7a73b802003-06-30 21:59:07 +000021412rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021413if test -d conf$$.dir; then
21414 rm -f conf$$.dir/conf$$.file
21415else
21416 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021417 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021419echo >conf$$.file
21420if ln -s conf$$.file conf$$ 2>/dev/null; then
21421 as_ln_s='ln -s'
21422 # ... but there are two gotchas:
21423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21425 # In both cases, we have to default to `cp -p'.
21426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021427 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021428elif ln conf$$.file conf$$ 2>/dev/null; then
21429 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021430else
21431 as_ln_s='cp -p'
21432fi
Reid Spencera773bd52006-08-04 18:18:08 +000021433rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21434rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021435
John Criswell0c38eaf2003-09-10 15:17:25 +000021436if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021437 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021438else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021439 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021440 as_mkdir_p=false
21441fi
21442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021443# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21444# systems may use methods other than mode bits to determine executability.
21445cat >conf$$.file <<_ASEOF
21446#! /bin/sh
21447exit 0
21448_ASEOF
21449chmod +x conf$$.file
21450if test -x conf$$.file >/dev/null 2>&1; then
21451 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021453 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021454fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021455rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021456
21457# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021458as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021459
21460# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021461as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021462
21463
John Criswell7a73b802003-06-30 21:59:07 +000021464exec 6>&1
21465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021466# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021467# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021468# values after options handling.
21469ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021470This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021471generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021472
21473 CONFIG_FILES = $CONFIG_FILES
21474 CONFIG_HEADERS = $CONFIG_HEADERS
21475 CONFIG_LINKS = $CONFIG_LINKS
21476 CONFIG_COMMANDS = $CONFIG_COMMANDS
21477 $ $0 $@
21478
Reid Spencera773bd52006-08-04 18:18:08 +000021479on `(hostname || uname -n) 2>/dev/null | sed 1q`
21480"
21481
John Criswell7a73b802003-06-30 21:59:07 +000021482_ACEOF
21483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021484cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021485# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021486config_files="$ac_config_files"
21487config_headers="$ac_config_headers"
21488config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021489
Reid Spencera773bd52006-08-04 18:18:08 +000021490_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021492cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021493ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021494\`$as_me' instantiates files from templates according to the
21495current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021497Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021498
21499 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021500 -V, --version print version number, then exit
21501 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021502 -d, --debug don't remove temporary files
21503 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021504 --file=FILE[:TEMPLATE]
21505 instantiate the configuration file FILE
21506 --header=FILE[:TEMPLATE]
21507 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021508
21509Configuration files:
21510$config_files
21511
21512Configuration headers:
21513$config_headers
21514
John Criswellc764fbc2003-09-06 15:17:13 +000021515Configuration commands:
21516$config_commands
21517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021519
Reid Spencera773bd52006-08-04 18:18:08 +000021520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021521cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021522ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021523llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524configured by $0, generated by GNU Autoconf 2.60,
21525 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021528This config.status script is free software; the Free Software Foundation
21529gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021530
21531ac_pwd='$ac_pwd'
21532srcdir='$srcdir'
21533INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021534_ACEOF
21535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536cat >>$CONFIG_STATUS <<\_ACEOF
21537# If no file are specified by the user, then we need to provide default
21538# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021539ac_need_defaults=:
21540while test $# != 0
21541do
21542 case $1 in
21543 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021546 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021548 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021549 ac_option=$1
21550 ac_optarg=$2
21551 ac_shift=shift
21552 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021553 esac
21554
John Criswell0c38eaf2003-09-10 15:17:25 +000021555 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021556 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21558 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021559 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021561 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021562 debug=: ;;
21563 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021564 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021565 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021566 ac_need_defaults=false;;
21567 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021568 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021569 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021570 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021571 --he | --h)
21572 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021573 { echo "$as_me: error: ambiguous option: $1
21574Try \`$0 --help' for more information." >&2
21575 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021576 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021577 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21580 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021581
21582 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583 -*) { echo "$as_me: error: unrecognized option: $1
21584Try \`$0 --help' for more information." >&2
21585 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021587 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021588 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021589
21590 esac
21591 shift
21592done
21593
John Criswell0c38eaf2003-09-10 15:17:25 +000021594ac_configure_extra_args=
21595
21596if $ac_cs_silent; then
21597 exec 6>/dev/null
21598 ac_configure_extra_args="$ac_configure_extra_args --silent"
21599fi
21600
21601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021603if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21605 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021606 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021608fi
21609
John Criswell7a73b802003-06-30 21:59:07 +000021610_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021611cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021612exec 5>>config.log
21613{
21614 echo
21615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21616## Running $as_me. ##
21617_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021618 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021619} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021620
Reid Spencera773bd52006-08-04 18:18:08 +000021621_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021623#
Reid Spencera773bd52006-08-04 18:18:08 +000021624# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021625#
Reid Spencerc0682832005-02-24 19:05:19 +000021626llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021627
21628_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021631
21632# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021633for ac_config_target in $ac_config_targets
21634do
Reid Spencera773bd52006-08-04 18:18:08 +000021635 case $ac_config_target in
21636 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021637 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021638 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21639 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021640 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021641 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021642 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021643 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021644 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021645 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021646 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21647 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21648 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21649 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21650 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21651 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021652 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021653 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21654 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021655 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021656 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21657 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21658 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021659 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21660 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21663echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21664 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021665 esac
21666done
21667
Reid Spencera773bd52006-08-04 18:18:08 +000021668
John Criswell7a73b802003-06-30 21:59:07 +000021669# If the user did not use the arguments to specify the items to instantiate,
21670# then the envvar interface is used. Set only those that are not.
21671# We use the long form for the default assignment because of an extremely
21672# bizarre bug on SunOS 4.1.3.
21673if $ac_need_defaults; then
21674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021676 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021677fi
21678
John Criswell0c38eaf2003-09-10 15:17:25 +000021679# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021680# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021681# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021682# Hook for its removal unless debugging.
21683# Note that there is a small window in which the directory will not be cleaned:
21684# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021685$debug ||
21686{
Reid Spencera773bd52006-08-04 18:18:08 +000021687 tmp=
21688 trap 'exit_status=$?
21689 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21690' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021691 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021692}
John Criswell7a73b802003-06-30 21:59:07 +000021693# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021694
John Criswell7a73b802003-06-30 21:59:07 +000021695{
Reid Spencera773bd52006-08-04 18:18:08 +000021696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021697 test -n "$tmp" && test -d "$tmp"
21698} ||
21699{
Reid Spencera773bd52006-08-04 18:18:08 +000021700 tmp=./conf$$-$RANDOM
21701 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021702} ||
21703{
21704 echo "$me: cannot create a temporary directory in ." >&2
21705 { (exit 1); exit 1; }
21706}
John Criswell7a73b802003-06-30 21:59:07 +000021707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708#
21709# Set up the sed scripts for CONFIG_FILES section.
21710#
21711
21712# No need to generate the scripts if there are no CONFIG_FILES.
21713# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021714if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021715
21716_ACEOF
21717
Reid Spencera773bd52006-08-04 18:18:08 +000021718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719
Reid Spencera773bd52006-08-04 18:18:08 +000021720ac_delim='%!_!# '
21721for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021722 cat >conf$$subs.sed <<_ACEOF
21723SHELL!$SHELL$ac_delim
21724PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21725PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21726PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21727PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21728PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21729PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21730exec_prefix!$exec_prefix$ac_delim
21731prefix!$prefix$ac_delim
21732program_transform_name!$program_transform_name$ac_delim
21733bindir!$bindir$ac_delim
21734sbindir!$sbindir$ac_delim
21735libexecdir!$libexecdir$ac_delim
21736datarootdir!$datarootdir$ac_delim
21737datadir!$datadir$ac_delim
21738sysconfdir!$sysconfdir$ac_delim
21739sharedstatedir!$sharedstatedir$ac_delim
21740localstatedir!$localstatedir$ac_delim
21741includedir!$includedir$ac_delim
21742oldincludedir!$oldincludedir$ac_delim
21743docdir!$docdir$ac_delim
21744infodir!$infodir$ac_delim
21745htmldir!$htmldir$ac_delim
21746dvidir!$dvidir$ac_delim
21747pdfdir!$pdfdir$ac_delim
21748psdir!$psdir$ac_delim
21749libdir!$libdir$ac_delim
21750localedir!$localedir$ac_delim
21751mandir!$mandir$ac_delim
21752DEFS!$DEFS$ac_delim
21753ECHO_C!$ECHO_C$ac_delim
21754ECHO_N!$ECHO_N$ac_delim
21755ECHO_T!$ECHO_T$ac_delim
21756LIBS!$LIBS$ac_delim
21757build_alias!$build_alias$ac_delim
21758host_alias!$host_alias$ac_delim
21759target_alias!$target_alias$ac_delim
21760LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21761subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021762ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21763LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021764build!$build$ac_delim
21765build_cpu!$build_cpu$ac_delim
21766build_vendor!$build_vendor$ac_delim
21767build_os!$build_os$ac_delim
21768host!$host$ac_delim
21769host_cpu!$host_cpu$ac_delim
21770host_vendor!$host_vendor$ac_delim
21771host_os!$host_os$ac_delim
21772target!$target$ac_delim
21773target_cpu!$target_cpu$ac_delim
21774target_vendor!$target_vendor$ac_delim
21775target_os!$target_os$ac_delim
21776OS!$OS$ac_delim
21777HOST_OS!$HOST_OS$ac_delim
21778TARGET_OS!$TARGET_OS$ac_delim
21779LINKALL!$LINKALL$ac_delim
21780NOLINKALL!$NOLINKALL$ac_delim
21781LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21782LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21783ARCH!$ARCH$ac_delim
21784ENDIAN!$ENDIAN$ac_delim
21785CC!$CC$ac_delim
21786CFLAGS!$CFLAGS$ac_delim
21787LDFLAGS!$LDFLAGS$ac_delim
21788CPPFLAGS!$CPPFLAGS$ac_delim
21789ac_ct_CC!$ac_ct_CC$ac_delim
21790EXEEXT!$EXEEXT$ac_delim
21791OBJEXT!$OBJEXT$ac_delim
21792CPP!$CPP$ac_delim
21793GREP!$GREP$ac_delim
21794EGREP!$EGREP$ac_delim
21795LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21796BUILD_CC!$BUILD_CC$ac_delim
21797BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21798BUILD_CXX!$BUILD_CXX$ac_delim
21799CVSBUILD!$CVSBUILD$ac_delim
21800ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21801ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21802DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21803ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21804EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21805DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21806DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21807JIT!$JIT$ac_delim
21808TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021809ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021810ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21811ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021812ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021813ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021814ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021815ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021816TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21817LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21818LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21819LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021823 break
21824 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21826echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21827 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021828 else
21829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021830 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021831done
21832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021833ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21834if test -n "$ac_eof"; then
21835 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21836 ac_eof=`expr $ac_eof + 1`
21837fi
21838
21839cat >>$CONFIG_STATUS <<_ACEOF
21840cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21841/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021842_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021843sed '
21844s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21845s/^/s,@/; s/!/@,|#_!!_#|/
21846:n
21847t n
21848s/'"$ac_delim"'$/,g/; t
21849s/$/\\/; p
21850N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21851' >>$CONFIG_STATUS <conf$$subs.sed
21852rm -f conf$$subs.sed
21853cat >>$CONFIG_STATUS <<_ACEOF
21854CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021855_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021856
21857
21858ac_delim='%!_!# '
21859for ac_last_try in false false false false false :; do
21860 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021861LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021862ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021863CLANGPATH!$CLANGPATH$ac_delim
21864CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021865ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021866OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021867EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21868BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869CXX!$CXX$ac_delim
21870CXXFLAGS!$CXXFLAGS$ac_delim
21871ac_ct_CXX!$ac_ct_CXX$ac_delim
21872NM!$NM$ac_delim
21873ifGNUmake!$ifGNUmake$ac_delim
21874LN_S!$LN_S$ac_delim
21875CMP!$CMP$ac_delim
21876CP!$CP$ac_delim
21877DATE!$DATE$ac_delim
21878FIND!$FIND$ac_delim
21879MKDIR!$MKDIR$ac_delim
21880MV!$MV$ac_delim
21881RANLIB!$RANLIB$ac_delim
21882AR!$AR$ac_delim
21883RM!$RM$ac_delim
21884SED!$SED$ac_delim
21885TAR!$TAR$ac_delim
21886BINPWD!$BINPWD$ac_delim
21887GRAPHVIZ!$GRAPHVIZ$ac_delim
21888DOT!$DOT$ac_delim
21889FDP!$FDP$ac_delim
21890NEATO!$NEATO$ac_delim
21891TWOPI!$TWOPI$ac_delim
21892CIRCO!$CIRCO$ac_delim
21893GV!$GV$ac_delim
21894DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021895XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021896PERL!$PERL$ac_delim
21897HAVE_PERL!$HAVE_PERL$ac_delim
21898INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21899INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21900INSTALL_DATA!$INSTALL_DATA$ac_delim
21901BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021902CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903DOXYGEN!$DOXYGEN$ac_delim
21904GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021905GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906POD2HTML!$POD2HTML$ac_delim
21907POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021908PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021909RUNTEST!$RUNTEST$ac_delim
21910TCLSH!$TCLSH$ac_delim
21911ZIP!$ZIP$ac_delim
21912OCAMLC!$OCAMLC$ac_delim
21913OCAMLOPT!$OCAMLOPT$ac_delim
21914OCAMLDEP!$OCAMLDEP$ac_delim
21915OCAMLDOC!$OCAMLDOC$ac_delim
21916GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021917HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021918INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21919INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21920CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21921CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21922LIBADD_DL!$LIBADD_DL$ac_delim
21923LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21924LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21925LLVMGCC!$LLVMGCC$ac_delim
21926LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021927LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021928NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21929NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21930USE_UDIS86!$USE_UDIS86$ac_delim
21931USE_OPROFILE!$USE_OPROFILE$ac_delim
21932HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21933HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21934MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021935LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021936LLVMCC1!$LLVMCC1$ac_delim
21937LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21938LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021939LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021940LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000021941LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021942SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021943SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21945LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21946LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21947LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21948LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21949LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21950LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21951LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21952LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21953LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21954BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21955ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21956OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21957ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021958_ACEOF
21959
Tobias Grossera84b5672010-11-10 16:31:34 +000021960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961 break
21962 elif $ac_last_try; then
21963 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21964echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21965 { (exit 1); exit 1; }; }
21966 else
21967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21968 fi
21969done
21970
21971ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21972if test -n "$ac_eof"; then
21973 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21974 ac_eof=`expr $ac_eof + 1`
21975fi
21976
21977cat >>$CONFIG_STATUS <<_ACEOF
21978cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021979/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980_ACEOF
21981sed '
21982s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21983s/^/s,@/; s/!/@,|#_!!_#|/
21984:n
21985t n
21986s/'"$ac_delim"'$/,g/; t
21987s/$/\\/; p
21988N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21989' >>$CONFIG_STATUS <conf$$subs.sed
21990rm -f conf$$subs.sed
21991cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992CEOF$ac_eof
21993_ACEOF
21994
21995
Tobias Grossera84b5672010-11-10 16:31:34 +000021996ac_delim='%!_!# '
21997for ac_last_try in false false false false false :; do
21998 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021999RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022000RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000022001LIBOBJS!$LIBOBJS$ac_delim
22002LTLIBOBJS!$LTLIBOBJS$ac_delim
22003_ACEOF
22004
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022005 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022006 break
22007 elif $ac_last_try; then
22008 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22009echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22010 { (exit 1); exit 1; }; }
22011 else
22012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22013 fi
22014done
22015
22016ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22017if test -n "$ac_eof"; then
22018 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22019 ac_eof=`expr $ac_eof + 1`
22020fi
22021
22022cat >>$CONFIG_STATUS <<_ACEOF
22023cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22024/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22025_ACEOF
22026sed '
22027s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22028s/^/s,@/; s/!/@,|#_!!_#|/
22029:n
22030t n
22031s/'"$ac_delim"'$/,g/; t
22032s/$/\\/; p
22033N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22034' >>$CONFIG_STATUS <conf$$subs.sed
22035rm -f conf$$subs.sed
22036cat >>$CONFIG_STATUS <<_ACEOF
22037:end
22038s/|#_!!_#|//g
22039CEOF$ac_eof
22040_ACEOF
22041
22042
Reid Spencera773bd52006-08-04 18:18:08 +000022043# VPATH may cause trouble with some makes, so we remove $(srcdir),
22044# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22045# trailing colons and then remove the whole line if VPATH becomes empty
22046# (actually we leave an empty line to preserve line numbers).
22047if test "x$srcdir" = x.; then
22048 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22049s/:*\$(srcdir):*/:/
22050s/:*\${srcdir}:*/:/
22051s/:*@srcdir@:*/:/
22052s/^\([^=]*=[ ]*\):*/\1/
22053s/:*$//
22054s/^[^=]*=[ ]*$//
22055}'
22056fi
22057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022059fi # test -n "$CONFIG_FILES"
22060
Reid Spencera773bd52006-08-04 18:18:08 +000022061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022062for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022063do
22064 case $ac_tag in
22065 :[FHLC]) ac_mode=$ac_tag; continue;;
22066 esac
22067 case $ac_mode$ac_tag in
22068 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022069 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22070echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22071 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022072 :[FH]-) ac_tag=-:-;;
22073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22074 esac
22075 ac_save_IFS=$IFS
22076 IFS=:
22077 set x $ac_tag
22078 IFS=$ac_save_IFS
22079 shift
22080 ac_file=$1
22081 shift
22082
22083 case $ac_mode in
22084 :L) ac_source=$1;;
22085 :[FH])
22086 ac_file_inputs=
22087 for ac_f
22088 do
22089 case $ac_f in
22090 -) ac_f="$tmp/stdin";;
22091 *) # Look for the file first in the build tree, then in the source tree
22092 # (if the path is not absolute). The absolute path cannot be DOS-style,
22093 # because $ac_f cannot contain `:'.
22094 test -f "$ac_f" ||
22095 case $ac_f in
22096 [\\/$]*) false;;
22097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22098 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022099 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22100echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22101 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022102 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022103 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022104 done
22105
22106 # Let's still pretend it is `configure' which instantiates (i.e., don't
22107 # use $as_me), people would be surprised to read:
22108 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022109 configure_input="Generated from "`IFS=:
22110 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022111 if test x"$ac_file" != x-; then
22112 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022113 { echo "$as_me:$LINENO: creating $ac_file" >&5
22114echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022115 fi
22116
22117 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022118 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022119 esac
22120 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022121 esac
22122
Reid Spencera773bd52006-08-04 18:18:08 +000022123 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022124$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022125 X"$ac_file" : 'X\(//\)[^/]' \| \
22126 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022128echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22130 s//\1/
22131 q
22132 }
22133 /^X\(\/\/\)[^/].*/{
22134 s//\1/
22135 q
22136 }
22137 /^X\(\/\/\)$/{
22138 s//\1/
22139 q
22140 }
22141 /^X\(\/\).*/{
22142 s//\1/
22143 q
22144 }
22145 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022146 { as_dir="$ac_dir"
22147 case $as_dir in #(
22148 -*) as_dir=./$as_dir;;
22149 esac
22150 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22151 as_dirs=
22152 while :; do
22153 case $as_dir in #(
22154 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22155 *) as_qdir=$as_dir;;
22156 esac
22157 as_dirs="'$as_qdir' $as_dirs"
22158 as_dir=`$as_dirname -- "$as_dir" ||
22159$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22160 X"$as_dir" : 'X\(//\)[^/]' \| \
22161 X"$as_dir" : 'X\(//\)$' \| \
22162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22163echo X"$as_dir" |
22164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\/\)[^/].*/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\/\)$/{
22173 s//\1/
22174 q
22175 }
22176 /^X\(\/\).*/{
22177 s//\1/
22178 q
22179 }
22180 s/.*/./; q'`
22181 test -d "$as_dir" && break
22182 done
22183 test -z "$as_dirs" || eval "mkdir $as_dirs"
22184 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22185echo "$as_me: error: cannot create directory $as_dir" >&2;}
22186 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022187 ac_builddir=.
22188
Reid Spencera773bd52006-08-04 18:18:08 +000022189case "$ac_dir" in
22190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22191*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022193 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022194 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022195 case $ac_top_builddir_sub in
22196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22198 esac ;;
22199esac
22200ac_abs_top_builddir=$ac_pwd
22201ac_abs_builddir=$ac_pwd$ac_dir_suffix
22202# for backward compatibility:
22203ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022204
22205case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022206 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022207 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022208 ac_top_srcdir=$ac_top_builddir_sub
22209 ac_abs_top_srcdir=$ac_pwd ;;
22210 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022211 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022212 ac_top_srcdir=$srcdir
22213 ac_abs_top_srcdir=$srcdir ;;
22214 *) # Relative name.
22215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22216 ac_top_srcdir=$ac_top_build_prefix$srcdir
22217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022218esac
Reid Spencera773bd52006-08-04 18:18:08 +000022219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022220
John Criswell7a73b802003-06-30 21:59:07 +000022221
Reid Spencera773bd52006-08-04 18:18:08 +000022222 case $ac_mode in
22223 :F)
22224 #
22225 # CONFIG_FILE
22226 #
John Criswell7a73b802003-06-30 21:59:07 +000022227
22228 case $INSTALL in
22229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022231 esac
John Criswell7a73b802003-06-30 21:59:07 +000022232_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022234cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022235# If the template does not know about datarootdir, expand it.
22236# FIXME: This hack should be removed a few years after 2.60.
22237ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022238
22239case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022240 p
22241 q
22242}
22243/@datadir@/p
22244/@docdir@/p
22245/@infodir@/p
22246/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022247/@mandir@/p
22248' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022249*datarootdir*) ac_datarootdir_seen=yes;;
22250*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022251 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22252echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022253_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022254cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022255 ac_datarootdir_hack='
22256 s&@datadir@&$datadir&g
22257 s&@docdir@&$docdir&g
22258 s&@infodir@&$infodir&g
22259 s&@localedir@&$localedir&g
22260 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022261 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022262esac
22263_ACEOF
22264
22265# Neutralize VPATH when `$srcdir' = `.'.
22266# Shell code in configure.ac might set extrasub.
22267# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022268cat >>$CONFIG_STATUS <<_ACEOF
22269 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022270$extrasub
22271_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022273:t
22274/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022275s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022276s&@top_builddir@&$ac_top_builddir_sub&;t t
22277s&@srcdir@&$ac_srcdir&;t t
22278s&@abs_srcdir@&$ac_abs_srcdir&;t t
22279s&@top_srcdir@&$ac_top_srcdir&;t t
22280s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22281s&@builddir@&$ac_builddir&;t t
22282s&@abs_builddir@&$ac_abs_builddir&;t t
22283s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22284s&@INSTALL@&$ac_INSTALL&;t t
22285$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000022286" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022287
Reid Spencera773bd52006-08-04 18:18:08 +000022288test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22289 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022291 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022292which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022293echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022294which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022295
Reid Spencera773bd52006-08-04 18:18:08 +000022296 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022297 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022298 -) cat "$tmp/out"; rm -f "$tmp/out";;
22299 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22300 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022301 ;;
22302 :H)
22303 #
22304 # CONFIG_HEADER
22305 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022306_ACEOF
22307
22308# Transform confdefs.h into a sed script `conftest.defines', that
22309# substitutes the proper values into config.h.in to produce config.h.
22310rm -f conftest.defines conftest.tail
22311# First, append a space to every undef/define line, to ease matching.
22312echo 's/$/ /' >conftest.defines
22313# Then, protect against being on the right side of a sed subst, or in
22314# an unquoted here document, in config.status. If some macros were
22315# called several times there might be several #defines for the same
22316# symbol, which is useless. But do not sort them, since the last
22317# AC_DEFINE must be honored.
22318ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22319# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22320# NAME is the cpp macro being defined, VALUE is the value it is being given.
22321# PARAMS is the parameter list in the macro definition--in most cases, it's
22322# just an empty string.
22323ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22324ac_dB='\\)[ (].*,\\1define\\2'
22325ac_dC=' '
22326ac_dD=' ,'
22327
22328uniq confdefs.h |
22329 sed -n '
22330 t rset
22331 :rset
22332 s/^[ ]*#[ ]*define[ ][ ]*//
22333 t ok
22334 d
22335 :ok
22336 s/[\\&,]/\\&/g
22337 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22338 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22339 ' >>conftest.defines
22340
22341# Remove the space that was appended to ease matching.
22342# Then replace #undef with comments. This is necessary, for
22343# example, in the case of _POSIX_SOURCE, which is predefined and required
22344# on some systems where configure will not decide to define it.
22345# (The regexp can be short, since the line contains either #define or #undef.)
22346echo 's/ $//
22347s,^[ #]*u.*,/* & */,' >>conftest.defines
22348
22349# Break up conftest.defines:
22350ac_max_sed_lines=50
22351
22352# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22353# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22354# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22355# et cetera.
22356ac_in='$ac_file_inputs'
22357ac_out='"$tmp/out1"'
22358ac_nxt='"$tmp/out2"'
22359
22360while :
22361do
22362 # Write a here document:
22363 cat >>$CONFIG_STATUS <<_ACEOF
22364 # First, check the format of the line:
22365 cat >"\$tmp/defines.sed" <<\\CEOF
22366/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22367/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22368b
22369:def
22370_ACEOF
22371 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22372 echo 'CEOF
22373 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22374 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22375 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22376 grep . conftest.tail >/dev/null || break
22377 rm -f conftest.defines
22378 mv conftest.tail conftest.defines
22379done
22380rm -f conftest.defines conftest.tail
22381
22382echo "ac_result=$ac_in" >>$CONFIG_STATUS
22383cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022384 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022385 echo "/* $configure_input */" >"$tmp/config.h"
22386 cat "$ac_result" >>"$tmp/config.h"
22387 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22389echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022390 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022391 rm -f $ac_file
22392 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022393 fi
22394 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022395 echo "/* $configure_input */"
22396 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022397 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022398 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022399 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022401 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22402echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022403 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022404 esac
John Criswell7a73b802003-06-30 21:59:07 +000022405
Reid Spencera773bd52006-08-04 18:18:08 +000022406
22407 case $ac_file$ac_mode in
22408 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022410 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022412 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022414 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022416 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022418 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022420 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022422 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022424 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022426 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022428 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022429 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022430 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022431 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022432 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022433 ${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 +000022434
22435 esac
22436done # for ac_tag
22437
John Criswell7a73b802003-06-30 21:59:07 +000022438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022439{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022441chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022442ac_clean_files=$ac_clean_files_save
22443
22444
22445# configure is writing to config.log, and then calls config.status.
22446# config.status does its own redirection, appending to config.log.
22447# Unfortunately, on DOS this fails, as config.log is still kept open
22448# by configure, so config.status won't be able to write to it; its
22449# output is simply discarded. So we exec the FD to /dev/null,
22450# effectively closing config.log, so it can be properly (re)opened and
22451# appended to by config.status. When coming back to configure, we
22452# need to make the FD available again.
22453if test "$no_create" != yes; then
22454 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022455 ac_config_status_args=
22456 test "$silent" = yes &&
22457 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022458 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022460 exec 5>>config.log
22461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22462 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022463 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022464fi
22465
John Criswell12399a12003-09-30 15:55:44 +000022466#
22467# CONFIG_SUBDIRS section.
22468#
22469if test "$no_recursion" != yes; then
22470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022471 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022472 ac_sub_configure_args=
22473 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022474 eval "set x $ac_configure_args"
22475 shift
22476 for ac_arg
22477 do
John Criswell12399a12003-09-30 15:55:44 +000022478 if test -n "$ac_prev"; then
22479 ac_prev=
22480 continue
22481 fi
22482 case $ac_arg in
22483 -cache-file | --cache-file | --cache-fil | --cache-fi \
22484 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22485 ac_prev=cache_file ;;
22486 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22487 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22488 | --c=*)
22489 ;;
22490 --config-cache | -C)
22491 ;;
22492 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22493 ac_prev=srcdir ;;
22494 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22495 ;;
22496 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22497 ac_prev=prefix ;;
22498 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22499 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022500 *)
22501 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022503 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022504 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022505 esac
22506 done
22507
22508 # Always prepend --prefix to ensure using the same prefix
22509 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022510 ac_arg="--prefix=$prefix"
22511 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022512 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022513 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022514 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022515
22516 ac_popdir=`pwd`
22517 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22518
22519 # Do not complain, so a configure script can configure whichever
22520 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022521 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022522
Reid Spencera773bd52006-08-04 18:18:08 +000022523 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022524 echo "$as_me:$LINENO: $ac_msg" >&5
22525 echo "$ac_msg" >&6
22526 { as_dir="$ac_dir"
22527 case $as_dir in #(
22528 -*) as_dir=./$as_dir;;
22529 esac
22530 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22531 as_dirs=
22532 while :; do
22533 case $as_dir in #(
22534 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22535 *) as_qdir=$as_dir;;
22536 esac
22537 as_dirs="'$as_qdir' $as_dirs"
22538 as_dir=`$as_dirname -- "$as_dir" ||
22539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22540 X"$as_dir" : 'X\(//\)[^/]' \| \
22541 X"$as_dir" : 'X\(//\)$' \| \
22542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22543echo X"$as_dir" |
22544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22545 s//\1/
22546 q
22547 }
22548 /^X\(\/\/\)[^/].*/{
22549 s//\1/
22550 q
22551 }
22552 /^X\(\/\/\)$/{
22553 s//\1/
22554 q
22555 }
22556 /^X\(\/\).*/{
22557 s//\1/
22558 q
22559 }
22560 s/.*/./; q'`
22561 test -d "$as_dir" && break
22562 done
22563 test -z "$as_dirs" || eval "mkdir $as_dirs"
22564 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22565echo "$as_me: error: cannot create directory $as_dir" >&2;}
22566 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022567 ac_builddir=.
22568
Reid Spencera773bd52006-08-04 18:18:08 +000022569case "$ac_dir" in
22570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22571*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022573 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022574 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022575 case $ac_top_builddir_sub in
22576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22578 esac ;;
22579esac
22580ac_abs_top_builddir=$ac_pwd
22581ac_abs_builddir=$ac_pwd$ac_dir_suffix
22582# for backward compatibility:
22583ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022584
22585case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022586 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022587 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022588 ac_top_srcdir=$ac_top_builddir_sub
22589 ac_abs_top_srcdir=$ac_pwd ;;
22590 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022591 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022592 ac_top_srcdir=$srcdir
22593 ac_abs_top_srcdir=$srcdir ;;
22594 *) # Relative name.
22595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22596 ac_top_srcdir=$ac_top_build_prefix$srcdir
22597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022598esac
Reid Spencera773bd52006-08-04 18:18:08 +000022599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022600
22601
Reid Spencera773bd52006-08-04 18:18:08 +000022602 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022603
22604 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022605 if test -f "$ac_srcdir/configure.gnu"; then
22606 ac_sub_configure=$ac_srcdir/configure.gnu
22607 elif test -f "$ac_srcdir/configure"; then
22608 ac_sub_configure=$ac_srcdir/configure
22609 elif test -f "$ac_srcdir/configure.in"; then
22610 # This should be Cygnus configure.
22611 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022612 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022613 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22614echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022615 ac_sub_configure=
22616 fi
22617
22618 # The recursion is here.
22619 if test -n "$ac_sub_configure"; then
22620 # Make the cache file name correct relative to the subdirectory.
22621 case $cache_file in
22622 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022623 *) # Relative name.
22624 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022625 esac
22626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022627 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22628echo "$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 +000022629 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022630 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22631 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022632 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22633echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22634 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022635 fi
22636
Reid Spencera773bd52006-08-04 18:18:08 +000022637 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022638 done
22639fi
22640