blob: a03bc932eeea291edeff44dac90a5c33e54e89e7 [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
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000697ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000698ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699TARGETS_TO_BUILD
700LLVM_ENUM_TARGETS
701LLVM_ENUM_ASM_PRINTERS
702LLVM_ENUM_ASM_PARSERS
703LLVM_ENUM_DISASSEMBLERS
704ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000705CLANGPATH
706CLANGXXPATH
707ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711CXX
712CXXFLAGS
713ac_ct_CXX
714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000737XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000738PERL
739HAVE_PERL
740INSTALL_PROGRAM
741INSTALL_SCRIPT
742INSTALL_DATA
743BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000744CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745DOXYGEN
746GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000747GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748POD2HTML
749POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000750PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751RUNTEST
752TCLSH
753ZIP
754OCAMLC
755OCAMLOPT
756OCAMLDEP
757OCAMLDOC
758GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000759HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000760INSTALL_LTDL_TRUE
761INSTALL_LTDL_FALSE
762CONVENIENCE_LTDL_TRUE
763CONVENIENCE_LTDL_FALSE
764LIBADD_DL
765LLVMGCCCOMMAND
766LLVMGXXCOMMAND
767LLVMGCC
768LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000769LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000770NO_VARIADIC_MACROS
771NO_MISSING_FIELD_INITIALIZERS
772USE_UDIS86
773USE_OPROFILE
774HAVE_PTHREAD
775HUGE_VAL_SANITY
776MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000777LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVMCC1
779LLVMCC1PLUS
780LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000781LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000782LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000783LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000784SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000785SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000786LLVM_PREFIX
787LLVM_BINDIR
788LLVM_LIBDIR
789LLVM_DATADIR
790LLVM_DOCSDIR
791LLVM_ETCDIR
792LLVM_INCLUDEDIR
793LLVM_INFODIR
794LLVM_MANDIR
795LLVM_CONFIGTIME
796BINDINGS_TO_BUILD
797ALL_BINDINGS
798OCAML_LIBDIR
799ENABLE_VISIBILITY_INLINES_HIDDEN
800RPATH
801RDYNAMIC
802LIBOBJS
803LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000804ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000805 ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811CPPFLAGS
812CPP
813CXX
814CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000815CCC'
John Criswell0157f502010-03-19 21:31:39 +0000816ac_subdirs_all='projects/llvm-gcc
817projects/test-suite
818projects/llvm-test
819projects/poolalloc
820projects/llvm-poolalloc
821projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000822projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000823projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000824projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-java
826projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000827projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000828projects/llvm-kernel
829tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000856# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000865includedir='${prefix}/include'
866oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000876
877ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000878ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000879for ac_option
880do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000883 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000884 ac_prev=
885 continue
886 fi
887
Reid Spencera773bd52006-08-04 18:18:08 +0000888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
John Criswell7a73b802003-06-30 21:59:07 +0000892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
Reid Spencera773bd52006-08-04 18:18:08 +0000895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000898
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
903
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
918
Reid Spencera773bd52006-08-04 18:18:08 +0000919 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000920 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000922 datadir=$ac_optarg ;;
923
Reid Spencera773bd52006-08-04 18:18:08 +0000924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
John Criswell7a73b802003-06-30 21:59:07 +0000931 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000933 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000952 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
Reid Spencera773bd52006-08-04 18:18:08 +0000984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
John Criswell7a73b802003-06-30 21:59:07 +0000990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
Reid Spencera773bd52006-08-04 18:18:08 +00001014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
John Criswell7a73b802003-06-30 21:59:07 +00001019 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001020 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
Reid Spencera773bd52006-08-04 18:18:08 +00001088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
John Criswell7a73b802003-06-30 21:59:07 +00001098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001158 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001194 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 ;;
1204
1205 esac
1206done
1207
1208if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001212fi
1213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001219do
Reid Spencera773bd52006-08-04 18:18:08 +00001220 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001221 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001224 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
Reid Spencera773bd52006-08-04 18:18:08 +00001253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001258test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001261
1262
John Criswell7a73b802003-06-30 21:59:07 +00001263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001266 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001267 ac_confdir=`$as_dirname -- "$0" ||
1268$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001290 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001291 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001292 srcdir=..
1293 fi
1294else
1295 ac_srcdir_defaulted=no
1296fi
Reid Spencera773bd52006-08-04 18:18:08 +00001297if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001301fi
Reid Spencera773bd52006-08-04 18:18:08 +00001302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001331\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
John Criswell7a73b802003-06-30 21:59:07 +00001351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001397 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001398 esac
1399 cat <<\_ACEOF
1400
1401Optional Features:
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001404 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1408 YES)
David Greenea696d242007-06-28 19:36:08 +00001409 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001410 Compile with expensive debug checks enabled (default
1411 is NO)
1412 --enable-debug-runtime Build runtime libs with debug symbols (default is
1413 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001414 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1415 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001416 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001417 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001418 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001419 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001420 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001421 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001422 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001423 --enable-shared Build a shared library and link tools against it
1424 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001425 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1426 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001427 --enable-timestamps Enable embedding timestamp information in build
1428 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001429 --enable-targets Build specific host targets: all or
1430 target1,target2,... Valid targets are: host, x86,
1431 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001432 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1433 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001434 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1435 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001436 --enable-bindings Build specific language bindings:
1437 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001438 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001439 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001440
1441Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001444 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1445 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001446 --with-llvmgcc Specify location of llvm-gcc driver (default
1447 searches PATH)
1448 --with-llvmgxx Specify location of llvm-g++ driver (default
1449 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001450 --with-clang Specify location of clang compiler (default is
1451 --with-built-clang)
1452 --with-built-clang Use the compiled Clang as the LLVM compiler
1453 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001454 --with-optimize-option Select the compiler options to use for optimized
1455 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001456 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1458 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001459 --with-clang-resource-dir
1460 Relative directory from the Clang binary for
1461 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001462 --with-c-include-dirs Colon separated list of directories clang will
1463 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001464 --with-cxx-include-root Directory with the libstdc++ headers.
1465 --with-cxx-include-arch Architecture of the libstdc++ headers.
1466 --with-cxx-include-32bit-dir
1467 32 bit multilib dir.
1468 --with-cxx-include-64bit-dir
1469 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001470 --with-binutils-include Specify path to binutils/include/ containing
1471 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001472 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001473 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1474 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001475 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001478
1479Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001480 CC C compiler command
1481 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001485 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001486 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001489
1490Use these variables to override the choices made by `configure' or to help
1491it to find libraries and programs with nonstandard names/locations.
1492
1493Report bugs to <llvmbugs@cs.uiuc.edu>.
1494_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001495ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001496fi
1497
1498if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001501 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001502 ac_builddir=.
1503
Reid Spencera773bd52006-08-04 18:18:08 +00001504case "$ac_dir" in
1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001508 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001509 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514esac
1515ac_abs_top_builddir=$ac_pwd
1516ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517# for backward compatibility:
1518ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001519
1520case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001521 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001522 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001526 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001533esac
Reid Spencera773bd52006-08-04 18:18:08 +00001534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001535
Reid Spencera773bd52006-08-04 18:18:08 +00001536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001544 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001548 done
1549fi
1550
Reid Spencera773bd52006-08-04 18:18:08 +00001551test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001552if $ac_init_version; then
1553 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001554llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001555generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001557Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15582002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001559This configure script is free software; the Free Software Foundation
1560gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561
John Criswell5a129712010-03-19 21:04:16 +00001562Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001564 exit
John Criswell7a73b802003-06-30 21:59:07 +00001565fi
Reid Spencera773bd52006-08-04 18:18:08 +00001566cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001567This file contains any messages produced by compilers while
1568running configure, to aid debugging if configure makes a mistake.
1569
Eric Christopherb26697c2010-09-06 18:47:10 +00001570It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001571generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001572
1573 $ $0 $@
1574
1575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001576exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001577{
1578cat <<_ASUNAME
1579## --------- ##
1580## Platform. ##
1581## --------- ##
1582
1583hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588
1589/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591
1592/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1593/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1594/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001595/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001596/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1597/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1598/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1599
1600_ASUNAME
1601
1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603for as_dir in $PATH
1604do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001607 echo "PATH: $as_dir"
1608done
Reid Spencera773bd52006-08-04 18:18:08 +00001609IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001610
1611} >&5
1612
1613cat >&5 <<_ACEOF
1614
1615
1616## ----------- ##
1617## Core tests. ##
1618## ----------- ##
1619
1620_ACEOF
1621
1622
1623# Keep a trace of the command line.
1624# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001625# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001626# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001628ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001629ac_configure_args0=
1630ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001631ac_must_keep_next=false
1632for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001633do
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 for ac_arg
1635 do
1636 case $ac_arg in
1637 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1640 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001641 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 esac
1644 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001649 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001651 case $ac_arg in
1652 *=* | --config-cache | -C | -disable-* | --disable-* \
1653 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655 | -with-* | --with-* | -without-* | --without-* | --x)
1656 case "$ac_configure_args0 " in
1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658 esac
1659 ;;
1660 -* ) ac_must_keep_next=true ;;
1661 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001663 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ;;
1665 esac
1666 done
John Criswell7a73b802003-06-30 21:59:07 +00001667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001668$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1669$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 +00001670
1671# When interrupted or exit'd, cleanup temporary files, and complete
1672# config.log. We remove comments because anyway the quotes in there
1673# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001674# WARNING: Use '\'' to represent an apostrophe within the trap.
1675# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001676trap 'exit_status=$?
1677 # Save into config.log some information that might help in debugging.
1678 {
1679 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001680
John Criswell7a73b802003-06-30 21:59:07 +00001681 cat <<\_ASBOX
1682## ---------------- ##
1683## Cache variables. ##
1684## ---------------- ##
1685_ASBOX
1686 echo
1687 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001688(
1689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690 eval ac_val=\$$ac_var
1691 case $ac_val in #(
1692 *${as_nl}*)
1693 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001694 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001696 esac
1697 case $ac_var in #(
1698 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001699 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac ;;
1701 esac
1702 done
John Criswell7a73b802003-06-30 21:59:07 +00001703 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001706 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001710 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001712 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001713 esac |
1714 sort
1715)
John Criswell7a73b802003-06-30 21:59:07 +00001716 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001717
1718 cat <<\_ASBOX
1719## ----------------- ##
1720## Output variables. ##
1721## ----------------- ##
1722_ASBOX
1723 echo
1724 for ac_var in $ac_subst_vars
1725 do
Reid Spencera773bd52006-08-04 18:18:08 +00001726 eval ac_val=\$$ac_var
1727 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001729 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 done | sort
1732 echo
1733
1734 if test -n "$ac_subst_files"; then
1735 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001736## ------------------- ##
1737## File substitutions. ##
1738## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001739_ASBOX
1740 echo
1741 for ac_var in $ac_subst_files
1742 do
Reid Spencera773bd52006-08-04 18:18:08 +00001743 eval ac_val=\$$ac_var
1744 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001746 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 done | sort
1749 echo
1750 fi
1751
John Criswell7a73b802003-06-30 21:59:07 +00001752 if test -s confdefs.h; then
1753 cat <<\_ASBOX
1754## ----------- ##
1755## confdefs.h. ##
1756## ----------- ##
1757_ASBOX
1758 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001759 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001760 echo
1761 fi
1762 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001763 echo "$as_me: caught signal $ac_signal"
1764 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001765 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001768 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001769' 0
John Criswell7a73b802003-06-30 21:59:07 +00001770for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001772done
1773ac_signal=0
1774
1775# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001776rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001777
1778# Predefined preprocessor variables.
1779
1780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_NAME "$PACKAGE_NAME"
1782_ACEOF
1783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787_ACEOF
1788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789
John Criswell7a73b802003-06-30 21:59:07 +00001790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_VERSION "$PACKAGE_VERSION"
1792_ACEOF
1793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794
John Criswell7a73b802003-06-30 21:59:07 +00001795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_STRING "$PACKAGE_STRING"
1797_ACEOF
1798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799
John Criswell7a73b802003-06-30 21:59:07 +00001800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802_ACEOF
1803
1804
1805# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001807if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001809elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$ac_default_prefix/share/config.site" \
1813 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001815shift
1816for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001817do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001818 if test -r "$ac_site_file"; then
1819 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001821 sed 's/^/| /' "$ac_site_file" >&5
1822 . "$ac_site_file"
1823 fi
1824done
1825
1826if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001827 # Some versions of bash will fail to source /dev/null (special
1828 # files actually), so we avoid doing that.
1829 if test -f "$cache_file"; then
1830 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001832 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001833 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1834 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001835 esac
1836 fi
1837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001838 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001840 >$cache_file
1841fi
1842
1843# Check that the precious variables saved in the cache have kept the same
1844# value.
1845ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001846for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1848 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1850 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001851 case $ac_old_set,$ac_new_set in
1852 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001855 ac_cache_corrupted=: ;;
1856 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001859 ac_cache_corrupted=: ;;
1860 ,);;
1861 *)
1862 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1866echo "$as_me: former value: $ac_old_val" >&2;}
1867 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1868echo "$as_me: current value: $ac_new_val" >&2;}
1869 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001870 fi;;
1871 esac
1872 # Pass precious variables to config.status.
1873 if test "$ac_new_set" = set; then
1874 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001875 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001876 *) ac_arg=$ac_var=$ac_new_val ;;
1877 esac
1878 case " $ac_configure_args " in
1879 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001880 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001881 esac
1882 fi
1883done
1884if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001885 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1886echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1887 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1888echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1889 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
Reid Spencera773bd52006-08-04 18:18:08 +00001915
John Criswell7a73b802003-06-30 21:59:07 +00001916ac_ext=c
1917ac_cpp='$CPP $CPPFLAGS'
1918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923
John Criswell5a129712010-03-19 21:04:16 +00001924LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001925
1926
1927
1928
1929
1930
1931
John Criswell7a73b802003-06-30 21:59:07 +00001932ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001933for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001934 if test -f "$ac_dir/install-sh"; then
1935 ac_aux_dir=$ac_dir
1936 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 break
1938 elif test -f "$ac_dir/install.sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 break
1942 elif test -f "$ac_dir/shtool"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/shtool install -c"
1945 break
1946 fi
John Criswell7a73b802003-06-30 21:59:07 +00001947done
1948if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001949 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1950echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1951 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001952fi
Reid Spencera773bd52006-08-04 18:18:08 +00001953
1954# These three variables are undocumented and unsupported,
1955# and are intended to be withdrawn in a future Autoconf release.
1956# They can cause serious problems if a builder's source tree is in a directory
1957# whose full name contains unusual characters.
1958ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1959ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1960ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1961
John Criswell7a73b802003-06-30 21:59:07 +00001962
John Criswell392aaa32003-07-22 19:18:09 +00001963
Reid Spencer2706f8c2004-09-19 23:53:36 +00001964if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001965 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001966 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1967echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1968 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 fi
John Criswell93e1c722003-09-15 17:04:06 +00001970fi
1971
John Criswell0157f502010-03-19 21:31:39 +00001972
1973
1974if test -d ${srcdir}/projects/llvm-gcc ; then
1975 subdirs="$subdirs projects/llvm-gcc"
1976
1977fi
1978
1979if test -d ${srcdir}/projects/test-suite ; then
1980 subdirs="$subdirs projects/test-suite"
1981
1982fi
1983
1984if test -d ${srcdir}/projects/llvm-test ; then
1985 subdirs="$subdirs projects/llvm-test"
1986
1987fi
1988
1989if test -d ${srcdir}/projects/poolalloc ; then
1990 subdirs="$subdirs projects/poolalloc"
1991
1992fi
1993
1994if test -d ${srcdir}/projects/llvm-poolalloc ; then
1995 subdirs="$subdirs projects/llvm-poolalloc"
1996
1997fi
1998
John Criswell33a911a2003-11-25 20:36:46 +00001999for i in `ls ${srcdir}/projects`
2000do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002001 if test -d ${srcdir}/projects/${i} ; then
2002 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002003 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002004 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002005 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002006 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002007 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002012 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002014 ;;
John Criswell7def2932010-02-25 22:57:19 +00002015 safecode) subdirs="$subdirs projects/safecode"
2016 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002017 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002018 ;;
John Criswell52c02862010-03-25 13:59:09 +00002019 llvm-gcc) ;;
2020 test-suite) ;;
2021 llvm-test) ;;
2022 poolalloc) ;;
2023 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002024 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2026echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002027 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002028 esac
John Criswell33a911a2003-11-25 20:36:46 +00002029 fi
2030done
John Criswell559a6c12003-09-30 16:31:48 +00002031
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002032# Check whether --enable-polly was given.
2033if test "${enable_polly+set}" = set; then
2034 enableval=$enable_polly;
2035else
2036 enableval=default
2037fi
2038
2039case "$enableval" in
2040 yes) ENABLE_POLLY=1
2041 ;;
2042 no) ENABLE_POLLY=0
2043 ;;
2044 default) ENABLE_POLLY=1
2045 ;;
2046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2047echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2048 { (exit 1); exit 1; }; } ;;
2049esac
2050
2051
2052if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2053 LLVM_HAS_POLLY=1
2054
2055 subdirs="$subdirs tools/polly"
2056
2057fi
2058
John Criswell7a73b802003-06-30 21:59:07 +00002059
2060# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002061$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066{ echo "$as_me:$LINENO: checking build system type" >&5
2067echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068if test "${ac_cv_build+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002070else
Reid Spencera773bd52006-08-04 18:18:08 +00002071 ac_build_alias=$build_alias
2072test "x$ac_build_alias" = x &&
2073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002078ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002082
2083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002086case $ac_cv_build in
2087*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002091esac
John Criswell7a73b802003-06-30 21:59:07 +00002092build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002093ac_save_IFS=$IFS; IFS='-'
2094set x $ac_cv_build
2095shift
2096build_cpu=$1
2097build_vendor=$2
2098shift; shift
2099# Remember, the first character of IFS is used to create $*,
2100# except with old shells:
2101build_os=$*
2102IFS=$ac_save_IFS
2103case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002104
2105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002106{ echo "$as_me:$LINENO: checking host system type" >&5
2107echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108if test "${ac_cv_host+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002110else
Reid Spencera773bd52006-08-04 18:18:08 +00002111 if test "x$host_alias" = x; then
2112 ac_cv_host=$ac_cv_build
2113else
2114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002118fi
John Criswell7a73b802003-06-30 21:59:07 +00002119
2120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002123case $ac_cv_host in
2124*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002125*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002128esac
John Criswell7a73b802003-06-30 21:59:07 +00002129host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002130ac_save_IFS=$IFS; IFS='-'
2131set x $ac_cv_host
2132shift
2133host_cpu=$1
2134host_vendor=$2
2135shift; shift
2136# Remember, the first character of IFS is used to create $*,
2137# except with old shells:
2138host_os=$*
2139IFS=$ac_save_IFS
2140case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002141
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking target system type" >&5
2144echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2145if test "${ac_cv_target+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002147else
Reid Spencera773bd52006-08-04 18:18:08 +00002148 if test "x$target_alias" = x; then
2149 ac_cv_target=$ac_cv_host
2150else
2151 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2153echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002155fi
John Criswell7a73b802003-06-30 21:59:07 +00002156
2157fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002158{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2159echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002160case $ac_cv_target in
2161*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2163echo "$as_me: error: invalid value of canonical target" >&2;}
2164 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002165esac
John Criswell7a73b802003-06-30 21:59:07 +00002166target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002167ac_save_IFS=$IFS; IFS='-'
2168set x $ac_cv_target
2169shift
2170target_cpu=$1
2171target_vendor=$2
2172shift; shift
2173# Remember, the first character of IFS is used to create $*,
2174# except with old shells:
2175target_os=$*
2176IFS=$ac_save_IFS
2177case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002178
2179
2180# The aliases save the names the user supplied, while $host etc.
2181# will get canonicalized.
2182test -n "$target_alias" &&
2183 test "$program_prefix$program_suffix$program_transform_name" = \
2184 NONENONEs,x,x, &&
2185 program_prefix=${target_alias}-
2186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2188echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2189if test "${llvm_cv_os_type+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002191else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002192 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002193 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002196 llvm_cv_os_type="AIX"
2197 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002198 *-*-irix*)
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="IRIX"
2202 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002203 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002206 llvm_cv_os_type="Cygwin"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002209 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002210 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 llvm_cv_os_type="Darwin"
2212 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002213 *-*-minix*)
2214 llvm_cv_link_all_option="-Wl,-all_load"
2215 llvm_cv_no_link_all_option="-Wl,-noall_load"
2216 llvm_cv_os_type="Minix"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 llvm_cv_os_type="FreeBSD"
2222 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002223 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002226 llvm_cv_os_type="OpenBSD"
2227 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002228 *-*-netbsd*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="NetBSD"
2232 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002233 *-*-dragonfly*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="DragonFly"
2237 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002238 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002241 llvm_cv_os_type="HP-UX"
2242 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Interix"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="Linux"
2252 llvm_cv_platform_type="Unix" ;;
2253 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,-z,allextract"
2255 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 llvm_cv_os_type="SunOS"
2257 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002258 *-*-auroraux*)
2259 llvm_cv_link_all_option="-Wl,-z,allextract"
2260 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2261 llvm_cv_os_type="AuroraUX"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="Win32"
2267 llvm_cv_platform_type="Win32" ;;
2268 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="MingW"
2272 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002273 *-*-haiku*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="Haiku"
2277 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002278 *-unknown-eabi*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Freestanding"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-unknown-elf*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Freestanding"
2287 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option=""
2290 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="Unknown"
2292 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002293esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002298{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2299echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2300if test "${llvm_cv_target_os_type+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002302else
2303 case $target in
2304 *-*-aix*)
2305 llvm_cv_target_os_type="AIX" ;;
2306 *-*-irix*)
2307 llvm_cv_target_os_type="IRIX" ;;
2308 *-*-cygwin*)
2309 llvm_cv_target_os_type="Cygwin" ;;
2310 *-*-darwin*)
2311 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002312 *-*-minix*)
2313 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002314 *-*-freebsd*)
2315 llvm_cv_target_os_type="FreeBSD" ;;
2316 *-*-openbsd*)
2317 llvm_cv_target_os_type="OpenBSD" ;;
2318 *-*-netbsd*)
2319 llvm_cv_target_os_type="NetBSD" ;;
2320 *-*-dragonfly*)
2321 llvm_cv_target_os_type="DragonFly" ;;
2322 *-*-hpux*)
2323 llvm_cv_target_os_type="HP-UX" ;;
2324 *-*-interix*)
2325 llvm_cv_target_os_type="Interix" ;;
2326 *-*-linux*)
2327 llvm_cv_target_os_type="Linux" ;;
2328 *-*-solaris*)
2329 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002330 *-*-auroraux*)
2331 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002332 *-*-win32*)
2333 llvm_cv_target_os_type="Win32" ;;
2334 *-*-mingw*)
2335 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002336 *-*-haiku*)
2337 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002338 *-unknown-eabi*)
2339 llvm_cv_target_os_type="Freestanding" ;;
2340 *)
2341 llvm_cv_target_os_type="Unknown" ;;
2342esac
2343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2345echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2349echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2350 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002351fi
2352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002355HOST_OS=$llvm_cv_os_type
2356
2357TARGET_OS=$llvm_cv_target_os_type
2358
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002359
Reid Spencera773bd52006-08-04 18:18:08 +00002360LINKALL=$llvm_cv_link_all_option
2361
2362NOLINKALL=$llvm_cv_no_link_all_option
2363
2364
Reid Spencer7b3e8512004-12-24 06:29:05 +00002365case $llvm_cv_platform_type in
2366 Unix)
2367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368cat >>confdefs.h <<\_ACEOF
2369#define LLVM_ON_UNIX 1
2370_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002371
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002372 LLVM_ON_UNIX=1
2373
2374 LLVM_ON_WIN32=0
2375
Reid Spencer7b3e8512004-12-24 06:29:05 +00002376 ;;
2377 Win32)
2378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002379cat >>confdefs.h <<\_ACEOF
2380#define LLVM_ON_WIN32 1
2381_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002382
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002383 LLVM_ON_UNIX=0
2384
2385 LLVM_ON_WIN32=1
2386
Reid Spencer7b3e8512004-12-24 06:29:05 +00002387 ;;
2388esac
2389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002390{ echo "$as_me:$LINENO: checking target architecture" >&5
2391echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2392if test "${llvm_cv_target_arch+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394else
2395 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002396 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002397 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002398 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2399 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002400 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002401 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002402 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002403 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002404 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002405 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002406 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002407 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002408 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002409 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002410esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002414
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418fi
John Criswell76595452003-07-01 22:07:39 +00002419
Nick Lewycky83fc4472009-09-29 05:48:51 +00002420# Determine the LLVM native architecture for the target
2421case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2425esac
2426
2427ARCH=$llvm_cv_target_arch
2428
2429
2430ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431ac_cpp='$CPP $CPPFLAGS'
2432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002435if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445else
2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 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 +00002453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455 break 2
2456 fi
2457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458done
Reid Spencera773bd52006-08-04 18:18:08 +00002459IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460
2461fi
2462fi
2463CC=$ac_cv_prog_CC
2464if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002465 { echo "$as_me:$LINENO: result: $CC" >&5
2466echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002468 { echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470fi
2471
Reid Spencera773bd52006-08-04 18:18:08 +00002472
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473fi
2474if test -z "$ac_cv_prog_CC"; then
2475 ac_ct_CC=$CC
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485else
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 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 +00002493 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495 break 2
2496 fi
2497done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002498done
Reid Spencera773bd52006-08-04 18:18:08 +00002499IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500
2501fi
2502fi
2503ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002508 { echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510fi
2511
Reid Spencera773bd52006-08-04 18:18:08 +00002512 if test "x$ac_ct_CC" = x; then
2513 CC=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002517{ echo "$as_me:$LINENO: 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." >&5
2520echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521whose name does not start with the host triplet. If you think this
2522configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002523ac_tool_warned=yes ;;
2524esac
2525 CC=$ac_ct_CC
2526 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527else
2528 CC="$ac_cv_prog_CC"
2529fi
2530
2531if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002532 if test -n "$ac_tool_prefix"; then
2533 # 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 +00002534set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 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 +00002550 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552 break 2
2553 fi
2554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555done
Reid Spencera773bd52006-08-04 18:18:08 +00002556IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557
2558fi
2559fi
2560CC=$ac_cv_prog_CC
2561if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002562 { echo "$as_me:$LINENO: result: $CC" >&5
2563echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002565 { echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567fi
2568
Reid Spencera773bd52006-08-04 18:18:08 +00002569
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571fi
2572if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
2583 ac_prog_rejected=no
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 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 +00002591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2593 continue
2594 fi
2595 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597 break 2
2598 fi
2599done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002600done
Reid Spencera773bd52006-08-04 18:18:08 +00002601IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602
2603if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2606 shift
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2611 shift
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2613 fi
2614fi
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: $CC" >&5
2620echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002622 { echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624fi
2625
Reid Spencera773bd52006-08-04 18:18:08 +00002626
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627fi
2628if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002630 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002631 do
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 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 +00002649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 break 2
2652 fi
2653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654done
Reid Spencera773bd52006-08-04 18:18:08 +00002655IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002656
2657fi
2658fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659CC=$ac_cv_prog_CC
2660if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002661 { echo "$as_me:$LINENO: result: $CC" >&5
2662echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002666fi
2667
Reid Spencera773bd52006-08-04 18:18:08 +00002668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002670 done
2671fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672if test -z "$CC"; then
2673 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002674 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002675do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002682else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 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 +00002693 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002695 break 2
2696 fi
2697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698done
Reid Spencera773bd52006-08-04 18:18:08 +00002699IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002700
2701fi
2702fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002707else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002708 { echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002710fi
2711
Reid Spencera773bd52006-08-04 18:18:08 +00002712
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002713 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002714done
John Criswell7a73b802003-06-30 21:59:07 +00002715
Reid Spencera773bd52006-08-04 18:18:08 +00002716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002721{ echo "$as_me:$LINENO: 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." >&5
2724echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725whose name does not start with the host triplet. If you think this
2726configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002727ac_tool_warned=yes ;;
2728esac
2729 CC=$ac_ct_CC
2730 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002731fi
2732
John Criswell7a73b802003-06-30 21:59:07 +00002733fi
2734
2735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002736test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737See \`config.log' for more details." >&5
2738echo "$as_me: error: no acceptable C compiler found in \$PATH
2739See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002741
John Criswell7a73b802003-06-30 21:59:07 +00002742# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743echo "$as_me:$LINENO: checking for C compiler version" >&5
2744ac_compiler=`set X $ac_compile; echo $2`
2745{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002752 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755{ (ac_try="$ac_compiler -v >&5"
2756case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759esac
2760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765{ (ac_try="$ac_compiler -V >&5"
2766case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769esac
2770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002776cat >conftest.$ac_ext <<_ACEOF
2777/* confdefs.h. */
2778_ACEOF
2779cat confdefs.h >>conftest.$ac_ext
2780cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002782
John Criswell7a73b802003-06-30 21:59:07 +00002783int
2784main ()
2785{
2786
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002792ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002793# Try to create an executable without -o first, disregard a.out.
2794# It will help us diagnose broken compilers, and finding out an intuition
2795# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002796{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799#
2800# List of possible output files, starting from the most likely.
2801# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802# only as a last resort. b.out is created by i960 compilers.
2803ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804#
2805# The IRIX 6 linker writes into existing files which may not be
2806# executable, retaining their permissions. Remove them first so a
2807# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002808ac_rmfiles=
2809for ac_file in $ac_files
2810do
2811 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815done
2816rm -f $ac_rmfiles
2817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002824 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002825 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830# in a Makefile. We should not override ac_cv_exeext if it was cached,
2831# so that the user can short-circuit this test for compilers unknown to
2832# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002833for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002834do
2835 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002836 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002838 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002839 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002840 # We found the default executable, but exeext='' is most
2841 # certainly right.
2842 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002843 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002845 then :; else
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847 fi
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2852 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002853 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002854 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002855 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002856 esac
2857done
Reid Spencera773bd52006-08-04 18:18:08 +00002858test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
John Criswell7a73b802003-06-30 21:59:07 +00002860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002861 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002862sed 's/^/| /' conftest.$ac_ext >&5
2863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002864{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865See \`config.log' for more details." >&5
2866echo "$as_me: error: C compiler cannot create executables
2867See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002869fi
John Criswell7a73b802003-06-30 21:59:07 +00002870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002871ac_exeext=$ac_cv_exeext
2872{ echo "$as_me:$LINENO: result: $ac_file" >&5
2873echo "${ECHO_T}$ac_file" >&6; }
2874
2875# Check that the compiler produces executables we can run. If not, either
2876# the compiler is broken, or we cross compile.
2877{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880# If not cross compiling, check that we can run a simple program.
2881if test "$cross_compiling" != yes; then
2882 if { ac_try='./$ac_file'
2883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 cross_compiling=no
2893 else
2894 if test "$cross_compiling" = maybe; then
2895 cross_compiling=yes
2896 else
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898If you meant to cross compile, use \`--host'.
2899See \`config.log' for more details." >&5
2900echo "$as_me: error: cannot run C compiled programs.
2901If you meant to cross compile, use \`--host'.
2902See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2904 fi
2905 fi
2906fi
2907{ echo "$as_me:$LINENO: result: yes" >&5
2908echo "${ECHO_T}yes" >&6; }
2909
2910rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002911ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002912# Check that the compiler produces executables we can run. If not, either
2913# the compiler is broken, or we cross compile.
2914{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917echo "${ECHO_T}$cross_compiling" >&6; }
2918
2919{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002927 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002928 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933# work properly (i.e., refer to `conftest.exe'), while it won't with
2934# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002935for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002937 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002940 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002941 * ) break;;
2942 esac
2943done
2944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946See \`config.log' for more details." >&5
2947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002951
2952rm -f conftest$ac_cv_exeext
2953{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002955
2956rm -f conftest.$ac_ext
2957EXEEXT=$ac_cv_exeext
2958ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964 cat >conftest.$ac_ext <<_ACEOF
2965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002970
John Criswell7a73b802003-06-30 21:59:07 +00002971int
2972main ()
2973{
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002980if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002981case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002986 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002987 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002992 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 break;;
2996 esac
2997done
2998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003000sed 's/^/| /' conftest.$ac_ext >&5
3001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003002{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003See \`config.log' for more details." >&5
3004echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003008
John Criswell7a73b802003-06-30 21:59:07 +00003009rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003011{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003013OBJEXT=$ac_cv_objext
3014ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003020 cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003026
John Criswell7a73b802003-06-30 21:59:07 +00003027int
3028main ()
3029{
3030#ifndef __GNUC__
3031 choke me
3032#endif
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003038rm -f conftest.$ac_objext
3039if { (ac_try="$ac_compile"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003072 ac_compiler_gnu=yes
3073else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003074 echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003079
Reid Spencera773bd52006-08-04 18:18:08 +00003080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003081ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003082
3083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003084{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003087ac_test_CFLAGS=${CFLAGS+set}
3088ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003089{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003093else
Reid Spencera773bd52006-08-04 18:18:08 +00003094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003104
John Criswell7a73b802003-06-30 21:59:07 +00003105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003147 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 CFLAGS=""
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 :
Torok Edwin871384f2010-01-26 08:50:50 +00003203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003208 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003209 cat >conftest.$ac_ext <<_ACEOF
3210/* confdefs.h. */
3211_ACEOF
3212cat confdefs.h >>conftest.$ac_ext
3213cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003214/* end confdefs.h. */
3215
3216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224rm -f conftest.$ac_objext
3225if { (ac_try="$ac_compile"
3226case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229esac
3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003258 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003259else
3260 echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263
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
John Criswell7a73b802003-06-30 21:59:07 +00003267fi
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
3270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271
Reid Spencera773bd52006-08-04 18:18:08 +00003272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003275{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3281 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003282 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003283 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003284 fi
3285else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286 if test "$GCC" = yes; then
3287 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003288 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003290 fi
3291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003292{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296else
Reid Spencera773bd52006-08-04 18:18:08 +00003297 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003299cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304/* end confdefs.h. */
3305#include <stdarg.h>
3306#include <stdio.h>
3307#include <sys/types.h>
3308#include <sys/stat.h>
3309/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310struct buf { int x; };
3311FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312static char *e (p, i)
3313 char **p;
3314 int i;
3315{
3316 return p[i];
3317}
3318static char *f (char * (*g) (char **, int), char **p, ...)
3319{
3320 char *s;
3321 va_list v;
3322 va_start (v,p);
3323 s = g (p, va_arg (v,int));
3324 va_end (v);
3325 return s;
3326}
3327
3328/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003331 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003334 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3336
Reid Spencera773bd52006-08-04 18:18:08 +00003337/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3339#define FOO(x) 'x'
3340int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3341
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342int test (int i, double x);
3343struct s1 {int (*f) (int a);};
3344struct s2 {int (*f) (double a);};
3345int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346int argc;
3347char **argv;
3348int
3349main ()
3350{
3351return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3352 ;
3353 return 0;
3354}
3355_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003356for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358do
3359 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003360 rm -f conftest.$ac_objext
3361if { (ac_try="$ac_compile"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
3379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003394 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003395else
3396 echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003401
Reid Spencera773bd52006-08-04 18:18:08 +00003402rm -f core conftest.err conftest.$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404done
Reid Spencera773bd52006-08-04 18:18:08 +00003405rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406CC=$ac_save_CC
3407
3408fi
Reid Spencera773bd52006-08-04 18:18:08 +00003409# AC_CACHE_VAL
3410case "x$ac_cv_prog_cc_c89" in
3411 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003412 { echo "$as_me:$LINENO: result: none needed" >&5
3413echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003414 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003418 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421esac
3422
John Criswell0c38eaf2003-09-10 15:17:25 +00003423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431ac_ext=c
3432ac_cpp='$CPP $CPPFLAGS'
3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003436{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438# On Suns, sometimes $CPP names a directory.
3439if test -n "$CPP" && test -d "$CPP"; then
3440 CPP=
3441fi
3442if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445else
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3448 do
3449 ac_preproc_ok=false
3450for ac_c_preproc_warn_flag in '' yes
3451do
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003458 cat >conftest.$ac_ext <<_ACEOF
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463/* end confdefs.h. */
3464#ifdef __STDC__
3465# include <limits.h>
3466#else
3467# include <assert.h>
3468#endif
3469 Syntax error
3470_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
3494 :
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Broken: fails on valid input.
3500continue
3501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503rm -f conftest.err conftest.$ac_ext
3504
Reid Spencera773bd52006-08-04 18:18:08 +00003505 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003507 cat >conftest.$ac_ext <<_ACEOF
3508/* confdefs.h. */
3509_ACEOF
3510cat confdefs.h >>conftest.$ac_ext
3511cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512/* end confdefs.h. */
3513#include <ac_nonexistent.h>
3514_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003515if { (ac_try="$ac_cpp conftest.$ac_ext"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 else
3532 ac_cpp_err=
3533 fi
3534else
3535 ac_cpp_err=yes
3536fi
3537if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003538 # Broken: success on invalid input.
3539continue
3540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544 # Passes both tests.
3545ac_preproc_ok=:
3546break
3547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003548
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003549rm -f conftest.err conftest.$ac_ext
3550
3551done
3552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003554if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003555 break
3556fi
3557
3558 done
3559 ac_cv_prog_CPP=$CPP
3560
3561fi
3562 CPP=$ac_cv_prog_CPP
3563else
3564 ac_cv_prog_CPP=$CPP
3565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003566{ echo "$as_me:$LINENO: result: $CPP" >&5
3567echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003568ac_preproc_ok=false
3569for ac_c_preproc_warn_flag in '' yes
3570do
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003577 cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h. */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582/* end confdefs.h. */
3583#ifdef __STDC__
3584# include <limits.h>
3585#else
3586# include <assert.h>
3587#endif
3588 Syntax error
3589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003590if { (ac_try="$ac_cpp conftest.$ac_ext"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3608 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003609else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003610 ac_cpp_err=yes
3611fi
3612if test -z "$ac_cpp_err"; then
3613 :
3614else
3615 echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Broken: fails on valid input.
3619continue
3620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622rm -f conftest.err conftest.$ac_ext
3623
Reid Spencera773bd52006-08-04 18:18:08 +00003624 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631/* end confdefs.h. */
3632#include <ac_nonexistent.h>
3633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003634if { (ac_try="$ac_cpp conftest.$ac_ext"
3635case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638esac
3639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3652 fi
3653else
3654 ac_cpp_err=yes
3655fi
3656if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003657 # Broken: success on invalid input.
3658continue
3659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003660 echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003663 # Passes both tests.
3664ac_preproc_ok=:
3665break
3666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003668rm -f conftest.err conftest.$ac_ext
3669
3670done
3671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003673if $ac_preproc_ok; then
3674 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677See \`config.log' for more details." >&5
3678echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003681fi
3682
John Criswell7a73b802003-06-30 21:59:07 +00003683ac_ext=c
3684ac_cpp='$CPP $CPPFLAGS'
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
John Criswell7a73b802003-06-30 21:59:07 +00003689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003690{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695 # Extract the first word of "grep ggrep" to use in msg output
3696if test -z "$GREP"; then
3697set dummy grep ggrep; ac_prog_name=$2
3698if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
Reid Spencera773bd52006-08-04 18:18:08 +00003701 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702# Loop through the user's path and test for each of PROGNAME-LIST
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003704for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003708 for ac_prog in grep ggrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003713 # Check for GNU $ac_path_GREP
3714case `"$ac_path_GREP" --version 2>&1` in
3715*GNU*)
3716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3717*)
3718 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003720 while :
3721 do
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003728 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP="$ac_path_GREP"
3732 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003733 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3736 done
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738esac
3739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003740
3741 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003742 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003743done
3744
3745done
Reid Spencera773bd52006-08-04 18:18:08 +00003746IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747
3748
3749fi
3750
3751GREP="$ac_cv_path_GREP"
3752if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3756fi
3757
Reid Spencera773bd52006-08-04 18:18:08 +00003758else
3759 ac_cv_path_GREP=$GREP
3760fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003762
Reid Spencera773bd52006-08-04 18:18:08 +00003763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003766 GREP="$ac_cv_path_GREP"
3767
3768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769{ echo "$as_me:$LINENO: checking for egrep" >&5
3770echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003773else
3774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 then ac_cv_path_EGREP="$GREP -E"
3776 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777 # Extract the first word of "egrep" to use in msg output
3778if test -z "$EGREP"; then
3779set dummy egrep; ac_prog_name=$2
3780if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
Reid Spencera773bd52006-08-04 18:18:08 +00003783 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784# Loop through the user's path and test for each of PROGNAME-LIST
3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003795 # Check for GNU $ac_path_EGREP
3796case `"$ac_path_EGREP" --version 2>&1` in
3797*GNU*)
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3799*)
3800 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003802 while :
3803 do
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003810 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3815 fi
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820esac
3821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003822
3823 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003824 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003825done
3826
3827done
Reid Spencera773bd52006-08-04 18:18:08 +00003828IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003829
3830
3831fi
3832
3833EGREP="$ac_cv_path_EGREP"
3834if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3838fi
3839
Reid Spencera773bd52006-08-04 18:18:08 +00003840else
3841 ac_cv_path_EGREP=$EGREP
3842fi
3843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003844
Reid Spencera773bd52006-08-04 18:18:08 +00003845 fi
3846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003847{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003849 EGREP="$ac_cv_path_EGREP"
3850
3851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003852{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003856else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003857 cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003863#include <stdlib.h>
3864#include <stdarg.h>
3865#include <string.h>
3866#include <float.h>
3867
John Criswell0c38eaf2003-09-10 15:17:25 +00003868int
3869main ()
3870{
3871
3872 ;
3873 return 0;
3874}
John Criswell7a73b802003-06-30 21:59:07 +00003875_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003876rm -f conftest.$ac_objext
3877if { (ac_try="$ac_compile"
3878case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881esac
3882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894esac
3895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003910 ac_cv_header_stdc=yes
3911else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912 echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003917
Reid Spencera773bd52006-08-04 18:18:08 +00003918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003919
3920if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003928#include <string.h>
3929
3930_ACEOF
3931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003932 $EGREP "memchr" >/dev/null 2>&1; then
3933 :
John Criswell7a73b802003-06-30 21:59:07 +00003934else
3935 ac_cv_header_stdc=no
3936fi
3937rm -f conftest*
3938
3939fi
3940
3941if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003949#include <stdlib.h>
3950
3951_ACEOF
3952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953 $EGREP "free" >/dev/null 2>&1; then
3954 :
John Criswell7a73b802003-06-30 21:59:07 +00003955else
3956 ac_cv_header_stdc=no
3957fi
3958rm -f conftest*
3959
3960fi
3961
3962if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003965 :
3966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967 cat >conftest.$ac_ext <<_ACEOF
3968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003972/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003973#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003974#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003975#if ((' ' & 0x0FF) == 0x020)
3976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003979# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984#endif
3985
3986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3987int
3988main ()
3989{
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003993 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003994 return 2;
3995 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003996}
3997_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003998rm -f conftest$ac_exeext
3999if { (ac_try="$ac_link"
4000case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003esac
4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012esac
4013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 :
John Criswell7a73b802003-06-30 21:59:07 +00004019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004020 echo "$as_me: program exited with status $ac_status" >&5
4021echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024( exit $ac_status )
4025ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027rm -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 +00004028fi
4029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004030
John Criswell7a73b802003-06-30 21:59:07 +00004031fi
4032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004035if test $ac_cv_header_stdc = yes; then
4036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037cat >>confdefs.h <<\_ACEOF
4038#define STDC_HEADERS 1
4039_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004040
4041fi
4042
Reid Spencera773bd52006-08-04 18:18:08 +00004043# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044
4045
4046
4047
4048
4049
4050
4051
4052
Reid Spencera773bd52006-08-04 18:18:08 +00004053for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004055do
4056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061else
4062 cat >conftest.$ac_ext <<_ACEOF
4063/* confdefs.h. */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h. */
4068$ac_includes_default
4069
4070#include <$ac_header>
4071_ACEOF
4072rm -f conftest.$ac_objext
4073if { (ac_try="$ac_compile"
4074case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4107else
4108 echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 eval "$as_ac_Header=no"
4112fi
4113
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115fi
4116ac_res=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118echo "${ECHO_T}$ac_res" >&6; }
4119if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004120 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004122_ACEOF
4123
4124fi
4125
4126done
4127
4128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004134 # See if sys/param.h defines the BYTE_ORDER macro.
4135cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004140/* end confdefs.h. */
4141#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004143
4144int
4145main ()
4146{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004147#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4148 bogus endian macros
4149#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004150
4151 ;
4152 return 0;
4153}
4154_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004155rm -f conftest.$ac_objext
4156if { (ac_try="$ac_compile"
4157case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004189 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004195/* end confdefs.h. */
4196#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004197#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004198
4199int
4200main ()
4201{
4202#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203 not big endian
4204#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004205
4206 ;
4207 return 0;
4208}
4209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004210rm -f conftest.$ac_objext
4211if { (ac_try="$ac_compile"
4212case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004244 ac_cv_c_bigendian=yes
4245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004246 echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004249 ac_cv_c_bigendian=no
4250fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253else
4254 echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 # It does not; compile a test program.
4258if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian=unknown
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004273int
4274main ()
4275{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004277 ;
4278 return 0;
4279}
4280_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004281rm -f conftest.$ac_objext
4282if { (ac_try="$ac_compile"
4283case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004316 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004317fi
4318if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4321 else
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4324 fi
4325fi
Reid Spencera773bd52006-08-04 18:18:08 +00004326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004330
Torok Edwin871384f2010-01-26 08:50:50 +00004331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004332
Reid Spencera773bd52006-08-04 18:18:08 +00004333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004335 cat >conftest.$ac_ext <<_ACEOF
4336/* confdefs.h. */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004340/* end confdefs.h. */
4341$ac_includes_default
4342int
4343main ()
4344{
4345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004346 /* Are we little or big endian? From Harbison&Steele. */
4347 union
4348 {
4349 long int l;
4350 char c[sizeof (long int)];
4351 } u;
4352 u.l = 1;
4353 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004354
4355 ;
4356 return 0;
4357}
4358_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004359rm -f conftest$ac_exeext
4360if { (ac_try="$ac_link"
4361case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364esac
4365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373esac
4374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004379 ac_cv_c_bigendian=no
4380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004381 echo "$as_me: program exited with status $ac_status" >&5
4382echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385( exit $ac_status )
4386ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004388rm -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 +00004389fi
4390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004391
Reid Spencera773bd52006-08-04 18:18:08 +00004392fi
4393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395fi
4396{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398case $ac_cv_c_bigendian in
4399 yes)
4400 ENDIAN=big
4401 ;;
4402 no)
4403 ENDIAN=little
4404 ;;
4405 *)
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408echo "$as_me: error: unknown endianness
4409presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4411esac
Reid Spencera773bd52006-08-04 18:18:08 +00004412
4413
4414if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4416
4417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004418{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004422else
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4425else
4426 ac_build_prefix=${build_alias}-
4427
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004434else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 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 +00004445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004447 break 2
4448 fi
4449done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450done
Reid Spencera773bd52006-08-04 18:18:08 +00004451IFS=$as_save_IFS
4452
4453fi
4454fi
4455BUILD_CC=$ac_cv_prog_BUILD_CC
4456if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004460 { echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004462fi
4463
4464
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004472else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475else
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 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 +00004483 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004485 break 2
4486 fi
4487done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488done
Reid Spencera773bd52006-08-04 18:18:08 +00004489IFS=$as_save_IFS
4490
4491fi
4492fi
4493BUILD_CC=$ac_cv_prog_BUILD_CC
4494if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004498 { echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004500fi
4501
4502
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004510else
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4513else
4514 ac_prog_rejected=no
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 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 +00004522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4524 continue
4525 fi
4526 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004528 break 2
4529 fi
4530done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004531done
Reid Spencera773bd52006-08-04 18:18:08 +00004532IFS=$as_save_IFS
4533
4534if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4537 shift
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4542 shift
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4544 fi
4545fi
4546fi
4547fi
4548BUILD_CC=$ac_cv_prog_BUILD_CC
4549if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 { echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004555fi
4556
4557
4558 fi
4559 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 rm -f conftest*
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4566 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004568 (eval $ac_build_link) 2>&5
4569 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004572 for file in conftest.*; do
4573 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004574 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004575 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576 esac
4577 done
4578 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004582 fi
4583 rm -f conftest*
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4585fi
4586fi
4587
4588BUILD_EXEEXT=""
4589test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004592ac_build_exeext=$BUILD_EXEEXT
4593
Jim Grosbach673612e2008-10-02 22:56:44 +00004594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004601else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 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 +00004612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004614 break 2
4615 fi
4616done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617done
Jim Grosbach673612e2008-10-02 22:56:44 +00004618IFS=$as_save_IFS
4619
4620fi
4621fi
4622BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004626else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004627 { echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004629fi
4630
4631
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004639else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642else
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 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 +00004650 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004652 break 2
4653 fi
4654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655done
Jim Grosbach673612e2008-10-02 22:56:44 +00004656IFS=$as_save_IFS
4657
4658fi
4659fi
4660BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004665 { echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004667fi
4668
4669
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004677else
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4680else
4681 ac_prog_rejected=no
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 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 +00004689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4691 continue
4692 fi
4693 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004695 break 2
4696 fi
4697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698done
Jim Grosbach673612e2008-10-02 22:56:44 +00004699IFS=$as_save_IFS
4700
4701if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4704 shift
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4709 shift
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4711 fi
4712fi
4713fi
4714fi
4715BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004720 { echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004722fi
4723
4724
4725 fi
4726 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004727else
4728 LLVM_CROSS_COMPILING=0
4729
4730fi
4731
Dan Gohman56fb5f92010-08-04 16:25:01 +00004732if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004733 cvsbuild="yes"
4734 optimize="no"
4735 CVSBUILD=CVSBUILD=1
4736
4737else
4738 cvsbuild="no"
4739 optimize="yes"
4740fi
4741
4742
4743# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004745 enableval=$enable_optimized;
4746else
4747 enableval=$optimize
4748fi
4749
4750if test ${enableval} = "no" ; then
4751 ENABLE_OPTIMIZED=
4752
4753else
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4755
4756fi
4757
David Greene2a5a12c2009-04-17 14:50:39 +00004758# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004760 enableval=$enable_profiling;
4761else
4762 enableval="no"
4763fi
4764
4765if test ${enableval} = "no" ; then
4766 ENABLE_PROFILING=
4767
4768else
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4770
4771fi
4772
Reid Spencera773bd52006-08-04 18:18:08 +00004773# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004774if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004775 enableval=$enable_assertions;
4776else
4777 enableval="yes"
4778fi
4779
4780if test ${enableval} = "yes" ; then
4781 DISABLE_ASSERTIONS=
4782
4783else
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4785
4786fi
4787
David Greenea696d242007-06-28 19:36:08 +00004788# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004790 enableval=$enable_expensive_checks;
4791else
4792 enableval="no"
4793fi
4794
4795if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4797
4798 EXPENSIVE_CHECKS=yes
4799
4800else
4801 ENABLE_EXPENSIVE_CHECKS=
4802
4803 EXPENSIVE_CHECKS=no
4804
4805fi
4806
Reid Spencer8b2e1412006-11-17 03:32:33 +00004807# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004809 enableval=$enable_debug_runtime;
4810else
4811 enableval=no
4812fi
4813
4814if test ${enableval} = "no" ; then
4815 DEBUG_RUNTIME=
4816
4817else
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4819
4820fi
4821
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004822# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004823if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004824 enableval=$enable_debug_symbols;
4825else
4826 enableval=no
4827fi
4828
4829if test ${enableval} = "no" ; then
4830 DEBUG_SYMBOLS=
4831
4832else
4833 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4834
4835fi
4836
Reid Spencera773bd52006-08-04 18:18:08 +00004837# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004839 enableval=$enable_jit;
4840else
4841 enableval=default
4842fi
4843
4844if test ${enableval} = "no"
4845then
4846 JIT=
4847
4848else
4849 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004850 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004851 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004852 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004853 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004854 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004855 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004858 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004860 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004861 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004862 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004863 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004864 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004865 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004866 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004867 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004868 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 Blackfin) TARGET_HAS_JIT=0
4871 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004872 MBlaze) TARGET_HAS_JIT=0
4873 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004874 PTX) TARGET_HAS_JIT=0
4875 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004876 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004877 ;;
4878 esac
4879fi
4880
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004881# Check whether --enable-docs was given.
4882if test "${enable_docs+set}" = set; then
4883 enableval=$enable_docs;
4884else
4885 enableval=default
4886fi
4887
4888case "$enableval" in
4889 yes) ENABLE_DOCS=1
4890 ;;
4891 no) ENABLE_DOCS=0
4892 ;;
4893 default) ENABLE_DOCS=1
4894 ;;
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4896echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898esac
4899
Reid Spencera773bd52006-08-04 18:18:08 +00004900# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004901if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004902 enableval=$enable_doxygen;
4903else
4904 enableval=default
4905fi
4906
4907case "$enableval" in
4908 yes) ENABLE_DOXYGEN=1
4909 ;;
4910 no) ENABLE_DOXYGEN=0
4911 ;;
4912 default) ENABLE_DOXYGEN=0
4913 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4915echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004917esac
4918
4919# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004920if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004921 enableval=$enable_threads;
4922else
Reid Spencer65c5d752006-11-05 17:08:18 +00004923 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004924fi
4925
4926case "$enableval" in
4927 yes) ENABLE_THREADS=1
4928 ;;
4929 no) ENABLE_THREADS=0
4930 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004931 default) ENABLE_THREADS=1
4932 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004933 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4934echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4935 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004936esac
4937
Owen Andersona8603702009-05-19 22:18:56 +00004938cat >>confdefs.h <<_ACEOF
4939#define ENABLE_THREADS $ENABLE_THREADS
4940_ACEOF
4941
4942
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004943# Check whether --enable-pthreads was given.
4944if test "${enable_pthreads+set}" = set; then
4945 enableval=$enable_pthreads;
4946else
4947 enableval=default
4948fi
4949
4950case "$enableval" in
4951 yes) ENABLE_PTHREADS=1
4952 ;;
4953 no) ENABLE_PTHREADS=0
4954 ;;
4955 default) ENABLE_PTHREADS=1
4956 ;;
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4958echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960esac
4961
Reid Spencer89b0d992006-12-16 22:07:52 +00004962# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004963if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004964 enableval=$enable_pic;
4965else
4966 enableval=default
4967fi
4968
4969case "$enableval" in
4970 yes) ENABLE_PIC=1
4971 ;;
4972 no) ENABLE_PIC=0
4973 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004974 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004975 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4977echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004979esac
4980
4981cat >>confdefs.h <<_ACEOF
4982#define ENABLE_PIC $ENABLE_PIC
4983_ACEOF
4984
4985
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004986# Check whether --enable-shared was given.
4987if test "${enable_shared+set}" = set; then
4988 enableval=$enable_shared;
4989else
4990 enableval=default
4991fi
4992
4993case "$enableval" in
4994 yes) ENABLE_SHARED=1
4995 ;;
4996 no) ENABLE_SHARED=0
4997 ;;
4998 default) ENABLE_SHARED=0
4999 ;;
5000 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5001echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5003esac
5004
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005005# Check whether --enable-embed-stdcxx was given.
5006if test "${enable_embed_stdcxx+set}" = set; then
5007 enableval=$enable_embed_stdcxx;
5008else
5009 enableval=default
5010fi
5011
5012case "$enableval" in
5013 yes) ENABLE_EMBED_STDCXX=1
5014 ;;
5015 no) ENABLE_EMBED_STDCXX=0
5016 ;;
5017 default) ENABLE_EMBED_STDCXX=1
5018 ;;
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5020echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5022esac
5023
Daniel Dunbardd464df2010-05-10 20:11:56 +00005024# Check whether --enable-timestamps was given.
5025if test "${enable_timestamps+set}" = set; then
5026 enableval=$enable_timestamps;
5027else
5028 enableval=default
5029fi
5030
5031case "$enableval" in
5032 yes) ENABLE_TIMESTAMPS=1
5033 ;;
5034 no) ENABLE_TIMESTAMPS=0
5035 ;;
5036 default) ENABLE_TIMESTAMPS=1
5037 ;;
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5039echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5041esac
5042
5043cat >>confdefs.h <<_ACEOF
5044#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5045_ACEOF
5046
5047
Reid Spencera773bd52006-08-04 18:18:08 +00005048TARGETS_TO_BUILD=""
5049# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005050if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005051 enableval=$enable_targets;
5052else
5053 enableval=all
5054fi
5055
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005056if test "$enableval" = host-only ; then
5057 enableval=host
5058fi
Reid Spencera773bd52006-08-04 18:18:08 +00005059case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005060 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 +00005061 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5062 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005063 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005071 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5072 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5073 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5074 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5075 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005076 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005077 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005078 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005079 host) case "$llvm_cv_target_arch" in
5080 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5081 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5082 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5083 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5084 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5085 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5086 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005087 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005088 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005089 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5090 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005091 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005092 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005093 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005094 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5095echo "$as_me: error: Can not set target to build" >&2;}
5096 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005097 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005098 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5099echo "$as_me: error: Unrecognized target $a_target" >&2;}
5100 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005101 esac
5102 done
5103 ;;
5104esac
Reid Spencera773bd52006-08-04 18:18:08 +00005105TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5106
5107
Douglas Gregor0711c302009-06-17 00:43:20 +00005108# Determine whether we are building LLVM support for the native architecture.
5109# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5110for a_target in $TARGETS_TO_BUILD; do
5111 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5112
5113cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005114#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5115_ACEOF
5116
5117 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5118 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5119 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5120
5121cat >>confdefs.h <<_ACEOF
5122#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005123_ACEOF
5124
5125
5126cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005127#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5128_ACEOF
5129
5130
5131cat >>confdefs.h <<_ACEOF
5132#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005133_ACEOF
5134
5135 fi
5136done
5137
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005138# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5139# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005140LLVM_ENUM_TARGETS=""
5141LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005142LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005143LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005144for target_to_build in $TARGETS_TO_BUILD; do
5145 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005146 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005147 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5148 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005149 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5150 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5151 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005152 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5153 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5154 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005155done
5156
5157
5158
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005159
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005160
Reid Spencer65c5d752006-11-05 17:08:18 +00005161# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005162if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005163 enableval=$enable_cbe_printf_a;
5164else
5165 enableval=default
5166fi
5167
5168case "$enableval" in
5169 yes) ENABLE_CBE_PRINTF_A=1
5170 ;;
5171 no) ENABLE_CBE_PRINTF_A=0
5172 ;;
5173 default) ENABLE_CBE_PRINTF_A=1
5174 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005178esac
5179
5180cat >>confdefs.h <<_ACEOF
5181#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5182_ACEOF
5183
5184
Reid Spencera773bd52006-08-04 18:18:08 +00005185
5186# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005187if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005188 withval=$with_llvmgccdir;
5189else
5190 withval=default
5191fi
5192
5193case "$withval" in
5194 default) WITH_LLVMGCCDIR=default ;;
5195 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005196 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5197echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5198 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005199esac
5200
5201
Devang Patel5d28b882007-12-04 22:54:47 +00005202# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005203if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005204 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5205 WITH_LLVMGCCDIR=""
5206fi
5207
5208
5209
5210# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005212 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5213 WITH_LLVMGCCDIR=""
5214fi
5215
Douglas Gregor01746742009-05-11 18:05:52 +00005216
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005217if test -n "$LLVMGCC"; then
5218 LLVMGCCCOMMAND="$LLVMGCC"
5219fi
5220
5221if test -n "$LLVMGXX"; then
5222 LLVMGXXCOMMAND="$LLVMGXX"
5223fi
Devang Patel5d28b882007-12-04 22:54:47 +00005224
5225if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005226 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5227echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5228 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005229fi
5230
5231if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005232 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5233echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5234 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005235fi
5236
5237
Daniel Dunbar98515672010-02-23 10:00:49 +00005238# Check whether --with-clang was given.
5239if test "${with_clang+set}" = set; then
5240 withval=$with_clang;
5241else
5242 with_clang=default
5243fi
5244
5245
5246
5247# Check whether --with-built-clang was given.
5248if test "${with_built_clang+set}" = set; then
5249 withval=$with_built_clang;
5250else
5251 with_built_clang=check
5252fi
5253
5254
5255{ echo "$as_me:$LINENO: checking clang compiler" >&5
5256echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5257WITH_CLANGPATH=""
5258WITH_BUILT_CLANG=0
5259if test "$with_clang" != "default"; then
5260 WITH_CLANGPATH="$with_clang"
5261 if ! test -x "$WITH_CLANGPATH"; then
5262 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5263echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5264 { (exit 1); exit 1; }; }
5265 fi
5266elif test "$with_built_clang" = "yes"; then
5267 WITH_BUILT_CLANG=1
5268elif test "$with_built_clang" = "no"; then
5269 WITH_BUILT_CLANG=0
5270else
5271 if test "$with_built_clang" != "check"; then
5272 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5273echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5274 { (exit 1); exit 1; }; }
5275 fi
5276
5277 if test -f ${srcdir}/tools/clang/README.txt; then
5278 WITH_BUILT_CLANG=1
5279 fi
5280fi
5281
5282if ! test -z "$WITH_CLANGPATH"; then
5283 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5284echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5285 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5286elif test "$WITH_BUILT_CLANG" = "1"; then
5287 { echo "$as_me:$LINENO: result: built" >&5
5288echo "${ECHO_T}built" >&6; }
5289else
5290 { echo "$as_me:$LINENO: result: none" >&5
5291echo "${ECHO_T}none" >&6; }
5292fi
5293CLANGPATH=$WITH_CLANGPATH
5294
5295CLANGXXPATH=$WITH_CLANGXXPATH
5296
5297ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5298
5299
5300
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005301# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005302if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005303 withval=$with_optimize_option;
5304else
5305 withval=default
5306fi
5307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005308{ echo "$as_me:$LINENO: checking optimization flags" >&5
5309echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005310case "$withval" in
5311 default)
5312 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005313 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005314 MingW) optimize_option=-O2 ;;
5315 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005316 esac ;;
5317 *) optimize_option="$withval" ;;
5318esac
5319OPTIMIZE_OPTION=$optimize_option
5320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005321{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5322echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005323
5324
Reid Spencera773bd52006-08-04 18:18:08 +00005325# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005327 withval=$with_extra_options;
5328else
5329 withval=default
5330fi
5331
5332case "$withval" in
5333 default) EXTRA_OPTIONS= ;;
5334 *) EXTRA_OPTIONS=$withval ;;
5335esac
5336EXTRA_OPTIONS=$EXTRA_OPTIONS
5337
5338
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005339# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005340if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005341 enableval=$enable_bindings;
5342else
5343 enableval=default
5344fi
5345
5346BINDINGS_TO_BUILD=""
5347case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005348 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005349 all ) BINDINGS_TO_BUILD="ocaml" ;;
5350 none | no) BINDINGS_TO_BUILD="" ;;
5351 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5352 case "$a_binding" in
5353 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005354 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5355echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5356 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005357 esac
5358 done
5359 ;;
5360esac
5361
Reid Spencera773bd52006-08-04 18:18:08 +00005362
Gordon Henriksenf0915682007-10-02 16:42:22 +00005363# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005364if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005365 withval=$with_ocaml_libdir;
5366else
5367 withval=auto
5368fi
5369
5370case "$withval" in
5371 auto) with_ocaml_libdir="$withval" ;;
5372 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005373 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5374echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5375 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005376esac
5377
5378
Chandler Carruth6b241162010-10-19 08:21:25 +00005379# Check whether --with-clang-resource-dir was given.
5380if test "${with_clang_resource_dir+set}" = set; then
5381 withval=$with_clang_resource_dir;
5382else
5383 withval=""
5384fi
5385
5386
5387cat >>confdefs.h <<_ACEOF
5388#define CLANG_RESOURCE_DIR "$withval"
5389_ACEOF
5390
5391
5392
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005393# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005394if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005395 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005396else
5397 withval=""
5398fi
5399
5400
5401cat >>confdefs.h <<_ACEOF
5402#define C_INCLUDE_DIRS "$withval"
5403_ACEOF
5404
5405
5406
Rafael Espindola420d23c2009-11-16 19:46:55 +00005407# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005408if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005409 withval=$with_cxx_include_root;
5410else
5411 withval=""
5412fi
5413
5414
5415cat >>confdefs.h <<_ACEOF
5416#define CXX_INCLUDE_ROOT "$withval"
5417_ACEOF
5418
5419
5420
5421# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005422if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005423 withval=$with_cxx_include_arch;
5424else
5425 withval=""
5426fi
5427
5428
5429cat >>confdefs.h <<_ACEOF
5430#define CXX_INCLUDE_ARCH "$withval"
5431_ACEOF
5432
5433
5434
5435# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005437 withval=$with_cxx_include_32bit_dir;
5438else
5439 withval=""
5440fi
5441
5442
5443cat >>confdefs.h <<_ACEOF
5444#define CXX_INCLUDE_32BIT_DIR "$withval"
5445_ACEOF
5446
5447
5448
5449# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005450if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005451 withval=$with_cxx_include_64bit_dir;
5452else
5453 withval=""
5454fi
5455
5456
5457cat >>confdefs.h <<_ACEOF
5458#define CXX_INCLUDE_64BIT_DIR "$withval"
5459_ACEOF
5460
5461
5462
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005463# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005464if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005465 withval=$with_binutils_include;
5466else
5467 withval=default
5468fi
5469
5470case "$withval" in
5471 default) WITH_BINUTILS_INCDIR=default ;;
5472 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005473 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5474echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5475 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005476esac
5477if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5478 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5479
5480 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5481 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005482 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5483echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5484 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005485 fi
5486fi
5487
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005488# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005489if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005490 enableval=$enable_libffi; case "$enableval" in
5491 yes) llvm_cv_enable_libffi="yes" ;;
5492 no) llvm_cv_enable_libffi="no" ;;
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005496 esac
5497else
5498 llvm_cv_enable_libffi=no
5499fi
5500
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005501
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005502
Reid Spencera773bd52006-08-04 18:18:08 +00005503ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005508{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5509echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005510# On Suns, sometimes $CPP names a directory.
5511if test -n "$CPP" && test -d "$CPP"; then
5512 CPP=
5513fi
5514if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515 if test "${ac_cv_prog_CPP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005517else
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5520 do
5521 ac_preproc_ok=false
5522for ac_c_preproc_warn_flag in '' yes
5523do
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005530 cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h. */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005535/* end confdefs.h. */
5536#ifdef __STDC__
5537# include <limits.h>
5538#else
5539# include <assert.h>
5540#endif
5541 Syntax error
5542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005543if { (ac_try="$ac_cpp conftest.$ac_ext"
5544case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547esac
5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev/null; then
5556 if test -s conftest.err; then
5557 ac_cpp_err=$ac_c_preproc_warn_flag
5558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559 else
5560 ac_cpp_err=
5561 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563 ac_cpp_err=yes
5564fi
5565if test -z "$ac_cpp_err"; then
5566 :
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
Reid Spencera773bd52006-08-04 18:18:08 +00005571 # Broken: fails on valid input.
5572continue
5573fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005574
Reid Spencera773bd52006-08-04 18:18:08 +00005575rm -f conftest.err conftest.$ac_ext
5576
5577 # OK, works on sane cases. Now check whether nonexistent headers
5578 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579 cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005584/* end confdefs.h. */
5585#include <ac_nonexistent.h>
5586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587if { (ac_try="$ac_cpp conftest.$ac_ext"
5588case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null; then
5600 if test -s conftest.err; then
5601 ac_cpp_err=$ac_c_preproc_warn_flag
5602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5603 else
5604 ac_cpp_err=
5605 fi
5606else
5607 ac_cpp_err=yes
5608fi
5609if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005610 # Broken: success on invalid input.
5611continue
5612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005613 echo "$as_me: failed program was:" >&5
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
Reid Spencera773bd52006-08-04 18:18:08 +00005616 # Passes both tests.
5617ac_preproc_ok=:
5618break
5619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620
Reid Spencera773bd52006-08-04 18:18:08 +00005621rm -f conftest.err conftest.$ac_ext
5622
5623done
5624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005626if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005627 break
5628fi
5629
5630 done
5631 ac_cv_prog_CPP=$CPP
5632
5633fi
5634 CPP=$ac_cv_prog_CPP
5635else
5636 ac_cv_prog_CPP=$CPP
5637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005638{ echo "$as_me:$LINENO: result: $CPP" >&5
5639echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005640ac_preproc_ok=false
5641for ac_c_preproc_warn_flag in '' yes
5642do
5643 # Use a header file that comes with gcc, so configuring glibc
5644 # with a fresh cross-compiler works.
5645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5646 # <limits.h> exists even on freestanding compilers.
5647 # On the NeXT, cc -E runs the code through the compiler's parser,
5648 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005649 cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005654/* end confdefs.h. */
5655#ifdef __STDC__
5656# include <limits.h>
5657#else
5658# include <assert.h>
5659#endif
5660 Syntax error
5661_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005662if { (ac_try="$ac_cpp conftest.$ac_ext"
5663case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_c_preproc_warn_flag
5677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5678 else
5679 ac_cpp_err=
5680 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005682 ac_cpp_err=yes
5683fi
5684if test -z "$ac_cpp_err"; then
5685 :
5686else
5687 echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
5689
Reid Spencera773bd52006-08-04 18:18:08 +00005690 # Broken: fails on valid input.
5691continue
5692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005693
Reid Spencera773bd52006-08-04 18:18:08 +00005694rm -f conftest.err conftest.$ac_ext
5695
5696 # OK, works on sane cases. Now check whether nonexistent headers
5697 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005698 cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005703/* end confdefs.h. */
5704#include <ac_nonexistent.h>
5705_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005706if { (ac_try="$ac_cpp conftest.$ac_ext"
5707case "(($ac_try" in
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5710esac
5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } >/dev/null; then
5719 if test -s conftest.err; then
5720 ac_cpp_err=$ac_c_preproc_warn_flag
5721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5722 else
5723 ac_cpp_err=
5724 fi
5725else
5726 ac_cpp_err=yes
5727fi
5728if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005729 # Broken: success on invalid input.
5730continue
5731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732 echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
Reid Spencera773bd52006-08-04 18:18:08 +00005735 # Passes both tests.
5736ac_preproc_ok=:
5737break
5738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005739
Reid Spencera773bd52006-08-04 18:18:08 +00005740rm -f conftest.err conftest.$ac_ext
5741
5742done
5743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745if $ac_preproc_ok; then
5746 :
Reid Spencera773bd52006-08-04 18:18:08 +00005747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5749See \`config.log' for more details." >&5
5750echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5751See \`config.log' for more details." >&2;}
5752 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005753fi
5754
5755ac_ext=c
5756ac_cpp='$CPP $CPPFLAGS'
5757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759ac_compiler_gnu=$ac_cv_c_compiler_gnu
5760
5761ac_ext=c
5762ac_cpp='$CPP $CPPFLAGS'
5763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766if test -n "$ac_tool_prefix"; then
5767 for ac_prog in gcc
5768 do
5769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5773if test "${ac_cv_prog_CC+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005775else
5776 if test -n "$CC"; then
5777 ac_cv_prog_CC="$CC" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 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 +00005786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005788 break 2
5789 fi
5790done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005791done
Reid Spencera773bd52006-08-04 18:18:08 +00005792IFS=$as_save_IFS
5793
5794fi
5795fi
5796CC=$ac_cv_prog_CC
5797if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005798 { echo "$as_me:$LINENO: result: $CC" >&5
5799echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005801 { echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005803fi
5804
5805
5806 test -n "$CC" && break
5807 done
5808fi
5809if test -z "$CC"; then
5810 ac_ct_CC=$CC
5811 for ac_prog in gcc
5812do
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005819else
5820 if test -n "$ac_ct_CC"; then
5821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 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 +00005830 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005832 break 2
5833 fi
5834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835done
Reid Spencera773bd52006-08-04 18:18:08 +00005836IFS=$as_save_IFS
5837
5838fi
5839fi
5840ac_ct_CC=$ac_cv_prog_ac_ct_CC
5841if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5843echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845 { echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005847fi
5848
5849
5850 test -n "$ac_ct_CC" && break
5851done
5852
5853 if test "x$ac_ct_CC" = x; then
5854 CC=""
5855 else
5856 case $cross_compiling:$ac_tool_warned in
5857yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5859whose name does not start with the host triplet. If you think this
5860configuration is useful to you, please write to autoconf@gnu.org." >&5
5861echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5862whose name does not start with the host triplet. If you think this
5863configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005864ac_tool_warned=yes ;;
5865esac
5866 CC=$ac_ct_CC
5867 fi
5868fi
5869
5870
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5872See \`config.log' for more details." >&5
5873echo "$as_me: error: no acceptable C compiler found in \$PATH
5874See \`config.log' for more details." >&2;}
5875 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005876
5877# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878echo "$as_me:$LINENO: checking for C compiler version" >&5
5879ac_compiler=`set X $ac_compile; echo $2`
5880{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005881case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005887 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }
5890{ (ac_try="$ac_compiler -v >&5"
5891case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compiler -v >&5") 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }
5900{ (ac_try="$ac_compiler -V >&5"
5901case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904esac
5905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compiler -V >&5") 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005911{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5912echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5913if test "${ac_cv_c_compiler_gnu+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916 cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005921/* end confdefs.h. */
5922
5923int
5924main ()
5925{
5926#ifndef __GNUC__
5927 choke me
5928#endif
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005968 ac_compiler_gnu=yes
5969else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970 echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005974fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005975
Reid Spencera773bd52006-08-04 18:18:08 +00005976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977ac_cv_c_compiler_gnu=$ac_compiler_gnu
5978
5979fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5981echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5982GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005983ac_test_CFLAGS=${CFLAGS+set}
5984ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5986echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5987if test "${ac_cv_prog_cc_g+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005989else
5990 ac_save_c_werror_flag=$ac_c_werror_flag
5991 ac_c_werror_flag=yes
5992 ac_cv_prog_cc_g=no
5993 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005999/* end confdefs.h. */
6000
6001int
6002main ()
6003{
6004
6005 ;
6006 return 0;
6007}
6008_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009rm -f conftest.$ac_objext
6010if { (ac_try="$ac_compile"
6011case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027esac
6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006043 ac_cv_prog_cc_g=yes
6044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048 CFLAGS=""
6049 cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006054/* end confdefs.h. */
6055
6056int
6057main ()
6058{
6059
6060 ;
6061 return 0;
6062}
6063_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064rm -f conftest.$ac_objext
6065if { (ac_try="$ac_compile"
6066case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069esac
6070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6079 { (case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_try") 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092esac
6093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_try") 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 :
Torok Edwin871384f2010-01-26 08:50:50 +00006099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100 echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006104 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h. */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006110/* end confdefs.h. */
6111
6112int
6113main ()
6114{
6115
6116 ;
6117 return 0;
6118}
6119_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120rm -f conftest.$ac_objext
6121if { (ac_try="$ac_compile"
6122case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125esac
6126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_compile") 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6135 { (case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_try") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest.$ac_objext'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006154 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006155else
6156 echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
6159
Reid Spencera773bd52006-08-04 18:18:08 +00006160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161
Reid Spencera773bd52006-08-04 18:18:08 +00006162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164
Reid Spencera773bd52006-08-04 18:18:08 +00006165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006167
Reid Spencera773bd52006-08-04 18:18:08 +00006168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 ac_c_werror_flag=$ac_save_c_werror_flag
6170fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6172echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006173if test "$ac_test_CFLAGS" = set; then
6174 CFLAGS=$ac_save_CFLAGS
6175elif test $ac_cv_prog_cc_g = yes; then
6176 if test "$GCC" = yes; then
6177 CFLAGS="-g -O2"
6178 else
6179 CFLAGS="-g"
6180 fi
6181else
6182 if test "$GCC" = yes; then
6183 CFLAGS="-O2"
6184 else
6185 CFLAGS=
6186 fi
6187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6189echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6190if test "${ac_cv_prog_cc_c89+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006192else
6193 ac_cv_prog_cc_c89=no
6194ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h. */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006200/* end confdefs.h. */
6201#include <stdarg.h>
6202#include <stdio.h>
6203#include <sys/types.h>
6204#include <sys/stat.h>
6205/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6206struct buf { int x; };
6207FILE * (*rcsopen) (struct buf *, struct stat *, int);
6208static char *e (p, i)
6209 char **p;
6210 int i;
6211{
6212 return p[i];
6213}
6214static char *f (char * (*g) (char **, int), char **p, ...)
6215{
6216 char *s;
6217 va_list v;
6218 va_start (v,p);
6219 s = g (p, va_arg (v,int));
6220 va_end (v);
6221 return s;
6222}
6223
6224/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6225 function prototypes and stuff, but not '\xHH' hex character constants.
6226 These don't provoke an error unfortunately, instead are silently treated
6227 as 'x'. The following induces an error, until -std is added to get
6228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6229 array size at least. It's necessary to write '\x00'==0 to get something
6230 that's true only with -std. */
6231int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6232
6233/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6234 inside strings and character constants. */
6235#define FOO(x) 'x'
6236int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6237
6238int test (int i, double x);
6239struct s1 {int (*f) (int a);};
6240struct s2 {int (*f) (double a);};
6241int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6242int argc;
6243char **argv;
6244int
6245main ()
6246{
6247return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6248 ;
6249 return 0;
6250}
6251_ACEOF
6252for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6254do
6255 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006256 rm -f conftest.$ac_objext
6257if { (ac_try="$ac_compile"
6258case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6271 { (case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_try") 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284esac
6285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_try") 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006290 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291else
6292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295
Reid Spencera773bd52006-08-04 18:18:08 +00006296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297
Reid Spencera773bd52006-08-04 18:18:08 +00006298rm -f core conftest.err conftest.$ac_objext
6299 test "x$ac_cv_prog_cc_c89" != "xno" && break
6300done
6301rm -f conftest.$ac_ext
6302CC=$ac_save_CC
6303
6304fi
6305# AC_CACHE_VAL
6306case "x$ac_cv_prog_cc_c89" in
6307 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308 { echo "$as_me:$LINENO: result: none needed" >&5
6309echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006310 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006311 { echo "$as_me:$LINENO: result: unsupported" >&5
6312echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006313 *)
6314 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6316echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006317esac
6318
6319
6320ac_ext=c
6321ac_cpp='$CPP $CPPFLAGS'
6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
6326ac_ext=cpp
6327ac_cpp='$CXXCPP $CPPFLAGS'
6328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6331if test -z "$CXX"; then
6332 if test -n "$CCC"; then
6333 CXX=$CCC
6334 else
6335 if test -n "$ac_tool_prefix"; then
6336 for ac_prog in g++
6337 do
6338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342if test "${ac_cv_prog_CXX+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006344else
6345 if test -n "$CXX"; then
6346 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 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 +00006355 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006357 break 2
6358 fi
6359done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360done
Reid Spencera773bd52006-08-04 18:18:08 +00006361IFS=$as_save_IFS
6362
6363fi
6364fi
6365CXX=$ac_cv_prog_CXX
6366if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367 { echo "$as_me:$LINENO: result: $CXX" >&5
6368echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370 { echo "$as_me:$LINENO: result: no" >&5
6371echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006372fi
6373
6374
6375 test -n "$CXX" && break
6376 done
6377fi
6378if test -z "$CXX"; then
6379 ac_ct_CXX=$CXX
6380 for ac_prog in g++
6381do
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006388else
6389 if test -n "$ac_ct_CXX"; then
6390 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 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 +00006399 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006401 break 2
6402 fi
6403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404done
Reid Spencera773bd52006-08-04 18:18:08 +00006405IFS=$as_save_IFS
6406
6407fi
6408fi
6409ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6410if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6412echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414 { echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006416fi
6417
6418
6419 test -n "$ac_ct_CXX" && break
6420done
6421
6422 if test "x$ac_ct_CXX" = x; then
6423 CXX="g++"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6428whose name does not start with the host triplet. If you think this
6429configuration is useful to you, please write to autoconf@gnu.org." >&5
6430echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6431whose name does not start with the host triplet. If you think this
6432configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006433ac_tool_warned=yes ;;
6434esac
6435 CXX=$ac_ct_CXX
6436 fi
6437fi
6438
6439 fi
6440fi
6441# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006442echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6443ac_compiler=`set X $ac_compile; echo $2`
6444{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006445case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006451 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }
6454{ (ac_try="$ac_compiler -v >&5"
6455case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler -v >&5") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464{ (ac_try="$ac_compiler -V >&5"
6465case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468esac
6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler -V >&5") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006475{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6476echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6477if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006479else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480 cat >conftest.$ac_ext <<_ACEOF
6481/* confdefs.h. */
6482_ACEOF
6483cat confdefs.h >>conftest.$ac_ext
6484cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006485/* end confdefs.h. */
6486
6487int
6488main ()
6489{
6490#ifndef __GNUC__
6491 choke me
6492#endif
6493
6494 ;
6495 return 0;
6496}
6497_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006498rm -f conftest.$ac_objext
6499if { (ac_try="$ac_compile"
6500case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6513 { (case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516esac
6517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_try") 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006532 ac_compiler_gnu=yes
6533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534 echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539
Reid Spencera773bd52006-08-04 18:18:08 +00006540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6542
6543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6545echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6546GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006547ac_test_CXXFLAGS=${CXXFLAGS+set}
6548ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6550echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6551if test "${ac_cv_prog_cxx_g+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006553else
6554 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6555 ac_cxx_werror_flag=yes
6556 ac_cv_prog_cxx_g=no
6557 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006563/* end confdefs.h. */
6564
6565int
6566main ()
6567{
6568
6569 ;
6570 return 0;
6571}
6572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006573rm -f conftest.$ac_objext
6574if { (ac_try="$ac_compile"
6575case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591esac
6592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006607 ac_cv_prog_cxx_g=yes
6608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612 CXXFLAGS=""
6613 cat >conftest.$ac_ext <<_ACEOF
6614/* confdefs.h. */
6615_ACEOF
6616cat confdefs.h >>conftest.$ac_ext
6617cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006618/* end confdefs.h. */
6619
6620int
6621main ()
6622{
6623
6624 ;
6625 return 0;
6626}
6627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006628rm -f conftest.$ac_objext
6629if { (ac_try="$ac_compile"
6630case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633esac
6634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6643 { (case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646esac
6647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_try") 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656esac
6657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 :
Torok Edwin871384f2010-01-26 08:50:50 +00006663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664 echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006668 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006669 cat >conftest.$ac_ext <<_ACEOF
6670/* confdefs.h. */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006674/* end confdefs.h. */
6675
6676int
6677main ()
6678{
6679
6680 ;
6681 return 0;
6682}
6683_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684rm -f conftest.$ac_objext
6685if { (ac_try="$ac_compile"
6686case "(($ac_try" in
6687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6689esac
6690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6699 { (case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702esac
6703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_try") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; } &&
6708 { ac_try='test -s conftest.$ac_objext'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_try") 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006718 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719else
6720 echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723
Reid Spencera773bd52006-08-04 18:18:08 +00006724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725
Reid Spencera773bd52006-08-04 18:18:08 +00006726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728
Reid Spencera773bd52006-08-04 18:18:08 +00006729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731
Reid Spencera773bd52006-08-04 18:18:08 +00006732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6736echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006737if test "$ac_test_CXXFLAGS" = set; then
6738 CXXFLAGS=$ac_save_CXXFLAGS
6739elif test $ac_cv_prog_cxx_g = yes; then
6740 if test "$GXX" = yes; then
6741 CXXFLAGS="-g -O2"
6742 else
6743 CXXFLAGS="-g"
6744 fi
6745else
6746 if test "$GXX" = yes; then
6747 CXXFLAGS="-O2"
6748 else
6749 CXXFLAGS=
6750 fi
6751fi
6752ac_ext=c
6753ac_cpp='$CPP $CPPFLAGS'
6754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756ac_compiler_gnu=$ac_cv_c_compiler_gnu
6757
Reid Spencera773bd52006-08-04 18:18:08 +00006758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6760echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6761if test "${lt_cv_path_NM+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006763else
6764 if test -n "$NM"; then
6765 # Let the user override the test.
6766 lt_cv_path_NM="$NM"
6767else
6768 lt_nm_to_check="${ac_tool_prefix}nm"
6769 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6770 lt_nm_to_check="$lt_nm_to_check nm"
6771 fi
6772 for lt_tmp_nm in $lt_nm_to_check; do
6773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6774 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6775 IFS="$lt_save_ifs"
6776 test -z "$ac_dir" && ac_dir=.
6777 tmp_nm="$ac_dir/$lt_tmp_nm"
6778 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6779 # Check to see if the nm accepts a BSD-compat flag.
6780 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6781 # nm: unknown option "B" ignored
6782 # Tru64's nm complains that /dev/null is an invalid object file
6783 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6784 */dev/null* | *'Invalid file or object type'*)
6785 lt_cv_path_NM="$tmp_nm -B"
6786 break
6787 ;;
6788 *)
6789 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6790 */dev/null*)
6791 lt_cv_path_NM="$tmp_nm -p"
6792 break
6793 ;;
6794 *)
6795 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6796 continue # so that we can try to find one that supports BSD flags
6797 ;;
6798 esac
6799 ;;
6800 esac
6801 fi
6802 done
6803 IFS="$lt_save_ifs"
6804 done
6805 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6806fi
6807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6809echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006810NM="$lt_cv_path_NM"
6811
6812
6813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814{ echo "$as_me:$LINENO: checking for GNU make" >&5
6815echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6816if test "${llvm_cv_gnu_make_command+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006818else
6819 llvm_cv_gnu_make_command=''
6820 for a in "$MAKE" make gmake gnumake ; do
6821 if test -z "$a" ; then continue ; fi ;
6822 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6823 then
6824 llvm_cv_gnu_make_command=$a ;
6825 break;
6826 fi
6827 done
6828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6830echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006831 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6832 ifGNUmake='' ;
6833 else
6834 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6836echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006837 fi
6838
6839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6841echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006842LN_S=$as_ln_s
6843if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 { echo "$as_me:$LINENO: result: yes" >&5
6845echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006846else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6848echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006849fi
6850
6851# Extract the first word of "cmp", so it can be a program name with args.
6852set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855if test "${ac_cv_path_CMP+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006857else
6858 case $CMP in
6859 [\\/]* | ?:[\\/]*)
6860 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6861 ;;
6862 *)
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 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 +00006870 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006872 break 2
6873 fi
6874done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875done
Reid Spencera773bd52006-08-04 18:18:08 +00006876IFS=$as_save_IFS
6877
6878 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6879 ;;
6880esac
6881fi
6882CMP=$ac_cv_path_CMP
6883if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884 { echo "$as_me:$LINENO: result: $CMP" >&5
6885echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006886else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887 { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006889fi
6890
6891
6892# Extract the first word of "cp", so it can be a program name with args.
6893set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896if test "${ac_cv_path_CP+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006898else
6899 case $CP in
6900 [\\/]* | ?:[\\/]*)
6901 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6902 ;;
6903 *)
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 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 +00006911 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006913 break 2
6914 fi
6915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916done
Reid Spencera773bd52006-08-04 18:18:08 +00006917IFS=$as_save_IFS
6918
6919 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6920 ;;
6921esac
6922fi
6923CP=$ac_cv_path_CP
6924if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 { echo "$as_me:$LINENO: result: $CP" >&5
6926echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 { echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006930fi
6931
6932
6933# Extract the first word of "date", so it can be a program name with args.
6934set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937if test "${ac_cv_path_DATE+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006939else
6940 case $DATE in
6941 [\\/]* | ?:[\\/]*)
6942 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6943 ;;
6944 *)
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006952 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006954 break 2
6955 fi
6956done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957done
Reid Spencera773bd52006-08-04 18:18:08 +00006958IFS=$as_save_IFS
6959
6960 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6961 ;;
6962esac
6963fi
6964DATE=$ac_cv_path_DATE
6965if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 { echo "$as_me:$LINENO: result: $DATE" >&5
6967echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 { echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006971fi
6972
6973
6974# Extract the first word of "find", so it can be a program name with args.
6975set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978if test "${ac_cv_path_FIND+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006980else
6981 case $FIND in
6982 [\\/]* | ?:[\\/]*)
6983 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6984 ;;
6985 *)
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 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 +00006993 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006995 break 2
6996 fi
6997done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998done
Reid Spencera773bd52006-08-04 18:18:08 +00006999IFS=$as_save_IFS
7000
7001 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7002 ;;
7003esac
7004fi
7005FIND=$ac_cv_path_FIND
7006if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 { echo "$as_me:$LINENO: result: $FIND" >&5
7008echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 { echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007012fi
7013
7014
7015# Extract the first word of "grep", so it can be a program name with args.
7016set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019if test "${ac_cv_path_GREP+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007021else
7022 case $GREP in
7023 [\\/]* | ?:[\\/]*)
7024 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7025 ;;
7026 *)
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 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 +00007034 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007036 break 2
7037 fi
7038done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039done
Reid Spencera773bd52006-08-04 18:18:08 +00007040IFS=$as_save_IFS
7041
7042 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7043 ;;
7044esac
7045fi
7046GREP=$ac_cv_path_GREP
7047if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007048 { echo "$as_me:$LINENO: result: $GREP" >&5
7049echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 { echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053fi
7054
7055
7056# Extract the first word of "mkdir", so it can be a program name with args.
7057set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060if test "${ac_cv_path_MKDIR+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007062else
7063 case $MKDIR in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 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 +00007075 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007077 break 2
7078 fi
7079done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080done
Reid Spencera773bd52006-08-04 18:18:08 +00007081IFS=$as_save_IFS
7082
7083 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7084 ;;
7085esac
7086fi
7087MKDIR=$ac_cv_path_MKDIR
7088if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7090echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 { echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007094fi
7095
7096
7097# Extract the first word of "mv", so it can be a program name with args.
7098set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_path_MV+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007103else
7104 case $MV in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110for as_dir in $PATH
7111do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 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 +00007116 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007118 break 2
7119 fi
7120done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121done
Reid Spencera773bd52006-08-04 18:18:08 +00007122IFS=$as_save_IFS
7123
7124 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7125 ;;
7126esac
7127fi
7128MV=$ac_cv_path_MV
7129if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 { echo "$as_me:$LINENO: result: $MV" >&5
7131echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133 { echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007135fi
7136
7137
7138if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7140set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143if test "${ac_cv_prog_RANLIB+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007145else
7146 if test -n "$RANLIB"; then
7147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7148else
7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 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 +00007156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007158 break 2
7159 fi
7160done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161done
Reid Spencera773bd52006-08-04 18:18:08 +00007162IFS=$as_save_IFS
7163
7164fi
7165fi
7166RANLIB=$ac_cv_prog_RANLIB
7167if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7169echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007171 { echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007173fi
7174
7175
7176fi
7177if test -z "$ac_cv_prog_RANLIB"; then
7178 ac_ct_RANLIB=$RANLIB
7179 # Extract the first word of "ranlib", so it can be a program name with args.
7180set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007185else
7186 if test -n "$ac_ct_RANLIB"; then
7187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 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 +00007196 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007198 break 2
7199 fi
7200done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201done
Reid Spencera773bd52006-08-04 18:18:08 +00007202IFS=$as_save_IFS
7203
7204fi
7205fi
7206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7207if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7209echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007213fi
7214
7215 if test "x$ac_ct_RANLIB" = x; then
7216 RANLIB=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7221whose name does not start with the host triplet. If you think this
7222configuration is useful to you, please write to autoconf@gnu.org." >&5
7223echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7224whose name does not start with the host triplet. If you think this
7225configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007226ac_tool_warned=yes ;;
7227esac
7228 RANLIB=$ac_ct_RANLIB
7229 fi
7230else
7231 RANLIB="$ac_cv_prog_RANLIB"
7232fi
7233
Torok Edwin871384f2010-01-26 08:50:50 +00007234if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7236set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239if test "${ac_cv_prog_AR+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007241else
7242 if test -n "$AR"; then
7243 ac_cv_prog_AR="$AR" # Let the user override the test.
7244else
7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 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 +00007252 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007254 break 2
7255 fi
7256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257done
Torok Edwin871384f2010-01-26 08:50:50 +00007258IFS=$as_save_IFS
7259
7260fi
7261fi
7262AR=$ac_cv_prog_AR
7263if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 { echo "$as_me:$LINENO: result: $AR" >&5
7265echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007267 { echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007269fi
7270
7271
7272fi
7273if test -z "$ac_cv_prog_AR"; then
7274 ac_ct_AR=$AR
7275 # Extract the first word of "ar", so it can be a program name with args.
7276set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007281else
7282 if test -n "$ac_ct_AR"; then
7283 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 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 +00007292 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007294 break 2
7295 fi
7296done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297done
Torok Edwin871384f2010-01-26 08:50:50 +00007298IFS=$as_save_IFS
7299
7300fi
7301fi
7302ac_ct_AR=$ac_cv_prog_ac_ct_AR
7303if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7305echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307 { echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007309fi
7310
7311 if test "x$ac_ct_AR" = x; then
7312 AR="false"
7313 else
7314 case $cross_compiling:$ac_tool_warned in
7315yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7317whose name does not start with the host triplet. If you think this
7318configuration is useful to you, please write to autoconf@gnu.org." >&5
7319echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7320whose name does not start with the host triplet. If you think this
7321configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007322ac_tool_warned=yes ;;
7323esac
7324 AR=$ac_ct_AR
7325 fi
7326else
7327 AR="$ac_cv_prog_AR"
7328fi
7329
Reid Spencera773bd52006-08-04 18:18:08 +00007330# Extract the first word of "rm", so it can be a program name with args.
7331set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7334if test "${ac_cv_path_RM+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007336else
7337 case $RM in
7338 [\\/]* | ?:[\\/]*)
7339 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7340 ;;
7341 *)
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 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 +00007349 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007351 break 2
7352 fi
7353done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354done
Reid Spencera773bd52006-08-04 18:18:08 +00007355IFS=$as_save_IFS
7356
7357 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7358 ;;
7359esac
7360fi
7361RM=$ac_cv_path_RM
7362if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363 { echo "$as_me:$LINENO: result: $RM" >&5
7364echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366 { echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007368fi
7369
7370
7371# Extract the first word of "sed", so it can be a program name with args.
7372set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375if test "${ac_cv_path_SED+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007377else
7378 case $SED in
7379 [\\/]* | ?:[\\/]*)
7380 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7381 ;;
7382 *)
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007390 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007392 break 2
7393 fi
7394done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395done
Reid Spencera773bd52006-08-04 18:18:08 +00007396IFS=$as_save_IFS
7397
7398 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7399 ;;
7400esac
7401fi
7402SED=$ac_cv_path_SED
7403if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: $SED" >&5
7405echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407 { echo "$as_me:$LINENO: result: no" >&5
7408echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007409fi
7410
7411
7412# Extract the first word of "tar", so it can be a program name with args.
7413set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_TAR+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007418else
7419 case $TAR in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7422 ;;
7423 *)
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007431 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007433 break 2
7434 fi
7435done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436done
Reid Spencera773bd52006-08-04 18:18:08 +00007437IFS=$as_save_IFS
7438
7439 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7440 ;;
7441esac
7442fi
7443TAR=$ac_cv_path_TAR
7444if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007445 { echo "$as_me:$LINENO: result: $TAR" >&5
7446echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007450fi
7451
7452
7453# Extract the first word of "pwd", so it can be a program name with args.
7454set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457if test "${ac_cv_path_BINPWD+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
7460 case $BINPWD in
7461 [\\/]* | ?:[\\/]*)
7462 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7463 ;;
7464 *)
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 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 +00007472 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007474 break 2
7475 fi
7476done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477done
Reid Spencera773bd52006-08-04 18:18:08 +00007478IFS=$as_save_IFS
7479
7480 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7481 ;;
7482esac
7483fi
7484BINPWD=$ac_cv_path_BINPWD
7485if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007486 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7487echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: no" >&5
7490echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007491fi
7492
7493
7494
7495# Extract the first word of "Graphviz", so it can be a program name with args.
7496set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007501else
7502 case $GRAPHVIZ in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7505 ;;
7506 *)
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 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 +00007514 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007516 break 2
7517 fi
7518done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007519done
Reid Spencera773bd52006-08-04 18:18:08 +00007520IFS=$as_save_IFS
7521
7522 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7523 ;;
7524esac
7525fi
7526GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7527if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007528 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7529echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531 { echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007533fi
7534
7535
7536if test "$GRAPHVIZ" != "echo Graphviz" ; then
7537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538cat >>confdefs.h <<\_ACEOF
7539#define HAVE_GRAPHVIZ 1
7540_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007541
Jeff Cohen28783c32007-01-12 18:22:38 +00007542 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007543 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7544 fi
7545
7546cat >>confdefs.h <<_ACEOF
7547#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7548_ACEOF
7549
7550fi
7551# Extract the first word of "dot", so it can be a program name with args.
7552set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555if test "${ac_cv_path_DOT+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007557else
7558 case $DOT in
7559 [\\/]* | ?:[\\/]*)
7560 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7561 ;;
7562 *)
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564for as_dir in $PATH
7565do
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 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 +00007570 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007572 break 2
7573 fi
7574done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007575done
Reid Spencera773bd52006-08-04 18:18:08 +00007576IFS=$as_save_IFS
7577
7578 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7579 ;;
7580esac
7581fi
7582DOT=$ac_cv_path_DOT
7583if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 { echo "$as_me:$LINENO: result: $DOT" >&5
7585echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587 { echo "$as_me:$LINENO: result: no" >&5
7588echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007589fi
7590
7591
7592if test "$DOT" != "echo dot" ; then
7593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594cat >>confdefs.h <<\_ACEOF
7595#define HAVE_DOT 1
7596_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007597
Jeff Cohen28783c32007-01-12 18:22:38 +00007598 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007599 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7600 fi
7601
7602cat >>confdefs.h <<_ACEOF
7603#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7604_ACEOF
7605
7606fi
David Greenef0b9eff2009-07-09 17:16:26 +00007607# Extract the first word of "fdp", so it can be a program name with args.
7608set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611if test "${ac_cv_path_FDP+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007613else
7614 case $FDP in
7615 [\\/]* | ?:[\\/]*)
7616 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7617 ;;
7618 *)
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 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 +00007626 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007628 break 2
7629 fi
7630done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631done
David Greenef0b9eff2009-07-09 17:16:26 +00007632IFS=$as_save_IFS
7633
7634 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7635 ;;
7636esac
7637fi
7638FDP=$ac_cv_path_FDP
7639if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640 { echo "$as_me:$LINENO: result: $FDP" >&5
7641echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643 { echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007645fi
7646
7647
7648if test "$FDP" != "echo fdp" ; then
7649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650cat >>confdefs.h <<\_ACEOF
7651#define HAVE_FDP 1
7652_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007653
7654 if test "$llvm_cv_os_type" = "MingW" ; then
7655 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7656 fi
7657
7658cat >>confdefs.h <<_ACEOF
7659#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7660_ACEOF
7661
7662fi
7663# Extract the first word of "neato", so it can be a program name with args.
7664set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667if test "${ac_cv_path_NEATO+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007669else
7670 case $NEATO in
7671 [\\/]* | ?:[\\/]*)
7672 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7673 ;;
7674 *)
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007682 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007684 break 2
7685 fi
7686done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007687done
David Greenef0b9eff2009-07-09 17:16:26 +00007688IFS=$as_save_IFS
7689
7690 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7691 ;;
7692esac
7693fi
7694NEATO=$ac_cv_path_NEATO
7695if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007696 { echo "$as_me:$LINENO: result: $NEATO" >&5
7697echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007698else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699 { echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007701fi
7702
7703
7704if test "$NEATO" != "echo neato" ; then
7705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706cat >>confdefs.h <<\_ACEOF
7707#define HAVE_NEATO 1
7708_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007709
7710 if test "$llvm_cv_os_type" = "MingW" ; then
7711 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7712 fi
7713
7714cat >>confdefs.h <<_ACEOF
7715#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7716_ACEOF
7717
7718fi
7719# Extract the first word of "twopi", so it can be a program name with args.
7720set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723if test "${ac_cv_path_TWOPI+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007725else
7726 case $TWOPI in
7727 [\\/]* | ?:[\\/]*)
7728 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7729 ;;
7730 *)
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 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 +00007738 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007740 break 2
7741 fi
7742done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743done
David Greenef0b9eff2009-07-09 17:16:26 +00007744IFS=$as_save_IFS
7745
7746 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7747 ;;
7748esac
7749fi
7750TWOPI=$ac_cv_path_TWOPI
7751if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7753echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 { echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007757fi
7758
7759
7760if test "$TWOPI" != "echo twopi" ; then
7761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007762cat >>confdefs.h <<\_ACEOF
7763#define HAVE_TWOPI 1
7764_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007765
7766 if test "$llvm_cv_os_type" = "MingW" ; then
7767 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7768 fi
7769
7770cat >>confdefs.h <<_ACEOF
7771#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7772_ACEOF
7773
7774fi
7775# Extract the first word of "circo", so it can be a program name with args.
7776set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7779if test "${ac_cv_path_CIRCO+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007781else
7782 case $CIRCO in
7783 [\\/]* | ?:[\\/]*)
7784 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7785 ;;
7786 *)
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 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 +00007794 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007796 break 2
7797 fi
7798done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007799done
David Greenef0b9eff2009-07-09 17:16:26 +00007800IFS=$as_save_IFS
7801
7802 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7803 ;;
7804esac
7805fi
7806CIRCO=$ac_cv_path_CIRCO
7807if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7809echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007811 { echo "$as_me:$LINENO: result: no" >&5
7812echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007813fi
7814
7815
7816if test "$CIRCO" != "echo circo" ; then
7817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818cat >>confdefs.h <<\_ACEOF
7819#define HAVE_CIRCO 1
7820_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007821
7822 if test "$llvm_cv_os_type" = "MingW" ; then
7823 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7824 fi
7825
7826cat >>confdefs.h <<_ACEOF
7827#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7828_ACEOF
7829
7830fi
Reid Spencera773bd52006-08-04 18:18:08 +00007831for ac_prog in gv gsview32
7832do
7833 # Extract the first word of "$ac_prog", so it can be a program name with args.
7834set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837if test "${ac_cv_path_GV+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007839else
7840 case $GV in
7841 [\\/]* | ?:[\\/]*)
7842 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7843 ;;
7844 *)
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 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 +00007852 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007854 break 2
7855 fi
7856done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007857done
Reid Spencera773bd52006-08-04 18:18:08 +00007858IFS=$as_save_IFS
7859
7860 ;;
7861esac
7862fi
7863GV=$ac_cv_path_GV
7864if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: result: $GV" >&5
7866echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 { echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007870fi
7871
7872
7873 test -n "$GV" && break
7874done
7875test -n "$GV" || GV="echo gv"
7876
7877if test "$GV" != "echo gv" ; then
7878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879cat >>confdefs.h <<\_ACEOF
7880#define HAVE_GV 1
7881_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007882
Jeff Cohen28783c32007-01-12 18:22:38 +00007883 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007884 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7885 fi
7886
7887cat >>confdefs.h <<_ACEOF
7888#define LLVM_PATH_GV "$GV${EXEEXT}"
7889_ACEOF
7890
7891fi
7892# Extract the first word of "dotty", so it can be a program name with args.
7893set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896if test "${ac_cv_path_DOTTY+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007898else
7899 case $DOTTY in
7900 [\\/]* | ?:[\\/]*)
7901 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7902 ;;
7903 *)
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905for as_dir in $PATH
7906do
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 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 +00007911 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007913 break 2
7914 fi
7915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916done
Reid Spencera773bd52006-08-04 18:18:08 +00007917IFS=$as_save_IFS
7918
7919 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7920 ;;
7921esac
7922fi
7923DOTTY=$ac_cv_path_DOTTY
7924if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7926echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007928 { echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007930fi
7931
7932
7933if test "$DOTTY" != "echo dotty" ; then
7934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935cat >>confdefs.h <<\_ACEOF
7936#define HAVE_DOTTY 1
7937_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007938
Jeff Cohen28783c32007-01-12 18:22:38 +00007939 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007940 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7941 fi
7942
7943cat >>confdefs.h <<_ACEOF
7944#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7945_ACEOF
7946
7947fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007948# Extract the first word of "xdot.py", so it can be a program name with args.
7949set dummy xdot.py; ac_word=$2
7950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952if test "${ac_cv_path_XDOT_PY+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955 case $XDOT_PY in
7956 [\\/]* | ?:[\\/]*)
7957 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7958 ;;
7959 *)
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973IFS=$as_save_IFS
7974
7975 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7976 ;;
7977esac
7978fi
7979XDOT_PY=$ac_cv_path_XDOT_PY
7980if test -n "$XDOT_PY"; then
7981 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7982echo "${ECHO_T}$XDOT_PY" >&6; }
7983else
7984 { echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6; }
7986fi
7987
7988
7989if test "$XDOT_PY" != "echo xdot.py" ; then
7990
7991cat >>confdefs.h <<\_ACEOF
7992#define HAVE_XDOT_PY 1
7993_ACEOF
7994
7995 if test "$llvm_cv_os_type" = "MingW" ; then
7996 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7997 fi
7998
7999cat >>confdefs.h <<_ACEOF
8000#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8001_ACEOF
8002
8003fi
Reid Spencera773bd52006-08-04 18:18:08 +00008004
8005
8006# Extract the first word of "perl", so it can be a program name with args.
8007set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010if test "${ac_cv_path_PERL+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008012else
8013 case $PERL in
8014 [\\/]* | ?:[\\/]*)
8015 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8016 ;;
8017 *)
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 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 +00008025 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008027 break 2
8028 fi
8029done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008030done
Reid Spencera773bd52006-08-04 18:18:08 +00008031IFS=$as_save_IFS
8032
8033 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8034 ;;
8035esac
8036fi
8037PERL=$ac_cv_path_PERL
8038if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008039 { echo "$as_me:$LINENO: result: $PERL" >&5
8040echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008041else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042 { echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008044fi
8045
8046
8047if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8049echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008050 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051 { echo "$as_me:$LINENO: result: yes" >&5
8052echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008053 else
8054 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055 { echo "$as_me:$LINENO: result: not found" >&5
8056echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008057 fi
8058fi
8059
8060
8061if test x"$PERL" = xnone; then
8062 HAVE_PERL=0
8063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8065echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8066 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008067else
8068 HAVE_PERL=1
8069
8070fi
8071
8072# Find a good install program. We prefer a C program (faster),
8073# so one script is as good as another. But avoid the broken or
8074# incompatible versions:
8075# SysV /etc/install, /usr/sbin/install
8076# SunOS /usr/etc/install
8077# IRIX /sbin/install
8078# AIX /bin/install
8079# AmigaOS /C/install, which installs bootblocks on floppy discs
8080# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8081# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8082# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8083# OS/2's system install, which has a completely different semantic
8084# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008085{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8086echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008087if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008088if test "${ac_cv_path_install+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008090else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 # Account for people who put trailing slashes in PATH elements.
8097case $as_dir/ in
8098 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008099 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008100 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008101 /usr/ucb/* ) ;;
8102 *)
8103 # OSF1 and SCO ODT 3.0 have their own names for install.
8104 # Don't use installbsd from OSF since it installs stuff as root
8105 # by default.
8106 for ac_prog in ginstall scoinst install; do
8107 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108 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 +00008109 if test $ac_prog = install &&
8110 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8111 # AIX install. It has an incompatible calling convention.
8112 :
8113 elif test $ac_prog = install &&
8114 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8115 # program-specific install script used by HP pwplus--don't use.
8116 :
8117 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8119 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008120 fi
8121 fi
8122 done
8123 done
8124 ;;
8125esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126done
Reid Spencera773bd52006-08-04 18:18:08 +00008127IFS=$as_save_IFS
8128
8129
8130fi
8131 if test "${ac_cv_path_install+set}" = set; then
8132 INSTALL=$ac_cv_path_install
8133 else
8134 # As a last resort, use the slow shell script. Don't cache a
8135 # value for INSTALL within a source directory, because that will
8136 # break other packages using the cache if that directory is
8137 # removed, or if the value is a relative name.
8138 INSTALL=$ac_install_sh
8139 fi
8140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8142echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008143
8144# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8145# It thinks the first close brace ends the variable substitution.
8146test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8147
8148test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8149
8150test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8151
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008152case "$INSTALL" in
8153 [\\/$]* | ?:[\\/]* ) ;;
8154 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8155esac
Reid Spencera773bd52006-08-04 18:18:08 +00008156
8157# Extract the first word of "bzip2", so it can be a program name with args.
8158set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161if test "${ac_cv_path_BZIP2+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008163else
8164 case $BZIP2 in
8165 [\\/]* | ?:[\\/]*)
8166 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8167 ;;
8168 *)
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 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 +00008176 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008178 break 2
8179 fi
8180done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181done
Reid Spencera773bd52006-08-04 18:18:08 +00008182IFS=$as_save_IFS
8183
Reid Spencera773bd52006-08-04 18:18:08 +00008184 ;;
8185esac
8186fi
8187BZIP2=$ac_cv_path_BZIP2
8188if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008189 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8190echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192 { echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008194fi
8195
8196
mike-m68cb3192010-05-06 23:45:43 +00008197# Extract the first word of "cat", so it can be a program name with args.
8198set dummy cat; ac_word=$2
8199{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8201if test "${ac_cv_path_CAT+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203else
8204 case $CAT in
8205 [\\/]* | ?:[\\/]*)
8206 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8207 ;;
8208 *)
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220done
8221done
8222IFS=$as_save_IFS
8223
8224 ;;
8225esac
8226fi
8227CAT=$ac_cv_path_CAT
8228if test -n "$CAT"; then
8229 { echo "$as_me:$LINENO: result: $CAT" >&5
8230echo "${ECHO_T}$CAT" >&6; }
8231else
8232 { echo "$as_me:$LINENO: result: no" >&5
8233echo "${ECHO_T}no" >&6; }
8234fi
8235
8236
Reid Spencera773bd52006-08-04 18:18:08 +00008237# Extract the first word of "doxygen", so it can be a program name with args.
8238set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8241if test "${ac_cv_path_DOXYGEN+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008243else
8244 case $DOXYGEN in
8245 [\\/]* | ?:[\\/]*)
8246 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8247 ;;
8248 *)
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 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 +00008256 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008258 break 2
8259 fi
8260done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261done
Reid Spencera773bd52006-08-04 18:18:08 +00008262IFS=$as_save_IFS
8263
Reid Spencera773bd52006-08-04 18:18:08 +00008264 ;;
8265esac
8266fi
8267DOXYGEN=$ac_cv_path_DOXYGEN
8268if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8270echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 { echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008274fi
8275
8276
Reid Spencera773bd52006-08-04 18:18:08 +00008277# Extract the first word of "groff", so it can be a program name with args.
8278set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8281if test "${ac_cv_path_GROFF+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008283else
8284 case $GROFF in
8285 [\\/]* | ?:[\\/]*)
8286 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8287 ;;
8288 *)
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 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 +00008296 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008298 break 2
8299 fi
8300done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008301done
Reid Spencera773bd52006-08-04 18:18:08 +00008302IFS=$as_save_IFS
8303
Reid Spencera773bd52006-08-04 18:18:08 +00008304 ;;
8305esac
8306fi
8307GROFF=$ac_cv_path_GROFF
8308if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008309 { echo "$as_me:$LINENO: result: $GROFF" >&5
8310echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 { echo "$as_me:$LINENO: result: no" >&5
8313echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008314fi
8315
8316
8317# Extract the first word of "gzip", so it can be a program name with args.
8318set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008321if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008323else
Eric Christopher031d3072010-12-10 01:31:51 +00008324 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008325 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008326 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008327 ;;
8328 *)
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 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 +00008336 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008338 break 2
8339 fi
8340done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341done
Reid Spencera773bd52006-08-04 18:18:08 +00008342IFS=$as_save_IFS
8343
Reid Spencera773bd52006-08-04 18:18:08 +00008344 ;;
8345esac
8346fi
Eric Christopher031d3072010-12-10 01:31:51 +00008347GZIPBIN=$ac_cv_path_GZIPBIN
8348if test -n "$GZIPBIN"; then
8349 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8350echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352 { echo "$as_me:$LINENO: result: no" >&5
8353echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008354fi
8355
8356
8357# Extract the first word of "pod2html", so it can be a program name with args.
8358set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361if test "${ac_cv_path_POD2HTML+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008363else
8364 case $POD2HTML in
8365 [\\/]* | ?:[\\/]*)
8366 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8367 ;;
8368 *)
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 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 +00008376 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008378 break 2
8379 fi
8380done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008381done
Reid Spencera773bd52006-08-04 18:18:08 +00008382IFS=$as_save_IFS
8383
Reid Spencera773bd52006-08-04 18:18:08 +00008384 ;;
8385esac
8386fi
8387POD2HTML=$ac_cv_path_POD2HTML
8388if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8390echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008392 { echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008394fi
8395
8396
8397# Extract the first word of "pod2man", so it can be a program name with args.
8398set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401if test "${ac_cv_path_POD2MAN+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008403else
8404 case $POD2MAN in
8405 [\\/]* | ?:[\\/]*)
8406 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8407 ;;
8408 *)
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410for as_dir in $PATH
8411do
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 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 +00008416 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008418 break 2
8419 fi
8420done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421done
Reid Spencera773bd52006-08-04 18:18:08 +00008422IFS=$as_save_IFS
8423
Reid Spencera773bd52006-08-04 18:18:08 +00008424 ;;
8425esac
8426fi
8427POD2MAN=$ac_cv_path_POD2MAN
8428if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8430echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008432 { echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008434fi
8435
8436
mike-m68cb3192010-05-06 23:45:43 +00008437# Extract the first word of "pdfroff", so it can be a program name with args.
8438set dummy pdfroff; ac_word=$2
8439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8441if test "${ac_cv_path_PDFROFF+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443else
8444 case $PDFROFF in
8445 [\\/]* | ?:[\\/]*)
8446 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8447 ;;
8448 *)
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8459 fi
8460done
8461done
8462IFS=$as_save_IFS
8463
8464 ;;
8465esac
8466fi
8467PDFROFF=$ac_cv_path_PDFROFF
8468if test -n "$PDFROFF"; then
8469 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8470echo "${ECHO_T}$PDFROFF" >&6; }
8471else
8472 { echo "$as_me:$LINENO: result: no" >&5
8473echo "${ECHO_T}no" >&6; }
8474fi
8475
8476
Reid Spencera773bd52006-08-04 18:18:08 +00008477# Extract the first word of "runtest", so it can be a program name with args.
8478set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8481if test "${ac_cv_path_RUNTEST+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008483else
8484 case $RUNTEST in
8485 [\\/]* | ?:[\\/]*)
8486 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8487 ;;
8488 *)
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490for as_dir in $PATH
8491do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 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 +00008496 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008498 break 2
8499 fi
8500done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008501done
Reid Spencera773bd52006-08-04 18:18:08 +00008502IFS=$as_save_IFS
8503
Reid Spencera773bd52006-08-04 18:18:08 +00008504 ;;
8505esac
8506fi
8507RUNTEST=$ac_cv_path_RUNTEST
8508if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8510echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008512 { echo "$as_me:$LINENO: result: no" >&5
8513echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008514fi
8515
8516
8517
8518no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008519{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8520echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008521
8522# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008523if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008524 withval=$with_tclinclude; with_tclinclude=${withval}
8525else
8526 with_tclinclude=''
8527fi
8528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529if test "${ac_cv_path_tclsh+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008531else
8532
8533if test x"${with_tclinclude}" != x ; then
8534 if test -f ${with_tclinclude}/tclsh ; then
8535 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8536 elif test -f ${with_tclinclude}/src/tclsh ; then
8537 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8538 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8540echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8541 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008542 fi
8543fi
Torok Edwin871384f2010-01-26 08:50:50 +00008544fi
8545
Reid Spencera773bd52006-08-04 18:18:08 +00008546
8547if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548 { echo "$as_me:$LINENO: result: none" >&5
8549echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008550 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
8551do
8552 # Extract the first word of "$ac_prog", so it can be a program name with args.
8553set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8556if test "${ac_cv_path_TCLSH+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008558else
8559 case $TCLSH in
8560 [\\/]* | ?:[\\/]*)
8561 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8562 ;;
8563 *)
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565for as_dir in $PATH
8566do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 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 +00008571 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008573 break 2
8574 fi
8575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576done
Reid Spencera773bd52006-08-04 18:18:08 +00008577IFS=$as_save_IFS
8578
8579 ;;
8580esac
8581fi
8582TCLSH=$ac_cv_path_TCLSH
8583if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008584 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8585echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587 { echo "$as_me:$LINENO: result: no" >&5
8588echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008589fi
8590
8591
8592 test -n "$TCLSH" && break
8593done
8594
8595 if test x"${TCLSH}" = x ; then
8596 ac_cv_path_tclsh='';
8597 else
8598 ac_cv_path_tclsh="${TCLSH}";
8599 fi
8600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008601 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8602echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008603 TCLSH="${ac_cv_path_tclsh}"
8604
8605fi
8606
Reid Spencera773bd52006-08-04 18:18:08 +00008607# Extract the first word of "zip", so it can be a program name with args.
8608set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8611if test "${ac_cv_path_ZIP+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008613else
8614 case $ZIP in
8615 [\\/]* | ?:[\\/]*)
8616 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8617 ;;
8618 *)
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 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 +00008626 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008628 break 2
8629 fi
8630done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008631done
Reid Spencera773bd52006-08-04 18:18:08 +00008632IFS=$as_save_IFS
8633
Reid Spencera773bd52006-08-04 18:18:08 +00008634 ;;
8635esac
8636fi
8637ZIP=$ac_cv_path_ZIP
8638if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008639 { echo "$as_me:$LINENO: result: $ZIP" >&5
8640echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008642 { echo "$as_me:$LINENO: result: no" >&5
8643echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008644fi
8645
8646
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008647for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008648do
8649 # Extract the first word of "$ac_prog", so it can be a program name with args.
8650set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8653if test "${ac_cv_path_OCAMLC+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008655else
8656 case $OCAMLC in
8657 [\\/]* | ?:[\\/]*)
8658 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8659 ;;
8660 *)
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 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 +00008668 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008670 break 2
8671 fi
8672done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008673done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008674IFS=$as_save_IFS
8675
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008676 ;;
8677esac
8678fi
8679OCAMLC=$ac_cv_path_OCAMLC
8680if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008681 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8682echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008684 { echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008686fi
8687
8688
Gordon Henriksene7072162008-03-07 18:20:01 +00008689 test -n "$OCAMLC" && break
8690done
8691
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008692for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008693do
8694 # Extract the first word of "$ac_prog", so it can be a program name with args.
8695set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8698if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008700else
8701 case $OCAMLOPT in
8702 [\\/]* | ?:[\\/]*)
8703 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8704 ;;
8705 *)
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707for as_dir in $PATH
8708do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 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 +00008713 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008715 break 2
8716 fi
8717done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008718done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008719IFS=$as_save_IFS
8720
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008721 ;;
8722esac
8723fi
8724OCAMLOPT=$ac_cv_path_OCAMLOPT
8725if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8727echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008729 { echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008731fi
8732
8733
Gordon Henriksene7072162008-03-07 18:20:01 +00008734 test -n "$OCAMLOPT" && break
8735done
8736
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008737for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008738do
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8743if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008745else
8746 case $OCAMLDEP in
8747 [\\/]* | ?:[\\/]*)
8748 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8749 ;;
8750 *)
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752for as_dir in $PATH
8753do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 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 +00008758 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008760 break 2
8761 fi
8762done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008763done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008764IFS=$as_save_IFS
8765
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008766 ;;
8767esac
8768fi
8769OCAMLDEP=$ac_cv_path_OCAMLDEP
8770if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008771 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8772echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008774 { echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008776fi
8777
8778
Gordon Henriksene7072162008-03-07 18:20:01 +00008779 test -n "$OCAMLDEP" && break
8780done
8781
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008782for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008783do
8784 # Extract the first word of "$ac_prog", so it can be a program name with args.
8785set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8788if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008790else
8791 case $OCAMLDOC in
8792 [\\/]* | ?:[\\/]*)
8793 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8794 ;;
8795 *)
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797for as_dir in $PATH
8798do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 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 +00008803 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008805 break 2
8806 fi
8807done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008808done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008809IFS=$as_save_IFS
8810
8811 ;;
8812esac
8813fi
8814OCAMLDOC=$ac_cv_path_OCAMLDOC
8815if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008816 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8817echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008819 { echo "$as_me:$LINENO: result: no" >&5
8820echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008821fi
8822
8823
8824 test -n "$OCAMLDOC" && break
8825done
8826
Torok Edwincc499a42008-10-22 09:56:27 +00008827for ac_prog in gas as
8828do
8829 # Extract the first word of "$ac_prog", so it can be a program name with args.
8830set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8833if test "${ac_cv_path_GAS+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008835else
8836 case $GAS in
8837 [\\/]* | ?:[\\/]*)
8838 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8839 ;;
8840 *)
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 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 +00008848 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008850 break 2
8851 fi
8852done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008853done
Torok Edwincc499a42008-10-22 09:56:27 +00008854IFS=$as_save_IFS
8855
8856 ;;
8857esac
8858fi
8859GAS=$ac_cv_path_GAS
8860if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008861 { echo "$as_me:$LINENO: result: $GAS" >&5
8862echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008863else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008864 { echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008866fi
8867
8868
8869 test -n "$GAS" && break
8870done
8871
Reid Spencera773bd52006-08-04 18:18:08 +00008872
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008873{ echo "$as_me:$LINENO: checking for linker version" >&5
8874echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8875if test "${llvm_cv_link_version+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878
8879 version_string="$(ld -v 2>&1 | head -1)"
8880
8881 # Check for ld64.
8882 if (echo "$version_string" | grep -q "ld64"); then
8883 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8884 else
8885 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8886 fi
8887
8888fi
8889{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8890echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8891
8892cat >>confdefs.h <<_ACEOF
8893#define HOST_LINK_VERSION "$llvm_cv_link_version"
8894_ACEOF
8895
8896
8897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008898{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8899echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8900if test "${llvm_cv_link_use_r+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008902else
8903 ac_ext=c
8904ac_cpp='$CPP $CPPFLAGS'
8905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907ac_compiler_gnu=$ac_cv_c_compiler_gnu
8908
8909 oldcflags="$CFLAGS"
8910 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008911 cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008916/* end confdefs.h. */
8917
8918int
8919main ()
8920{
Dan Gohman39ed6782010-04-25 00:12:20 +00008921
Reid Spencera773bd52006-08-04 18:18:08 +00008922 ;
8923 return 0;
8924}
8925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008926rm -f conftest.$ac_objext conftest$ac_exeext
8927if { (ac_try="$ac_link"
8928case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_link") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944esac
8945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest$ac_exeext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008960 llvm_cv_link_use_r=yes
8961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008967
Bill Wendlingebcceee2009-04-18 11:20:33 +00008968rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008969 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008970 CFLAGS="$oldcflags"
8971 ac_ext=c
8972ac_cpp='$CPP $CPPFLAGS'
8973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975ac_compiler_gnu=$ac_cv_c_compiler_gnu
8976
8977
8978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008979{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8980echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008981if test "$llvm_cv_link_use_r" = yes ; then
8982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008983cat >>confdefs.h <<\_ACEOF
8984#define HAVE_LINK_R 1
8985_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008986
8987 fi
8988
8989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008990{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8991echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8992if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008994else
8995 ac_ext=c
8996ac_cpp='$CPP $CPPFLAGS'
8997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000
9001 oldcflags="$CFLAGS"
9002 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009003 cat >conftest.$ac_ext <<_ACEOF
9004/* confdefs.h. */
9005_ACEOF
9006cat confdefs.h >>conftest.$ac_ext
9007cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009008/* end confdefs.h. */
9009
9010int
9011main ()
9012{
Dan Gohman39ed6782010-04-25 00:12:20 +00009013
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009014 ;
9015 return 0;
9016}
9017_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009018rm -f conftest.$ac_objext conftest$ac_exeext
9019if { (ac_try="$ac_link"
9020case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023esac
9024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9033 { (case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036esac
9037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_try") 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046esac
9047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009052 llvm_cv_link_use_export_dynamic=yes
9053else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009054 echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009059
Bill Wendlingebcceee2009-04-18 11:20:33 +00009060rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009061 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009062 CFLAGS="$oldcflags"
9063 ac_ext=c
9064ac_cpp='$CPP $CPPFLAGS'
9065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9067ac_compiler_gnu=$ac_cv_c_compiler_gnu
9068
9069
9070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009071{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9072echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009073if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075cat >>confdefs.h <<\_ACEOF
9076#define HAVE_LINK_EXPORT_DYNAMIC 1
9077_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009078
9079 fi
9080
9081
Dan Gohmanda612d62010-06-01 14:56:56 +00009082{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9083echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9084if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
9087 ac_ext=c
9088ac_cpp='$CPP $CPPFLAGS'
9089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9091ac_compiler_gnu=$ac_cv_c_compiler_gnu
9092
9093 oldcflags="$CFLAGS"
9094
9095 # The following code is from the autoconf manual,
9096 # "11.13: Limitations of Usual Tools".
9097 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9098 # Use mktemp if possible; otherwise fall back on mkdir,
9099 # with $RANDOM to make collisions less likely.
9100 : ${TMPDIR=/tmp}
9101 {
9102 tmp=`
9103 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9104 ` &&
9105 test -n "$tmp" && test -d "$tmp"
9106 } || {
9107 tmp=$TMPDIR/foo$$-$RANDOM
9108 (umask 077 && mkdir "$tmp")
9109 } || exit $?
9110
Dan Gohmanda612d62010-06-01 14:56:56 +00009111 echo "{" > "$tmp/export.map"
9112 echo " global: main;" >> "$tmp/export.map"
9113 echo " local: *;" >> "$tmp/export.map"
9114 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009115
Dan Gohmanda612d62010-06-01 14:56:56 +00009116 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009117 cat >conftest.$ac_ext <<_ACEOF
9118/* confdefs.h. */
9119_ACEOF
9120cat confdefs.h >>conftest.$ac_ext
9121cat >>conftest.$ac_ext <<_ACEOF
9122/* end confdefs.h. */
9123
9124int
9125main ()
9126{
Dan Gohman39ed6782010-04-25 00:12:20 +00009127
Dan Gohman391569c2010-04-16 22:59:06 +00009128 ;
9129 return 0;
9130}
9131_ACEOF
9132rm -f conftest.$ac_objext conftest$ac_exeext
9133if { (ac_try="$ac_link"
9134case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_link") 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147 { (case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150esac
9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_try") 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try='test -s conftest$ac_exeext'
9157 { (case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160esac
9161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009166 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
Dan Gohman943005e2010-06-01 16:22:27 +00009171 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009172fi
9173
9174rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009176 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009177 rmdir "$tmp"
9178 CFLAGS="$oldcflags"
9179 ac_ext=c
9180ac_cpp='$CPP $CPPFLAGS'
9181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9183ac_compiler_gnu=$ac_cv_c_compiler_gnu
9184
9185
9186fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009187{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9188echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9189if test "$llvm_cv_link_use_version_script" = yes ; then
9190 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009191
9192 fi
9193
9194
Reid Spencera773bd52006-08-04 18:18:08 +00009195
9196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009197{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9198echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9199if test "${ac_cv_c_const+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009202 cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009207/* end confdefs.h. */
9208
9209int
9210main ()
9211{
9212/* FIXME: Include the comments suggested by Paul. */
9213#ifndef __cplusplus
9214 /* Ultrix mips cc rejects this. */
9215 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009216 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009217 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009218 char const *const *ccp;
9219 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009220 /* NEC SVR4.0.2 mips cc rejects this. */
9221 struct point {int x, y;};
9222 static struct point const zero = {0,0};
9223 /* AIX XL C 1.02.0.0 rejects this.
9224 It does not let you subtract one const X* pointer from another in
9225 an arm of an if-expression whose if-part is not a constant
9226 expression */
9227 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009228 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009229 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009230 ++ccp;
9231 p = (char**) ccp;
9232 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009233 { /* SCO 3.2v4 cc rejects this. */
9234 char *t;
9235 char const *s = 0 ? (char *) 0 : (char const *) 0;
9236
9237 *t++ = 0;
9238 if (s) return 0;
9239 }
9240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9241 int x[] = {25, 17};
9242 const int *foo = &x[0];
9243 ++foo;
9244 }
9245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9246 typedef const int *iptr;
9247 iptr p = 0;
9248 ++p;
9249 }
9250 { /* AIX XL C 1.02.0.0 rejects this saying
9251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9252 struct s { int j; const int *ap[3]; };
9253 struct s *b; b->j = 5;
9254 }
9255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9256 const int foo = 10;
9257 if (!foo) return 0;
9258 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009260#endif
9261
9262 ;
9263 return 0;
9264}
9265_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009266rm -f conftest.$ac_objext
9267if { (ac_try="$ac_compile"
9268case "(($ac_try" in
9269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9270 *) ac_try_echo=$ac_try;;
9271esac
9272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9281 { (case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284esac
9285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294esac
9295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_try") 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009300 ac_cv_c_const=yes
9301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009302 echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009307
Reid Spencera773bd52006-08-04 18:18:08 +00009308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009310{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9311echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009312if test $ac_cv_c_const = no; then
9313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009314cat >>confdefs.h <<\_ACEOF
9315#define const
9316_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009317
9318fi
9319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320
9321
9322
9323
9324
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325ac_header_dirent=no
9326for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009327 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9328{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9329echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009333 cat >conftest.$ac_ext <<_ACEOF
9334/* confdefs.h. */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338/* end confdefs.h. */
9339#include <sys/types.h>
9340#include <$ac_hdr>
9341
9342int
9343main ()
9344{
9345if ((DIR *) 0)
9346return 0;
9347 ;
9348 return 0;
9349}
9350_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009351rm -f conftest.$ac_objext
9352if { (ac_try="$ac_compile"
9353case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9356esac
9357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } &&
9365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9366 { (case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369esac
9370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_try") 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379esac
9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385 eval "$as_ac_Header=yes"
9386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009392
Reid Spencera773bd52006-08-04 18:18:08 +00009393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009395ac_res=`eval echo '${'$as_ac_Header'}'`
9396 { echo "$as_me:$LINENO: result: $ac_res" >&5
9397echo "${ECHO_T}$ac_res" >&6; }
9398if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009400#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009401_ACEOF
9402
9403ac_header_dirent=$ac_hdr; break
9404fi
9405
9406done
9407# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9408if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009409 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9410echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9411if test "${ac_cv_search_opendir+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009413else
9414 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009415cat >conftest.$ac_ext <<_ACEOF
9416/* confdefs.h. */
9417_ACEOF
9418cat confdefs.h >>conftest.$ac_ext
9419cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420/* end confdefs.h. */
9421
Reid Spencera773bd52006-08-04 18:18:08 +00009422/* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425#ifdef __cplusplus
9426extern "C"
9427#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009428char opendir ();
9429int
9430main ()
9431{
Reid Spencera773bd52006-08-04 18:18:08 +00009432return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009433 ;
9434 return 0;
9435}
9436_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009437for ac_lib in '' dir; do
9438 if test -z "$ac_lib"; then
9439 ac_res="none required"
9440 else
9441 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009443 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009444 rm -f conftest.$ac_objext conftest$ac_exeext
9445if { (ac_try="$ac_link"
9446case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449esac
9450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9462esac
9463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472esac
9473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_try") 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009478 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009479else
9480 echo "$as_me: failed program was:" >&5
9481sed 's/^/| /' conftest.$ac_ext >&5
9482
9483
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485
Bill Wendlingebcceee2009-04-18 11:20:33 +00009486rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009487 conftest$ac_exeext
9488 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009489 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009490fi
John Criswell7a73b802003-06-30 21:59:07 +00009491done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009492if test "${ac_cv_search_opendir+set}" = set; then
9493 :
Reid Spencera773bd52006-08-04 18:18:08 +00009494else
9495 ac_cv_search_opendir=no
9496fi
9497rm conftest.$ac_ext
9498LIBS=$ac_func_search_save_LIBS
9499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009500{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9501echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009502ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009503if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009505
Reid Spencera773bd52006-08-04 18:18:08 +00009506fi
9507
9508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9510echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9511if test "${ac_cv_search_opendir+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009513else
9514 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009515cat >conftest.$ac_ext <<_ACEOF
9516/* confdefs.h. */
9517_ACEOF
9518cat confdefs.h >>conftest.$ac_ext
9519cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009520/* end confdefs.h. */
9521
9522/* Override any GCC internal prototype to avoid an error.
9523 Use char because int might match the return type of a GCC
9524 builtin and then its argument prototype would still apply. */
9525#ifdef __cplusplus
9526extern "C"
9527#endif
9528char opendir ();
9529int
9530main ()
9531{
9532return opendir ();
9533 ;
9534 return 0;
9535}
9536_ACEOF
9537for ac_lib in '' x; do
9538 if test -z "$ac_lib"; then
9539 ac_res="none required"
9540 else
9541 ac_res=-l$ac_lib
9542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9543 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544 rm -f conftest.$ac_objext conftest$ac_exeext
9545if { (ac_try="$ac_link"
9546case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549esac
9550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9559 { (case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562esac
9563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_try") 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; } &&
9568 { ac_try='test -s conftest$ac_exeext'
9569 { (case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572esac
9573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_try") 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009578 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009579else
9580 echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583
Reid Spencera773bd52006-08-04 18:18:08 +00009584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009585
Bill Wendlingebcceee2009-04-18 11:20:33 +00009586rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009587 conftest$ac_exeext
9588 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009589 break
9590fi
9591done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009592if test "${ac_cv_search_opendir+set}" = set; then
9593 :
Reid Spencera773bd52006-08-04 18:18:08 +00009594else
9595 ac_cv_search_opendir=no
9596fi
9597rm conftest.$ac_ext
9598LIBS=$ac_func_search_save_LIBS
9599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009600{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9601echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009602ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009603if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9605
9606fi
9607
9608fi
John Criswell7a73b802003-06-30 21:59:07 +00009609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009610
John Criswell7a73b802003-06-30 21:59:07 +00009611for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612do
9613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619fi
9620ac_res=`eval echo '${'$as_ac_Header'}'`
9621 { echo "$as_me:$LINENO: result: $ac_res" >&5
9622echo "${ECHO_T}$ac_res" >&6; }
9623else
9624 # Is the header compilable?
9625{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9627cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633$ac_includes_default
9634#include <$ac_header>
9635_ACEOF
9636rm -f conftest.$ac_objext
9637if { (ac_try="$ac_compile"
9638case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641esac
9642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9651 { (case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654esac
9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_try") 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try='test -s conftest.$ac_objext'
9661 { (case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664esac
9665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_try") 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_header_compiler=yes
9671else
9672 echo "$as_me: failed program was:" >&5
9673sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_header_compiler=no
9676fi
9677
9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9680echo "${ECHO_T}$ac_header_compiler" >&6; }
9681
9682# Is the header present?
9683{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9685cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
9691#include <$ac_header>
9692_ACEOF
9693if { (ac_try="$ac_cpp conftest.$ac_ext"
9694case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697esac
9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } >/dev/null; then
9706 if test -s conftest.err; then
9707 ac_cpp_err=$ac_c_preproc_warn_flag
9708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9709 else
9710 ac_cpp_err=
9711 fi
9712else
9713 ac_cpp_err=yes
9714fi
9715if test -z "$ac_cpp_err"; then
9716 ac_header_preproc=yes
9717else
9718 echo "$as_me: failed program was:" >&5
9719sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_header_preproc=no
9722fi
9723
9724rm -f conftest.err conftest.$ac_ext
9725{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9726echo "${ECHO_T}$ac_header_preproc" >&6; }
9727
9728# So? What about this header?
9729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9730 yes:no: )
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9735 ac_header_preproc=yes
9736 ;;
9737 no:yes:* )
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9750 ( cat <<\_ASBOX
9751## ----------------------------------- ##
9752## Report this to llvmbugs@cs.uiuc.edu ##
9753## ----------------------------------- ##
9754_ASBOX
9755 ) | sed "s/^/$as_me: WARNING: /" >&2
9756 ;;
9757esac
9758{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762else
9763 eval "$as_ac_Header=\$ac_header_preproc"
9764fi
9765ac_res=`eval echo '${'$as_ac_Header'}'`
9766 { echo "$as_me:$LINENO: result: $ac_res" >&5
9767echo "${ECHO_T}$ac_res" >&6; }
9768
9769fi
9770if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009771 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009773_ACEOF
9774
9775fi
9776
9777done
9778
Reid Spencera773bd52006-08-04 18:18:08 +00009779# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009780if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009781 enableval=$enable_ltdl_install;
9782fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009785
9786
9787if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788 INSTALL_LTDL_TRUE=
9789 INSTALL_LTDL_FALSE='#'
9790else
9791 INSTALL_LTDL_TRUE='#'
9792 INSTALL_LTDL_FALSE=
9793fi
9794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009795
9796
9797if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798 CONVENIENCE_LTDL_TRUE=
9799 CONVENIENCE_LTDL_FALSE='#'
9800else
9801 CONVENIENCE_LTDL_TRUE='#'
9802 CONVENIENCE_LTDL_FALSE=
9803fi
9804
9805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009806{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9807echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808library_names_spec=
9809libname_spec='lib$name'
9810soname_spec=
9811shrext_cmds=".so"
9812postinstall_cmds=
9813postuninstall_cmds=
9814finish_cmds=
9815finish_eval=
9816shlibpath_var=
9817shlibpath_overrides_runpath=unknown
9818version_type=none
9819dynamic_linker="$host_os ld.so"
9820sys_lib_dlsearch_path_spec="/lib /usr/lib"
9821if test "$GCC" = yes; then
9822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9823 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9824 # if the path contains ";" then we assume it to be the separator
9825 # otherwise default to the standard path separator (i.e. ":") - it is
9826 # assumed that no part of a normal pathname contains ";" but that should
9827 # okay in the real world where ";" in dirpaths is itself problematic.
9828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9829 else
9830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9831 fi
9832else
9833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9834fi
9835need_lib_prefix=unknown
9836hardcode_into_libs=no
9837
9838# when you set need_version to no, make sure it does not cause -set_version
9839# flags to be left without arguments
9840need_version=unknown
9841
9842case $host_os in
9843aix3*)
9844 version_type=linux
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9846 shlibpath_var=LIBPATH
9847
9848 # AIX 3 has no versioning support, so we append a major version to the name.
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 ;;
9851
9852aix4* | aix5*)
9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 hardcode_into_libs=yes
9857 if test "$host_cpu" = ia64; then
9858 # AIX 5 supports IA64
9859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 else
9862 # With GCC up to 2.95.x, collect2 would create an import file
9863 # for dependence libraries. The import file would start with
9864 # the line `#! .'. This would cause the generated library to
9865 # depend on `.', always an invalid library. This was fixed in
9866 # development snapshots of GCC prior to 3.0.
9867 case $host_os in
9868 aix4 | aix4.[01] | aix4.[01].*)
9869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9870 echo ' yes '
9871 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9872 :
9873 else
9874 can_build_shared=no
9875 fi
9876 ;;
9877 esac
9878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879 # soname into executable. Probably we can add versioning support to
9880 # collect2, so additional links can be useful in future.
9881 if test "$aix_use_runtimelinking" = yes; then
9882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883 # instead of lib<name>.a to let people know that these are not
9884 # typical AIX shared libraries.
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 else
9887 # We preserve .a as extension for shared libraries through AIX4.2
9888 # and later when we are not doing run time linking.
9889 library_names_spec='${libname}${release}.a $libname.a'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 fi
9892 shlibpath_var=LIBPATH
9893 fi
9894 ;;
9895
9896amigaos*)
9897 library_names_spec='$libname.ixlibrary $libname.a'
9898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9899 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'
9900 ;;
9901
9902beos*)
9903 library_names_spec='${libname}${shared_ext}'
9904 dynamic_linker="$host_os ld.so"
9905 shlibpath_var=LIBRARY_PATH
9906 ;;
9907
9908bsdi[45]*)
9909 version_type=linux
9910 need_version=no
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9917 # the default ld.so.conf also contains /usr/contrib/lib and
9918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9919 # libtool to hard-code these into programs
9920 ;;
9921
9922cygwin* | mingw* | pw32*)
9923 version_type=windows
9924 shrext_cmds=".dll"
9925 need_version=no
9926 need_lib_prefix=no
9927
9928 case $GCC,$host_os in
9929 yes,cygwin* | yes,mingw* | yes,pw32*)
9930 library_names_spec='$libname.dll.a'
9931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9932 postinstall_cmds='base_file=`basename \${file}`~
9933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9934 dldir=$destdir/`dirname \$dlpath`~
9935 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009936 $install_prog $dir/$dlname \$dldir/$dlname~
9937 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9939 dlpath=$dir/\$dldll~
9940 $rm \$dlpath'
9941 shlibpath_overrides_runpath=yes
9942
9943 case $host_os in
9944 cygwin*)
9945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9946 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9948 ;;
9949 mingw*)
9950 # MinGW DLLs use traditional 'lib' prefix
9951 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9953 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9954 # It is most probably a Windows format PATH printed by
9955 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9956 # path with ; separators, and with drive letters. We can handle the
9957 # drive letters (cygwin fileutils understands them), so leave them,
9958 # especially as we might pass files found there to a mingw objdump,
9959 # which wouldn't understand a cygwinified path. Ahh.
9960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9961 else
9962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9963 fi
9964 ;;
9965 pw32*)
9966 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009967 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 +00009968 ;;
9969 esac
9970 ;;
9971
9972 *)
9973 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9974 ;;
9975 esac
9976 dynamic_linker='Win32 ld.exe'
9977 # FIXME: first we should search . and the directory the executable is in
9978 shlibpath_var=PATH
9979 ;;
9980
9981darwin* | rhapsody*)
9982 dynamic_linker="$host_os dyld"
9983 version_type=darwin
9984 need_lib_prefix=no
9985 need_version=no
9986 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9987 soname_spec='${libname}${release}${major}$shared_ext'
9988 shlibpath_overrides_runpath=yes
9989 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009990 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9992 if test "$GCC" = yes; then
9993 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"`
9994 else
9995 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9996 fi
9997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9998 ;;
9999
10000dgux*)
10001 version_type=linux
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 ;;
10008
10009freebsd1*)
10010 dynamic_linker=no
10011 ;;
10012
10013kfreebsd*-gnu)
10014 version_type=linux
10015 need_lib_prefix=no
10016 need_version=no
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=no
10021 hardcode_into_libs=yes
10022 dynamic_linker='GNU ld.so'
10023 ;;
10024
Reid Spencera773bd52006-08-04 18:18:08 +000010025freebsd* | dragonfly*)
10026 # DragonFly does not have aout. When/if they implement a new
10027 # versioning mechanism, adjust this.
10028 if test -x /usr/bin/objformat; then
10029 objformat=`/usr/bin/objformat`
10030 else
10031 case $host_os in
10032 freebsd[123]*) objformat=aout ;;
10033 *) objformat=elf ;;
10034 esac
10035 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010036 version_type=freebsd-$objformat
10037 case $version_type in
10038 freebsd-elf*)
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10040 need_version=no
10041 need_lib_prefix=no
10042 ;;
10043 freebsd-*)
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10045 need_version=yes
10046 ;;
10047 esac
10048 shlibpath_var=LD_LIBRARY_PATH
10049 case $host_os in
10050 freebsd2*)
10051 shlibpath_overrides_runpath=yes
10052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010053 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054 shlibpath_overrides_runpath=yes
10055 hardcode_into_libs=yes
10056 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059 shlibpath_overrides_runpath=no
10060 hardcode_into_libs=yes
10061 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010062 freebsd*) # from 4.6 on
10063 shlibpath_overrides_runpath=yes
10064 hardcode_into_libs=yes
10065 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066 esac
10067 ;;
10068
10069gnu*)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 hardcode_into_libs=yes
10077 ;;
10078
10079hpux9* | hpux10* | hpux11*)
10080 # Give a soname corresponding to the major version so that dld.sl refuses to
10081 # link against other versions.
10082 version_type=sunos
10083 need_lib_prefix=no
10084 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010085 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086 ia64*)
10087 shrext_cmds='.so'
10088 hardcode_into_libs=yes
10089 dynamic_linker="$host_os dld.so"
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 if test "X$HPUX_IA64_MODE" = X32; then
10095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10096 else
10097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10098 fi
10099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10100 ;;
10101 hppa*64*)
10102 shrext_cmds='.sl'
10103 hardcode_into_libs=yes
10104 dynamic_linker="$host_os dld.sl"
10105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111 ;;
10112 *)
10113 shrext_cmds='.sl'
10114 dynamic_linker="$host_os dld.sl"
10115 shlibpath_var=SHLIB_PATH
10116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 ;;
10120 esac
10121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10122 postinstall_cmds='chmod 555 $lib'
10123 ;;
10124
Reid Spencera773bd52006-08-04 18:18:08 +000010125interix3*)
10126 version_type=linux
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=no
10134 hardcode_into_libs=yes
10135 ;;
10136
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137irix5* | irix6* | nonstopux*)
10138 case $host_os in
10139 nonstopux*) version_type=nonstopux ;;
10140 *)
10141 if test "$lt_cv_prog_gnu_ld" = yes; then
10142 version_type=linux
10143 else
10144 version_type=irix
10145 fi ;;
10146 esac
10147 need_lib_prefix=no
10148 need_version=no
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10151 case $host_os in
10152 irix5* | nonstopux*)
10153 libsuff= shlibsuff=
10154 ;;
10155 *)
10156 case $LD in # libtool.m4 will add one of these switches to LD
10157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10158 libsuff= shlibsuff= libmagic=32-bit;;
10159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10160 libsuff=32 shlibsuff=N32 libmagic=N32;;
10161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10163 *) libsuff= shlibsuff= libmagic=never-match;;
10164 esac
10165 ;;
10166 esac
10167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10171 hardcode_into_libs=yes
10172 ;;
10173
10174# No shared lib support for Linux oldld, aout, or coff.
10175linux*oldld* | linux*aout* | linux*coff*)
10176 dynamic_linker=no
10177 ;;
10178
10179# This must be Linux ELF.
10180linux*)
10181 version_type=linux
10182 need_lib_prefix=no
10183 need_version=no
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=no
10189 # This implies no fast_install, which is unacceptable.
10190 # Some rework will be needed to allow for fast_install
10191 # before this can be enabled.
10192 hardcode_into_libs=yes
10193
10194 # Append ld.so.conf contents to the search path
10195 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010196 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 +000010197 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10198 fi
10199
10200 # We used to test for /lib/ld.so.1 and disable shared libraries on
10201 # powerpc, because MkLinux only supported shared libraries with the
10202 # GNU dynamic linker. Since this was broken with cross compilers,
10203 # most powerpc-linux boxes support dynamic linking these days and
10204 # people can always --disable-shared, the test was removed, and we
10205 # assume the GNU/Linux dynamic linker is in use.
10206 dynamic_linker='GNU/Linux ld.so'
10207 ;;
10208
10209knetbsd*-gnu)
10210 version_type=linux
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 shlibpath_overrides_runpath=no
10217 hardcode_into_libs=yes
10218 dynamic_linker='GNU ld.so'
10219 ;;
10220
10221netbsd*)
10222 version_type=sunos
10223 need_lib_prefix=no
10224 need_version=no
10225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228 dynamic_linker='NetBSD (a.out) ld.so'
10229 else
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 dynamic_linker='NetBSD ld.elf_so'
10233 fi
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=yes
10236 hardcode_into_libs=yes
10237 ;;
10238
10239newsos6)
10240 version_type=linux
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=yes
10244 ;;
10245
10246nto-qnx*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
10254 ;;
10255
10256openbsd*)
10257 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010258 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10261 case $host_os in
10262 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10263 *) need_version=no ;;
10264 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10269 case $host_os in
10270 openbsd2.[89] | openbsd2.[89].*)
10271 shlibpath_overrides_runpath=no
10272 ;;
10273 *)
10274 shlibpath_overrides_runpath=yes
10275 ;;
10276 esac
10277 else
10278 shlibpath_overrides_runpath=yes
10279 fi
10280 ;;
10281
10282os2*)
10283 libname_spec='$name'
10284 shrext_cmds=".dll"
10285 need_lib_prefix=no
10286 library_names_spec='$libname${shared_ext} $libname.a'
10287 dynamic_linker='OS/2 ld.exe'
10288 shlibpath_var=LIBPATH
10289 ;;
10290
10291osf3* | osf4* | osf5*)
10292 version_type=osf
10293 need_lib_prefix=no
10294 need_version=no
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10300 ;;
10301
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302solaris*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 # ldd complains unless libraries are executable
10312 postinstall_cmds='chmod +x $lib'
10313 ;;
10314
10315sunos4*)
10316 version_type=sunos
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 if test "$with_gnu_ld" = yes; then
10322 need_lib_prefix=no
10323 fi
10324 need_version=yes
10325 ;;
10326
Reid Spencera773bd52006-08-04 18:18:08 +000010327sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328 version_type=linux
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 case $host_vendor in
10333 sni)
10334 shlibpath_overrides_runpath=no
10335 need_lib_prefix=no
10336 export_dynamic_flag_spec='${wl}-Blargedynsym'
10337 runpath_var=LD_RUN_PATH
10338 ;;
10339 siemens)
10340 need_lib_prefix=no
10341 ;;
10342 motorola)
10343 need_lib_prefix=no
10344 need_version=no
10345 shlibpath_overrides_runpath=no
10346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10347 ;;
10348 esac
10349 ;;
10350
10351sysv4*MP*)
10352 if test -d /usr/nec ;then
10353 version_type=linux
10354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10355 soname_spec='$libname${shared_ext}.$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 fi
10358 ;;
10359
Reid Spencera773bd52006-08-04 18:18:08 +000010360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10361 version_type=freebsd-elf
10362 need_lib_prefix=no
10363 need_version=no
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 hardcode_into_libs=yes
10368 if test "$with_gnu_ld" = yes; then
10369 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10370 shlibpath_overrides_runpath=no
10371 else
10372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10373 shlibpath_overrides_runpath=yes
10374 case $host_os in
10375 sco3.2v5*)
10376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10377 ;;
10378 esac
10379 fi
10380 sys_lib_dlsearch_path_spec='/usr/lib'
10381 ;;
10382
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383uts4*)
10384 version_type=linux
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 ;;
10389
10390*)
10391 dynamic_linker=no
10392 ;;
10393esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010394{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10395echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396test "$dynamic_linker" = no && can_build_shared=no
10397
Reid Spencera773bd52006-08-04 18:18:08 +000010398variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10399if test "$GCC" = yes; then
10400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10401fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402
Reid Spencera773bd52006-08-04 18:18:08 +000010403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010404{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10405echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10406if test "${libltdl_cv_shlibext+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408else
10409
10410module=yes
10411eval libltdl_cv_shlibext=$shrext_cmds
10412
10413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10415echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416if test -n "$libltdl_cv_shlibext"; then
10417
10418cat >>confdefs.h <<_ACEOF
10419#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10420_ACEOF
10421
10422fi
10423
10424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010425{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10426echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10427if test "${libltdl_cv_shlibpath_var+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429else
10430 libltdl_cv_shlibpath_var="$shlibpath_var"
10431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010432{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10433echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434if test -n "$libltdl_cv_shlibpath_var"; then
10435
10436cat >>confdefs.h <<_ACEOF
10437#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10438_ACEOF
10439
10440fi
10441
10442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010443{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10444echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10445if test "${libltdl_cv_sys_search_path+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447else
10448 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10451echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452if test -n "$libltdl_cv_sys_search_path"; then
10453 sys_search_path=
10454 for dir in $libltdl_cv_sys_search_path; do
10455 if test -z "$sys_search_path"; then
10456 sys_search_path="$dir"
10457 else
10458 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10459 fi
10460 done
10461
10462cat >>confdefs.h <<_ACEOF
10463#define LTDL_SYSSEARCHPATH "$sys_search_path"
10464_ACEOF
10465
10466fi
10467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010468{ echo "$as_me:$LINENO: checking for objdir" >&5
10469echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10470if test "${libltdl_cv_objdir+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472else
10473 libltdl_cv_objdir="$objdir"
10474 if test -n "$objdir"; then
10475 :
10476 else
10477 rm -f .libs 2>/dev/null
10478 mkdir .libs 2>/dev/null
10479 if test -d .libs; then
10480 libltdl_cv_objdir=.libs
10481 else
10482 # MS-DOS does not allow filenames that begin with a dot.
10483 libltdl_cv_objdir=_libs
10484 fi
10485 rmdir .libs 2>/dev/null
10486 fi
10487
10488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010489{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10490echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491
10492cat >>confdefs.h <<_ACEOF
10493#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10494_ACEOF
10495
10496
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497
10498
10499
10500
10501# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010502{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10503echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10504if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506else
10507
10508# These are sane defaults that work on at least a few old systems.
10509# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10510
10511# Character class describing NM global symbol codes.
10512symcode='[BCDEGRST]'
10513
10514# Regexp to match symbols that can be accessed directly from C.
10515sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10516
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517# Transform an extracted symbol line into a proper C declaration
10518lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10519
10520# Transform an extracted symbol line into symbol name and symbol address
10521lt_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'"
10522
10523# Define system-specific variables.
10524case $host_os in
10525aix*)
10526 symcode='[BCDT]'
10527 ;;
10528cygwin* | mingw* | pw32*)
10529 symcode='[ABCDGISTW]'
10530 ;;
10531hpux*) # Its linker distinguishes data from code symbols
10532 if test "$host_cpu" = ia64; then
10533 symcode='[ABCDEGRST]'
10534 fi
10535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10536 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'"
10537 ;;
10538linux*)
10539 if test "$host_cpu" = ia64; then
10540 symcode='[ABCDGIRSTW]'
10541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10542 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'"
10543 fi
10544 ;;
10545irix* | nonstopux*)
10546 symcode='[BCDEGRST]'
10547 ;;
10548osf*)
10549 symcode='[BCDEGQRST]'
10550 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010551solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552 symcode='[BDRT]'
10553 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010554sco3.2v5*)
10555 symcode='[DT]'
10556 ;;
10557sysv4.2uw2*)
10558 symcode='[DT]'
10559 ;;
10560sysv5* | sco5v6* | unixware* | OpenUNIX*)
10561 symcode='[ABDT]'
10562 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563sysv4)
10564 symcode='[DFNSTU]'
10565 ;;
10566esac
10567
10568# Handle CRLF in mingw tool chain
10569opt_cr=
10570case $build_os in
10571mingw*)
10572 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10573 ;;
10574esac
10575
10576# If we're using GNU nm, then use its standard symbol codes.
10577case `$NM -V 2>&1` in
10578*GNU* | *'with BFD'*)
10579 symcode='[ABCDGIRSTW]' ;;
10580esac
10581
10582# Try without a prefix undercore, then with it.
10583for ac_symprfx in "" "_"; do
10584
Reid Spencera773bd52006-08-04 18:18:08 +000010585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10586 symxfrm="\\1 $ac_symprfx\\2 \\2"
10587
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010589 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 +000010590
10591 # Check to see that the pipe works correctly.
10592 pipe_works=no
10593
10594 rm -f conftest*
10595 cat > conftest.$ac_ext <<EOF
10596#ifdef __cplusplus
10597extern "C" {
10598#endif
10599char nm_test_var;
10600void nm_test_func(){}
10601#ifdef __cplusplus
10602}
10603#endif
10604int main(){nm_test_var='a';nm_test_func();return(0);}
10605EOF
10606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608 (eval $ac_compile) 2>&5
10609 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612 # Now try to grab the symbols.
10613 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010614 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 +000010615 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10616 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619 # Try sorting and uniquifying the output.
10620 if sort "$nlist" | uniq > "$nlist"T; then
10621 mv -f "$nlist"T "$nlist"
10622 else
10623 rm -f "$nlist"T
10624 fi
10625
10626 # Make sure that we snagged all the symbols we need.
10627 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10628 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10629 cat <<EOF > conftest.$ac_ext
10630#ifdef __cplusplus
10631extern "C" {
10632#endif
10633
10634EOF
10635 # Now generate the symbol file.
10636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10637
10638 cat <<EOF >> conftest.$ac_ext
10639#if defined (__STDC__) && __STDC__
10640# define lt_ptr_t void *
10641#else
10642# define lt_ptr_t char *
10643# define const
10644#endif
10645
10646/* The mapping between symbol names and symbols. */
10647const struct {
10648 const char *name;
10649 lt_ptr_t address;
10650}
10651lt_preloaded_symbols[] =
10652{
10653EOF
10654 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10655 cat <<\EOF >> conftest.$ac_ext
10656 {0, (lt_ptr_t) 0}
10657};
10658
10659#ifdef __cplusplus
10660}
10661#endif
10662EOF
10663 # Now try linking the two files.
10664 mv conftest.$ac_objext conftstm.$ac_objext
10665 lt_save_LIBS="$LIBS"
10666 lt_save_CFLAGS="$CFLAGS"
10667 LIBS="conftstm.$ac_objext"
10668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670 (eval $ac_link) 2>&5
10671 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674 pipe_works=yes
10675 fi
10676 LIBS="$lt_save_LIBS"
10677 CFLAGS="$lt_save_CFLAGS"
10678 else
10679 echo "cannot find nm_test_func in $nlist" >&5
10680 fi
10681 else
10682 echo "cannot find nm_test_var in $nlist" >&5
10683 fi
10684 else
10685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10686 fi
10687 else
10688 echo "$progname: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10690 fi
10691 rm -f conftest* conftst*
10692
10693 # Do not use the global_symbol_pipe unless it works.
10694 if test "$pipe_works" = yes; then
10695 break
10696 else
10697 lt_cv_sys_global_symbol_pipe=
10698 fi
10699done
10700
10701fi
10702
10703if test -z "$lt_cv_sys_global_symbol_pipe"; then
10704 lt_cv_sys_global_symbol_to_cdecl=
10705fi
10706if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010707 { echo "$as_me:$LINENO: result: failed" >&5
10708echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010710 { echo "$as_me:$LINENO: result: ok" >&5
10711echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712fi
10713
10714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010715{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10716echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10717if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719else
10720 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10721 libltdl_cv_preloaded_symbols=yes
10722 else
10723 libltdl_cv_preloaded_symbols=no
10724 fi
10725
10726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010727{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10728echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010731cat >>confdefs.h <<\_ACEOF
10732#define HAVE_PRELOADED_SYMBOLS 1
10733_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734
10735fi
10736
10737LIBADD_DL=
10738
10739ac_ext=c
10740ac_cpp='$CPP $CPPFLAGS'
10741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743ac_compiler_gnu=$ac_cv_c_compiler_gnu
10744
10745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746{ echo "$as_me:$LINENO: checking for shl_load" >&5
10747echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10748if test "${ac_cv_func_shl_load+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 cat >conftest.$ac_ext <<_ACEOF
10752/* confdefs.h. */
10753_ACEOF
10754cat confdefs.h >>conftest.$ac_ext
10755cat >>conftest.$ac_ext <<_ACEOF
10756/* end confdefs.h. */
10757/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10759#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010761/* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char shl_load (); below.
10763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764 <limits.h> exists even on freestanding compilers. */
10765
10766#ifdef __STDC__
10767# include <limits.h>
10768#else
10769# include <assert.h>
10770#endif
10771
10772#undef shl_load
10773
10774/* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777#ifdef __cplusplus
10778extern "C"
10779#endif
10780char shl_load ();
10781/* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784#if defined __stub_shl_load || defined __stub___shl_load
10785choke me
10786#endif
10787
10788int
10789main ()
10790{
10791return shl_load ();
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext conftest$ac_exeext
10797if { (ac_try="$ac_link"
10798case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
10802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814esac
10815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest$ac_exeext'
10821 { (case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_func_shl_load=yes
10831else
10832 echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_cv_func_shl_load=no
10836fi
10837
10838rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840fi
10841{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10842echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10843if test $ac_cv_func_shl_load = yes; then
10844
10845cat >>confdefs.h <<\_ACEOF
10846#define HAVE_SHL_LOAD 1
10847_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848
10849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010850 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10851echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10852if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010854else
10855 ac_check_lib_save_LIBS=$LIBS
10856LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010857cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010862/* end confdefs.h. */
10863
Reid Spencera773bd52006-08-04 18:18:08 +000010864/* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867#ifdef __cplusplus
10868extern "C"
10869#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870char shl_load ();
10871int
10872main ()
10873{
Reid Spencera773bd52006-08-04 18:18:08 +000010874return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875 ;
10876 return 0;
10877}
10878_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010879rm -f conftest.$ac_objext conftest$ac_exeext
10880if { (ac_try="$ac_link"
10881case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_link") 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10897esac
10898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913 ac_cv_lib_dld_shl_load=yes
10914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010915 echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
10917
10918 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010920
Bill Wendlingebcceee2009-04-18 11:20:33 +000010921rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010922 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923LIBS=$ac_check_lib_save_LIBS
10924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010925{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10926echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10927if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010929cat >>confdefs.h <<\_ACEOF
10930#define HAVE_SHL_LOAD 1
10931_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932
10933 LIBADD_DL="$LIBADD_DL -ldld"
10934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010935 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10936echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10937if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939else
10940 ac_check_lib_save_LIBS=$LIBS
10941LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010942cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010947/* end confdefs.h. */
10948
Reid Spencera773bd52006-08-04 18:18:08 +000010949/* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952#ifdef __cplusplus
10953extern "C"
10954#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010955char dlopen ();
10956int
10957main ()
10958{
Reid Spencera773bd52006-08-04 18:18:08 +000010959return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960 ;
10961 return 0;
10962}
10963_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010964rm -f conftest.$ac_objext conftest$ac_exeext
10965if { (ac_try="$ac_link"
10966case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969esac
10970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_link") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10979 { (case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982esac
10983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_try") 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try='test -s conftest$ac_exeext'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998 ac_cv_lib_dl_dlopen=yes
10999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011000 echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011005
Bill Wendlingebcceee2009-04-18 11:20:33 +000011006rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011007 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008LIBS=$ac_check_lib_save_LIBS
11009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011010{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11011echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11012if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011014cat >>confdefs.h <<\_ACEOF
11015#define HAVE_LIBDL 1
11016_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017
11018 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011020 cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025/* end confdefs.h. */
11026#if HAVE_DLFCN_H
11027# include <dlfcn.h>
11028#endif
11029
11030int
11031main ()
11032{
11033dlopen(0, 0);
11034 ;
11035 return 0;
11036}
11037_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011038rm -f conftest.$ac_objext conftest$ac_exeext
11039if { (ac_try="$ac_link"
11040case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066esac
11067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011073cat >>confdefs.h <<\_ACEOF
11074#define HAVE_LIBDL 1
11075_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076 libltdl_cv_func_dlopen="yes"
11077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011078 echo "$as_me: failed program was:" >&5
11079sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11082echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11083if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011085else
11086 ac_check_lib_save_LIBS=$LIBS
11087LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011088cat >conftest.$ac_ext <<_ACEOF
11089/* confdefs.h. */
11090_ACEOF
11091cat confdefs.h >>conftest.$ac_ext
11092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093/* end confdefs.h. */
11094
Reid Spencera773bd52006-08-04 18:18:08 +000011095/* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098#ifdef __cplusplus
11099extern "C"
11100#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011101char dlopen ();
11102int
11103main ()
11104{
Reid Spencera773bd52006-08-04 18:18:08 +000011105return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011106 ;
11107 return 0;
11108}
11109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011110rm -f conftest.$ac_objext conftest$ac_exeext
11111if { (ac_try="$ac_link"
11112case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128esac
11129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest$ac_exeext'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138esac
11139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144 ac_cv_lib_svld_dlopen=yes
11145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011146 echo "$as_me: failed program was:" >&5
11147sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011151
Bill Wendlingebcceee2009-04-18 11:20:33 +000011152rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011153 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154LIBS=$ac_check_lib_save_LIBS
11155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011156{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11157echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11158if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011160cat >>confdefs.h <<\_ACEOF
11161#define HAVE_LIBDL 1
11162_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163
11164 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011166 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11167echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11168if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170else
11171 ac_check_lib_save_LIBS=$LIBS
11172LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011173cat >conftest.$ac_ext <<_ACEOF
11174/* confdefs.h. */
11175_ACEOF
11176cat confdefs.h >>conftest.$ac_ext
11177cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178/* end confdefs.h. */
11179
Reid Spencera773bd52006-08-04 18:18:08 +000011180/* Override any GCC internal prototype to avoid an error.
11181 Use char because int might match the return type of a GCC
11182 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183#ifdef __cplusplus
11184extern "C"
11185#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186char dld_link ();
11187int
11188main ()
11189{
Reid Spencera773bd52006-08-04 18:18:08 +000011190return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191 ;
11192 return 0;
11193}
11194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011195rm -f conftest.$ac_objext conftest$ac_exeext
11196if { (ac_try="$ac_link"
11197case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200esac
11201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_link") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213esac
11214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest$ac_exeext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229 ac_cv_lib_dld_dld_link=yes
11230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011231 echo "$as_me: failed program was:" >&5
11232sed 's/^/| /' conftest.$ac_ext >&5
11233
11234 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011236
Bill Wendlingebcceee2009-04-18 11:20:33 +000011237rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011238 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239LIBS=$ac_check_lib_save_LIBS
11240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011241{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11242echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11243if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011245cat >>confdefs.h <<\_ACEOF
11246#define HAVE_DLD 1
11247_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248
11249 LIBADD_DL="$LIBADD_DL -ldld"
11250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11252echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11253if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255else
11256 cat >conftest.$ac_ext <<_ACEOF
11257/* confdefs.h. */
11258_ACEOF
11259cat confdefs.h >>conftest.$ac_ext
11260cat >>conftest.$ac_ext <<_ACEOF
11261/* end confdefs.h. */
11262/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011266/* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char _dyld_func_lookup (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011271#ifdef __STDC__
11272# include <limits.h>
11273#else
11274# include <assert.h>
11275#endif
11276
11277#undef _dyld_func_lookup
11278
11279/* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282#ifdef __cplusplus
11283extern "C"
11284#endif
11285char _dyld_func_lookup ();
11286/* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11290choke me
11291#endif
11292
11293int
11294main ()
11295{
11296return _dyld_func_lookup ();
11297 ;
11298 return 0;
11299}
11300_ACEOF
11301rm -f conftest.$ac_objext conftest$ac_exeext
11302if { (ac_try="$ac_link"
11303case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_link") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest$ac_exeext'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_func__dyld_func_lookup=yes
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341fi
Reid Spencera773bd52006-08-04 18:18:08 +000011342
Bill Wendlingebcceee2009-04-18 11:20:33 +000011343rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011344 conftest$ac_exeext conftest.$ac_ext
11345fi
11346{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11347echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11348if test $ac_cv_func__dyld_func_lookup = yes; then
11349
11350cat >>confdefs.h <<\_ACEOF
11351#define HAVE_DYLD 1
11352_ACEOF
11353
11354fi
11355
11356
11357fi
11358
11359
11360fi
11361
11362
11363fi
11364
11365rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367
11368fi
11369
11370
11371fi
11372
11373
11374fi
11375
11376
11377if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11378then
11379 lt_save_LIBS="$LIBS"
11380 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011381
11382for ac_func in dlerror
11383do
11384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389else
11390 cat >conftest.$ac_ext <<_ACEOF
11391/* confdefs.h. */
11392_ACEOF
11393cat confdefs.h >>conftest.$ac_ext
11394cat >>conftest.$ac_ext <<_ACEOF
11395/* end confdefs.h. */
11396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398#define $ac_func innocuous_$ac_func
11399
11400/* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11404
11405#ifdef __STDC__
11406# include <limits.h>
11407#else
11408# include <assert.h>
11409#endif
11410
11411#undef $ac_func
11412
11413/* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416#ifdef __cplusplus
11417extern "C"
11418#endif
11419char $ac_func ();
11420/* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423#if defined __stub_$ac_func || defined __stub___$ac_func
11424choke me
11425#endif
11426
11427int
11428main ()
11429{
11430return $ac_func ();
11431 ;
11432 return 0;
11433}
11434_ACEOF
11435rm -f conftest.$ac_objext conftest$ac_exeext
11436if { (ac_try="$ac_link"
11437case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest$ac_exeext'
11460 { (case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463esac
11464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_try") 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 eval "$as_ac_var=yes"
11470else
11471 echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 eval "$as_ac_var=no"
11475fi
11476
11477rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479fi
11480ac_res=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482echo "${ECHO_T}$ac_res" >&6; }
11483if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486_ACEOF
11487
11488fi
11489done
11490
11491 LIBS="$lt_save_LIBS"
11492fi
11493ac_ext=c
11494ac_cpp='$CPP $CPPFLAGS'
11495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11497ac_compiler_gnu=$ac_cv_c_compiler_gnu
11498
11499
11500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011501{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11502echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11503if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505else
11506 ac_cv_sys_symbol_underscore=no
11507 cat > conftest.$ac_ext <<EOF
11508void nm_test_func(){}
11509int main(){nm_test_func;return 0;}
11510EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512 (eval $ac_compile) 2>&5
11513 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011516 # Now try to grab the symbols.
11517 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011518 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 +000011519 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11520 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523 # See whether the symbols have a leading underscore.
11524 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11525 ac_cv_sys_symbol_underscore=yes
11526 else
11527 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11528 :
11529 else
11530 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11531 fi
11532 fi
11533 else
11534 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11535 fi
11536 else
11537 echo "configure: failed program was:" >&5
11538 cat conftest.c >&5
11539 fi
11540 rm -rf conftest*
11541
11542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011543{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11544echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545
11546
11547if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11548 if test x"$libltdl_cv_func_dlopen" = xyes ||
11549 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011550 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11551echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11552if test "${libltdl_cv_need_uscore+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554else
11555 libltdl_cv_need_uscore=unknown
11556 save_LIBS="$LIBS"
11557 LIBS="$LIBS $LIBADD_DL"
11558 if test "$cross_compiling" = yes; then :
11559 libltdl_cv_need_uscore=cross
11560else
11561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11562 lt_status=$lt_dlunknown
11563 cat > conftest.$ac_ext <<EOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000011564#line 11564 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565#include "confdefs.h"
11566
11567#if HAVE_DLFCN_H
11568#include <dlfcn.h>
11569#endif
11570
11571#include <stdio.h>
11572
11573#ifdef RTLD_GLOBAL
11574# define LT_DLGLOBAL RTLD_GLOBAL
11575#else
11576# ifdef DL_GLOBAL
11577# define LT_DLGLOBAL DL_GLOBAL
11578# else
11579# define LT_DLGLOBAL 0
11580# endif
11581#endif
11582
11583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11584 find out it does not work in some platform. */
11585#ifndef LT_DLLAZY_OR_NOW
11586# ifdef RTLD_LAZY
11587# define LT_DLLAZY_OR_NOW RTLD_LAZY
11588# else
11589# ifdef DL_LAZY
11590# define LT_DLLAZY_OR_NOW DL_LAZY
11591# else
11592# ifdef RTLD_NOW
11593# define LT_DLLAZY_OR_NOW RTLD_NOW
11594# else
11595# ifdef DL_NOW
11596# define LT_DLLAZY_OR_NOW DL_NOW
11597# else
11598# define LT_DLLAZY_OR_NOW 0
11599# endif
11600# endif
11601# endif
11602# endif
11603#endif
11604
11605#ifdef __cplusplus
11606extern "C" void exit (int);
11607#endif
11608
11609void fnord() { int i=42;}
11610int main ()
11611{
11612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11613 int status = $lt_dlunknown;
11614
11615 if (self)
11616 {
11617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 /* dlclose (self); */
11620 }
Reid Spencera773bd52006-08-04 18:18:08 +000011621 else
11622 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011623
11624 exit (status);
11625}
11626EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628 (eval $ac_link) 2>&5
11629 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011632 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633 lt_status=$?
11634 case x$lt_status in
11635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011637 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638 esac
11639 else :
11640 # compilation failed
11641
11642 fi
11643fi
11644rm -fr conftest*
11645
11646 LIBS="$save_LIBS"
11647
11648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011649{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11650echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651 fi
11652fi
11653
11654if test x"$libltdl_cv_need_uscore" = xyes; then
11655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011656cat >>confdefs.h <<\_ACEOF
11657#define NEED_USCORE 1
11658_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659
11660fi
11661
11662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011663{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11664echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11665if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011667else
11668 # PORTME does your system automatically load deplibs for dlopen?
11669 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11670 # For now, we just catch OSes we know something about -- in the
11671 # future, we'll try test this programmatically.
11672 libltdl_cv_sys_dlopen_deplibs=unknown
11673 case "$host_os" in
11674 aix3*|aix4.1.*|aix4.2.*)
11675 # Unknown whether this is true for these versions of AIX, but
11676 # we want this `case' here to explicitly catch those versions.
11677 libltdl_cv_sys_dlopen_deplibs=unknown
11678 ;;
11679 aix[45]*)
11680 libltdl_cv_sys_dlopen_deplibs=yes
11681 ;;
11682 darwin*)
11683 # Assuming the user has installed a libdl from somewhere, this is true
11684 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11685 libltdl_cv_sys_dlopen_deplibs=yes
11686 ;;
11687 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11688 # GNU and its variants, using gnu ld.so (Glibc)
11689 libltdl_cv_sys_dlopen_deplibs=yes
11690 ;;
11691 hpux10*|hpux11*)
11692 libltdl_cv_sys_dlopen_deplibs=yes
11693 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011694 interix*)
11695 libltdl_cv_sys_dlopen_deplibs=yes
11696 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011697 irix[12345]*|irix6.[01]*)
11698 # Catch all versions of IRIX before 6.2, and indicate that we don't
11699 # know how it worked for any of those versions.
11700 libltdl_cv_sys_dlopen_deplibs=unknown
11701 ;;
11702 irix*)
11703 # The case above catches anything before 6.2, and it's known that
11704 # at 6.2 and later dlopen does load deplibs.
11705 libltdl_cv_sys_dlopen_deplibs=yes
11706 ;;
11707 netbsd*)
11708 libltdl_cv_sys_dlopen_deplibs=yes
11709 ;;
11710 openbsd*)
11711 libltdl_cv_sys_dlopen_deplibs=yes
11712 ;;
11713 osf[1234]*)
11714 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11715 # it did *not* use an RPATH in a shared library to find objects the
11716 # library depends on, so we explictly say `no'.
11717 libltdl_cv_sys_dlopen_deplibs=no
11718 ;;
11719 osf5.0|osf5.0a|osf5.1)
11720 # dlopen *does* load deplibs and with the right loader patch applied
11721 # it even uses RPATH in a shared library to search for shared objects
11722 # that the library depends on, but there's no easy way to know if that
11723 # patch is installed. Since this is the case, all we can really
11724 # say is unknown -- it depends on the patch being installed. If
11725 # it is, this changes to `yes'. Without it, it would be `no'.
11726 libltdl_cv_sys_dlopen_deplibs=unknown
11727 ;;
11728 osf*)
11729 # the two cases above should catch all versions of osf <= 5.1. Read
11730 # the comments above for what we know about them.
11731 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11732 # is used to find them so we can finally say `yes'.
11733 libltdl_cv_sys_dlopen_deplibs=yes
11734 ;;
11735 solaris*)
11736 libltdl_cv_sys_dlopen_deplibs=yes
11737 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11739 libltdl_cv_sys_dlopen_deplibs=yes
11740 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011741 esac
11742
11743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011744{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11745echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011748cat >>confdefs.h <<\_ACEOF
11749#define LTDL_DLOPEN_DEPLIBS 1
11750_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751
11752fi
11753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011754
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011756do
11757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763fi
11764ac_res=`eval echo '${'$as_ac_Header'}'`
11765 { echo "$as_me:$LINENO: result: $ac_res" >&5
11766echo "${ECHO_T}$ac_res" >&6; }
11767else
11768 # Is the header compilable?
11769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11771cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777$ac_includes_default
11778#include <$ac_header>
11779_ACEOF
11780rm -f conftest.$ac_objext
11781if { (ac_try="$ac_compile"
11782case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785esac
11786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest.$ac_objext'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808esac
11809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_header_compiler=yes
11815else
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 ac_header_compiler=no
11820fi
11821
11822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824echo "${ECHO_T}$ac_header_compiler" >&6; }
11825
11826# Is the header present?
11827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11829cat >conftest.$ac_ext <<_ACEOF
11830/* confdefs.h. */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h. */
11835#include <$ac_header>
11836_ACEOF
11837if { (ac_try="$ac_cpp conftest.$ac_ext"
11838case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } >/dev/null; then
11850 if test -s conftest.err; then
11851 ac_cpp_err=$ac_c_preproc_warn_flag
11852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11853 else
11854 ac_cpp_err=
11855 fi
11856else
11857 ac_cpp_err=yes
11858fi
11859if test -z "$ac_cpp_err"; then
11860 ac_header_preproc=yes
11861else
11862 echo "$as_me: failed program was:" >&5
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865 ac_header_preproc=no
11866fi
11867
11868rm -f conftest.err conftest.$ac_ext
11869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870echo "${ECHO_T}$ac_header_preproc" >&6; }
11871
11872# So? What about this header?
11873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11874 yes:no: )
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11879 ac_header_preproc=yes
11880 ;;
11881 no:yes:* )
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11894 ( cat <<\_ASBOX
11895## ----------------------------------- ##
11896## Report this to llvmbugs@cs.uiuc.edu ##
11897## ----------------------------------- ##
11898_ASBOX
11899 ) | sed "s/^/$as_me: WARNING: /" >&2
11900 ;;
11901esac
11902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906else
11907 eval "$as_ac_Header=\$ac_header_preproc"
11908fi
11909ac_res=`eval echo '${'$as_ac_Header'}'`
11910 { echo "$as_me:$LINENO: result: $ac_res" >&5
11911echo "${ECHO_T}$ac_res" >&6; }
11912
11913fi
11914if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917_ACEOF
11918
11919fi
11920
11921done
11922
11923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011924{ echo "$as_me:$LINENO: checking for error_t" >&5
11925echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11926if test "${ac_cv_type_error_t+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929 cat >conftest.$ac_ext <<_ACEOF
11930/* confdefs.h. */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h. */
11935#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011936# include <argz.h>
11937#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011938
11939typedef error_t ac__type_new_;
11940int
11941main ()
11942{
11943if ((ac__type_new_ *) 0)
11944 return 0;
11945if (sizeof (ac__type_new_))
11946 return 0;
11947 ;
11948 return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext
11952if { (ac_try="$ac_compile"
11953case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956esac
11957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969esac
11970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_type_error_t=yes
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ac_cv_type_error_t=no
11991fi
11992
11993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994fi
11995{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11996echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11997if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011998
11999cat >>confdefs.h <<_ACEOF
12000#define HAVE_ERROR_T 1
12001_ACEOF
12002
12003
12004else
12005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012006cat >>confdefs.h <<\_ACEOF
12007#define error_t int
12008_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009
12010fi
12011
12012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012013
12014
12015
12016
12017
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012019do
12020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026 cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034#define $ac_func innocuous_$ac_func
12035
12036/* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12040
12041#ifdef __STDC__
12042# include <limits.h>
12043#else
12044# include <assert.h>
12045#endif
12046
12047#undef $ac_func
12048
12049/* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12052#ifdef __cplusplus
12053extern "C"
12054#endif
12055char $ac_func ();
12056/* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059#if defined __stub_$ac_func || defined __stub___$ac_func
12060choke me
12061#endif
12062
12063int
12064main ()
12065{
12066return $ac_func ();
12067 ;
12068 return 0;
12069}
12070_ACEOF
12071rm -f conftest.$ac_objext conftest$ac_exeext
12072if { (ac_try="$ac_link"
12073case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_link") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089esac
12090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12106else
12107 echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
12110 eval "$as_ac_var=no"
12111fi
12112
12113rm -f core conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12115fi
12116ac_res=`eval echo '${'$as_ac_var'}'`
12117 { echo "$as_me:$LINENO: result: $ac_res" >&5
12118echo "${ECHO_T}$ac_res" >&6; }
12119if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122_ACEOF
12123
12124fi
12125done
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012146
12147
12148
12149
12150
12151
12152
12153
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012154for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12155 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156do
12157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163fi
12164ac_res=`eval echo '${'$as_ac_Header'}'`
12165 { echo "$as_me:$LINENO: result: $ac_res" >&5
12166echo "${ECHO_T}$ac_res" >&6; }
12167else
12168 # Is the header compilable?
12169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12171cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177$ac_includes_default
12178#include <$ac_header>
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (ac_try="$ac_compile"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_header_compiler=yes
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 ac_header_compiler=no
12220fi
12221
12222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224echo "${ECHO_T}$ac_header_compiler" >&6; }
12225
12226# Is the header present?
12227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12229cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
12234/* end confdefs.h. */
12235#include <$ac_header>
12236_ACEOF
12237if { (ac_try="$ac_cpp conftest.$ac_ext"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev/null; then
12250 if test -s conftest.err; then
12251 ac_cpp_err=$ac_c_preproc_warn_flag
12252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12253 else
12254 ac_cpp_err=
12255 fi
12256else
12257 ac_cpp_err=yes
12258fi
12259if test -z "$ac_cpp_err"; then
12260 ac_header_preproc=yes
12261else
12262 echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_header_preproc=no
12266fi
12267
12268rm -f conftest.err conftest.$ac_ext
12269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270echo "${ECHO_T}$ac_header_preproc" >&6; }
12271
12272# So? What about this header?
12273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12280 ;;
12281 no:yes:* )
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294 ( cat <<\_ASBOX
12295## ----------------------------------- ##
12296## Report this to llvmbugs@cs.uiuc.edu ##
12297## ----------------------------------- ##
12298_ASBOX
12299 ) | sed "s/^/$as_me: WARNING: /" >&2
12300 ;;
12301esac
12302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 eval "$as_ac_Header=\$ac_header_preproc"
12308fi
12309ac_res=`eval echo '${'$as_ac_Header'}'`
12310 { echo "$as_me:$LINENO: result: $ac_res" >&5
12311echo "${ECHO_T}$ac_res" >&6; }
12312
12313fi
12314if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317_ACEOF
12318
12319fi
12320
12321done
12322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012323
12324
12325
12326
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012327for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328do
12329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335fi
12336ac_res=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338echo "${ECHO_T}$ac_res" >&6; }
12339else
12340 # Is the header compilable?
12341{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349$ac_includes_default
12350#include <$ac_header>
12351_ACEOF
12352rm -f conftest.$ac_objext
12353if { (ac_try="$ac_compile"
12354case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357esac
12358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12387else
12388 echo "$as_me: failed program was:" >&5
12389sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_header_compiler=no
12392fi
12393
12394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396echo "${ECHO_T}$ac_header_compiler" >&6; }
12397
12398# Is the header present?
12399{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12401cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
12407#include <$ac_header>
12408_ACEOF
12409if { (ac_try="$ac_cpp conftest.$ac_ext"
12410case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413esac
12414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } >/dev/null; then
12422 if test -s conftest.err; then
12423 ac_cpp_err=$ac_c_preproc_warn_flag
12424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12425 else
12426 ac_cpp_err=
12427 fi
12428else
12429 ac_cpp_err=yes
12430fi
12431if test -z "$ac_cpp_err"; then
12432 ac_header_preproc=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_header_preproc=no
12438fi
12439
12440rm -f conftest.err conftest.$ac_ext
12441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442echo "${ECHO_T}$ac_header_preproc" >&6; }
12443
12444# So? What about this header?
12445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12452 ;;
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467## ----------------------------------- ##
12468## Report this to llvmbugs@cs.uiuc.edu ##
12469## ----------------------------------- ##
12470_ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12472 ;;
12473esac
12474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12480fi
12481ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483echo "${ECHO_T}$ac_res" >&6; }
12484
12485fi
12486if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489_ACEOF
12490
12491fi
12492
12493done
12494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495
12496
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498do
12499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505fi
12506ac_res=`eval echo '${'$as_ac_Header'}'`
12507 { echo "$as_me:$LINENO: result: $ac_res" >&5
12508echo "${ECHO_T}$ac_res" >&6; }
12509else
12510 # Is the header compilable?
12511{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12513cat >conftest.$ac_ext <<_ACEOF
12514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519$ac_includes_default
12520#include <$ac_header>
12521_ACEOF
12522rm -f conftest.$ac_objext
12523if { (ac_try="$ac_compile"
12524case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527esac
12528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_compile") 2>conftest.er1
12530 ac_status=$?
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540esac
12541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_header_compiler=yes
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561 ac_header_compiler=no
12562fi
12563
12564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12566echo "${ECHO_T}$ac_header_compiler" >&6; }
12567
12568# Is the header present?
12569{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12571cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577#include <$ac_header>
12578_ACEOF
12579if { (ac_try="$ac_cpp conftest.$ac_ext"
12580case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583esac
12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } >/dev/null; then
12592 if test -s conftest.err; then
12593 ac_cpp_err=$ac_c_preproc_warn_flag
12594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12595 else
12596 ac_cpp_err=
12597 fi
12598else
12599 ac_cpp_err=yes
12600fi
12601if test -z "$ac_cpp_err"; then
12602 ac_header_preproc=yes
12603else
12604 echo "$as_me: failed program was:" >&5
12605sed 's/^/| /' conftest.$ac_ext >&5
12606
12607 ac_header_preproc=no
12608fi
12609
12610rm -f conftest.err conftest.$ac_ext
12611{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612echo "${ECHO_T}$ac_header_preproc" >&6; }
12613
12614# So? What about this header?
12615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12616 yes:no: )
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc=yes
12622 ;;
12623 no:yes:* )
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12636 ( cat <<\_ASBOX
12637## ----------------------------------- ##
12638## Report this to llvmbugs@cs.uiuc.edu ##
12639## ----------------------------------- ##
12640_ASBOX
12641 ) | sed "s/^/$as_me: WARNING: /" >&2
12642 ;;
12643esac
12644{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648else
12649 eval "$as_ac_Header=\$ac_header_preproc"
12650fi
12651ac_res=`eval echo '${'$as_ac_Header'}'`
12652 { echo "$as_me:$LINENO: result: $ac_res" >&5
12653echo "${ECHO_T}$ac_res" >&6; }
12654
12655fi
12656if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012657 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012659_ACEOF
12660 break
12661fi
12662
12663done
12664
12665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666
12667
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012668for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012669do
12670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675else
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12684#define $ac_func innocuous_$ac_func
12685
12686/* System header to define __stub macros and hopefully few prototypes,
12687 which can conflict with char $ac_func (); below.
12688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12689 <limits.h> exists even on freestanding compilers. */
12690
12691#ifdef __STDC__
12692# include <limits.h>
12693#else
12694# include <assert.h>
12695#endif
12696
12697#undef $ac_func
12698
12699/* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702#ifdef __cplusplus
12703extern "C"
12704#endif
12705char $ac_func ();
12706/* The GNU C library defines this for functions which it implements
12707 to always fail with ENOSYS. Some functions are actually named
12708 something starting with __ and the normal name is an alias. */
12709#if defined __stub_$ac_func || defined __stub___$ac_func
12710choke me
12711#endif
12712
12713int
12714main ()
12715{
12716return $ac_func ();
12717 ;
12718 return 0;
12719}
12720_ACEOF
12721rm -f conftest.$ac_objext conftest$ac_exeext
12722if { (ac_try="$ac_link"
12723case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 eval "$as_ac_var=yes"
12756else
12757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 eval "$as_ac_var=no"
12761fi
12762
12763rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765fi
12766ac_res=`eval echo '${'$as_ac_var'}'`
12767 { echo "$as_me:$LINENO: result: $ac_res" >&5
12768echo "${ECHO_T}$ac_res" >&6; }
12769if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012770 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012772_ACEOF
12773 break
12774fi
12775done
12776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777
12778
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012780do
12781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795#define $ac_func innocuous_$ac_func
12796
12797/* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char $ac_func (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12801
12802#ifdef __STDC__
12803# include <limits.h>
12804#else
12805# include <assert.h>
12806#endif
12807
12808#undef $ac_func
12809
12810/* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813#ifdef __cplusplus
12814extern "C"
12815#endif
12816char $ac_func ();
12817/* The GNU C library defines this for functions which it implements
12818 to always fail with ENOSYS. Some functions are actually named
12819 something starting with __ and the normal name is an alias. */
12820#if defined __stub_$ac_func || defined __stub___$ac_func
12821choke me
12822#endif
12823
12824int
12825main ()
12826{
12827return $ac_func ();
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest$ac_exeext
12833if { (ac_try="$ac_link"
12834case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837esac
12838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850esac
12851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_var=yes"
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 eval "$as_ac_var=no"
12872fi
12873
12874rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876fi
12877ac_res=`eval echo '${'$as_ac_var'}'`
12878 { echo "$as_me:$LINENO: result: $ac_res" >&5
12879echo "${ECHO_T}$ac_res" >&6; }
12880if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012881 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012883_ACEOF
12884 break
12885fi
12886done
12887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012888
12889
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012890for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012891do
12892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898 cat >conftest.$ac_ext <<_ACEOF
12899/* confdefs.h. */
12900_ACEOF
12901cat confdefs.h >>conftest.$ac_ext
12902cat >>conftest.$ac_ext <<_ACEOF
12903/* end confdefs.h. */
12904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906#define $ac_func innocuous_$ac_func
12907
12908/* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char $ac_func (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12912
12913#ifdef __STDC__
12914# include <limits.h>
12915#else
12916# include <assert.h>
12917#endif
12918
12919#undef $ac_func
12920
12921/* Override any GCC internal prototype to avoid an error.
12922 Use char because int might match the return type of a GCC
12923 builtin and then its argument prototype would still apply. */
12924#ifdef __cplusplus
12925extern "C"
12926#endif
12927char $ac_func ();
12928/* The GNU C library defines this for functions which it implements
12929 to always fail with ENOSYS. Some functions are actually named
12930 something starting with __ and the normal name is an alias. */
12931#if defined __stub_$ac_func || defined __stub___$ac_func
12932choke me
12933#endif
12934
12935int
12936main ()
12937{
12938return $ac_func ();
12939 ;
12940 return 0;
12941}
12942_ACEOF
12943rm -f conftest.$ac_objext conftest$ac_exeext
12944if { (ac_try="$ac_link"
12945case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948esac
12949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
12972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 eval "$as_ac_var=yes"
12978else
12979 echo "$as_me: failed program was:" >&5
12980sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 eval "$as_ac_var=no"
12983fi
12984
12985rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987fi
12988ac_res=`eval echo '${'$as_ac_var'}'`
12989 { echo "$as_me:$LINENO: result: $ac_res" >&5
12990echo "${ECHO_T}$ac_res" >&6; }
12991if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012992 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012994_ACEOF
12995 break
12996fi
12997done
12998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999
13000
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013001for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013002do
13003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13004{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009 cat >conftest.$ac_ext <<_ACEOF
13010/* confdefs.h. */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h. */
13015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13017#define $ac_func innocuous_$ac_func
13018
13019/* System header to define __stub macros and hopefully few prototypes,
13020 which can conflict with char $ac_func (); below.
13021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13022 <limits.h> exists even on freestanding compilers. */
13023
13024#ifdef __STDC__
13025# include <limits.h>
13026#else
13027# include <assert.h>
13028#endif
13029
13030#undef $ac_func
13031
13032/* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035#ifdef __cplusplus
13036extern "C"
13037#endif
13038char $ac_func ();
13039/* The GNU C library defines this for functions which it implements
13040 to always fail with ENOSYS. Some functions are actually named
13041 something starting with __ and the normal name is an alias. */
13042#if defined __stub_$ac_func || defined __stub___$ac_func
13043choke me
13044#endif
13045
13046int
13047main ()
13048{
13049return $ac_func ();
13050 ;
13051 return 0;
13052}
13053_ACEOF
13054rm -f conftest.$ac_objext conftest$ac_exeext
13055if { (ac_try="$ac_link"
13056case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_link") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069 { (case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 eval "$as_ac_var=yes"
13089else
13090 echo "$as_me: failed program was:" >&5
13091sed 's/^/| /' conftest.$ac_ext >&5
13092
13093 eval "$as_ac_var=no"
13094fi
13095
13096rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098fi
13099ac_res=`eval echo '${'$as_ac_var'}'`
13100 { echo "$as_me:$LINENO: result: $ac_res" >&5
13101echo "${ECHO_T}$ac_res" >&6; }
13102if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013103 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013105_ACEOF
13106
13107fi
13108done
13109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110
13111
13112
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013113for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114do
13115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13116{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120else
13121 cat >conftest.$ac_ext <<_ACEOF
13122/* confdefs.h. */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h. */
13127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13129#define $ac_func innocuous_$ac_func
13130
13131/* System header to define __stub macros and hopefully few prototypes,
13132 which can conflict with char $ac_func (); below.
13133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13134 <limits.h> exists even on freestanding compilers. */
13135
13136#ifdef __STDC__
13137# include <limits.h>
13138#else
13139# include <assert.h>
13140#endif
13141
13142#undef $ac_func
13143
13144/* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147#ifdef __cplusplus
13148extern "C"
13149#endif
13150char $ac_func ();
13151/* The GNU C library defines this for functions which it implements
13152 to always fail with ENOSYS. Some functions are actually named
13153 something starting with __ and the normal name is an alias. */
13154#if defined __stub_$ac_func || defined __stub___$ac_func
13155choke me
13156#endif
13157
13158int
13159main ()
13160{
13161return $ac_func ();
13162 ;
13163 return 0;
13164}
13165_ACEOF
13166rm -f conftest.$ac_objext conftest$ac_exeext
13167if { (ac_try="$ac_link"
13168case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171esac
13172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194esac
13195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 eval "$as_ac_var=yes"
13201else
13202 echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 eval "$as_ac_var=no"
13206fi
13207
13208rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13210fi
13211ac_res=`eval echo '${'$as_ac_var'}'`
13212 { echo "$as_me:$LINENO: result: $ac_res" >&5
13213echo "${ECHO_T}$ac_res" >&6; }
13214if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013215 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013217_ACEOF
13218
13219fi
13220done
13221
13222
Douglas Gregor01746742009-05-11 18:05:52 +000013223
Reid Spencer7931a782004-12-27 06:15:02 +000013224if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013225 LLVMGCC="llvm-gcc${EXEEXT}"
13226 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013227 LLVMGCCCOMMAND="$LLVMGCC"
13228 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013229 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13230
13231 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13232
Reid Spencerc84492c2005-06-02 22:34:49 +000013233 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13234set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13237if test "${ac_cv_path_LLVMGCC+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013239else
13240 case $LLVMGCC in
13241 [\\/]* | ?:[\\/]*)
13242 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13243 ;;
13244 *)
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $PATH
13247do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 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 +000013252 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013254 break 2
13255 fi
13256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257done
Reid Spencera773bd52006-08-04 18:18:08 +000013258IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013259
Reid Spencer59473af2004-12-25 07:31:29 +000013260 ;;
13261esac
13262fi
13263LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013264if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13266echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268 { echo "$as_me:$LINENO: result: no" >&5
13269echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013270fi
13271
Reid Spencera773bd52006-08-04 18:18:08 +000013272
Reid Spencerc84492c2005-06-02 22:34:49 +000013273 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13274set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13277if test "${ac_cv_path_LLVMGXX+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013279else
13280 case $LLVMGXX in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13283 ;;
13284 *)
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286for as_dir in $PATH
13287do
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 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 +000013292 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013294 break 2
13295 fi
13296done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013297done
Reid Spencera773bd52006-08-04 18:18:08 +000013298IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013299
Reid Spencer59473af2004-12-25 07:31:29 +000013300 ;;
13301esac
13302fi
13303LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013304if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013305 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13306echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013308 { echo "$as_me:$LINENO: result: no" >&5
13309echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013310fi
13311
Reid Spencera773bd52006-08-04 18:18:08 +000013312
Reid Spencer59473af2004-12-25 07:31:29 +000013313else
Devang Patel5d28b882007-12-04 22:54:47 +000013314 if test -z "$LLVMGCC"; then
13315 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013316 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013317 fi
13318 if test -z "$LLVMGXX"; then
13319 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013320 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013321 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013322
Reid Spencer59473af2004-12-25 07:31:29 +000013323 LLVMGCC=$LLVMGCC
13324
13325 LLVMGXX=$LLVMGXX
13326
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013327 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13328
13329 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13330
Reid Spencer59473af2004-12-25 07:31:29 +000013331fi
13332
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013333
Daniel Dunbar98515672010-02-23 10:00:49 +000013334# Check whether --with-llvmcc was given.
13335if test "${with_llvmcc+set}" = set; then
13336 withval=$with_llvmcc;
13337else
13338 with_llvmcc=check
13339fi
13340
13341{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13342echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13343if test "$with_llvmcc" != "check"; then
13344 if (test "$with_llvmcc" != "llvm-gcc" &&
13345 test "$with_llvmcc" != "clang" &&
13346 test "$with_llvmcc" != "none"); then
13347 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13348echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13349 { (exit 1); exit 1; }; }
13350 fi
13351 WITH_LLVMCC="$with_llvmcc"
13352elif test -n "$LLVMGCC"; then
13353 WITH_LLVMCC=llvm-gcc
13354elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13355 WITH_LLVMCC=clang
13356else
13357 WITH_LLVMCC=none
13358fi
13359{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13360echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13361LLVMCC_OPTION=$WITH_LLVMCC
13362
13363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13365echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013366
Reid Spencer86901802004-12-08 23:07:27 +000013367ICC=no
13368IXX=no
13369case $CC in
13370 icc*|icpc*)
13371 ICC=yes
13372 IXX=yes
13373 ;;
13374 *)
13375 ;;
13376esac
13377
Duraid Madina937c60a2006-02-15 07:57:42 +000013378if test "$GCC" != "yes" && test "$ICC" != "yes"
13379then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013380 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13381echo "$as_me: error: gcc|icc required but not found" >&2;}
13382 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013383fi
13384
13385if test "$GXX" != "yes" && test "$IXX" != "yes"
13386then
Eric Christopher73e36da2010-12-08 02:02:14 +000013387 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13388echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013389 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013390fi
13391
Reid Spencer86901802004-12-08 23:07:27 +000013392if test "$GCC" = "yes"
13393then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013394 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013395#if !defined(__GNUC__) || __GNUC__ < 3
13396#error Unsupported GCC version
13397#endif
13398
13399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013400rm -f conftest.$ac_objext
13401if { (ac_try="$ac_compile"
13402case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405esac
13406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415 { (case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_try") 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest.$ac_objext'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428esac
13429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
13439 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13440echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13441 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013443
Chris Lattner399c7c72008-02-05 19:43:53 +000013444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013445fi
13446
13447if test -z "$llvm_cv_gnu_make_command"
13448then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013449 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13450echo "$as_me: error: GNU Make required but not found" >&2;}
13451 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013452fi
13453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013454{ echo "$as_me:$LINENO: result: ok" >&5
13455echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013457{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13458echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013459NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13460
13461NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13464echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013465
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013467
13468{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13469echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13470if test "${ac_cv_lib_m_sin+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013472else
13473 ac_check_lib_save_LIBS=$LIBS
13474LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013475cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013480/* end confdefs.h. */
13481
Reid Spencera773bd52006-08-04 18:18:08 +000013482/* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013485#ifdef __cplusplus
13486extern "C"
13487#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013488char sin ();
13489int
13490main ()
13491{
Reid Spencera773bd52006-08-04 18:18:08 +000013492return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013493 ;
13494 return 0;
13495}
13496_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013497rm -f conftest.$ac_objext conftest$ac_exeext
13498if { (ac_try="$ac_link"
13499case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502esac
13503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_link") 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13515esac
13516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_try") 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525esac
13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013531 ac_cv_lib_m_sin=yes
13532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013538
Bill Wendlingebcceee2009-04-18 11:20:33 +000013539rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013540 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013541LIBS=$ac_check_lib_save_LIBS
13542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013543{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13544echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13545if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013546 cat >>confdefs.h <<_ACEOF
13547#define HAVE_LIBM 1
13548_ACEOF
13549
13550 LIBS="-lm $LIBS"
13551
13552fi
13553
Jeff Cohen28783c32007-01-12 18:22:38 +000013554if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555
13556{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13557echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13558if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013560else
13561 ac_check_lib_save_LIBS=$LIBS
13562LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013563cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013568/* end confdefs.h. */
13569
Reid Spencer48fdf912006-06-01 19:03:21 +000013570
Reid Spencer484fc8e2006-06-01 16:55:59 +000013571int
13572main ()
13573{
Reid Spencera773bd52006-08-04 18:18:08 +000013574return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013575 ;
13576 return 0;
13577}
13578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013579rm -f conftest.$ac_objext conftest$ac_exeext
13580if { (ac_try="$ac_link"
13581case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584esac
13585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_link") 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
13593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13594 { (case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_try") 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
13604 { (case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013613 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013615 echo "$as_me: failed program was:" >&5
13616sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013620
Bill Wendlingebcceee2009-04-18 11:20:33 +000013621rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013622 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013623LIBS=$ac_check_lib_save_LIBS
13624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013625{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13626echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13627if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013628 cat >>confdefs.h <<_ACEOF
13629#define HAVE_LIBIMAGEHLP 1
13630_ACEOF
13631
13632 LIBS="-limagehlp $LIBS"
13633
13634fi
13635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013636
13637{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13638echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13639if test "${ac_cv_lib_psapi_main+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013641else
13642 ac_check_lib_save_LIBS=$LIBS
13643LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013644cat >conftest.$ac_ext <<_ACEOF
13645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013649/* end confdefs.h. */
13650
Reid Spencer48fdf912006-06-01 19:03:21 +000013651
Reid Spencer484fc8e2006-06-01 16:55:59 +000013652int
13653main ()
13654{
Reid Spencera773bd52006-08-04 18:18:08 +000013655return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013656 ;
13657 return 0;
13658}
13659_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013660rm -f conftest.$ac_objext conftest$ac_exeext
13661if { (ac_try="$ac_link"
13662case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_link") 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest$ac_exeext'
13685 { (case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688esac
13689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013694 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013696 echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
13699 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013701
Bill Wendlingebcceee2009-04-18 11:20:33 +000013702rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013703 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013704LIBS=$ac_check_lib_save_LIBS
13705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013706{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13707echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13708if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013709 cat >>confdefs.h <<_ACEOF
13710#define HAVE_LIBPSAPI 1
13711_ACEOF
13712
13713 LIBS="-lpsapi $LIBS"
13714
13715fi
13716
13717fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013719{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13720echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13721if test "${ac_cv_search_dlopen+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013723else
13724 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013725cat >conftest.$ac_ext <<_ACEOF
13726/* confdefs.h. */
13727_ACEOF
13728cat confdefs.h >>conftest.$ac_ext
13729cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013730/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013731
Reid Spencera773bd52006-08-04 18:18:08 +000013732/* Override any GCC internal prototype to avoid an error.
13733 Use char because int might match the return type of a GCC
13734 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013735#ifdef __cplusplus
13736extern "C"
13737#endif
John Criswell7a73b802003-06-30 21:59:07 +000013738char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013739int
13740main ()
13741{
Reid Spencera773bd52006-08-04 18:18:08 +000013742return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013743 ;
13744 return 0;
13745}
13746_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013747for ac_lib in '' dl; do
13748 if test -z "$ac_lib"; then
13749 ac_res="none required"
13750 else
13751 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013753 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754 rm -f conftest.$ac_objext conftest$ac_exeext
13755if { (ac_try="$ac_link"
13756case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759esac
13760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_link") 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13769 { (case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772esac
13773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_try") 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try='test -s conftest$ac_exeext'
13779 { (case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782esac
13783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_try") 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013788 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
13793
John Criswell7a73b802003-06-30 21:59:07 +000013794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013795
Bill Wendlingebcceee2009-04-18 11:20:33 +000013796rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013797 conftest$ac_exeext
13798 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013799 break
John Criswell7a73b802003-06-30 21:59:07 +000013800fi
Reid Spencera773bd52006-08-04 18:18:08 +000013801done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013802if test "${ac_cv_search_dlopen+set}" = set; then
13803 :
Reid Spencera773bd52006-08-04 18:18:08 +000013804else
13805 ac_cv_search_dlopen=no
13806fi
13807rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013808LIBS=$ac_func_search_save_LIBS
13809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013810{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13811echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013812ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013816cat >>confdefs.h <<\_ACEOF
13817#define HAVE_DLOPEN 1
13818_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013819
13820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013821 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13822echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013823fi
13824
13825
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013826if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013827 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13828echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13829if test "${ac_cv_search_ffi_call+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013831else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013832 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013833cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013838/* end confdefs.h. */
13839
13840/* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13843#ifdef __cplusplus
13844extern "C"
13845#endif
13846char ffi_call ();
13847int
13848main ()
13849{
13850return ffi_call ();
13851 ;
13852 return 0;
13853}
13854_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013855for ac_lib in '' ffi; do
13856 if test -z "$ac_lib"; then
13857 ac_res="none required"
13858 else
13859 ac_res=-l$ac_lib
13860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13861 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013862 rm -f conftest.$ac_objext conftest$ac_exeext
13863if { (ac_try="$ac_link"
13864case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867esac
13868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_link") 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13877 { (case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880esac
13881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_try") 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest$ac_exeext'
13887 { (case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890esac
13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013896 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897else
13898 echo "$as_me: failed program was:" >&5
13899sed 's/^/| /' conftest.$ac_ext >&5
13900
13901
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903
Bill Wendlingebcceee2009-04-18 11:20:33 +000013904rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013905 conftest$ac_exeext
13906 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013907 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013908fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013910if test "${ac_cv_search_ffi_call+set}" = set; then
13911 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013912else
13913 ac_cv_search_ffi_call=no
13914fi
13915rm conftest.$ac_ext
13916LIBS=$ac_func_search_save_LIBS
13917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13919echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013920ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013921if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924cat >>confdefs.h <<\_ACEOF
13925#define HAVE_FFI_CALL 1
13926_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013927
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013928else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013929 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13930echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13931 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013932fi
13933
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013934fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13937echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13938if test "${ac_cv_search_mallinfo+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013940else
13941 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013942cat >conftest.$ac_ext <<_ACEOF
13943/* confdefs.h. */
13944_ACEOF
13945cat confdefs.h >>conftest.$ac_ext
13946cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013948
Reid Spencera773bd52006-08-04 18:18:08 +000013949/* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013952#ifdef __cplusplus
13953extern "C"
13954#endif
John Criswell7a73b802003-06-30 21:59:07 +000013955char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013956int
13957main ()
13958{
Reid Spencera773bd52006-08-04 18:18:08 +000013959return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013960 ;
13961 return 0;
13962}
13963_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013964for ac_lib in '' malloc; do
13965 if test -z "$ac_lib"; then
13966 ac_res="none required"
13967 else
13968 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013970 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971 rm -f conftest.$ac_objext conftest$ac_exeext
13972if { (ac_try="$ac_link"
13973case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_link") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989esac
13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999esac
14000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014005 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006else
14007 echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
14010
John Criswell7a73b802003-06-30 21:59:07 +000014011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012
Bill Wendlingebcceee2009-04-18 11:20:33 +000014013rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014014 conftest$ac_exeext
14015 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014016 break
John Criswell7a73b802003-06-30 21:59:07 +000014017fi
Reid Spencera773bd52006-08-04 18:18:08 +000014018done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014019if test "${ac_cv_search_mallinfo+set}" = set; then
14020 :
Reid Spencera773bd52006-08-04 18:18:08 +000014021else
14022 ac_cv_search_mallinfo=no
14023fi
14024rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014025LIBS=$ac_func_search_save_LIBS
14026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14028echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014029ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033cat >>confdefs.h <<\_ACEOF
14034#define HAVE_MALLINFO 1
14035_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014036
14037fi
14038
14039
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014040if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041
14042{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14043echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14044if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014046else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014047 ac_check_lib_save_LIBS=$LIBS
14048LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014049cat >conftest.$ac_ext <<_ACEOF
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014054/* end confdefs.h. */
14055
Reid Spencera773bd52006-08-04 18:18:08 +000014056/* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014059#ifdef __cplusplus
14060extern "C"
14061#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014062char pthread_mutex_init ();
14063int
14064main ()
14065{
Reid Spencera773bd52006-08-04 18:18:08 +000014066return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014067 ;
14068 return 0;
14069}
14070_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071rm -f conftest.$ac_objext conftest$ac_exeext
14072if { (ac_try="$ac_link"
14073case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076esac
14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_link") 2>conftest.er1
14079 ac_status=$?
14080 grep -v '^ *+' conftest.er1 >conftest.err
14081 rm -f conftest.er1
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086 { (case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089esac
14090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_try") 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest$ac_exeext'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014105 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014107 echo "$as_me: failed program was:" >&5
14108sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112
Bill Wendlingebcceee2009-04-18 11:20:33 +000014113rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014114 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014115LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14118echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14119if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014120 cat >>confdefs.h <<_ACEOF
14121#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014122_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014123
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014124 LIBS="-lpthread $LIBS"
14125
Reid Spencer22177fe2005-07-12 15:24:20 +000014126fi
14127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014128 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14129echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14130if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014132else
14133 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134cat >conftest.$ac_ext <<_ACEOF
14135/* confdefs.h. */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014139/* end confdefs.h. */
14140
Reid Spencera773bd52006-08-04 18:18:08 +000014141/* Override any GCC internal prototype to avoid an error.
14142 Use char because int might match the return type of a GCC
14143 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014144#ifdef __cplusplus
14145extern "C"
14146#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014147char pthread_mutex_lock ();
14148int
14149main ()
14150{
Reid Spencera773bd52006-08-04 18:18:08 +000014151return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014152 ;
14153 return 0;
14154}
14155_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014156for ac_lib in '' pthread; do
14157 if test -z "$ac_lib"; then
14158 ac_res="none required"
14159 else
14160 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014162 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163 rm -f conftest.$ac_objext conftest$ac_exeext
14164if { (ac_try="$ac_link"
14165case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168esac
14169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181esac
14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191esac
14192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_try") 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014197 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014198else
14199 echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
14202
Brian Gaeke5f268f72003-12-05 19:29:01 +000014203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204
Bill Wendlingebcceee2009-04-18 11:20:33 +000014205rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206 conftest$ac_exeext
14207 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014208 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014209fi
Reid Spencera773bd52006-08-04 18:18:08 +000014210done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014211if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14212 :
Reid Spencera773bd52006-08-04 18:18:08 +000014213else
14214 ac_cv_search_pthread_mutex_lock=no
14215fi
14216rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014217LIBS=$ac_func_search_save_LIBS
14218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014219{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14220echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014221ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014222if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225cat >>confdefs.h <<\_ACEOF
14226#define HAVE_PTHREAD_MUTEX_LOCK 1
14227_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014228
14229fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14232echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14233if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014235else
14236 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237cat >conftest.$ac_ext <<_ACEOF
14238/* confdefs.h. */
14239_ACEOF
14240cat confdefs.h >>conftest.$ac_ext
14241cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014242/* end confdefs.h. */
14243
14244/* Override any GCC internal prototype to avoid an error.
14245 Use char because int might match the return type of a GCC
14246 builtin and then its argument prototype would still apply. */
14247#ifdef __cplusplus
14248extern "C"
14249#endif
14250char pthread_rwlock_init ();
14251int
14252main ()
14253{
14254return pthread_rwlock_init ();
14255 ;
14256 return 0;
14257}
14258_ACEOF
14259for ac_lib in '' pthread; do
14260 if test -z "$ac_lib"; then
14261 ac_res="none required"
14262 else
14263 ac_res=-l$ac_lib
14264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14265 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266 rm -f conftest.$ac_objext conftest$ac_exeext
14267if { (ac_try="$ac_link"
14268case "(($ac_try" in
14269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14271esac
14272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_link") 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284esac
14285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; } &&
14290 { ac_try='test -s conftest$ac_exeext'
14291 { (case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294esac
14295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_try") 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014300 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301else
14302 echo "$as_me: failed program was:" >&5
14303sed 's/^/| /' conftest.$ac_ext >&5
14304
14305
Owen Andersonde8aed22009-06-16 18:20:20 +000014306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307
Owen Andersonde8aed22009-06-16 18:20:20 +000014308rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309 conftest$ac_exeext
14310 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014311 break
14312fi
14313done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014314if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14315 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014316else
14317 ac_cv_search_pthread_rwlock_init=no
14318fi
14319rm conftest.$ac_ext
14320LIBS=$ac_func_search_save_LIBS
14321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14323echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014324ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014325if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328cat >>confdefs.h <<\_ACEOF
14329#define HAVE_PTHREAD_RWLOCK_INIT 1
14330_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014331
14332fi
14333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14335echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14336if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014338else
14339 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340cat >conftest.$ac_ext <<_ACEOF
14341/* confdefs.h. */
14342_ACEOF
14343cat confdefs.h >>conftest.$ac_ext
14344cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014345/* end confdefs.h. */
14346
14347/* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14350#ifdef __cplusplus
14351extern "C"
14352#endif
14353char pthread_getspecific ();
14354int
14355main ()
14356{
14357return pthread_getspecific ();
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362for ac_lib in '' pthread; do
14363 if test -z "$ac_lib"; then
14364 ac_res="none required"
14365 else
14366 ac_res=-l$ac_lib
14367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14368 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369 rm -f conftest.$ac_objext conftest$ac_exeext
14370if { (ac_try="$ac_link"
14371case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387esac
14388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397esac
14398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014403 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014404else
14405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408
Owen Anderson27fcfe12009-06-25 23:10:26 +000014409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410
Owen Anderson27fcfe12009-06-25 23:10:26 +000014411rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014412 conftest$ac_exeext
14413 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014414 break
14415fi
14416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014417if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14418 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014419else
14420 ac_cv_search_pthread_getspecific=no
14421fi
14422rm conftest.$ac_ext
14423LIBS=$ac_func_search_save_LIBS
14424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014425{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14426echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014427ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014428if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431cat >>confdefs.h <<\_ACEOF
14432#define HAVE_PTHREAD_GETSPECIFIC 1
14433_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014434
14435fi
14436
Reid Spencer0a262ba2005-08-24 10:07:20 +000014437fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014438
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014439
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014440# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014441if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014442 withval=$with_udis86;
14443 USE_UDIS86=1
14444
14445 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014446 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014447 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14448 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014449
14450{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14451echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14452if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014454else
14455 ac_check_lib_save_LIBS=$LIBS
14456LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014457cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014462/* end confdefs.h. */
14463
14464/* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467#ifdef __cplusplus
14468extern "C"
14469#endif
14470char ud_init ();
14471int
14472main ()
14473{
14474return ud_init ();
14475 ;
14476 return 0;
14477}
14478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479rm -f conftest.$ac_objext conftest$ac_exeext
14480if { (ac_try="$ac_link"
14481case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484esac
14485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14494 { (case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497esac
14498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_try") 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try='test -s conftest$ac_exeext'
14504 { (case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14507esac
14508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014513 ac_cv_lib_udis86_ud_init=yes
14514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014515 echo "$as_me: failed program was:" >&5
14516sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014520
Bill Wendlingebcceee2009-04-18 11:20:33 +000014521rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014522 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014523LIBS=$ac_check_lib_save_LIBS
14524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014525{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14526echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14527if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014528 cat >>confdefs.h <<_ACEOF
14529#define HAVE_LIBUDIS86 1
14530_ACEOF
14531
14532 LIBS="-ludis86 $LIBS"
14533
14534else
14535
14536 echo "Error! You need to have libudis86 around."
14537 exit -1
14538
14539fi
14540
14541
14542else
14543 USE_UDIS86=0
14544
14545fi
14546
14547
14548cat >>confdefs.h <<_ACEOF
14549#define USE_UDIS86 $USE_UDIS86
14550_ACEOF
14551
14552
14553
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014554# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014556 withval=$with_oprofile;
14557 USE_OPROFILE=1
14558
14559 case "$withval" in
14560 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014561 no) llvm_cv_oppath=
14562 USE_OPROFILE=0
14563 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014564 *) llvm_cv_oppath="${withval}/lib/oprofile"
14565 CPPFLAGS="-I${withval}/include";;
14566 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014567 if test -n "$llvm_cv_oppath" ; then
14568 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014569 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14570echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14571if test "${ac_cv_search_bfd_init+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014573else
14574 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014575cat >conftest.$ac_ext <<_ACEOF
14576/* confdefs.h. */
14577_ACEOF
14578cat confdefs.h >>conftest.$ac_ext
14579cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014580/* end confdefs.h. */
14581
14582/* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14585#ifdef __cplusplus
14586extern "C"
14587#endif
14588char bfd_init ();
14589int
14590main ()
14591{
14592return bfd_init ();
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597for ac_lib in '' bfd; do
14598 if test -z "$ac_lib"; then
14599 ac_res="none required"
14600 else
14601 ac_res=-l$ac_lib
14602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14603 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014604 rm -f conftest.$ac_objext conftest$ac_exeext
14605if { (ac_try="$ac_link"
14606case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609esac
14610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622esac
14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest$ac_exeext'
14629 { (case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632esac
14633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_try") 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014638 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014645
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014646rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014647 conftest$ac_exeext
14648 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014649 break
14650fi
14651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014652if test "${ac_cv_search_bfd_init+set}" = set; then
14653 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014654else
14655 ac_cv_search_bfd_init=no
14656fi
14657rm conftest.$ac_ext
14658LIBS=$ac_func_search_save_LIBS
14659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014660{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14661echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014662ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014663if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14665
14666fi
14667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014668 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14669echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14670if test "${ac_cv_search_op_open_agent+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014672else
14673 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014674cat >conftest.$ac_ext <<_ACEOF
14675/* confdefs.h. */
14676_ACEOF
14677cat confdefs.h >>conftest.$ac_ext
14678cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014679/* end confdefs.h. */
14680
14681/* Override any GCC internal prototype to avoid an error.
14682 Use char because int might match the return type of a GCC
14683 builtin and then its argument prototype would still apply. */
14684#ifdef __cplusplus
14685extern "C"
14686#endif
14687char op_open_agent ();
14688int
14689main ()
14690{
14691return op_open_agent ();
14692 ;
14693 return 0;
14694}
14695_ACEOF
14696for ac_lib in '' opagent; do
14697 if test -z "$ac_lib"; then
14698 ac_res="none required"
14699 else
14700 ac_res=-l$ac_lib
14701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14702 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703 rm -f conftest.$ac_objext conftest$ac_exeext
14704if { (ac_try="$ac_link"
14705case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708esac
14709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_link") 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14718 { (case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721esac
14722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_try") 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; } &&
14727 { ac_try='test -s conftest$ac_exeext'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014737 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014738else
14739 echo "$as_me: failed program was:" >&5
14740sed 's/^/| /' conftest.$ac_ext >&5
14741
14742
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014744
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014745rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014746 conftest$ac_exeext
14747 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014748 break
14749fi
14750done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014751if test "${ac_cv_search_op_open_agent+set}" = set; then
14752 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014753else
14754 ac_cv_search_op_open_agent=no
14755fi
14756rm conftest.$ac_ext
14757LIBS=$ac_func_search_save_LIBS
14758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014759{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14760echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014761ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014762if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14764
14765else
14766
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014767 echo "Error! You need to have libopagent around."
14768 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014769
14770fi
14771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014772 if test "${ac_cv_header_opagent_h+set}" = set; then
14773 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14774echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14775if test "${ac_cv_header_opagent_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777fi
14778{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14779echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14780else
14781 # Is the header compilable?
14782{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14783echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14784cat >conftest.$ac_ext <<_ACEOF
14785/* confdefs.h. */
14786_ACEOF
14787cat confdefs.h >>conftest.$ac_ext
14788cat >>conftest.$ac_ext <<_ACEOF
14789/* end confdefs.h. */
14790$ac_includes_default
14791#include <opagent.h>
14792_ACEOF
14793rm -f conftest.$ac_objext
14794if { (ac_try="$ac_compile"
14795case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798esac
14799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811esac
14812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest.$ac_objext'
14818 { (case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821esac
14822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_try") 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_header_compiler=yes
14828else
14829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014832 ac_header_compiler=no
14833fi
14834
14835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14837echo "${ECHO_T}$ac_header_compiler" >&6; }
14838
14839# Is the header present?
14840{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14841echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14842cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848#include <opagent.h>
14849_ACEOF
14850if { (ac_try="$ac_cpp conftest.$ac_ext"
14851case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854esac
14855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } >/dev/null; then
14863 if test -s conftest.err; then
14864 ac_cpp_err=$ac_c_preproc_warn_flag
14865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14866 else
14867 ac_cpp_err=
14868 fi
14869else
14870 ac_cpp_err=yes
14871fi
14872if test -z "$ac_cpp_err"; then
14873 ac_header_preproc=yes
14874else
14875 echo "$as_me: failed program was:" >&5
14876sed 's/^/| /' conftest.$ac_ext >&5
14877
14878 ac_header_preproc=no
14879fi
14880
14881rm -f conftest.err conftest.$ac_ext
14882{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14883echo "${ECHO_T}$ac_header_preproc" >&6; }
14884
14885# So? What about this header?
14886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14887 yes:no: )
14888 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14889echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14891echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14892 ac_header_preproc=yes
14893 ;;
14894 no:yes:* )
14895 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14896echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14898echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14900echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14902echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14904echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14906echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14907 ( cat <<\_ASBOX
14908## ----------------------------------- ##
14909## Report this to llvmbugs@cs.uiuc.edu ##
14910## ----------------------------------- ##
14911_ASBOX
14912 ) | sed "s/^/$as_me: WARNING: /" >&2
14913 ;;
14914esac
14915{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14916echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14917if test "${ac_cv_header_opagent_h+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919else
14920 ac_cv_header_opagent_h=$ac_header_preproc
14921fi
14922{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14923echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14924
14925fi
14926if test $ac_cv_header_opagent_h = yes; then
14927 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014928else
14929
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014930 echo "Error! You need to have opagent.h around."
14931 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014932
14933fi
14934
14935
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014936 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014937
14938else
14939
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014940 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014941
14942
14943fi
14944
14945
14946cat >>confdefs.h <<_ACEOF
14947#define USE_OPROFILE $USE_OPROFILE
14948_ACEOF
14949
14950
14951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014952
14953
14954
14955
14956
Reid Spencer59473af2004-12-25 07:31:29 +000014957ac_header_dirent=no
14958for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014959 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14960{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14961echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965 cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014970/* end confdefs.h. */
14971#include <sys/types.h>
14972#include <$ac_hdr>
14973
14974int
14975main ()
14976{
14977if ((DIR *) 0)
14978return 0;
14979 ;
14980 return 0;
14981}
14982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014983rm -f conftest.$ac_objext
14984if { (ac_try="$ac_compile"
14985case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988esac
14989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001esac
15002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011esac
15012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015017 eval "$as_ac_Header=yes"
15018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024
Reid Spencera773bd52006-08-04 18:18:08 +000015025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015027ac_res=`eval echo '${'$as_ac_Header'}'`
15028 { echo "$as_me:$LINENO: result: $ac_res" >&5
15029echo "${ECHO_T}$ac_res" >&6; }
15030if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015031 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015032#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015033_ACEOF
15034
15035ac_header_dirent=$ac_hdr; break
15036fi
15037
15038done
15039# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15040if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015041 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15042echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15043if test "${ac_cv_search_opendir+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015045else
15046 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015047cat >conftest.$ac_ext <<_ACEOF
15048/* confdefs.h. */
15049_ACEOF
15050cat confdefs.h >>conftest.$ac_ext
15051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015052/* end confdefs.h. */
15053
Reid Spencera773bd52006-08-04 18:18:08 +000015054/* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015057#ifdef __cplusplus
15058extern "C"
15059#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015060char opendir ();
15061int
15062main ()
15063{
Reid Spencera773bd52006-08-04 18:18:08 +000015064return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015065 ;
15066 return 0;
15067}
15068_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015069for ac_lib in '' dir; do
15070 if test -z "$ac_lib"; then
15071 ac_res="none required"
15072 else
15073 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015075 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076 rm -f conftest.$ac_objext conftest$ac_exeext
15077if { (ac_try="$ac_link"
15078case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081esac
15082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_link") 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest$ac_exeext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015110 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015111else
15112 echo "$as_me: failed program was:" >&5
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115
Reid Spencer59473af2004-12-25 07:31:29 +000015116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015117
Bill Wendlingebcceee2009-04-18 11:20:33 +000015118rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015119 conftest$ac_exeext
15120 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015121 break
Reid Spencer59473af2004-12-25 07:31:29 +000015122fi
Reid Spencera773bd52006-08-04 18:18:08 +000015123done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015124if test "${ac_cv_search_opendir+set}" = set; then
15125 :
Reid Spencera773bd52006-08-04 18:18:08 +000015126else
15127 ac_cv_search_opendir=no
15128fi
15129rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015130LIBS=$ac_func_search_save_LIBS
15131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015132{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15133echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015134ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015135if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015137
15138fi
15139
15140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015141 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15142echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15143if test "${ac_cv_search_opendir+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015145else
15146 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015147cat >conftest.$ac_ext <<_ACEOF
15148/* confdefs.h. */
15149_ACEOF
15150cat confdefs.h >>conftest.$ac_ext
15151cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015152/* end confdefs.h. */
15153
Reid Spencera773bd52006-08-04 18:18:08 +000015154/* Override any GCC internal prototype to avoid an error.
15155 Use char because int might match the return type of a GCC
15156 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015157#ifdef __cplusplus
15158extern "C"
15159#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015160char opendir ();
15161int
15162main ()
15163{
Reid Spencera773bd52006-08-04 18:18:08 +000015164return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015165 ;
15166 return 0;
15167}
15168_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015169for ac_lib in '' x; do
15170 if test -z "$ac_lib"; then
15171 ac_res="none required"
15172 else
15173 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015175 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176 rm -f conftest.$ac_objext conftest$ac_exeext
15177if { (ac_try="$ac_link"
15178case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15181esac
15182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_link") 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194esac
15195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest$ac_exeext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015210 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211else
15212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215
Reid Spencer59473af2004-12-25 07:31:29 +000015216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217
Bill Wendlingebcceee2009-04-18 11:20:33 +000015218rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015219 conftest$ac_exeext
15220 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015221 break
Reid Spencer59473af2004-12-25 07:31:29 +000015222fi
Reid Spencera773bd52006-08-04 18:18:08 +000015223done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015224if test "${ac_cv_search_opendir+set}" = set; then
15225 :
Reid Spencera773bd52006-08-04 18:18:08 +000015226else
15227 ac_cv_search_opendir=no
15228fi
15229rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015230LIBS=$ac_func_search_save_LIBS
15231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015232{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15233echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015234ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015235if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015237
15238fi
15239
15240fi
15241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015242{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15243echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15244if test "${ac_cv_header_mmap_anon+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015246else
15247 ac_ext=c
15248ac_cpp='$CPP $CPPFLAGS'
15249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15251ac_compiler_gnu=$ac_cv_c_compiler_gnu
15252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015253 cat >conftest.$ac_ext <<_ACEOF
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015258/* end confdefs.h. */
15259#include <sys/mman.h>
15260#include <unistd.h>
15261#include <fcntl.h>
15262int
15263main ()
15264{
15265mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15266 ;
15267 return 0;
15268}
15269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270rm -f conftest.$ac_objext
15271if { (ac_try="$ac_compile"
15272case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275esac
15276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_compile") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15285 { (case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288esac
15289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_try") 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15298esac
15299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_try") 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015304 ac_cv_header_mmap_anon=yes
15305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015306 echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015311
Reid Spencera773bd52006-08-04 18:18:08 +000015312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015313 ac_ext=c
15314ac_cpp='$CPP $CPPFLAGS'
15315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15317ac_compiler_gnu=$ac_cv_c_compiler_gnu
15318
15319
15320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15322echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015323if test "$ac_cv_header_mmap_anon" = yes; then
15324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015325cat >>confdefs.h <<\_ACEOF
15326#define HAVE_MMAP_ANONYMOUS 1
15327_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015328
15329fi
15330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15332echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15333if test "${ac_cv_header_stat_broken+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015336 cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015341/* end confdefs.h. */
15342#include <sys/types.h>
15343#include <sys/stat.h>
15344
Reid Spencera773bd52006-08-04 18:18:08 +000015345#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015346# if S_ISBLK (S_IFDIR)
15347You lose.
15348# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015349#endif
15350
Reid Spencera773bd52006-08-04 18:18:08 +000015351#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015352# if S_ISBLK (S_IFCHR)
15353You lose.
15354# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015355#endif
15356
Reid Spencera773bd52006-08-04 18:18:08 +000015357#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015358# if S_ISLNK (S_IFREG)
15359You lose.
15360# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015361#endif
15362
Reid Spencera773bd52006-08-04 18:18:08 +000015363#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015364# if S_ISSOCK (S_IFREG)
15365You lose.
15366# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015367#endif
15368
15369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15371 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015372 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015373else
15374 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015376rm -f conftest*
15377
Reid Spencer59473af2004-12-25 07:31:29 +000015378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015379{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15380echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015381if test $ac_cv_header_stat_broken = yes; then
15382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015383cat >>confdefs.h <<\_ACEOF
15384#define STAT_MACROS_BROKEN 1
15385_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015386
15387fi
15388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015389{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15390echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15391if test "${ac_cv_header_stdc+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015394 cat >conftest.$ac_ext <<_ACEOF
15395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015400#include <stdlib.h>
15401#include <stdarg.h>
15402#include <string.h>
15403#include <float.h>
15404
John Criswell0c38eaf2003-09-10 15:17:25 +000015405int
15406main ()
15407{
15408
15409 ;
15410 return 0;
15411}
John Criswell7a73b802003-06-30 21:59:07 +000015412_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015413rm -f conftest.$ac_objext
15414if { (ac_try="$ac_compile"
15415case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418esac
15419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_compile") 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441esac
15442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015447 ac_cv_header_stdc=yes
15448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015449 echo "$as_me: failed program was:" >&5
15450sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015454
Reid Spencera773bd52006-08-04 18:18:08 +000015455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015456
15457if test $ac_cv_header_stdc = yes; then
15458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015459 cat >conftest.$ac_ext <<_ACEOF
15460/* confdefs.h. */
15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015465#include <string.h>
15466
15467_ACEOF
15468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015469 $EGREP "memchr" >/dev/null 2>&1; then
15470 :
John Criswell7a73b802003-06-30 21:59:07 +000015471else
15472 ac_cv_header_stdc=no
15473fi
15474rm -f conftest*
15475
15476fi
15477
15478if test $ac_cv_header_stdc = yes; then
15479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015480 cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015486#include <stdlib.h>
15487
15488_ACEOF
15489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015490 $EGREP "free" >/dev/null 2>&1; then
15491 :
John Criswell7a73b802003-06-30 21:59:07 +000015492else
15493 ac_cv_header_stdc=no
15494fi
15495rm -f conftest*
15496
15497fi
15498
15499if test $ac_cv_header_stdc = yes; then
15500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015501 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015502 :
15503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015504 cat >conftest.$ac_ext <<_ACEOF
15505/* confdefs.h. */
15506_ACEOF
15507cat confdefs.h >>conftest.$ac_ext
15508cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015510#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015511#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015512#if ((' ' & 0x0FF) == 0x020)
15513# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15514# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15515#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015516# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015517 (('a' <= (c) && (c) <= 'i') \
15518 || ('j' <= (c) && (c) <= 'r') \
15519 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015520# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15521#endif
15522
15523#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15524int
15525main ()
15526{
15527 int i;
15528 for (i = 0; i < 256; i++)
15529 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015530 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015531 return 2;
15532 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015533}
15534_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015535rm -f conftest$ac_exeext
15536if { (ac_try="$ac_link"
15537case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15540esac
15541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_link") 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549esac
15550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 :
John Criswell7a73b802003-06-30 21:59:07 +000015556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015557 echo "$as_me: program exited with status $ac_status" >&5
15558echo "$as_me: failed program was:" >&5
15559sed 's/^/| /' conftest.$ac_ext >&5
15560
15561( exit $ac_status )
15562ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015563fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015564rm -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 +000015565fi
15566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015567
John Criswell7a73b802003-06-30 21:59:07 +000015568fi
15569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015570{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15571echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015572if test $ac_cv_header_stdc = yes; then
15573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015574cat >>confdefs.h <<\_ACEOF
15575#define STDC_HEADERS 1
15576_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015577
15578fi
15579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015580{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15581echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15582if test "${ac_cv_header_sys_wait_h+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015585 cat >conftest.$ac_ext <<_ACEOF
15586/* confdefs.h. */
15587_ACEOF
15588cat confdefs.h >>conftest.$ac_ext
15589cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015591#include <sys/types.h>
15592#include <sys/wait.h>
15593#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015594# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015595#endif
15596#ifndef WIFEXITED
15597# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15598#endif
15599
John Criswell7a73b802003-06-30 21:59:07 +000015600int
15601main ()
15602{
15603 int s;
15604 wait (&s);
15605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15606 ;
15607 return 0;
15608}
15609_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015610rm -f conftest.$ac_objext
15611if { (ac_try="$ac_compile"
15612case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615esac
15616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_compile") 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628esac
15629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638esac
15639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015644 ac_cv_header_sys_wait_h=yes
15645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015650fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015651
Reid Spencera773bd52006-08-04 18:18:08 +000015652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015654{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15655echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015656if test $ac_cv_header_sys_wait_h = yes; then
15657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015658cat >>confdefs.h <<\_ACEOF
15659#define HAVE_SYS_WAIT_H 1
15660_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015661
15662fi
15663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015664{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15665echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15666if test "${ac_cv_header_time+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015669 cat >conftest.$ac_ext <<_ACEOF
15670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015674/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015675#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015676#include <sys/time.h>
15677#include <time.h>
15678
15679int
15680main ()
15681{
15682if ((struct tm *) 0)
15683return 0;
15684 ;
15685 return 0;
15686}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015687_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015688rm -f conftest.$ac_objext
15689if { (ac_try="$ac_compile"
15690case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693esac
15694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_compile") 2>conftest.er1
15696 ac_status=$?
15697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706esac
15707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015722 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015724 echo "$as_me: failed program was:" >&5
15725sed 's/^/| /' conftest.$ac_ext >&5
15726
15727 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015729
Reid Spencera773bd52006-08-04 18:18:08 +000015730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015732{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15733echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015734if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015736cat >>confdefs.h <<\_ACEOF
15737#define TIME_WITH_SYS_TIME 1
15738_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015739
15740fi
15741
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015743
15744
15745
15746
15747
15748
Reid Spencer59473af2004-12-25 07:31:29 +000015749for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015750do
15751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757fi
15758ac_res=`eval echo '${'$as_ac_Header'}'`
15759 { echo "$as_me:$LINENO: result: $ac_res" >&5
15760echo "${ECHO_T}$ac_res" >&6; }
15761else
15762 # Is the header compilable?
15763{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15764echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15765cat >conftest.$ac_ext <<_ACEOF
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
15771$ac_includes_default
15772#include <$ac_header>
15773_ACEOF
15774rm -f conftest.$ac_objext
15775if { (ac_try="$ac_compile"
15776case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779esac
15780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
15788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest.$ac_objext'
15799 { (case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15802esac
15803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804 (eval "$ac_try") 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_header_compiler=yes
15809else
15810 echo "$as_me: failed program was:" >&5
15811sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ac_header_compiler=no
15814fi
15815
15816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15818echo "${ECHO_T}$ac_header_compiler" >&6; }
15819
15820# Is the header present?
15821{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15823cat >conftest.$ac_ext <<_ACEOF
15824/* confdefs.h. */
15825_ACEOF
15826cat confdefs.h >>conftest.$ac_ext
15827cat >>conftest.$ac_ext <<_ACEOF
15828/* end confdefs.h. */
15829#include <$ac_header>
15830_ACEOF
15831if { (ac_try="$ac_cpp conftest.$ac_ext"
15832case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15835esac
15836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } >/dev/null; then
15844 if test -s conftest.err; then
15845 ac_cpp_err=$ac_c_preproc_warn_flag
15846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15847 else
15848 ac_cpp_err=
15849 fi
15850else
15851 ac_cpp_err=yes
15852fi
15853if test -z "$ac_cpp_err"; then
15854 ac_header_preproc=yes
15855else
15856 echo "$as_me: failed program was:" >&5
15857sed 's/^/| /' conftest.$ac_ext >&5
15858
15859 ac_header_preproc=no
15860fi
15861
15862rm -f conftest.err conftest.$ac_ext
15863{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15864echo "${ECHO_T}$ac_header_preproc" >&6; }
15865
15866# So? What about this header?
15867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15868 yes:no: )
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15870echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15872echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15873 ac_header_preproc=yes
15874 ;;
15875 no:yes:* )
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15877echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15879echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15881echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15883echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15885echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15887echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15888 ( cat <<\_ASBOX
15889## ----------------------------------- ##
15890## Report this to llvmbugs@cs.uiuc.edu ##
15891## ----------------------------------- ##
15892_ASBOX
15893 ) | sed "s/^/$as_me: WARNING: /" >&2
15894 ;;
15895esac
15896{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15900else
15901 eval "$as_ac_Header=\$ac_header_preproc"
15902fi
15903ac_res=`eval echo '${'$as_ac_Header'}'`
15904 { echo "$as_me:$LINENO: result: $ac_res" >&5
15905echo "${ECHO_T}$ac_res" >&6; }
15906
15907fi
15908if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015909 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015911_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015912
15913fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015914
Reid Spencer59473af2004-12-25 07:31:29 +000015915done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015917
15918
15919
15920
15921
15922
Douglas Gregor071d73d2009-05-18 17:21:34 +000015923for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015924do
15925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931fi
15932ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934echo "${ECHO_T}$ac_res" >&6; }
15935else
15936 # Is the header compilable?
15937{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15939cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
15945$ac_includes_default
15946#include <$ac_header>
15947_ACEOF
15948rm -f conftest.$ac_objext
15949if { (ac_try="$ac_compile"
15950case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_compile") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_header_compiler=yes
15983else
15984 echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 ac_header_compiler=no
15988fi
15989
15990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15992echo "${ECHO_T}$ac_header_compiler" >&6; }
15993
15994# Is the header present?
15995{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15997cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003#include <$ac_header>
16004_ACEOF
16005if { (ac_try="$ac_cpp conftest.$ac_ext"
16006case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009esac
16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev/null; then
16018 if test -s conftest.err; then
16019 ac_cpp_err=$ac_c_preproc_warn_flag
16020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16021 else
16022 ac_cpp_err=
16023 fi
16024else
16025 ac_cpp_err=yes
16026fi
16027if test -z "$ac_cpp_err"; then
16028 ac_header_preproc=yes
16029else
16030 echo "$as_me: failed program was:" >&5
16031sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 ac_header_preproc=no
16034fi
16035
16036rm -f conftest.err conftest.$ac_ext
16037{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16038echo "${ECHO_T}$ac_header_preproc" >&6; }
16039
16040# So? What about this header?
16041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16042 yes:no: )
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16047 ac_header_preproc=yes
16048 ;;
16049 no:yes:* )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16062 ( cat <<\_ASBOX
16063## ----------------------------------- ##
16064## Report this to llvmbugs@cs.uiuc.edu ##
16065## ----------------------------------- ##
16066_ASBOX
16067 ) | sed "s/^/$as_me: WARNING: /" >&2
16068 ;;
16069esac
16070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074else
16075 eval "$as_ac_Header=\$ac_header_preproc"
16076fi
16077ac_res=`eval echo '${'$as_ac_Header'}'`
16078 { echo "$as_me:$LINENO: result: $ac_res" >&5
16079echo "${ECHO_T}$ac_res" >&6; }
16080
16081fi
16082if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016083 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016085_ACEOF
16086
16087fi
16088
16089done
16090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016091
16092
Douglas Gregor071d73d2009-05-18 17:21:34 +000016093for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016094do
16095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101fi
16102ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104echo "${ECHO_T}$ac_res" >&6; }
16105else
16106 # Is the header compilable?
16107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16109cat >conftest.$ac_ext <<_ACEOF
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115$ac_includes_default
16116#include <$ac_header>
16117_ACEOF
16118rm -f conftest.$ac_objext
16119if { (ac_try="$ac_compile"
16120case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123esac
16124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133 { (case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136esac
16137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_try") 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
16143 { (case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146esac
16147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_header_compiler=yes
16153else
16154 echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157 ac_header_compiler=no
16158fi
16159
16160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16162echo "${ECHO_T}$ac_header_compiler" >&6; }
16163
16164# Is the header present?
16165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16167cat >conftest.$ac_ext <<_ACEOF
16168/* confdefs.h. */
16169_ACEOF
16170cat confdefs.h >>conftest.$ac_ext
16171cat >>conftest.$ac_ext <<_ACEOF
16172/* end confdefs.h. */
16173#include <$ac_header>
16174_ACEOF
16175if { (ac_try="$ac_cpp conftest.$ac_ext"
16176case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179esac
16180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev/null; then
16188 if test -s conftest.err; then
16189 ac_cpp_err=$ac_c_preproc_warn_flag
16190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16191 else
16192 ac_cpp_err=
16193 fi
16194else
16195 ac_cpp_err=yes
16196fi
16197if test -z "$ac_cpp_err"; then
16198 ac_header_preproc=yes
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203 ac_header_preproc=no
16204fi
16205
16206rm -f conftest.err conftest.$ac_ext
16207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16208echo "${ECHO_T}$ac_header_preproc" >&6; }
16209
16210# So? What about this header?
16211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 yes:no: )
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16217 ac_header_preproc=yes
16218 ;;
16219 no:yes:* )
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16232 ( cat <<\_ASBOX
16233## ----------------------------------- ##
16234## Report this to llvmbugs@cs.uiuc.edu ##
16235## ----------------------------------- ##
16236_ASBOX
16237 ) | sed "s/^/$as_me: WARNING: /" >&2
16238 ;;
16239esac
16240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244else
16245 eval "$as_ac_Header=\$ac_header_preproc"
16246fi
16247ac_res=`eval echo '${'$as_ac_Header'}'`
16248 { echo "$as_me:$LINENO: result: $ac_res" >&5
16249echo "${ECHO_T}$ac_res" >&6; }
16250
16251fi
16252if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016253 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016255_ACEOF
16256
16257fi
16258
16259done
Reid Spencer59473af2004-12-25 07:31:29 +000016260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016261
16262
16263
16264
Daniel Dunbar3e462932011-02-03 02:40:02 +000016265
16266for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016267do
16268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274fi
16275ac_res=`eval echo '${'$as_ac_Header'}'`
16276 { echo "$as_me:$LINENO: result: $ac_res" >&5
16277echo "${ECHO_T}$ac_res" >&6; }
16278else
16279 # Is the header compilable?
16280{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16282cat >conftest.$ac_ext <<_ACEOF
16283/* confdefs.h. */
16284_ACEOF
16285cat confdefs.h >>conftest.$ac_ext
16286cat >>conftest.$ac_ext <<_ACEOF
16287/* end confdefs.h. */
16288$ac_includes_default
16289#include <$ac_header>
16290_ACEOF
16291rm -f conftest.$ac_objext
16292if { (ac_try="$ac_compile"
16293case "(($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_compile") 2>conftest.er1
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } &&
16305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16306 { (case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16309esac
16310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16311 (eval "$ac_try") 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; } &&
16315 { ac_try='test -s conftest.$ac_objext'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319esac
16320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_try") 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_header_compiler=yes
16326else
16327 echo "$as_me: failed program was:" >&5
16328sed 's/^/| /' conftest.$ac_ext >&5
16329
16330 ac_header_compiler=no
16331fi
16332
16333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16335echo "${ECHO_T}$ac_header_compiler" >&6; }
16336
16337# Is the header present?
16338{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16340cat >conftest.$ac_ext <<_ACEOF
16341/* confdefs.h. */
16342_ACEOF
16343cat confdefs.h >>conftest.$ac_ext
16344cat >>conftest.$ac_ext <<_ACEOF
16345/* end confdefs.h. */
16346#include <$ac_header>
16347_ACEOF
16348if { (ac_try="$ac_cpp conftest.$ac_ext"
16349case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352esac
16353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16355 ac_status=$?
16356 grep -v '^ *+' conftest.er1 >conftest.err
16357 rm -f conftest.er1
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } >/dev/null; then
16361 if test -s conftest.err; then
16362 ac_cpp_err=$ac_c_preproc_warn_flag
16363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16364 else
16365 ac_cpp_err=
16366 fi
16367else
16368 ac_cpp_err=yes
16369fi
16370if test -z "$ac_cpp_err"; then
16371 ac_header_preproc=yes
16372else
16373 echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376 ac_header_preproc=no
16377fi
16378
16379rm -f conftest.err conftest.$ac_ext
16380{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16381echo "${ECHO_T}$ac_header_preproc" >&6; }
16382
16383# So? What about this header?
16384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16385 yes:no: )
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16390 ac_header_preproc=yes
16391 ;;
16392 no:yes:* )
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16405 ( cat <<\_ASBOX
16406## ----------------------------------- ##
16407## Report this to llvmbugs@cs.uiuc.edu ##
16408## ----------------------------------- ##
16409_ASBOX
16410 ) | sed "s/^/$as_me: WARNING: /" >&2
16411 ;;
16412esac
16413{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417else
16418 eval "$as_ac_Header=\$ac_header_preproc"
16419fi
16420ac_res=`eval echo '${'$as_ac_Header'}'`
16421 { echo "$as_me:$LINENO: result: $ac_res" >&5
16422echo "${ECHO_T}$ac_res" >&6; }
16423
16424fi
16425if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016426 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016428_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016429
16430fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016431
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016432done
16433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016434
16435
16436
16437
Douglas Gregor01746742009-05-11 18:05:52 +000016438for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016439do
16440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446fi
16447ac_res=`eval echo '${'$as_ac_Header'}'`
16448 { echo "$as_me:$LINENO: result: $ac_res" >&5
16449echo "${ECHO_T}$ac_res" >&6; }
16450else
16451 # Is the header compilable?
16452{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16454cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461#include <$ac_header>
16462_ACEOF
16463rm -f conftest.$ac_objext
16464if { (ac_try="$ac_compile"
16465case "(($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_compile") 2>conftest.er1
16471 ac_status=$?
16472 grep -v '^ *+' conftest.er1 >conftest.err
16473 rm -f conftest.er1
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } &&
16477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481esac
16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491esac
16492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_try") 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_header_compiler=yes
16498else
16499 echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502 ac_header_compiler=no
16503fi
16504
16505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16507echo "${ECHO_T}$ac_header_compiler" >&6; }
16508
16509# Is the header present?
16510{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16512cat >conftest.$ac_ext <<_ACEOF
16513/* confdefs.h. */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h. */
16518#include <$ac_header>
16519_ACEOF
16520if { (ac_try="$ac_cpp conftest.$ac_ext"
16521case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16527 ac_status=$?
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } >/dev/null; then
16533 if test -s conftest.err; then
16534 ac_cpp_err=$ac_c_preproc_warn_flag
16535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16536 else
16537 ac_cpp_err=
16538 fi
16539else
16540 ac_cpp_err=yes
16541fi
16542if test -z "$ac_cpp_err"; then
16543 ac_header_preproc=yes
16544else
16545 echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 ac_header_preproc=no
16549fi
16550
16551rm -f conftest.err conftest.$ac_ext
16552{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16553echo "${ECHO_T}$ac_header_preproc" >&6; }
16554
16555# So? What about this header?
16556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16557 yes:no: )
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16559echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16561echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16562 ac_header_preproc=yes
16563 ;;
16564 no:yes:* )
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16566echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16568echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16570echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16572echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16576echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16577 ( cat <<\_ASBOX
16578## ----------------------------------- ##
16579## Report this to llvmbugs@cs.uiuc.edu ##
16580## ----------------------------------- ##
16581_ASBOX
16582 ) | sed "s/^/$as_me: WARNING: /" >&2
16583 ;;
16584esac
16585{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16589else
16590 eval "$as_ac_Header=\$ac_header_preproc"
16591fi
16592ac_res=`eval echo '${'$as_ac_Header'}'`
16593 { echo "$as_me:$LINENO: result: $ac_res" >&5
16594echo "${ECHO_T}$ac_res" >&6; }
16595
16596fi
16597if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016598 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016600_ACEOF
16601
16602fi
16603
16604done
16605
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016606
16607for ac_header in valgrind/valgrind.h
16608do
16609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615fi
16616ac_res=`eval echo '${'$as_ac_Header'}'`
16617 { echo "$as_me:$LINENO: result: $ac_res" >&5
16618echo "${ECHO_T}$ac_res" >&6; }
16619else
16620 # Is the header compilable?
16621{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16623cat >conftest.$ac_ext <<_ACEOF
16624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
16629$ac_includes_default
16630#include <$ac_header>
16631_ACEOF
16632rm -f conftest.$ac_objext
16633if { (ac_try="$ac_compile"
16634case "(($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_compile") 2>conftest.er1
16640 ac_status=$?
16641 grep -v '^ *+' conftest.er1 >conftest.err
16642 rm -f conftest.er1
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16650esac
16651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660esac
16661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_header_compiler=yes
16667else
16668 echo "$as_me: failed program was:" >&5
16669sed 's/^/| /' conftest.$ac_ext >&5
16670
16671 ac_header_compiler=no
16672fi
16673
16674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16676echo "${ECHO_T}$ac_header_compiler" >&6; }
16677
16678# Is the header present?
16679{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16680echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16681cat >conftest.$ac_ext <<_ACEOF
16682/* confdefs.h. */
16683_ACEOF
16684cat confdefs.h >>conftest.$ac_ext
16685cat >>conftest.$ac_ext <<_ACEOF
16686/* end confdefs.h. */
16687#include <$ac_header>
16688_ACEOF
16689if { (ac_try="$ac_cpp conftest.$ac_ext"
16690case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16693esac
16694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16696 ac_status=$?
16697 grep -v '^ *+' conftest.er1 >conftest.err
16698 rm -f conftest.er1
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } >/dev/null; then
16702 if test -s conftest.err; then
16703 ac_cpp_err=$ac_c_preproc_warn_flag
16704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16705 else
16706 ac_cpp_err=
16707 fi
16708else
16709 ac_cpp_err=yes
16710fi
16711if test -z "$ac_cpp_err"; then
16712 ac_header_preproc=yes
16713else
16714 echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
16717 ac_header_preproc=no
16718fi
16719
16720rm -f conftest.err conftest.$ac_ext
16721{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16722echo "${ECHO_T}$ac_header_preproc" >&6; }
16723
16724# So? What about this header?
16725case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16726 yes:no: )
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16728echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16730echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16731 ac_header_preproc=yes
16732 ;;
16733 no:yes:* )
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16735echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16737echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16739echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16741echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16743echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16745echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16746 ( cat <<\_ASBOX
16747## ----------------------------------- ##
16748## Report this to llvmbugs@cs.uiuc.edu ##
16749## ----------------------------------- ##
16750_ASBOX
16751 ) | sed "s/^/$as_me: WARNING: /" >&2
16752 ;;
16753esac
16754{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16758else
16759 eval "$as_ac_Header=\$ac_header_preproc"
16760fi
16761ac_res=`eval echo '${'$as_ac_Header'}'`
16762 { echo "$as_me:$LINENO: result: $ac_res" >&5
16763echo "${ECHO_T}$ac_res" >&6; }
16764
16765fi
16766if test `eval echo '${'$as_ac_Header'}'` = yes; then
16767 cat >>confdefs.h <<_ACEOF
16768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16769_ACEOF
16770
16771fi
16772
16773done
16774
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016775
16776for ac_header in fenv.h
16777do
16778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784fi
16785ac_res=`eval echo '${'$as_ac_Header'}'`
16786 { echo "$as_me:$LINENO: result: $ac_res" >&5
16787echo "${ECHO_T}$ac_res" >&6; }
16788else
16789 # Is the header compilable?
16790{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16792cat >conftest.$ac_ext <<_ACEOF
16793/* confdefs.h. */
16794_ACEOF
16795cat confdefs.h >>conftest.$ac_ext
16796cat >>conftest.$ac_ext <<_ACEOF
16797/* end confdefs.h. */
16798$ac_includes_default
16799#include <$ac_header>
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (ac_try="$ac_compile"
16803case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806esac
16807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_compile") 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816 { (case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819esac
16820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_try") 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest.$ac_objext'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_header_compiler=yes
16836else
16837 echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840 ac_header_compiler=no
16841fi
16842
16843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16845echo "${ECHO_T}$ac_header_compiler" >&6; }
16846
16847# Is the header present?
16848{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16850cat >conftest.$ac_ext <<_ACEOF
16851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
16856#include <$ac_header>
16857_ACEOF
16858if { (ac_try="$ac_cpp conftest.$ac_ext"
16859case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862esac
16863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } >/dev/null; then
16871 if test -s conftest.err; then
16872 ac_cpp_err=$ac_c_preproc_warn_flag
16873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16874 else
16875 ac_cpp_err=
16876 fi
16877else
16878 ac_cpp_err=yes
16879fi
16880if test -z "$ac_cpp_err"; then
16881 ac_header_preproc=yes
16882else
16883 echo "$as_me: failed program was:" >&5
16884sed 's/^/| /' conftest.$ac_ext >&5
16885
16886 ac_header_preproc=no
16887fi
16888
16889rm -f conftest.err conftest.$ac_ext
16890{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16891echo "${ECHO_T}$ac_header_preproc" >&6; }
16892
16893# So? What about this header?
16894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16895 yes:no: )
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16900 ac_header_preproc=yes
16901 ;;
16902 no:yes:* )
16903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16915 ( cat <<\_ASBOX
16916## ----------------------------------- ##
16917## Report this to llvmbugs@cs.uiuc.edu ##
16918## ----------------------------------- ##
16919_ASBOX
16920 ) | sed "s/^/$as_me: WARNING: /" >&2
16921 ;;
16922esac
16923{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16927else
16928 eval "$as_ac_Header=\$ac_header_preproc"
16929fi
16930ac_res=`eval echo '${'$as_ac_Header'}'`
16931 { echo "$as_me:$LINENO: result: $ac_res" >&5
16932echo "${ECHO_T}$ac_res" >&6; }
16933
16934fi
16935if test `eval echo '${'$as_ac_Header'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16938_ACEOF
16939
16940fi
16941
16942done
16943
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016944if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016945
16946for ac_header in pthread.h
16947do
16948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16954fi
16955ac_res=`eval echo '${'$as_ac_Header'}'`
16956 { echo "$as_me:$LINENO: result: $ac_res" >&5
16957echo "${ECHO_T}$ac_res" >&6; }
16958else
16959 # Is the header compilable?
16960{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16962cat >conftest.$ac_ext <<_ACEOF
16963/* confdefs.h. */
16964_ACEOF
16965cat confdefs.h >>conftest.$ac_ext
16966cat >>conftest.$ac_ext <<_ACEOF
16967/* end confdefs.h. */
16968$ac_includes_default
16969#include <$ac_header>
16970_ACEOF
16971rm -f conftest.$ac_objext
16972if { (ac_try="$ac_compile"
16973case "(($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_compile") 2>conftest.er1
16979 ac_status=$?
16980 grep -v '^ *+' conftest.er1 >conftest.err
16981 rm -f conftest.er1
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989esac
16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest.$ac_objext'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_header_compiler=yes
17006else
17007 echo "$as_me: failed program was:" >&5
17008sed 's/^/| /' conftest.$ac_ext >&5
17009
17010 ac_header_compiler=no
17011fi
17012
17013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17015echo "${ECHO_T}$ac_header_compiler" >&6; }
17016
17017# Is the header present?
17018{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17020cat >conftest.$ac_ext <<_ACEOF
17021/* confdefs.h. */
17022_ACEOF
17023cat confdefs.h >>conftest.$ac_ext
17024cat >>conftest.$ac_ext <<_ACEOF
17025/* end confdefs.h. */
17026#include <$ac_header>
17027_ACEOF
17028if { (ac_try="$ac_cpp conftest.$ac_ext"
17029case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17035 ac_status=$?
17036 grep -v '^ *+' conftest.er1 >conftest.err
17037 rm -f conftest.er1
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } >/dev/null; then
17041 if test -s conftest.err; then
17042 ac_cpp_err=$ac_c_preproc_warn_flag
17043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17044 else
17045 ac_cpp_err=
17046 fi
17047else
17048 ac_cpp_err=yes
17049fi
17050if test -z "$ac_cpp_err"; then
17051 ac_header_preproc=yes
17052else
17053 echo "$as_me: failed program was:" >&5
17054sed 's/^/| /' conftest.$ac_ext >&5
17055
17056 ac_header_preproc=no
17057fi
17058
17059rm -f conftest.err conftest.$ac_ext
17060{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17061echo "${ECHO_T}$ac_header_preproc" >&6; }
17062
17063# So? What about this header?
17064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17065 yes:no: )
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17070 ac_header_preproc=yes
17071 ;;
17072 no:yes:* )
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17085 ( cat <<\_ASBOX
17086## ----------------------------------- ##
17087## Report this to llvmbugs@cs.uiuc.edu ##
17088## ----------------------------------- ##
17089_ASBOX
17090 ) | sed "s/^/$as_me: WARNING: /" >&2
17091 ;;
17092esac
17093{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097else
17098 eval "$as_ac_Header=\$ac_header_preproc"
17099fi
17100ac_res=`eval echo '${'$as_ac_Header'}'`
17101 { echo "$as_me:$LINENO: result: $ac_res" >&5
17102echo "${ECHO_T}$ac_res" >&6; }
17103
17104fi
17105if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017106 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017108_ACEOF
17109 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017110
17111else
17112 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017113
17114fi
17115
Reid Spencerbe3e4192007-08-17 05:45:26 +000017116done
Reid Spencer1000b732006-12-01 00:37:14 +000017117
17118else
17119 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017120
17121fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017122
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017123if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017124
17125
17126for ac_header in ffi.h ffi/ffi.h
17127do
17128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134fi
17135ac_res=`eval echo '${'$as_ac_Header'}'`
17136 { echo "$as_me:$LINENO: result: $ac_res" >&5
17137echo "${ECHO_T}$ac_res" >&6; }
17138else
17139 # Is the header compilable?
17140{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17142cat >conftest.$ac_ext <<_ACEOF
17143/* confdefs.h. */
17144_ACEOF
17145cat confdefs.h >>conftest.$ac_ext
17146cat >>conftest.$ac_ext <<_ACEOF
17147/* end confdefs.h. */
17148$ac_includes_default
17149#include <$ac_header>
17150_ACEOF
17151rm -f conftest.$ac_objext
17152if { (ac_try="$ac_compile"
17153case "(($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_compile") 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest.$ac_objext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179esac
17180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_header_compiler=yes
17186else
17187 echo "$as_me: failed program was:" >&5
17188sed 's/^/| /' conftest.$ac_ext >&5
17189
17190 ac_header_compiler=no
17191fi
17192
17193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17195echo "${ECHO_T}$ac_header_compiler" >&6; }
17196
17197# Is the header present?
17198{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17200cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206#include <$ac_header>
17207_ACEOF
17208if { (ac_try="$ac_cpp conftest.$ac_ext"
17209case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17212esac
17213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17215 ac_status=$?
17216 grep -v '^ *+' conftest.er1 >conftest.err
17217 rm -f conftest.er1
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } >/dev/null; then
17221 if test -s conftest.err; then
17222 ac_cpp_err=$ac_c_preproc_warn_flag
17223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17224 else
17225 ac_cpp_err=
17226 fi
17227else
17228 ac_cpp_err=yes
17229fi
17230if test -z "$ac_cpp_err"; then
17231 ac_header_preproc=yes
17232else
17233 echo "$as_me: failed program was:" >&5
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
17236 ac_header_preproc=no
17237fi
17238
17239rm -f conftest.err conftest.$ac_ext
17240{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17241echo "${ECHO_T}$ac_header_preproc" >&6; }
17242
17243# So? What about this header?
17244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17245 yes:no: )
17246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17250 ac_header_preproc=yes
17251 ;;
17252 no:yes:* )
17253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17254echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17256echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17258echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17260echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17265 ( cat <<\_ASBOX
17266## ----------------------------------- ##
17267## Report this to llvmbugs@cs.uiuc.edu ##
17268## ----------------------------------- ##
17269_ASBOX
17270 ) | sed "s/^/$as_me: WARNING: /" >&2
17271 ;;
17272esac
17273{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17277else
17278 eval "$as_ac_Header=\$ac_header_preproc"
17279fi
17280ac_res=`eval echo '${'$as_ac_Header'}'`
17281 { echo "$as_me:$LINENO: result: $ac_res" >&5
17282echo "${ECHO_T}$ac_res" >&6; }
17283
17284fi
17285if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017286 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017288_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017289
17290fi
17291
17292done
17293
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017294fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017295
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017296
Eric Christopher654dee42010-06-22 21:01:04 +000017297for ac_header in CrashReporterClient.h
17298do
17299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305fi
17306ac_res=`eval echo '${'$as_ac_Header'}'`
17307 { echo "$as_me:$LINENO: result: $ac_res" >&5
17308echo "${ECHO_T}$ac_res" >&6; }
17309else
17310 # Is the header compilable?
17311{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17313cat >conftest.$ac_ext <<_ACEOF
17314/* confdefs.h. */
17315_ACEOF
17316cat confdefs.h >>conftest.$ac_ext
17317cat >>conftest.$ac_ext <<_ACEOF
17318/* end confdefs.h. */
17319$ac_includes_default
17320#include <$ac_header>
17321_ACEOF
17322rm -f conftest.$ac_objext
17323if { (ac_try="$ac_compile"
17324case "(($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_compile") 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17337 { (case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17340esac
17341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_try") 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; } &&
17346 { ac_try='test -s conftest.$ac_objext'
17347 { (case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350esac
17351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_try") 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
17356 ac_header_compiler=yes
17357else
17358 echo "$as_me: failed program was:" >&5
17359sed 's/^/| /' conftest.$ac_ext >&5
17360
17361 ac_header_compiler=no
17362fi
17363
17364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17366echo "${ECHO_T}$ac_header_compiler" >&6; }
17367
17368# Is the header present?
17369{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17370echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17371cat >conftest.$ac_ext <<_ACEOF
17372/* confdefs.h. */
17373_ACEOF
17374cat confdefs.h >>conftest.$ac_ext
17375cat >>conftest.$ac_ext <<_ACEOF
17376/* end confdefs.h. */
17377#include <$ac_header>
17378_ACEOF
17379if { (ac_try="$ac_cpp conftest.$ac_ext"
17380case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383esac
17384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17386 ac_status=$?
17387 grep -v '^ *+' conftest.er1 >conftest.err
17388 rm -f conftest.er1
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } >/dev/null; then
17392 if test -s conftest.err; then
17393 ac_cpp_err=$ac_c_preproc_warn_flag
17394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17395 else
17396 ac_cpp_err=
17397 fi
17398else
17399 ac_cpp_err=yes
17400fi
17401if test -z "$ac_cpp_err"; then
17402 ac_header_preproc=yes
17403else
17404 echo "$as_me: failed program was:" >&5
17405sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 ac_header_preproc=no
17408fi
17409
17410rm -f conftest.err conftest.$ac_ext
17411{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17412echo "${ECHO_T}$ac_header_preproc" >&6; }
17413
17414# So? What about this header?
17415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17416 yes:no: )
17417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17420echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17421 ac_header_preproc=yes
17422 ;;
17423 no:yes:* )
17424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17427echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17429echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17431echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17435echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17436 ( cat <<\_ASBOX
17437## ----------------------------------- ##
17438## Report this to llvmbugs@cs.uiuc.edu ##
17439## ----------------------------------- ##
17440_ASBOX
17441 ) | sed "s/^/$as_me: WARNING: /" >&2
17442 ;;
17443esac
17444{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17448else
17449 eval "$as_ac_Header=\$ac_header_preproc"
17450fi
17451ac_res=`eval echo '${'$as_ac_Header'}'`
17452 { echo "$as_me:$LINENO: result: $ac_res" >&5
17453echo "${ECHO_T}$ac_res" >&6; }
17454
17455fi
17456if test `eval echo '${'$as_ac_Header'}'` = yes; then
17457 cat >>confdefs.h <<_ACEOF
17458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17459_ACEOF
17460
17461fi
17462
17463done
17464
17465
Eric Christopher51e57132010-12-07 02:05:42 +000017466{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17467echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017468cat >conftest.$ac_ext <<_ACEOF
17469/* confdefs.h. */
17470_ACEOF
17471cat confdefs.h >>conftest.$ac_ext
17472cat >>conftest.$ac_ext <<_ACEOF
17473/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017474extern const char *__crashreporter_info__;
17475 int main() {
17476 __crashreporter_info__ = "test";
17477 return 0;
17478 }
Eric Christopher481d4022010-12-03 07:45:22 +000017479
Eric Christopher481d4022010-12-03 07:45:22 +000017480_ACEOF
17481rm -f conftest.$ac_objext conftest$ac_exeext
17482if { (ac_try="$ac_link"
17483case "(($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_link") 2>conftest.er1
17489 ac_status=$?
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499esac
17500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest$ac_exeext'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509esac
17510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017515 { echo "$as_me:$LINENO: result: yes" >&5
17516echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017517
17518cat >>confdefs.h <<\_ACEOF
17519#define HAVE_CRASHREPORTER_INFO 1
17520_ACEOF
17521
Eric Christopher51e57132010-12-07 02:05:42 +000017522else
17523 echo "$as_me: failed program was:" >&5
17524sed 's/^/| /' conftest.$ac_ext >&5
17525
17526 { echo "$as_me:$LINENO: result: no" >&5
17527echo "${ECHO_T}no" >&6; }
17528
17529cat >>confdefs.h <<\_ACEOF
17530#define HAVE_CRASHREPORTER_INFO 0
17531_ACEOF
17532
Eric Christopher481d4022010-12-03 07:45:22 +000017533fi
Eric Christopher654dee42010-06-22 21:01:04 +000017534
Eric Christopher51e57132010-12-07 02:05:42 +000017535rm -f core conftest.err conftest.$ac_objext \
17536 conftest$ac_exeext conftest.$ac_ext
17537
17538
Reid Spencer8085cff2005-01-16 02:58:39 +000017539
Torok Edwin871384f2010-01-26 08:50:50 +000017540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017541 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17542echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17543if test "${ac_cv_huge_val_sanity+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017545else
17546
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017547 ac_ext=cpp
17548ac_cpp='$CXXCPP $CPPFLAGS'
17549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017552
Eric Christopherc7718502010-03-02 05:06:54 +000017553 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017554 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017555 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017556 ac_cv_huge_val_sanity=yes
17557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017558 cat >conftest.$ac_ext <<_ACEOF
17559/* confdefs.h. */
17560_ACEOF
17561cat confdefs.h >>conftest.$ac_ext
17562cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017563/* end confdefs.h. */
17564#include <math.h>
17565int
17566main ()
17567{
17568double x = HUGE_VAL; return x != x;
17569 ;
17570 return 0;
17571}
17572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017573rm -f conftest$ac_exeext
17574if { (ac_try="$ac_link"
17575case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17578esac
17579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587esac
17588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017593 ac_cv_huge_val_sanity=yes
17594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017595 echo "$as_me: program exited with status $ac_status" >&5
17596echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599( exit $ac_status )
17600ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017602rm -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 +000017603fi
17604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017605
Eric Christopherc7718502010-03-02 05:06:54 +000017606 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017607 ac_ext=c
17608ac_cpp='$CPP $CPPFLAGS'
17609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17611ac_compiler_gnu=$ac_cv_c_compiler_gnu
17612
17613
17614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017615{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17616echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017617 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17618
17619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017620{ echo "$as_me:$LINENO: checking for pid_t" >&5
17621echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17622if test "${ac_cv_type_pid_t+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624else
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631$ac_includes_default
17632typedef pid_t ac__type_new_;
17633int
17634main ()
17635{
17636if ((ac__type_new_ *) 0)
17637 return 0;
17638if (sizeof (ac__type_new_))
17639 return 0;
17640 ;
17641 return 0;
17642}
17643_ACEOF
17644rm -f conftest.$ac_objext
17645if { (ac_try="$ac_compile"
17646case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_compile") 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17659 { (case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662esac
17663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_try") 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
17669 { (case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672esac
17673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_try") 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_type_pid_t=yes
17679else
17680 echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017683 ac_cv_type_pid_t=no
17684fi
17685
17686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17687fi
17688{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17689echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17690if test $ac_cv_type_pid_t = yes; then
17691 :
John Criswell7a73b802003-06-30 21:59:07 +000017692else
17693
17694cat >>confdefs.h <<_ACEOF
17695#define pid_t int
17696_ACEOF
17697
17698fi
17699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017700{ echo "$as_me:$LINENO: checking for size_t" >&5
17701echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17702if test "${ac_cv_type_size_t+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704else
17705 cat >conftest.$ac_ext <<_ACEOF
17706/* confdefs.h. */
17707_ACEOF
17708cat confdefs.h >>conftest.$ac_ext
17709cat >>conftest.$ac_ext <<_ACEOF
17710/* end confdefs.h. */
17711$ac_includes_default
17712typedef size_t ac__type_new_;
17713int
17714main ()
17715{
17716if ((ac__type_new_ *) 0)
17717 return 0;
17718if (sizeof (ac__type_new_))
17719 return 0;
17720 ;
17721 return 0;
17722}
17723_ACEOF
17724rm -f conftest.$ac_objext
17725if { (ac_try="$ac_compile"
17726case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752esac
17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_cv_type_size_t=yes
17759else
17760 echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017763 ac_cv_type_size_t=no
17764fi
17765
17766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767fi
17768{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17769echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17770if test $ac_cv_type_size_t = yes; then
17771 :
John Criswell7a73b802003-06-30 21:59:07 +000017772else
17773
17774cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017775#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017776_ACEOF
17777
17778fi
17779
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017780
17781cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017782#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017783_ACEOF
17784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017785{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17786echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17787if test "${ac_cv_struct_tm+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017790 cat >conftest.$ac_ext <<_ACEOF
17791/* confdefs.h. */
17792_ACEOF
17793cat confdefs.h >>conftest.$ac_ext
17794cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017795/* end confdefs.h. */
17796#include <sys/types.h>
17797#include <time.h>
17798
17799int
17800main ()
17801{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017802struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017803 ;
17804 return 0;
17805}
17806_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017807rm -f conftest.$ac_objext
17808if { (ac_try="$ac_compile"
17809case "(($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_compile") 2>conftest.er1
17815 ac_status=$?
17816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825esac
17826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; } &&
17831 { ac_try='test -s conftest.$ac_objext'
17832 { (case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835esac
17836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_try") 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017841 ac_cv_struct_tm=time.h
17842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017843 echo "$as_me: failed program was:" >&5
17844sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017848
Reid Spencera773bd52006-08-04 18:18:08 +000017849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017851{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17852echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017853if test $ac_cv_struct_tm = sys/time.h; then
17854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017855cat >>confdefs.h <<\_ACEOF
17856#define TM_IN_SYS_TIME 1
17857_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017858
17859fi
17860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017861{ echo "$as_me:$LINENO: checking for int64_t" >&5
17862echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17863if test "${ac_cv_type_int64_t+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865else
17866 cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872$ac_includes_default
17873typedef int64_t ac__type_new_;
17874int
17875main ()
17876{
17877if ((ac__type_new_ *) 0)
17878 return 0;
17879if (sizeof (ac__type_new_))
17880 return 0;
17881 ;
17882 return 0;
17883}
17884_ACEOF
17885rm -f conftest.$ac_objext
17886if { (ac_try="$ac_compile"
17887case "(($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_compile") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903esac
17904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913esac
17914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
17919 ac_cv_type_int64_t=yes
17920else
17921 echo "$as_me: failed program was:" >&5
17922sed 's/^/| /' conftest.$ac_ext >&5
17923
17924 ac_cv_type_int64_t=no
17925fi
17926
17927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928fi
17929{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17930echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17931if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017932
17933cat >>confdefs.h <<_ACEOF
17934#define HAVE_INT64_T 1
17935_ACEOF
17936
17937
17938else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017939 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17940echo "$as_me: error: Type int64_t required but not found" >&2;}
17941 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017942fi
17943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017944{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17945echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17946if test "${ac_cv_type_uint64_t+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948else
17949 cat >conftest.$ac_ext <<_ACEOF
17950/* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
17955$ac_includes_default
17956typedef uint64_t ac__type_new_;
17957int
17958main ()
17959{
17960if ((ac__type_new_ *) 0)
17961 return 0;
17962if (sizeof (ac__type_new_))
17963 return 0;
17964 ;
17965 return 0;
17966}
17967_ACEOF
17968rm -f conftest.$ac_objext
17969if { (ac_try="$ac_compile"
17970case "(($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_compile") 2>conftest.er1
17976 ac_status=$?
17977 grep -v '^ *+' conftest.er1 >conftest.err
17978 rm -f conftest.er1
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } &&
17982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17983 { (case "(($ac_try" in
17984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985 *) ac_try_echo=$ac_try;;
17986esac
17987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17988 (eval "$ac_try") 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; } &&
17992 { ac_try='test -s conftest.$ac_objext'
17993 { (case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996esac
17997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_try") 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
18002 ac_cv_type_uint64_t=yes
18003else
18004 echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
18007 ac_cv_type_uint64_t=no
18008fi
18009
18010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011fi
18012{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18013echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18014if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018015
18016cat >>confdefs.h <<_ACEOF
18017#define HAVE_UINT64_T 1
18018_ACEOF
18019
18020
18021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018022 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18023echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18024if test "${ac_cv_type_u_int64_t+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026else
18027 cat >conftest.$ac_ext <<_ACEOF
18028/* confdefs.h. */
18029_ACEOF
18030cat confdefs.h >>conftest.$ac_ext
18031cat >>conftest.$ac_ext <<_ACEOF
18032/* end confdefs.h. */
18033$ac_includes_default
18034typedef u_int64_t ac__type_new_;
18035int
18036main ()
18037{
18038if ((ac__type_new_ *) 0)
18039 return 0;
18040if (sizeof (ac__type_new_))
18041 return 0;
18042 ;
18043 return 0;
18044}
18045_ACEOF
18046rm -f conftest.$ac_objext
18047if { (ac_try="$ac_compile"
18048case "(($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_compile") 2>conftest.er1
18054 ac_status=$?
18055 grep -v '^ *+' conftest.er1 >conftest.err
18056 rm -f conftest.er1
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_type_u_int64_t=yes
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085 ac_cv_type_u_int64_t=no
18086fi
18087
18088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089fi
18090{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18091echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18092if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018093
18094cat >>confdefs.h <<_ACEOF
18095#define HAVE_U_INT64_T 1
18096_ACEOF
18097
18098
Misha Brukmanceca9042004-09-02 23:02:30 +000018099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018100 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18101echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18102 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018103fi
18104
John Criswell679ff312004-09-02 18:44:44 +000018105fi
18106
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018107
18108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018109
18110
18111
18112
18113
18114
18115
Reid Spencerdf3be822006-01-23 08:15:53 +000018116for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018117do
18118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18119{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18121if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18123else
18124 cat >conftest.$ac_ext <<_ACEOF
18125/* confdefs.h. */
18126_ACEOF
18127cat confdefs.h >>conftest.$ac_ext
18128cat >>conftest.$ac_ext <<_ACEOF
18129/* end confdefs.h. */
18130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18132#define $ac_func innocuous_$ac_func
18133
18134/* System header to define __stub macros and hopefully few prototypes,
18135 which can conflict with char $ac_func (); below.
18136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18137 <limits.h> exists even on freestanding compilers. */
18138
18139#ifdef __STDC__
18140# include <limits.h>
18141#else
18142# include <assert.h>
18143#endif
18144
18145#undef $ac_func
18146
18147/* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18150#ifdef __cplusplus
18151extern "C"
18152#endif
18153char $ac_func ();
18154/* The GNU C library defines this for functions which it implements
18155 to always fail with ENOSYS. Some functions are actually named
18156 something starting with __ and the normal name is an alias. */
18157#if defined __stub_$ac_func || defined __stub___$ac_func
18158choke me
18159#endif
18160
18161int
18162main ()
18163{
18164return $ac_func ();
18165 ;
18166 return 0;
18167}
18168_ACEOF
18169rm -f conftest.$ac_objext conftest$ac_exeext
18170if { (ac_try="$ac_link"
18171case "(($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_link") 2>conftest.er1
18177 ac_status=$?
18178 grep -v '^ *+' conftest.er1 >conftest.err
18179 rm -f conftest.er1
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18184 { (case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187esac
18188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_try") 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; } &&
18193 { ac_try='test -s conftest$ac_exeext'
18194 { (case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197esac
18198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_try") 2>&5
18200 ac_status=$?
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; }; then
18203 eval "$as_ac_var=yes"
18204else
18205 echo "$as_me: failed program was:" >&5
18206sed 's/^/| /' conftest.$ac_ext >&5
18207
18208 eval "$as_ac_var=no"
18209fi
18210
18211rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18213fi
18214ac_res=`eval echo '${'$as_ac_var'}'`
18215 { echo "$as_me:$LINENO: result: $ac_res" >&5
18216echo "${ECHO_T}$ac_res" >&6; }
18217if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018218 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018220_ACEOF
18221
18222fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018223done
John Criswell7a73b802003-06-30 21:59:07 +000018224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018225
18226
18227
18228
Reid Spencer96cf5872007-07-13 10:05:30 +000018229for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018230do
18231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18232{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18234if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236else
18237 cat >conftest.$ac_ext <<_ACEOF
18238/* confdefs.h. */
18239_ACEOF
18240cat confdefs.h >>conftest.$ac_ext
18241cat >>conftest.$ac_ext <<_ACEOF
18242/* end confdefs.h. */
18243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18245#define $ac_func innocuous_$ac_func
18246
18247/* System header to define __stub macros and hopefully few prototypes,
18248 which can conflict with char $ac_func (); below.
18249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18250 <limits.h> exists even on freestanding compilers. */
18251
18252#ifdef __STDC__
18253# include <limits.h>
18254#else
18255# include <assert.h>
18256#endif
18257
18258#undef $ac_func
18259
18260/* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18263#ifdef __cplusplus
18264extern "C"
18265#endif
18266char $ac_func ();
18267/* The GNU C library defines this for functions which it implements
18268 to always fail with ENOSYS. Some functions are actually named
18269 something starting with __ and the normal name is an alias. */
18270#if defined __stub_$ac_func || defined __stub___$ac_func
18271choke me
18272#endif
18273
18274int
18275main ()
18276{
18277return $ac_func ();
18278 ;
18279 return 0;
18280}
18281_ACEOF
18282rm -f conftest.$ac_objext conftest$ac_exeext
18283if { (ac_try="$ac_link"
18284case "(($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_link") 2>conftest.er1
18290 ac_status=$?
18291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
18296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300esac
18301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest$ac_exeext'
18307 { (case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310esac
18311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_try") 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316 eval "$as_ac_var=yes"
18317else
18318 echo "$as_me: failed program was:" >&5
18319sed 's/^/| /' conftest.$ac_ext >&5
18320
18321 eval "$as_ac_var=no"
18322fi
18323
18324rm -f core conftest.err conftest.$ac_objext \
18325 conftest$ac_exeext conftest.$ac_ext
18326fi
18327ac_res=`eval echo '${'$as_ac_var'}'`
18328 { echo "$as_me:$LINENO: result: $ac_res" >&5
18329echo "${ECHO_T}$ac_res" >&6; }
18330if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018331 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018333_ACEOF
18334
18335fi
18336done
18337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018338
18339
18340
18341
18342
Reid Spencerb90645c2007-02-16 19:17:20 +000018343for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018344do
18345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18346{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18348if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350else
18351 cat >conftest.$ac_ext <<_ACEOF
18352/* confdefs.h. */
18353_ACEOF
18354cat confdefs.h >>conftest.$ac_ext
18355cat >>conftest.$ac_ext <<_ACEOF
18356/* end confdefs.h. */
18357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18359#define $ac_func innocuous_$ac_func
18360
18361/* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char $ac_func (); below.
18363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18364 <limits.h> exists even on freestanding compilers. */
18365
18366#ifdef __STDC__
18367# include <limits.h>
18368#else
18369# include <assert.h>
18370#endif
18371
18372#undef $ac_func
18373
18374/* Override any GCC internal prototype to avoid an error.
18375 Use char because int might match the return type of a GCC
18376 builtin and then its argument prototype would still apply. */
18377#ifdef __cplusplus
18378extern "C"
18379#endif
18380char $ac_func ();
18381/* The GNU C library defines this for functions which it implements
18382 to always fail with ENOSYS. Some functions are actually named
18383 something starting with __ and the normal name is an alias. */
18384#if defined __stub_$ac_func || defined __stub___$ac_func
18385choke me
18386#endif
18387
18388int
18389main ()
18390{
18391return $ac_func ();
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest.$ac_objext conftest$ac_exeext
18397if { (ac_try="$ac_link"
18398case "(($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_link") 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18414esac
18415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 eval "$as_ac_var=yes"
18431else
18432 echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435 eval "$as_ac_var=no"
18436fi
18437
18438rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
18440fi
18441ac_res=`eval echo '${'$as_ac_var'}'`
18442 { echo "$as_me:$LINENO: result: $ac_res" >&5
18443echo "${ECHO_T}$ac_res" >&6; }
18444if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018445 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018447_ACEOF
18448
18449fi
18450done
18451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018452
18453
18454
Reid Spencerb90645c2007-02-16 19:17:20 +000018455for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018456do
18457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18458{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462else
18463 cat >conftest.$ac_ext <<_ACEOF
18464/* confdefs.h. */
18465_ACEOF
18466cat confdefs.h >>conftest.$ac_ext
18467cat >>conftest.$ac_ext <<_ACEOF
18468/* end confdefs.h. */
18469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18471#define $ac_func innocuous_$ac_func
18472
18473/* System header to define __stub macros and hopefully few prototypes,
18474 which can conflict with char $ac_func (); below.
18475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18476 <limits.h> exists even on freestanding compilers. */
18477
18478#ifdef __STDC__
18479# include <limits.h>
18480#else
18481# include <assert.h>
18482#endif
18483
18484#undef $ac_func
18485
18486/* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18489#ifdef __cplusplus
18490extern "C"
18491#endif
18492char $ac_func ();
18493/* The GNU C library defines this for functions which it implements
18494 to always fail with ENOSYS. Some functions are actually named
18495 something starting with __ and the normal name is an alias. */
18496#if defined __stub_$ac_func || defined __stub___$ac_func
18497choke me
18498#endif
18499
18500int
18501main ()
18502{
18503return $ac_func ();
18504 ;
18505 return 0;
18506}
18507_ACEOF
18508rm -f conftest.$ac_objext conftest$ac_exeext
18509if { (ac_try="$ac_link"
18510case "(($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_link") 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526esac
18527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest$ac_exeext'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 eval "$as_ac_var=yes"
18543else
18544 echo "$as_me: failed program was:" >&5
18545sed 's/^/| /' conftest.$ac_ext >&5
18546
18547 eval "$as_ac_var=no"
18548fi
18549
18550rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18552fi
18553ac_res=`eval echo '${'$as_ac_var'}'`
18554 { echo "$as_me:$LINENO: result: $ac_res" >&5
18555echo "${ECHO_T}$ac_res" >&6; }
18556if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018557 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018559_ACEOF
18560
18561fi
18562done
18563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018564
18565
18566
18567
18568
Eric Christophere4291822010-04-16 05:14:21 +000018569
18570for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018571do
18572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18573{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18575if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577else
18578 cat >conftest.$ac_ext <<_ACEOF
18579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
18584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18586#define $ac_func innocuous_$ac_func
18587
18588/* System header to define __stub macros and hopefully few prototypes,
18589 which can conflict with char $ac_func (); below.
18590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591 <limits.h> exists even on freestanding compilers. */
18592
18593#ifdef __STDC__
18594# include <limits.h>
18595#else
18596# include <assert.h>
18597#endif
18598
18599#undef $ac_func
18600
18601/* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604#ifdef __cplusplus
18605extern "C"
18606#endif
18607char $ac_func ();
18608/* The GNU C library defines this for functions which it implements
18609 to always fail with ENOSYS. Some functions are actually named
18610 something starting with __ and the normal name is an alias. */
18611#if defined __stub_$ac_func || defined __stub___$ac_func
18612choke me
18613#endif
18614
18615int
18616main ()
18617{
18618return $ac_func ();
18619 ;
18620 return 0;
18621}
18622_ACEOF
18623rm -f conftest.$ac_objext conftest$ac_exeext
18624if { (ac_try="$ac_link"
18625case "(($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_link") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641esac
18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; } &&
18647 { ac_try='test -s conftest$ac_exeext'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651esac
18652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 eval "$as_ac_var=yes"
18658else
18659 echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
18662 eval "$as_ac_var=no"
18663fi
18664
18665rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18667fi
18668ac_res=`eval echo '${'$as_ac_var'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670echo "${ECHO_T}$ac_res" >&6; }
18671if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018672 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018674_ACEOF
18675
18676fi
18677done
Reid Spencerdf3be822006-01-23 08:15:53 +000018678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018679
18680
18681
18682
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018683for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018684do
18685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18688if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691 cat >conftest.$ac_ext <<_ACEOF
18692/* confdefs.h. */
18693_ACEOF
18694cat confdefs.h >>conftest.$ac_ext
18695cat >>conftest.$ac_ext <<_ACEOF
18696/* end confdefs.h. */
18697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18699#define $ac_func innocuous_$ac_func
18700
18701/* System header to define __stub macros and hopefully few prototypes,
18702 which can conflict with char $ac_func (); below.
18703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18704 <limits.h> exists even on freestanding compilers. */
18705
18706#ifdef __STDC__
18707# include <limits.h>
18708#else
18709# include <assert.h>
18710#endif
18711
18712#undef $ac_func
18713
18714/* Override any GCC internal prototype to avoid an error.
18715 Use char because int might match the return type of a GCC
18716 builtin and then its argument prototype would still apply. */
18717#ifdef __cplusplus
18718extern "C"
18719#endif
18720char $ac_func ();
18721/* The GNU C library defines this for functions which it implements
18722 to always fail with ENOSYS. Some functions are actually named
18723 something starting with __ and the normal name is an alias. */
18724#if defined __stub_$ac_func || defined __stub___$ac_func
18725choke me
18726#endif
18727
18728int
18729main ()
18730{
18731return $ac_func ();
18732 ;
18733 return 0;
18734}
18735_ACEOF
18736rm -f conftest.$ac_objext conftest$ac_exeext
18737if { (ac_try="$ac_link"
18738case "(($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_link") 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18751 { (case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754esac
18755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_try") 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest$ac_exeext'
18761 { (case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764esac
18765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_try") 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 eval "$as_ac_var=yes"
18771else
18772 echo "$as_me: failed program was:" >&5
18773sed 's/^/| /' conftest.$ac_ext >&5
18774
18775 eval "$as_ac_var=no"
18776fi
18777
18778rm -f core conftest.err conftest.$ac_objext \
18779 conftest$ac_exeext conftest.$ac_ext
18780fi
18781ac_res=`eval echo '${'$as_ac_var'}'`
18782 { echo "$as_me:$LINENO: result: $ac_res" >&5
18783echo "${ECHO_T}$ac_res" >&6; }
18784if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018785 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018787_ACEOF
18788
18789fi
18790done
18791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018792
18793
18794
18795
Chris Lattner511f11d2005-11-14 07:25:50 +000018796for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018797do
18798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18799{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18801if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
18810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18812#define $ac_func innocuous_$ac_func
18813
18814/* System header to define __stub macros and hopefully few prototypes,
18815 which can conflict with char $ac_func (); below.
18816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 <limits.h> exists even on freestanding compilers. */
18818
18819#ifdef __STDC__
18820# include <limits.h>
18821#else
18822# include <assert.h>
18823#endif
18824
18825#undef $ac_func
18826
18827/* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
18830#ifdef __cplusplus
18831extern "C"
18832#endif
18833char $ac_func ();
18834/* The GNU C library defines this for functions which it implements
18835 to always fail with ENOSYS. Some functions are actually named
18836 something starting with __ and the normal name is an alias. */
18837#if defined __stub_$ac_func || defined __stub___$ac_func
18838choke me
18839#endif
18840
18841int
18842main ()
18843{
18844return $ac_func ();
18845 ;
18846 return 0;
18847}
18848_ACEOF
18849rm -f conftest.$ac_objext conftest$ac_exeext
18850if { (ac_try="$ac_link"
18851case "(($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_link") 2>conftest.er1
18857 ac_status=$?
18858 grep -v '^ *+' conftest.er1 >conftest.err
18859 rm -f conftest.er1
18860 cat conftest.err >&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
18863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18864 { (case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867esac
18868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_try") 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try='test -s conftest$ac_exeext'
18874 { (case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18877esac
18878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_try") 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 eval "$as_ac_var=yes"
18884else
18885 echo "$as_me: failed program was:" >&5
18886sed 's/^/| /' conftest.$ac_ext >&5
18887
18888 eval "$as_ac_var=no"
18889fi
18890
18891rm -f core conftest.err conftest.$ac_objext \
18892 conftest$ac_exeext conftest.$ac_ext
18893fi
18894ac_res=`eval echo '${'$as_ac_var'}'`
18895 { echo "$as_me:$LINENO: result: $ac_res" >&5
18896echo "${ECHO_T}$ac_res" >&6; }
18897if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018898 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018900_ACEOF
18901
18902fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018903done
John Criswell7a73b802003-06-30 21:59:07 +000018904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018905
18906
18907
18908
Daniel Dunbar3e462932011-02-03 02:40:02 +000018909
18910for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018911do
18912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18913{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18915if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18917else
18918 cat >conftest.$ac_ext <<_ACEOF
18919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
18924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18926#define $ac_func innocuous_$ac_func
18927
18928/* System header to define __stub macros and hopefully few prototypes,
18929 which can conflict with char $ac_func (); below.
18930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18931 <limits.h> exists even on freestanding compilers. */
18932
18933#ifdef __STDC__
18934# include <limits.h>
18935#else
18936# include <assert.h>
18937#endif
18938
18939#undef $ac_func
18940
18941/* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18944#ifdef __cplusplus
18945extern "C"
18946#endif
18947char $ac_func ();
18948/* The GNU C library defines this for functions which it implements
18949 to always fail with ENOSYS. Some functions are actually named
18950 something starting with __ and the normal name is an alias. */
18951#if defined __stub_$ac_func || defined __stub___$ac_func
18952choke me
18953#endif
18954
18955int
18956main ()
18957{
18958return $ac_func ();
18959 ;
18960 return 0;
18961}
18962_ACEOF
18963rm -f conftest.$ac_objext conftest$ac_exeext
18964if { (ac_try="$ac_link"
18965case "(($ac_try" in
18966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18967 *) ac_try_echo=$ac_try;;
18968esac
18969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18970 (eval "$ac_link") 2>conftest.er1
18971 ac_status=$?
18972 grep -v '^ *+' conftest.er1 >conftest.err
18973 rm -f conftest.er1
18974 cat conftest.err >&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18978 { (case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18981esac
18982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_try") 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest$ac_exeext'
18988 { (case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991esac
18992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_try") 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 eval "$as_ac_var=yes"
18998else
18999 echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 eval "$as_ac_var=no"
19003fi
19004
19005rm -f core conftest.err conftest.$ac_objext \
19006 conftest$ac_exeext conftest.$ac_ext
19007fi
19008ac_res=`eval echo '${'$as_ac_var'}'`
19009 { echo "$as_me:$LINENO: result: $ac_res" >&5
19010echo "${ECHO_T}$ac_res" >&6; }
19011if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019012 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019014_ACEOF
19015
19016fi
19017done
19018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019019{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19020echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19021if test "${llvm_cv_c_printf_a+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019023else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019024 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019025ac_cpp='$CPP $CPPFLAGS'
19026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028ac_compiler_gnu=$ac_cv_c_compiler_gnu
19029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019030 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019031 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019033 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019035 /* confdefs.h. */
19036_ACEOF
19037cat confdefs.h >>conftest.$ac_ext
19038cat >>conftest.$ac_ext <<_ACEOF
19039/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019040
John Criswella0137d32003-10-13 16:22:01 +000019041#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019042#include <stdlib.h>
19043
John Criswella0137d32003-10-13 16:22:01 +000019044int
19045main ()
19046{
19047
Reid Spencer2706f8c2004-09-19 23:53:36 +000019048volatile double A, B;
19049char Buffer[100];
19050A = 1;
19051A /= 10.0;
19052sprintf(Buffer, "%a", A);
19053B = atof(Buffer);
19054if (A != B)
19055 return (1);
19056if (A != 0x1.999999999999ap-4)
19057 return (1);
19058return (0);
John Criswella0137d32003-10-13 16:22:01 +000019059 ;
19060 return 0;
19061}
19062_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019063rm -f conftest$ac_exeext
19064if { (ac_try="$ac_link"
19065case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19068esac
19069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_link") 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19074 { (case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_try") 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019083 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019085 echo "$as_me: program exited with status $ac_status" >&5
19086echo "$as_me: failed program was:" >&5
19087sed 's/^/| /' conftest.$ac_ext >&5
19088
19089( exit $ac_status )
19090llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019092rm -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 +000019093fi
Reid Spencera773bd52006-08-04 18:18:08 +000019094
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019095
Reid Spencer2706f8c2004-09-19 23:53:36 +000019096 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019097ac_cpp='$CPP $CPPFLAGS'
19098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019103{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19104echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019105 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019107cat >>confdefs.h <<\_ACEOF
19108#define HAVE_PRINTF_A 1
19109_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019110
Reid Spencer2706f8c2004-09-19 23:53:36 +000019111 fi
John Criswella0137d32003-10-13 16:22:01 +000019112
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019114{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19115echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19116if test "${ac_cv_func_rand48+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019118else
Reid Spencera773bd52006-08-04 18:18:08 +000019119 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019120ac_cpp='$CXXCPP $CPPFLAGS'
19121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019125 cat >conftest.$ac_ext <<_ACEOF
19126/* confdefs.h. */
19127_ACEOF
19128cat confdefs.h >>conftest.$ac_ext
19129cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019130/* end confdefs.h. */
19131#include <stdlib.h>
19132int
19133main ()
19134{
19135srand48(0);lrand48();drand48();
19136 ;
19137 return 0;
19138}
19139_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019140rm -f conftest.$ac_objext
19141if { (ac_try="$ac_compile"
19142case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145esac
19146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19158esac
19159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19161 ac_status=$?
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest.$ac_objext'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168esac
19169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019174 ac_cv_func_rand48=yes
19175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019176 echo "$as_me: failed program was:" >&5
19177sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019181
Reid Spencera773bd52006-08-04 18:18:08 +000019182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019183 ac_ext=c
19184ac_cpp='$CPP $CPPFLAGS'
19185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188
19189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019190{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19191echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019192
19193if test "$ac_cv_func_rand48" = "yes" ; then
19194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019195cat >>confdefs.h <<\_ACEOF
19196#define HAVE_RAND48 1
19197_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019198
19199fi
John Criswell0021c312004-02-13 21:57:29 +000019200
19201
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019202if test "$llvm_cv_os_type" = "MingW" ; then
19203 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19204echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19205if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19207else
19208 ac_check_lib_save_LIBS=$LIBS
19209LIBS="-lgcc $LIBS"
19210cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216
19217/* Override any GCC internal prototype to avoid an error.
19218 Use char because int might match the return type of a GCC
19219 builtin and then its argument prototype would still apply. */
19220#ifdef __cplusplus
19221extern "C"
19222#endif
19223char _alloca ();
19224int
19225main ()
19226{
19227return _alloca ();
19228 ;
19229 return 0;
19230}
19231_ACEOF
19232rm -f conftest.$ac_objext conftest$ac_exeext
19233if { (ac_try="$ac_link"
19234case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19237esac
19238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239 (eval "$ac_link") 2>conftest.er1
19240 ac_status=$?
19241 grep -v '^ *+' conftest.er1 >conftest.err
19242 rm -f conftest.er1
19243 cat conftest.err >&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19247 { (case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19250esac
19251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_try") 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } &&
19256 { ac_try='test -s conftest$ac_exeext'
19257 { (case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260esac
19261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_try") 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_cv_lib_gcc__alloca=yes
19267else
19268 echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5
19270
19271 ac_cv_lib_gcc__alloca=no
19272fi
19273
19274rm -f core conftest.err conftest.$ac_objext \
19275 conftest$ac_exeext conftest.$ac_ext
19276LIBS=$ac_check_lib_save_LIBS
19277fi
19278{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19279echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19280if test $ac_cv_lib_gcc__alloca = yes; then
19281
19282cat >>confdefs.h <<\_ACEOF
19283#define HAVE__ALLOCA 1
19284_ACEOF
19285
19286fi
19287
19288 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19289echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19290if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19292else
19293 ac_check_lib_save_LIBS=$LIBS
19294LIBS="-lgcc $LIBS"
19295cat >conftest.$ac_ext <<_ACEOF
19296/* confdefs.h. */
19297_ACEOF
19298cat confdefs.h >>conftest.$ac_ext
19299cat >>conftest.$ac_ext <<_ACEOF
19300/* end confdefs.h. */
19301
19302/* Override any GCC internal prototype to avoid an error.
19303 Use char because int might match the return type of a GCC
19304 builtin and then its argument prototype would still apply. */
19305#ifdef __cplusplus
19306extern "C"
19307#endif
19308char __alloca ();
19309int
19310main ()
19311{
19312return __alloca ();
19313 ;
19314 return 0;
19315}
19316_ACEOF
19317rm -f conftest.$ac_objext conftest$ac_exeext
19318if { (ac_try="$ac_link"
19319case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19322esac
19323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_link") 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19332 { (case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19335esac
19336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_try") 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; } &&
19341 { ac_try='test -s conftest$ac_exeext'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345esac
19346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_cv_lib_gcc___alloca=yes
19352else
19353 echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356 ac_cv_lib_gcc___alloca=no
19357fi
19358
19359rm -f core conftest.err conftest.$ac_objext \
19360 conftest$ac_exeext conftest.$ac_ext
19361LIBS=$ac_check_lib_save_LIBS
19362fi
19363{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19364echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19365if test $ac_cv_lib_gcc___alloca = yes; then
19366
19367cat >>confdefs.h <<\_ACEOF
19368#define HAVE___ALLOCA 1
19369_ACEOF
19370
19371fi
19372
19373 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19374echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19375if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19377else
19378 ac_check_lib_save_LIBS=$LIBS
19379LIBS="-lgcc $LIBS"
19380cat >conftest.$ac_ext <<_ACEOF
19381/* confdefs.h. */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
19385/* end confdefs.h. */
19386
19387/* Override any GCC internal prototype to avoid an error.
19388 Use char because int might match the return type of a GCC
19389 builtin and then its argument prototype would still apply. */
19390#ifdef __cplusplus
19391extern "C"
19392#endif
19393char __chkstk ();
19394int
19395main ()
19396{
19397return __chkstk ();
19398 ;
19399 return 0;
19400}
19401_ACEOF
19402rm -f conftest.$ac_objext conftest$ac_exeext
19403if { (ac_try="$ac_link"
19404case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407esac
19408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_link") 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19417 { (case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19420esac
19421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_try") 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest$ac_exeext'
19427 { (case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19430esac
19431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_try") 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_lib_gcc___chkstk=yes
19437else
19438 echo "$as_me: failed program was:" >&5
19439sed 's/^/| /' conftest.$ac_ext >&5
19440
19441 ac_cv_lib_gcc___chkstk=no
19442fi
19443
19444rm -f core conftest.err conftest.$ac_objext \
19445 conftest$ac_exeext conftest.$ac_ext
19446LIBS=$ac_check_lib_save_LIBS
19447fi
19448{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19449echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19450if test $ac_cv_lib_gcc___chkstk = yes; then
19451
19452cat >>confdefs.h <<\_ACEOF
19453#define HAVE___CHKSTK 1
19454_ACEOF
19455
19456fi
19457
19458 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19459echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19460if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19462else
19463 ac_check_lib_save_LIBS=$LIBS
19464LIBS="-lgcc $LIBS"
19465cat >conftest.$ac_ext <<_ACEOF
19466/* confdefs.h. */
19467_ACEOF
19468cat confdefs.h >>conftest.$ac_ext
19469cat >>conftest.$ac_ext <<_ACEOF
19470/* end confdefs.h. */
19471
19472/* Override any GCC internal prototype to avoid an error.
19473 Use char because int might match the return type of a GCC
19474 builtin and then its argument prototype would still apply. */
19475#ifdef __cplusplus
19476extern "C"
19477#endif
19478char ___chkstk ();
19479int
19480main ()
19481{
19482return ___chkstk ();
19483 ;
19484 return 0;
19485}
19486_ACEOF
19487rm -f conftest.$ac_objext conftest$ac_exeext
19488if { (ac_try="$ac_link"
19489case "(($ac_try" in
19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19492esac
19493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_link") 2>conftest.er1
19495 ac_status=$?
19496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19502 { (case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505esac
19506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_try") 2>&5
19508 ac_status=$?
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try='test -s conftest$ac_exeext'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_cv_lib_gcc____chkstk=yes
19522else
19523 echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 ac_cv_lib_gcc____chkstk=no
19527fi
19528
19529rm -f core conftest.err conftest.$ac_objext \
19530 conftest$ac_exeext conftest.$ac_ext
19531LIBS=$ac_check_lib_save_LIBS
19532fi
19533{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19534echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19535if test $ac_cv_lib_gcc____chkstk = yes; then
19536
19537cat >>confdefs.h <<\_ACEOF
19538#define HAVE____CHKSTK 1
19539_ACEOF
19540
19541fi
19542
19543
19544 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19545echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19546if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548else
19549 ac_check_lib_save_LIBS=$LIBS
19550LIBS="-lgcc $LIBS"
19551cat >conftest.$ac_ext <<_ACEOF
19552/* confdefs.h. */
19553_ACEOF
19554cat confdefs.h >>conftest.$ac_ext
19555cat >>conftest.$ac_ext <<_ACEOF
19556/* end confdefs.h. */
19557
19558/* Override any GCC internal prototype to avoid an error.
19559 Use char because int might match the return type of a GCC
19560 builtin and then its argument prototype would still apply. */
19561#ifdef __cplusplus
19562extern "C"
19563#endif
19564char __ashldi3 ();
19565int
19566main ()
19567{
19568return __ashldi3 ();
19569 ;
19570 return 0;
19571}
19572_ACEOF
19573rm -f conftest.$ac_objext conftest$ac_exeext
19574if { (ac_try="$ac_link"
19575case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19578esac
19579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_link") 2>conftest.er1
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591esac
19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest$ac_exeext'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601esac
19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 ac_cv_lib_gcc___ashldi3=yes
19608else
19609 echo "$as_me: failed program was:" >&5
19610sed 's/^/| /' conftest.$ac_ext >&5
19611
19612 ac_cv_lib_gcc___ashldi3=no
19613fi
19614
19615rm -f core conftest.err conftest.$ac_objext \
19616 conftest$ac_exeext conftest.$ac_ext
19617LIBS=$ac_check_lib_save_LIBS
19618fi
19619{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19620echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19621if test $ac_cv_lib_gcc___ashldi3 = yes; then
19622
19623cat >>confdefs.h <<\_ACEOF
19624#define HAVE___ASHLDI3 1
19625_ACEOF
19626
19627fi
19628
19629 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19630echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19631if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633else
19634 ac_check_lib_save_LIBS=$LIBS
19635LIBS="-lgcc $LIBS"
19636cat >conftest.$ac_ext <<_ACEOF
19637/* confdefs.h. */
19638_ACEOF
19639cat confdefs.h >>conftest.$ac_ext
19640cat >>conftest.$ac_ext <<_ACEOF
19641/* end confdefs.h. */
19642
19643/* Override any GCC internal prototype to avoid an error.
19644 Use char because int might match the return type of a GCC
19645 builtin and then its argument prototype would still apply. */
19646#ifdef __cplusplus
19647extern "C"
19648#endif
19649char __ashrdi3 ();
19650int
19651main ()
19652{
19653return __ashrdi3 ();
19654 ;
19655 return 0;
19656}
19657_ACEOF
19658rm -f conftest.$ac_objext conftest$ac_exeext
19659if { (ac_try="$ac_link"
19660case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663esac
19664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_link") 2>conftest.er1
19666 ac_status=$?
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
19672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19673 { (case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19676esac
19677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_try") 2>&5
19679 ac_status=$?
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; } &&
19682 { ac_try='test -s conftest$ac_exeext'
19683 { (case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686esac
19687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_try") 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_lib_gcc___ashrdi3=yes
19693else
19694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_cv_lib_gcc___ashrdi3=no
19698fi
19699
19700rm -f core conftest.err conftest.$ac_objext \
19701 conftest$ac_exeext conftest.$ac_ext
19702LIBS=$ac_check_lib_save_LIBS
19703fi
19704{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19705echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19706if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19707
19708cat >>confdefs.h <<\_ACEOF
19709#define HAVE___ASHRDI3 1
19710_ACEOF
19711
19712fi
19713
19714 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19715echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19716if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718else
19719 ac_check_lib_save_LIBS=$LIBS
19720LIBS="-lgcc $LIBS"
19721cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h. */
19727
19728/* Override any GCC internal prototype to avoid an error.
19729 Use char because int might match the return type of a GCC
19730 builtin and then its argument prototype would still apply. */
19731#ifdef __cplusplus
19732extern "C"
19733#endif
19734char __divdi3 ();
19735int
19736main ()
19737{
19738return __divdi3 ();
19739 ;
19740 return 0;
19741}
19742_ACEOF
19743rm -f conftest.$ac_objext conftest$ac_exeext
19744if { (ac_try="$ac_link"
19745case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19748esac
19749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750 (eval "$ac_link") 2>conftest.er1
19751 ac_status=$?
19752 grep -v '^ *+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
19757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19758 { (case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761esac
19762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_try") 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; } &&
19767 { ac_try='test -s conftest$ac_exeext'
19768 { (case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771esac
19772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_try") 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
19777 ac_cv_lib_gcc___divdi3=yes
19778else
19779 echo "$as_me: failed program was:" >&5
19780sed 's/^/| /' conftest.$ac_ext >&5
19781
19782 ac_cv_lib_gcc___divdi3=no
19783fi
19784
19785rm -f core conftest.err conftest.$ac_objext \
19786 conftest$ac_exeext conftest.$ac_ext
19787LIBS=$ac_check_lib_save_LIBS
19788fi
19789{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19790echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19791if test $ac_cv_lib_gcc___divdi3 = yes; then
19792
19793cat >>confdefs.h <<\_ACEOF
19794#define HAVE___DIVDI3 1
19795_ACEOF
19796
19797fi
19798
19799 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19800echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19801if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803else
19804 ac_check_lib_save_LIBS=$LIBS
19805LIBS="-lgcc $LIBS"
19806cat >conftest.$ac_ext <<_ACEOF
19807/* confdefs.h. */
19808_ACEOF
19809cat confdefs.h >>conftest.$ac_ext
19810cat >>conftest.$ac_ext <<_ACEOF
19811/* end confdefs.h. */
19812
19813/* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply. */
19816#ifdef __cplusplus
19817extern "C"
19818#endif
19819char __fixdfdi ();
19820int
19821main ()
19822{
19823return __fixdfdi ();
19824 ;
19825 return 0;
19826}
19827_ACEOF
19828rm -f conftest.$ac_objext conftest$ac_exeext
19829if { (ac_try="$ac_link"
19830case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833esac
19834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846esac
19847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; } &&
19852 { ac_try='test -s conftest$ac_exeext'
19853 { (case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19856esac
19857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_try") 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_cv_lib_gcc___fixdfdi=yes
19863else
19864 echo "$as_me: failed program was:" >&5
19865sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ac_cv_lib_gcc___fixdfdi=no
19868fi
19869
19870rm -f core conftest.err conftest.$ac_objext \
19871 conftest$ac_exeext conftest.$ac_ext
19872LIBS=$ac_check_lib_save_LIBS
19873fi
19874{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19875echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19876if test $ac_cv_lib_gcc___fixdfdi = yes; then
19877
19878cat >>confdefs.h <<\_ACEOF
19879#define HAVE___FIXDFDI 1
19880_ACEOF
19881
19882fi
19883
19884 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19885echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19886if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888else
19889 ac_check_lib_save_LIBS=$LIBS
19890LIBS="-lgcc $LIBS"
19891cat >conftest.$ac_ext <<_ACEOF
19892/* confdefs.h. */
19893_ACEOF
19894cat confdefs.h >>conftest.$ac_ext
19895cat >>conftest.$ac_ext <<_ACEOF
19896/* end confdefs.h. */
19897
19898/* Override any GCC internal prototype to avoid an error.
19899 Use char because int might match the return type of a GCC
19900 builtin and then its argument prototype would still apply. */
19901#ifdef __cplusplus
19902extern "C"
19903#endif
19904char __fixsfdi ();
19905int
19906main ()
19907{
19908return __fixsfdi ();
19909 ;
19910 return 0;
19911}
19912_ACEOF
19913rm -f conftest.$ac_objext conftest$ac_exeext
19914if { (ac_try="$ac_link"
19915case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19918esac
19919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19920 (eval "$ac_link") 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
19927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19928 { (case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19931esac
19932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_try") 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try='test -s conftest$ac_exeext'
19938 { (case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19941esac
19942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_try") 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; }; then
19947 ac_cv_lib_gcc___fixsfdi=yes
19948else
19949 echo "$as_me: failed program was:" >&5
19950sed 's/^/| /' conftest.$ac_ext >&5
19951
19952 ac_cv_lib_gcc___fixsfdi=no
19953fi
19954
19955rm -f core conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19957LIBS=$ac_check_lib_save_LIBS
19958fi
19959{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19960echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19961if test $ac_cv_lib_gcc___fixsfdi = yes; then
19962
19963cat >>confdefs.h <<\_ACEOF
19964#define HAVE___FIXSFDI 1
19965_ACEOF
19966
19967fi
19968
19969 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19970echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19971if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19973else
19974 ac_check_lib_save_LIBS=$LIBS
19975LIBS="-lgcc $LIBS"
19976cat >conftest.$ac_ext <<_ACEOF
19977/* confdefs.h. */
19978_ACEOF
19979cat confdefs.h >>conftest.$ac_ext
19980cat >>conftest.$ac_ext <<_ACEOF
19981/* end confdefs.h. */
19982
19983/* Override any GCC internal prototype to avoid an error.
19984 Use char because int might match the return type of a GCC
19985 builtin and then its argument prototype would still apply. */
19986#ifdef __cplusplus
19987extern "C"
19988#endif
19989char __floatdidf ();
19990int
19991main ()
19992{
19993return __floatdidf ();
19994 ;
19995 return 0;
19996}
19997_ACEOF
19998rm -f conftest.$ac_objext conftest$ac_exeext
19999if { (ac_try="$ac_link"
20000case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20003esac
20004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_link") 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
20012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20013 { (case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20016esac
20017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_try") 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest$ac_exeext'
20023 { (case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20026esac
20027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028 (eval "$ac_try") 2>&5
20029 ac_status=$?
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20032 ac_cv_lib_gcc___floatdidf=yes
20033else
20034 echo "$as_me: failed program was:" >&5
20035sed 's/^/| /' conftest.$ac_ext >&5
20036
20037 ac_cv_lib_gcc___floatdidf=no
20038fi
20039
20040rm -f core conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20042LIBS=$ac_check_lib_save_LIBS
20043fi
20044{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20045echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20046if test $ac_cv_lib_gcc___floatdidf = yes; then
20047
20048cat >>confdefs.h <<\_ACEOF
20049#define HAVE___FLOATDIDF 1
20050_ACEOF
20051
20052fi
20053
20054 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20055echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20056if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
20058else
20059 ac_check_lib_save_LIBS=$LIBS
20060LIBS="-lgcc $LIBS"
20061cat >conftest.$ac_ext <<_ACEOF
20062/* confdefs.h. */
20063_ACEOF
20064cat confdefs.h >>conftest.$ac_ext
20065cat >>conftest.$ac_ext <<_ACEOF
20066/* end confdefs.h. */
20067
20068/* Override any GCC internal prototype to avoid an error.
20069 Use char because int might match the return type of a GCC
20070 builtin and then its argument prototype would still apply. */
20071#ifdef __cplusplus
20072extern "C"
20073#endif
20074char __lshrdi3 ();
20075int
20076main ()
20077{
20078return __lshrdi3 ();
20079 ;
20080 return 0;
20081}
20082_ACEOF
20083rm -f conftest.$ac_objext conftest$ac_exeext
20084if { (ac_try="$ac_link"
20085case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088esac
20089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_link") 2>conftest.er1
20091 ac_status=$?
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
20097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20098 { (case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20101esac
20102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_try") 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; } &&
20107 { ac_try='test -s conftest$ac_exeext'
20108 { (case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20111esac
20112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_try") 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 ac_cv_lib_gcc___lshrdi3=yes
20118else
20119 echo "$as_me: failed program was:" >&5
20120sed 's/^/| /' conftest.$ac_ext >&5
20121
20122 ac_cv_lib_gcc___lshrdi3=no
20123fi
20124
20125rm -f core conftest.err conftest.$ac_objext \
20126 conftest$ac_exeext conftest.$ac_ext
20127LIBS=$ac_check_lib_save_LIBS
20128fi
20129{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20130echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20131if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20132
20133cat >>confdefs.h <<\_ACEOF
20134#define HAVE___LSHRDI3 1
20135_ACEOF
20136
20137fi
20138
20139 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20140echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20141if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143else
20144 ac_check_lib_save_LIBS=$LIBS
20145LIBS="-lgcc $LIBS"
20146cat >conftest.$ac_ext <<_ACEOF
20147/* confdefs.h. */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h. */
20152
20153/* Override any GCC internal prototype to avoid an error.
20154 Use char because int might match the return type of a GCC
20155 builtin and then its argument prototype would still apply. */
20156#ifdef __cplusplus
20157extern "C"
20158#endif
20159char __moddi3 ();
20160int
20161main ()
20162{
20163return __moddi3 ();
20164 ;
20165 return 0;
20166}
20167_ACEOF
20168rm -f conftest.$ac_objext conftest$ac_exeext
20169if { (ac_try="$ac_link"
20170case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20173esac
20174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175 (eval "$ac_link") 2>conftest.er1
20176 ac_status=$?
20177 grep -v '^ *+' conftest.er1 >conftest.err
20178 rm -f conftest.er1
20179 cat conftest.err >&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
20182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186esac
20187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest$ac_exeext'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20196esac
20197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_cv_lib_gcc___moddi3=yes
20203else
20204 echo "$as_me: failed program was:" >&5
20205sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 ac_cv_lib_gcc___moddi3=no
20208fi
20209
20210rm -f core conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
20212LIBS=$ac_check_lib_save_LIBS
20213fi
20214{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20215echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20216if test $ac_cv_lib_gcc___moddi3 = yes; then
20217
20218cat >>confdefs.h <<\_ACEOF
20219#define HAVE___MODDI3 1
20220_ACEOF
20221
20222fi
20223
20224 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20225echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20226if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228else
20229 ac_check_lib_save_LIBS=$LIBS
20230LIBS="-lgcc $LIBS"
20231cat >conftest.$ac_ext <<_ACEOF
20232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
20237
20238/* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20241#ifdef __cplusplus
20242extern "C"
20243#endif
20244char __udivdi3 ();
20245int
20246main ()
20247{
20248return __udivdi3 ();
20249 ;
20250 return 0;
20251}
20252_ACEOF
20253rm -f conftest.$ac_objext conftest$ac_exeext
20254if { (ac_try="$ac_link"
20255case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20258esac
20259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_link") 2>conftest.er1
20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20268 { (case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20271esac
20272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_try") 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest$ac_exeext'
20278 { (case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20281esac
20282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_try") 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_cv_lib_gcc___udivdi3=yes
20288else
20289 echo "$as_me: failed program was:" >&5
20290sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 ac_cv_lib_gcc___udivdi3=no
20293fi
20294
20295rm -f core conftest.err conftest.$ac_objext \
20296 conftest$ac_exeext conftest.$ac_ext
20297LIBS=$ac_check_lib_save_LIBS
20298fi
20299{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20300echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20301if test $ac_cv_lib_gcc___udivdi3 = yes; then
20302
20303cat >>confdefs.h <<\_ACEOF
20304#define HAVE___UDIVDI3 1
20305_ACEOF
20306
20307fi
20308
20309 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20310echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20311if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20313else
20314 ac_check_lib_save_LIBS=$LIBS
20315LIBS="-lgcc $LIBS"
20316cat >conftest.$ac_ext <<_ACEOF
20317/* confdefs.h. */
20318_ACEOF
20319cat confdefs.h >>conftest.$ac_ext
20320cat >>conftest.$ac_ext <<_ACEOF
20321/* end confdefs.h. */
20322
20323/* Override any GCC internal prototype to avoid an error.
20324 Use char because int might match the return type of a GCC
20325 builtin and then its argument prototype would still apply. */
20326#ifdef __cplusplus
20327extern "C"
20328#endif
20329char __umoddi3 ();
20330int
20331main ()
20332{
20333return __umoddi3 ();
20334 ;
20335 return 0;
20336}
20337_ACEOF
20338rm -f conftest.$ac_objext conftest$ac_exeext
20339if { (ac_try="$ac_link"
20340case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20343esac
20344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_link") 2>conftest.er1
20346 ac_status=$?
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -f conftest.er1
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
20352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356esac
20357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest$ac_exeext'
20363 { (case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366esac
20367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_try") 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20372 ac_cv_lib_gcc___umoddi3=yes
20373else
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 ac_cv_lib_gcc___umoddi3=no
20378fi
20379
20380rm -f core conftest.err conftest.$ac_objext \
20381 conftest$ac_exeext conftest.$ac_ext
20382LIBS=$ac_check_lib_save_LIBS
20383fi
20384{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20385echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20386if test $ac_cv_lib_gcc___umoddi3 = yes; then
20387
20388cat >>confdefs.h <<\_ACEOF
20389#define HAVE___UMODDI3 1
20390_ACEOF
20391
20392fi
20393
20394
20395 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20396echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20397if test "${ac_cv_lib_gcc___main+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20399else
20400 ac_check_lib_save_LIBS=$LIBS
20401LIBS="-lgcc $LIBS"
20402cat >conftest.$ac_ext <<_ACEOF
20403/* confdefs.h. */
20404_ACEOF
20405cat confdefs.h >>conftest.$ac_ext
20406cat >>conftest.$ac_ext <<_ACEOF
20407/* end confdefs.h. */
20408
20409/* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20412#ifdef __cplusplus
20413extern "C"
20414#endif
20415char __main ();
20416int
20417main ()
20418{
20419return __main ();
20420 ;
20421 return 0;
20422}
20423_ACEOF
20424rm -f conftest.$ac_objext conftest$ac_exeext
20425if { (ac_try="$ac_link"
20426case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429esac
20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_link") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439 { (case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442esac
20443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_try") 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest$ac_exeext'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452esac
20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458 ac_cv_lib_gcc___main=yes
20459else
20460 echo "$as_me: failed program was:" >&5
20461sed 's/^/| /' conftest.$ac_ext >&5
20462
20463 ac_cv_lib_gcc___main=no
20464fi
20465
20466rm -f core conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
20468LIBS=$ac_check_lib_save_LIBS
20469fi
20470{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20471echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20472if test $ac_cv_lib_gcc___main = yes; then
20473
20474cat >>confdefs.h <<\_ACEOF
20475#define HAVE___MAIN 1
20476_ACEOF
20477
20478fi
20479
20480 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20481echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20482if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20484else
20485 ac_check_lib_save_LIBS=$LIBS
20486LIBS="-lgcc $LIBS"
20487cat >conftest.$ac_ext <<_ACEOF
20488/* confdefs.h. */
20489_ACEOF
20490cat confdefs.h >>conftest.$ac_ext
20491cat >>conftest.$ac_ext <<_ACEOF
20492/* end confdefs.h. */
20493
20494/* Override any GCC internal prototype to avoid an error.
20495 Use char because int might match the return type of a GCC
20496 builtin and then its argument prototype would still apply. */
20497#ifdef __cplusplus
20498extern "C"
20499#endif
20500char __cmpdi2 ();
20501int
20502main ()
20503{
20504return __cmpdi2 ();
20505 ;
20506 return 0;
20507}
20508_ACEOF
20509rm -f conftest.$ac_objext conftest$ac_exeext
20510if { (ac_try="$ac_link"
20511case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20514esac
20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_link") 2>conftest.er1
20517 ac_status=$?
20518 grep -v '^ *+' conftest.er1 >conftest.err
20519 rm -f conftest.er1
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20524 { (case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20527esac
20528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_try") 2>&5
20530 ac_status=$?
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; } &&
20533 { ac_try='test -s conftest$ac_exeext'
20534 { (case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20537esac
20538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_try") 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 ac_cv_lib_gcc___cmpdi2=yes
20544else
20545 echo "$as_me: failed program was:" >&5
20546sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_cv_lib_gcc___cmpdi2=no
20549fi
20550
20551rm -f core conftest.err conftest.$ac_objext \
20552 conftest$ac_exeext conftest.$ac_ext
20553LIBS=$ac_check_lib_save_LIBS
20554fi
20555{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20556echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20557if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20558
20559cat >>confdefs.h <<\_ACEOF
20560#define HAVE___CMPDI2 1
20561_ACEOF
20562
20563fi
20564
20565fi
20566
Torok Edwin871384f2010-01-26 08:50:50 +000020567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20569echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20570if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020572else
Reid Spencera773bd52006-08-04 18:18:08 +000020573 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020574ac_cpp='$CXXCPP $CPPFLAGS'
20575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579 cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020584/* end confdefs.h. */
20585#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020586int
20587main ()
20588{
20589float f; isnan(f);
20590 ;
20591 return 0;
20592}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020594rm -f conftest.$ac_objext
20595if { (ac_try="$ac_compile"
20596case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20599esac
20600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_compile") 2>conftest.er1
20602 ac_status=$?
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
20608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20609 { (case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612esac
20613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_try") 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest.$ac_objext'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20622esac
20623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020628 ac_cv_func_isnan_in_math_h=yes
20629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020630 echo "$as_me: failed program was:" >&5
20631sed 's/^/| /' conftest.$ac_ext >&5
20632
20633 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020635
Reid Spencera773bd52006-08-04 18:18:08 +000020636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020637 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020638ac_cpp='$CPP $CPPFLAGS'
20639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641ac_compiler_gnu=$ac_cv_c_compiler_gnu
20642
20643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020644{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20645echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020646
20647
20648if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020650cat >>confdefs.h <<\_ACEOF
20651#define HAVE_ISNAN_IN_MATH_H 1
20652_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020653
Reid Spencerabec8f92004-10-27 23:03:44 +000020654fi
20655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020656{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20657echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20658if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020660else
Reid Spencera773bd52006-08-04 18:18:08 +000020661 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020662ac_cpp='$CXXCPP $CPPFLAGS'
20663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667 cat >conftest.$ac_ext <<_ACEOF
20668/* confdefs.h. */
20669_ACEOF
20670cat confdefs.h >>conftest.$ac_ext
20671cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020672/* end confdefs.h. */
20673#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020674int
20675main ()
20676{
20677float f; isnan(f);
20678 ;
20679 return 0;
20680}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020681_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020682rm -f conftest.$ac_objext
20683if { (ac_try="$ac_compile"
20684case "(($ac_try" in
20685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686 *) ac_try_echo=$ac_try;;
20687esac
20688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689 (eval "$ac_compile") 2>conftest.er1
20690 ac_status=$?
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } &&
20696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20697 { (case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700esac
20701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_try") 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; } &&
20706 { ac_try='test -s conftest.$ac_objext'
20707 { (case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20710esac
20711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_try") 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020716 ac_cv_func_isnan_in_cmath=yes
20717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020718 echo "$as_me: failed program was:" >&5
20719sed 's/^/| /' conftest.$ac_ext >&5
20720
20721 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020723
Reid Spencera773bd52006-08-04 18:18:08 +000020724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020725 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020726ac_cpp='$CPP $CPPFLAGS'
20727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729ac_compiler_gnu=$ac_cv_c_compiler_gnu
20730
20731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020732{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20733echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020734
20735if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020737cat >>confdefs.h <<\_ACEOF
20738#define HAVE_ISNAN_IN_CMATH 1
20739_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020740
Reid Spencerabec8f92004-10-27 23:03:44 +000020741fi
20742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020743{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20744echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20745if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020747else
Reid Spencera773bd52006-08-04 18:18:08 +000020748 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020749ac_cpp='$CXXCPP $CPPFLAGS'
20750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020754 cat >conftest.$ac_ext <<_ACEOF
20755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020759/* end confdefs.h. */
20760#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020761int
20762main ()
20763{
20764float f; std::isnan(f);
20765 ;
20766 return 0;
20767}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020768_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020769rm -f conftest.$ac_objext
20770if { (ac_try="$ac_compile"
20771case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774esac
20775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_compile") 2>conftest.er1
20777 ac_status=$?
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } &&
20783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20784 { (case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787esac
20788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; } &&
20793 { ac_try='test -s conftest.$ac_objext'
20794 { (case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797esac
20798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_try") 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020803 ac_cv_func_std_isnan_in_cmath=yes
20804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805 echo "$as_me: failed program was:" >&5
20806sed 's/^/| /' conftest.$ac_ext >&5
20807
20808 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810
Reid Spencera773bd52006-08-04 18:18:08 +000020811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020812 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020813ac_cpp='$CPP $CPPFLAGS'
20814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816ac_compiler_gnu=$ac_cv_c_compiler_gnu
20817
20818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020819{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20820echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020821
20822if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020824cat >>confdefs.h <<\_ACEOF
20825#define HAVE_STD_ISNAN_IN_CMATH 1
20826_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020827
Reid Spencerabec8f92004-10-27 23:03:44 +000020828fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020829
20830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20832echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20833if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020835else
Reid Spencera773bd52006-08-04 18:18:08 +000020836 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020837ac_cpp='$CXXCPP $CPPFLAGS'
20838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020842 cat >conftest.$ac_ext <<_ACEOF
20843/* confdefs.h. */
20844_ACEOF
20845cat confdefs.h >>conftest.$ac_ext
20846cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020847/* end confdefs.h. */
20848#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020849int
20850main ()
20851{
20852float f; isinf(f);
20853 ;
20854 return 0;
20855}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020856_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020857rm -f conftest.$ac_objext
20858if { (ac_try="$ac_compile"
20859case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20862esac
20863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_compile") 2>conftest.er1
20865 ac_status=$?
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } &&
20871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875esac
20876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; } &&
20881 { ac_try='test -s conftest.$ac_objext'
20882 { (case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20885esac
20886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_try") 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020891 ac_cv_func_isinf_in_math_h=yes
20892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020893 echo "$as_me: failed program was:" >&5
20894sed 's/^/| /' conftest.$ac_ext >&5
20895
20896 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020897fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898
Reid Spencera773bd52006-08-04 18:18:08 +000020899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020900 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020901ac_cpp='$CPP $CPPFLAGS'
20902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905
20906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020907{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20908echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020909
20910if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020912cat >>confdefs.h <<\_ACEOF
20913#define HAVE_ISINF_IN_MATH_H 1
20914_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020915
Reid Spencerabec8f92004-10-27 23:03:44 +000020916fi
20917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020918{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20919echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20920if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20921 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020922else
Reid Spencera773bd52006-08-04 18:18:08 +000020923 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020924ac_cpp='$CXXCPP $CPPFLAGS'
20925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020929 cat >conftest.$ac_ext <<_ACEOF
20930/* confdefs.h. */
20931_ACEOF
20932cat confdefs.h >>conftest.$ac_ext
20933cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020934/* end confdefs.h. */
20935#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020936int
20937main ()
20938{
20939float f; isinf(f);
20940 ;
20941 return 0;
20942}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944rm -f conftest.$ac_objext
20945if { (ac_try="$ac_compile"
20946case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949esac
20950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_compile") 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
20958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20959 { (case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962esac
20963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_try") 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest.$ac_objext'
20969 { (case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20972esac
20973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_try") 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020978 ac_cv_func_isinf_in_cmath=yes
20979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020980 echo "$as_me: failed program was:" >&5
20981sed 's/^/| /' conftest.$ac_ext >&5
20982
20983 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985
Reid Spencera773bd52006-08-04 18:18:08 +000020986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020987 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020988ac_cpp='$CPP $CPPFLAGS'
20989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991ac_compiler_gnu=$ac_cv_c_compiler_gnu
20992
20993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020994{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20995echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020996
20997if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020999cat >>confdefs.h <<\_ACEOF
21000#define HAVE_ISINF_IN_CMATH 1
21001_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021002
Reid Spencerabec8f92004-10-27 23:03:44 +000021003fi
21004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021005{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21006echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21007if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021009else
Reid Spencera773bd52006-08-04 18:18:08 +000021010 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021011ac_cpp='$CXXCPP $CPPFLAGS'
21012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021016 cat >conftest.$ac_ext <<_ACEOF
21017/* confdefs.h. */
21018_ACEOF
21019cat confdefs.h >>conftest.$ac_ext
21020cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021021/* end confdefs.h. */
21022#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021023int
21024main ()
21025{
21026float f; std::isinf(f)}
21027 ;
21028 return 0;
21029}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021030_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021031rm -f conftest.$ac_objext
21032if { (ac_try="$ac_compile"
21033case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21036esac
21037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_compile") 2>conftest.er1
21039 ac_status=$?
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
21045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21046 { (case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21049esac
21050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_try") 2>&5
21052 ac_status=$?
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; } &&
21055 { ac_try='test -s conftest.$ac_objext'
21056 { (case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21059esac
21060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_try") 2>&5
21062 ac_status=$?
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021065 ac_cv_func_std_isinf_in_cmath=yes
21066else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067 echo "$as_me: failed program was:" >&5
21068sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021072
Reid Spencera773bd52006-08-04 18:18:08 +000021073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021074 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021075ac_cpp='$CPP $CPPFLAGS'
21076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21078ac_compiler_gnu=$ac_cv_c_compiler_gnu
21079
21080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021081{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21082echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021083
21084if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021086cat >>confdefs.h <<\_ACEOF
21087#define HAVE_STD_ISINF_IN_CMATH 1
21088_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021089
Reid Spencerabec8f92004-10-27 23:03:44 +000021090fi
21091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21093echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21094if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021096else
Reid Spencera773bd52006-08-04 18:18:08 +000021097 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021098ac_cpp='$CXXCPP $CPPFLAGS'
21099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021103 cat >conftest.$ac_ext <<_ACEOF
21104/* confdefs.h. */
21105_ACEOF
21106cat confdefs.h >>conftest.$ac_ext
21107cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021108/* end confdefs.h. */
21109#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021110int
21111main ()
21112{
21113float f; finite(f);
21114 ;
21115 return 0;
21116}
Brian Gaeked59a6472004-07-21 03:33:58 +000021117_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021118rm -f conftest.$ac_objext
21119if { (ac_try="$ac_compile"
21120case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21123esac
21124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_compile") 2>conftest.er1
21126 ac_status=$?
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } &&
21132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21133 { (case "(($ac_try" in
21134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135 *) ac_try_echo=$ac_try;;
21136esac
21137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138 (eval "$ac_try") 2>&5
21139 ac_status=$?
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; } &&
21142 { ac_try='test -s conftest.$ac_objext'
21143 { (case "(($ac_try" in
21144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145 *) ac_try_echo=$ac_try;;
21146esac
21147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21148 (eval "$ac_try") 2>&5
21149 ac_status=$?
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021152 ac_cv_func_finite_in_ieeefp_h=yes
21153else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021154 echo "$as_me: failed program was:" >&5
21155sed 's/^/| /' conftest.$ac_ext >&5
21156
21157 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021159
Reid Spencera773bd52006-08-04 18:18:08 +000021160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021161 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021162ac_cpp='$CPP $CPPFLAGS'
21163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21165ac_compiler_gnu=$ac_cv_c_compiler_gnu
21166
21167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021168{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21169echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021170
Brian Gaeke6802b552004-10-28 05:06:45 +000021171if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021173cat >>confdefs.h <<\_ACEOF
21174#define HAVE_FINITE_IN_IEEEFP_H 1
21175_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021176
Reid Spencerabec8f92004-10-27 23:03:44 +000021177fi
21178
21179
21180
Reid Spencer30fe5262007-01-20 07:48:49 +000021181if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021182
21183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184for ac_header in stdlib.h unistd.h
21185do
21186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21192fi
21193ac_res=`eval echo '${'$as_ac_Header'}'`
21194 { echo "$as_me:$LINENO: result: $ac_res" >&5
21195echo "${ECHO_T}$ac_res" >&6; }
21196else
21197 # Is the header compilable?
21198{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21200cat >conftest.$ac_ext <<_ACEOF
21201/* confdefs.h. */
21202_ACEOF
21203cat confdefs.h >>conftest.$ac_ext
21204cat >>conftest.$ac_ext <<_ACEOF
21205/* end confdefs.h. */
21206$ac_includes_default
21207#include <$ac_header>
21208_ACEOF
21209rm -f conftest.$ac_objext
21210if { (ac_try="$ac_compile"
21211case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21214esac
21215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21217 ac_status=$?
21218 grep -v '^ *+' conftest.er1 >conftest.err
21219 rm -f conftest.er1
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } &&
21223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21224 { (case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227esac
21228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_try") 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; } &&
21233 { ac_try='test -s conftest.$ac_objext'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237esac
21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
21240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_header_compiler=yes
21244else
21245 echo "$as_me: failed program was:" >&5
21246sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021248 ac_header_compiler=no
21249fi
21250
21251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21253echo "${ECHO_T}$ac_header_compiler" >&6; }
21254
21255# Is the header present?
21256{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21258cat >conftest.$ac_ext <<_ACEOF
21259/* confdefs.h. */
21260_ACEOF
21261cat confdefs.h >>conftest.$ac_ext
21262cat >>conftest.$ac_ext <<_ACEOF
21263/* end confdefs.h. */
21264#include <$ac_header>
21265_ACEOF
21266if { (ac_try="$ac_cpp conftest.$ac_ext"
21267case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21270esac
21271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21273 ac_status=$?
21274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } >/dev/null; then
21279 if test -s conftest.err; then
21280 ac_cpp_err=$ac_c_preproc_warn_flag
21281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21282 else
21283 ac_cpp_err=
21284 fi
21285else
21286 ac_cpp_err=yes
21287fi
21288if test -z "$ac_cpp_err"; then
21289 ac_header_preproc=yes
21290else
21291 echo "$as_me: failed program was:" >&5
21292sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ac_header_preproc=no
21295fi
21296
21297rm -f conftest.err conftest.$ac_ext
21298{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21299echo "${ECHO_T}$ac_header_preproc" >&6; }
21300
21301# So? What about this header?
21302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21303 yes:no: )
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21305echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21307echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21308 ac_header_preproc=yes
21309 ;;
21310 no:yes:* )
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21312echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21314echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21316echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21318echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21322echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21323 ( cat <<\_ASBOX
21324## ----------------------------------- ##
21325## Report this to llvmbugs@cs.uiuc.edu ##
21326## ----------------------------------- ##
21327_ASBOX
21328 ) | sed "s/^/$as_me: WARNING: /" >&2
21329 ;;
21330esac
21331{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335else
21336 eval "$as_ac_Header=\$ac_header_preproc"
21337fi
21338ac_res=`eval echo '${'$as_ac_Header'}'`
21339 { echo "$as_me:$LINENO: result: $ac_res" >&5
21340echo "${ECHO_T}$ac_res" >&6; }
21341
21342fi
21343if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021344 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021346_ACEOF
21347
21348fi
21349
21350done
21351
21352
21353for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021354do
21355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21356{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21358if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360else
21361 cat >conftest.$ac_ext <<_ACEOF
21362/* confdefs.h. */
21363_ACEOF
21364cat confdefs.h >>conftest.$ac_ext
21365cat >>conftest.$ac_ext <<_ACEOF
21366/* end confdefs.h. */
21367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369#define $ac_func innocuous_$ac_func
21370
21371/* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char $ac_func (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21375
21376#ifdef __STDC__
21377# include <limits.h>
21378#else
21379# include <assert.h>
21380#endif
21381
21382#undef $ac_func
21383
21384/* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21387#ifdef __cplusplus
21388extern "C"
21389#endif
21390char $ac_func ();
21391/* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394#if defined __stub_$ac_func || defined __stub___$ac_func
21395choke me
21396#endif
21397
21398int
21399main ()
21400{
21401return $ac_func ();
21402 ;
21403 return 0;
21404}
21405_ACEOF
21406rm -f conftest.$ac_objext conftest$ac_exeext
21407if { (ac_try="$ac_link"
21408case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411esac
21412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_link") 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21421 { (case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21424esac
21425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_try") 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest$ac_exeext'
21431 { (case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21434esac
21435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_try") 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 eval "$as_ac_var=yes"
21441else
21442 echo "$as_me: failed program was:" >&5
21443sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 eval "$as_ac_var=no"
21446fi
21447
21448rm -f core conftest.err conftest.$ac_objext \
21449 conftest$ac_exeext conftest.$ac_ext
21450fi
21451ac_res=`eval echo '${'$as_ac_var'}'`
21452 { echo "$as_me:$LINENO: result: $ac_res" >&5
21453echo "${ECHO_T}$ac_res" >&6; }
21454if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021455 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021457_ACEOF
21458
21459fi
21460done
21461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021462{ echo "$as_me:$LINENO: checking for working mmap" >&5
21463echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21464if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021468 ac_cv_func_mmap_fixed_mapped=no
21469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470 cat >conftest.$ac_ext <<_ACEOF
21471/* confdefs.h. */
21472_ACEOF
21473cat confdefs.h >>conftest.$ac_ext
21474cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021476$ac_includes_default
21477/* malloc might have been renamed as rpl_malloc. */
21478#undef malloc
21479
21480/* Thanks to Mike Haertel and Jim Avera for this test.
21481 Here is a matrix of mmap possibilities:
21482 mmap private not fixed
21483 mmap private fixed at somewhere currently unmapped
21484 mmap private fixed at somewhere already mapped
21485 mmap shared not fixed
21486 mmap shared fixed at somewhere currently unmapped
21487 mmap shared fixed at somewhere already mapped
21488 For private mappings, we should verify that changes cannot be read()
21489 back from the file, nor mmap's back from the file at a different
21490 address. (There have been systems where private was not correctly
21491 implemented like the infamous i386 svr4.0, and systems where the
21492 VM page cache was not coherent with the file system buffer cache
21493 like early versions of FreeBSD and possibly contemporary NetBSD.)
21494 For shared mappings, we should conversely verify that changes get
21495 propagated back to all the places they're supposed to be.
21496
21497 Grep wants private fixed already mapped.
21498 The main things grep needs to know about mmap are:
21499 * does it exist and is it safe to write into the mmap'd area
21500 * how to use it (BSD variants) */
21501
21502#include <fcntl.h>
21503#include <sys/mman.h>
21504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021506char *malloc ();
21507#endif
21508
21509/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021510#if !HAVE_GETPAGESIZE
21511/* Assume that all systems that can run configure have sys/param.h. */
21512# if !HAVE_SYS_PARAM_H
21513# define HAVE_SYS_PARAM_H 1
21514# endif
21515
John Criswell7a73b802003-06-30 21:59:07 +000021516# ifdef _SC_PAGESIZE
21517# define getpagesize() sysconf(_SC_PAGESIZE)
21518# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021520# include <sys/param.h>
21521# ifdef EXEC_PAGESIZE
21522# define getpagesize() EXEC_PAGESIZE
21523# else /* no EXEC_PAGESIZE */
21524# ifdef NBPG
21525# define getpagesize() NBPG * CLSIZE
21526# ifndef CLSIZE
21527# define CLSIZE 1
21528# endif /* no CLSIZE */
21529# else /* no NBPG */
21530# ifdef NBPC
21531# define getpagesize() NBPC
21532# else /* no NBPC */
21533# ifdef PAGESIZE
21534# define getpagesize() PAGESIZE
21535# endif /* PAGESIZE */
21536# endif /* no NBPC */
21537# endif /* no NBPG */
21538# endif /* no EXEC_PAGESIZE */
21539# else /* no HAVE_SYS_PARAM_H */
21540# define getpagesize() 8192 /* punt totally */
21541# endif /* no HAVE_SYS_PARAM_H */
21542# endif /* no _SC_PAGESIZE */
21543
21544#endif /* no HAVE_GETPAGESIZE */
21545
21546int
21547main ()
21548{
21549 char *data, *data2, *data3;
21550 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021552
21553 pagesize = getpagesize ();
21554
21555 /* First, make a file with some known garbage in it. */
21556 data = (char *) malloc (pagesize);
21557 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021558 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021559 for (i = 0; i < pagesize; ++i)
21560 *(data + i) = rand ();
21561 umask (0);
21562 fd = creat ("conftest.mmap", 0600);
21563 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021565 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021566 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021567 close (fd);
21568
21569 /* Next, try to mmap the file at a fixed address which already has
21570 something else allocated at it. If we can, also make sure that
21571 we see the same garbage. */
21572 fd = open ("conftest.mmap", O_RDWR);
21573 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021574 return 1;
21575 data2 = (char *) malloc (2 * pagesize);
21576 if (!data2)
21577 return 1;
21578 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021579 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021580 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021582 for (i = 0; i < pagesize; ++i)
21583 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021584 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021585
21586 /* Finally, make sure that changes to the mapped area do not
21587 percolate back to the file as seen by read(). (This is a bug on
21588 some variants of i386 svr4.0.) */
21589 for (i = 0; i < pagesize; ++i)
21590 *(data2 + i) = *(data2 + i) + 1;
21591 data3 = (char *) malloc (pagesize);
21592 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021593 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021594 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021595 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021596 for (i = 0; i < pagesize; ++i)
21597 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021598 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021599 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021600 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021601}
21602_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021603rm -f conftest$ac_exeext
21604if { (ac_try="$ac_link"
21605case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21608esac
21609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_link") 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21614 { (case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21617esac
21618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_try") 2>&5
21620 ac_status=$?
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021623 ac_cv_func_mmap_fixed_mapped=yes
21624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625 echo "$as_me: program exited with status $ac_status" >&5
21626echo "$as_me: failed program was:" >&5
21627sed 's/^/| /' conftest.$ac_ext >&5
21628
21629( exit $ac_status )
21630ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021632rm -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 +000021633fi
Reid Spencera773bd52006-08-04 18:18:08 +000021634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021635
John Criswell7a73b802003-06-30 21:59:07 +000021636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021637{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21638echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021639if test $ac_cv_func_mmap_fixed_mapped = yes; then
21640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021641cat >>confdefs.h <<\_ACEOF
21642#define HAVE_MMAP 1
21643_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021644
21645fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021646rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021648 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21649echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21650if test "${ac_cv_func_mmap_file+set}" = set; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021652else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021653 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021654ac_cpp='$CPP $CPPFLAGS'
21655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21657ac_compiler_gnu=$ac_cv_c_compiler_gnu
21658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021660 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664 /* confdefs.h. */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021669
John Criswell7a73b802003-06-30 21:59:07 +000021670#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021671#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021672#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021673
21674int
21675main ()
21676{
John Criswell7a73b802003-06-30 21:59:07 +000021677
21678 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021679 fd = creat ("foo",0777);
21680 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21681 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021682 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021683 ;
21684 return 0;
21685}
John Criswell7a73b802003-06-30 21:59:07 +000021686_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021687rm -f conftest$ac_exeext
21688if { (ac_try="$ac_link"
21689case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21692esac
21693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_link") 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21701esac
21702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021707 ac_cv_func_mmap_file=yes
21708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021709 echo "$as_me: program exited with status $ac_status" >&5
21710echo "$as_me: failed program was:" >&5
21711sed 's/^/| /' conftest.$ac_ext >&5
21712
21713( exit $ac_status )
21714ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021716rm -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 +000021717fi
Reid Spencera773bd52006-08-04 18:18:08 +000021718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719
John Criswell7a73b802003-06-30 21:59:07 +000021720 ac_ext=c
21721ac_cpp='$CPP $CPPFLAGS'
21722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21724ac_compiler_gnu=$ac_cv_c_compiler_gnu
21725
21726
21727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021728{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21729echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021730if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732cat >>confdefs.h <<\_ACEOF
21733#define HAVE_MMAP_FILE
21734_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021735
21736 MMAP_FILE=yes
21737
21738fi
21739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021740 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21741echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21742if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021744else
Reid Spencer582a23c2004-12-29 07:07:57 +000021745 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021746 ac_cv_need_dev_zero_for_mmap=yes
21747 else
21748 ac_cv_need_dev_zero_for_mmap=no
21749 fi
21750
21751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21753echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021754if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756cat >>confdefs.h <<\_ACEOF
21757#define NEED_DEV_ZERO_FOR_MMAP 1
21758_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021759
21760fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021761
Reid Spencer30fe5262007-01-20 07:48:49 +000021762 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21763 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021764 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21765echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021766 fi
21767 if test "$ac_cv_func_mmap_file" = "no"
21768 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21770echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021771 fi
John Criswellb13092b2003-07-22 21:00:24 +000021772fi
John Criswell7a73b802003-06-30 21:59:07 +000021773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21775echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021776ac_ext=cpp
21777ac_cpp='$CXXCPP $CPPFLAGS'
21778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021782cat >conftest.$ac_ext <<_ACEOF
21783/* confdefs.h. */
21784_ACEOF
21785cat confdefs.h >>conftest.$ac_ext
21786cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021787/* end confdefs.h. */
21788int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021789 volatile unsigned long val = 1;
21790 __sync_synchronize();
21791 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021792 __sync_add_and_fetch(&val, 1);
21793 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000021794 return 0;
21795 }
Owen Andersond4b272b2009-05-18 23:58:51 +000021796
21797_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021798rm -f conftest.$ac_objext conftest$ac_exeext
21799if { (ac_try="$ac_link"
21800case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21803esac
21804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_link") 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } &&
21812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21813 { (case "(($ac_try" in
21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815 *) ac_try_echo=$ac_try;;
21816esac
21817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818 (eval "$ac_try") 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; } &&
21822 { ac_try='test -s conftest$ac_exeext'
21823 { (case "(($ac_try" in
21824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825 *) ac_try_echo=$ac_try;;
21826esac
21827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_try") 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000021832 ac_ext=c
21833ac_cpp='$CPP $CPPFLAGS'
21834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21836ac_compiler_gnu=$ac_cv_c_compiler_gnu
21837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838 { echo "$as_me:$LINENO: result: yes" >&5
21839echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000021840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841cat >>confdefs.h <<\_ACEOF
21842#define LLVM_MULTITHREADED 1
21843_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000021844
Owen Andersond4b272b2009-05-18 23:58:51 +000021845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846 echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000021848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021849 { echo "$as_me:$LINENO: result: no" >&5
21850echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000021851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852cat >>confdefs.h <<\_ACEOF
21853#define LLVM_MULTITHREADED 0
21854_ACEOF
21855
21856 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21857echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000021858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021859
Owen Andersond4b272b2009-05-18 23:58:51 +000021860rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021861 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000021862
John Criswell7a73b802003-06-30 21:59:07 +000021863
Nick Lewycky4372e692009-09-29 06:18:23 +000021864if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21866echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21867if test "${llvm_cv_linux_mixed+set}" = set; then
21868 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000021869else
21870 ac_ext=c
21871ac_cpp='$CPP $CPPFLAGS'
21872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21874ac_compiler_gnu=$ac_cv_c_compiler_gnu
21875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021876 cat >conftest.$ac_ext <<_ACEOF
21877/* confdefs.h. */
21878_ACEOF
21879cat confdefs.h >>conftest.$ac_ext
21880cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000021881/* end confdefs.h. */
21882#ifndef __x86_64__
21883 error: Not x86-64 even if uname says so!
21884 #endif
21885
21886int
21887main ()
21888{
21889
21890 ;
21891 return 0;
21892}
21893_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021894rm -f conftest.$ac_objext
21895if { (ac_try="$ac_compile"
21896case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21899esac
21900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_compile") 2>conftest.er1
21902 ac_status=$?
21903 grep -v '^ *+' conftest.er1 >conftest.err
21904 rm -f conftest.er1
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } &&
21908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21909 { (case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912esac
21913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_try") 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; } &&
21918 { ac_try='test -s conftest.$ac_objext'
21919 { (case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21922esac
21923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_try") 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000021928 llvm_cv_linux_mixed=no
21929else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021930 echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000021934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021935
Nick Lewycky4372e692009-09-29 06:18:23 +000021936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21937 ac_ext=c
21938ac_cpp='$CPP $CPPFLAGS'
21939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21941ac_compiler_gnu=$ac_cv_c_compiler_gnu
21942
21943
21944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021945{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21946echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000021947
21948 if test "$llvm_cv_linux_mixed" = "yes"; then
21949 llvm_cv_target_arch="x86"
21950 ARCH="x86"
21951 fi
21952fi
21953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954
Reid Spencer9372f152007-07-30 20:13:24 +000021955for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021956do
21957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21958{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21960if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962else
21963 cat >conftest.$ac_ext <<_ACEOF
21964/* confdefs.h. */
21965_ACEOF
21966cat confdefs.h >>conftest.$ac_ext
21967cat >>conftest.$ac_ext <<_ACEOF
21968/* end confdefs.h. */
21969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21971#define $ac_func innocuous_$ac_func
21972
21973/* System header to define __stub macros and hopefully few prototypes,
21974 which can conflict with char $ac_func (); below.
21975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21976 <limits.h> exists even on freestanding compilers. */
21977
21978#ifdef __STDC__
21979# include <limits.h>
21980#else
21981# include <assert.h>
21982#endif
21983
21984#undef $ac_func
21985
21986/* Override any GCC internal prototype to avoid an error.
21987 Use char because int might match the return type of a GCC
21988 builtin and then its argument prototype would still apply. */
21989#ifdef __cplusplus
21990extern "C"
21991#endif
21992char $ac_func ();
21993/* The GNU C library defines this for functions which it implements
21994 to always fail with ENOSYS. Some functions are actually named
21995 something starting with __ and the normal name is an alias. */
21996#if defined __stub_$ac_func || defined __stub___$ac_func
21997choke me
21998#endif
21999
22000int
22001main ()
22002{
22003return $ac_func ();
22004 ;
22005 return 0;
22006}
22007_ACEOF
22008rm -f conftest.$ac_objext conftest$ac_exeext
22009if { (ac_try="$ac_link"
22010case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22013esac
22014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_link") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
22022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22023 { (case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026esac
22027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_try") 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; } &&
22032 { ac_try='test -s conftest$ac_exeext'
22033 { (case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036esac
22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_try") 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 eval "$as_ac_var=yes"
22043else
22044 echo "$as_me: failed program was:" >&5
22045sed 's/^/| /' conftest.$ac_ext >&5
22046
22047 eval "$as_ac_var=no"
22048fi
22049
22050rm -f core conftest.err conftest.$ac_objext \
22051 conftest$ac_exeext conftest.$ac_ext
22052fi
22053ac_res=`eval echo '${'$as_ac_var'}'`
22054 { echo "$as_me:$LINENO: result: $ac_res" >&5
22055echo "${ECHO_T}$ac_res" >&6; }
22056if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022057 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022059_ACEOF
22060
22061fi
22062done
22063
22064
Tobias Grossera84b5672010-11-10 16:31:34 +000022065{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22066echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22067if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22069else
22070 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022071if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022072 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022073 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022074 if test $? -eq 0 ; then
22075 llvm_cv_llvmgcc_dragonegg="yes"
22076 fi
22077 rm conftest.c
22078fi
22079fi
22080{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22081echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22082
22083if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22084 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022085 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022086else
22087 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022088 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022089fi
22090
22091
22092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022093{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22094echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22095if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022097else
22098 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022099if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022100 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022101 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022102 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022103 if test $? -eq 0 ; then
22104 llvm_cv_llvmgcc_sanity="yes"
22105 fi
22106 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022107fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022109{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22110echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022111
22112if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022113 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22114echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022115 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022116 LLVMCC1=$llvmcc1path
22117
Duncan Sands1526b192010-11-25 17:47:42 +000022118 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022119 LLVMCC1PLUS=$llvmcc1pluspath
22120
Reid Spencer502935f2004-12-22 05:56:56 +000022121 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22122 LLVMGCCDIR=$llvmgccdir
22123
Duncan Sands1526b192010-11-25 17:47:42 +000022124 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022125 LLVMGCC_LANGS=$llvmgcclangs
22126
Tobias Grossera84b5672010-11-10 16:31:34 +000022127 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22128
22129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022130 { echo "$as_me:$LINENO: result: ok" >&5
22131echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022132fi
22133
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022134SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022135
22136
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022137SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22138
22139
Reid Spencere9de0912004-08-20 09:03:57 +000022140# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022141# information into substitutions that will end up in Makefile.config.in
22142# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022143if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022144 prefix="/usr/local"
22145fi
Reid Spencere9de0912004-08-20 09:03:57 +000022146eval LLVM_PREFIX="${prefix}";
22147eval LLVM_BINDIR="${prefix}/bin";
22148eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022149eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022150eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022151eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022152eval LLVM_INCLUDEDIR="${prefix}/include";
22153eval LLVM_INFODIR="${prefix}/info";
22154eval LLVM_MANDIR="${prefix}/man";
22155LLVM_CONFIGTIME=`date`
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022167# Place the various directores into the config.h file as #defines so that we
22168# can know about the installation paths within LLVM.
22169
Reid Spencere9de0912004-08-20 09:03:57 +000022170cat >>confdefs.h <<_ACEOF
22171#define LLVM_PREFIX "$LLVM_PREFIX"
22172_ACEOF
22173
22174
22175cat >>confdefs.h <<_ACEOF
22176#define LLVM_BINDIR "$LLVM_BINDIR"
22177_ACEOF
22178
22179
22180cat >>confdefs.h <<_ACEOF
22181#define LLVM_LIBDIR "$LLVM_LIBDIR"
22182_ACEOF
22183
22184
22185cat >>confdefs.h <<_ACEOF
22186#define LLVM_DATADIR "$LLVM_DATADIR"
22187_ACEOF
22188
22189
22190cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022191#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022192_ACEOF
22193
22194
22195cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022196#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022197_ACEOF
22198
22199
22200cat >>confdefs.h <<_ACEOF
22201#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22202_ACEOF
22203
22204
22205cat >>confdefs.h <<_ACEOF
22206#define LLVM_INFODIR "$LLVM_INFODIR"
22207_ACEOF
22208
22209
22210cat >>confdefs.h <<_ACEOF
22211#define LLVM_MANDIR "$LLVM_MANDIR"
22212_ACEOF
22213
22214
22215cat >>confdefs.h <<_ACEOF
22216#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22217_ACEOF
22218
22219
Eric Christopher790e11c2007-12-01 00:34:39 +000022220cat >>confdefs.h <<_ACEOF
22221#define LLVM_HOSTTRIPLE "$host"
22222_ACEOF
22223
22224
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022225# Determine which bindings to build.
22226if test "$BINDINGS_TO_BUILD" = auto ; then
22227 BINDINGS_TO_BUILD=""
22228 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22229 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22230 fi
22231fi
22232BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22233
22234
22235# This isn't really configurey, but it avoids having to repeat the list in
22236# other files.
22237ALL_BINDINGS=ocaml
22238
22239
Gordon Henriksenf0915682007-10-02 16:42:22 +000022240# Do any work necessary to ensure that bindings have what they need.
22241binding_prereqs_failed=0
22242for a_binding in $BINDINGS_TO_BUILD ; do
22243 case "$a_binding" in
22244 ocaml)
22245 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22247echo "$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 +000022248 binding_prereqs_failed=1
22249 fi
22250 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022251 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22252echo "$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 +000022253 binding_prereqs_failed=1
22254 fi
22255 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022256 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22257echo "$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 +000022258 fi
22259 if test "x$with_ocaml_libdir" != xauto ; then
22260 OCAML_LIBDIR=$with_ocaml_libdir
22261
22262 else
22263 ocaml_stdlib="`"$OCAMLC" -where`"
22264 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22265 then
22266 # ocaml stdlib is beneath our prefix; use stdlib
22267 OCAML_LIBDIR=$ocaml_stdlib
22268
22269 else
22270 # ocaml stdlib is outside our prefix; use libdir/ocaml
22271 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22272
22273 fi
22274 fi
22275 ;;
22276 esac
22277done
22278if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022279 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22280echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22281 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022282fi
22283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022284{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22285echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22286if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022288else
22289 ac_ext=cpp
22290ac_cpp='$CXXCPP $CPPFLAGS'
22291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22294
22295 oldcxxflags="$CXXFLAGS"
22296 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297 cat >conftest.$ac_ext <<_ACEOF
22298/* confdefs.h. */
22299_ACEOF
22300cat confdefs.h >>conftest.$ac_ext
22301cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022302/* end confdefs.h. */
22303
22304int
22305main ()
22306{
22307
22308 ;
22309 return 0;
22310}
22311_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022312rm -f conftest.$ac_objext
22313if { (ac_try="$ac_compile"
22314case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317esac
22318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_compile") 2>conftest.er1
22320 ac_status=$?
22321 grep -v '^ *+' conftest.er1 >conftest.err
22322 rm -f conftest.er1
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } &&
22326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22327 { (case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22330esac
22331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_try") 2>&5
22333 ac_status=$?
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); }; } &&
22336 { ac_try='test -s conftest.$ac_objext'
22337 { (case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22340esac
22341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_try") 2>&5
22343 ac_status=$?
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022346 llvm_cv_cxx_visibility_inlines_hidden=yes
22347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022348 echo "$as_me: failed program was:" >&5
22349sed 's/^/| /' conftest.$ac_ext >&5
22350
22351 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022353
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22355 CXXFLAGS="$oldcxxflags"
22356 ac_ext=c
22357ac_cpp='$CPP $CPPFLAGS'
22358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22360ac_compiler_gnu=$ac_cv_c_compiler_gnu
22361
22362
22363fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022364{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22365echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022366if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22367 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22368
22369else
22370 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22371
22372fi
22373
Gordon Henriksenf0915682007-10-02 16:42:22 +000022374
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022375if test "$llvm_cv_link_use_r" = "yes" ; then
22376 RPATH="-Wl,-R"
22377else
22378 RPATH="-Wl,-rpath"
22379fi
22380
22381
22382if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22383 RDYNAMIC="-Wl,-export-dynamic"
22384else
22385 RDYNAMIC=""
22386fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022387
22388
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022389
Eric Christophera1cba682010-08-08 02:44:25 +000022390ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022391
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022392
22393
22394
22395
22396
Douglas Gregor1555a232009-06-16 20:12:29 +000022397ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22398
22399ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22400
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022401ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22402
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022403ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22404
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022405ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022406
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022407
Reid Spencera773bd52006-08-04 18:18:08 +000022408ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022409
22410
Reid Spencerea949cf2006-08-16 00:45:38 +000022411ac_config_files="$ac_config_files llvm.spec"
22412
22413
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022414ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022415
22416
Reid Spencera773bd52006-08-04 18:18:08 +000022417ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022418
22419
Reid Spencera773bd52006-08-04 18:18:08 +000022420ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022421
Reid Spencera773bd52006-08-04 18:18:08 +000022422ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022423
22424
Reid Spencera773bd52006-08-04 18:18:08 +000022425ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022426
22427
Reid Spencera773bd52006-08-04 18:18:08 +000022428ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022429
22430
Reid Spencera773bd52006-08-04 18:18:08 +000022431ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022432
22433
Reid Spencer8b2e1412006-11-17 03:32:33 +000022434ac_config_commands="$ac_config_commands runtime/Makefile"
22435
22436
Reid Spencera773bd52006-08-04 18:18:08 +000022437ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022438
22439
Reid Spencera773bd52006-08-04 18:18:08 +000022440ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022441
22442
Bill Wendlingf24eb392009-01-04 23:12:30 +000022443ac_config_commands="$ac_config_commands unittests/Makefile"
22444
22445
Reid Spencera773bd52006-08-04 18:18:08 +000022446ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022447
22448
Reid Spencera773bd52006-08-04 18:18:08 +000022449ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022450
22451
Reid Spencera773bd52006-08-04 18:18:08 +000022452ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022453
22454
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022455ac_config_commands="$ac_config_commands bindings/Makefile"
22456
22457
22458ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22459
22460
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022461
John Criswell7a73b802003-06-30 21:59:07 +000022462cat >confcache <<\_ACEOF
22463# This file is a shell script that caches the results of configure
22464# tests run on this system so they can be shared between configure
22465# scripts and configure runs, see configure's option --config-cache.
22466# It is not useful on other systems. If it contains results you don't
22467# want to keep, you may remove or edit it.
22468#
22469# config.status only pays attention to the cache file if you give it
22470# the --recheck option to rerun configure.
22471#
John Criswell0c38eaf2003-09-10 15:17:25 +000022472# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022473# loading this file, other *unset* `ac_cv_foo' will be assigned the
22474# following values.
22475
22476_ACEOF
22477
22478# The following way of writing the cache mishandles newlines in values,
22479# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022480# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022481# Ultrix sh set writes to stderr and can't be redirected directly,
22482# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022483(
22484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22485 eval ac_val=\$$ac_var
22486 case $ac_val in #(
22487 *${as_nl}*)
22488 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022489 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22490echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022491 esac
22492 case $ac_var in #(
22493 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022494 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022495 esac ;;
22496 esac
22497 done
22498
John Criswell7a73b802003-06-30 21:59:07 +000022499 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22501 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502 # `set' does not quote correctly, so add quotes (double-quote
22503 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022504 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022505 "s/'/'\\\\''/g;
22506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022507 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022508 *)
22509 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022511 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022512 esac |
22513 sort
22514) |
John Criswell7a73b802003-06-30 21:59:07 +000022515 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022516 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022517 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022518 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22520 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022521 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22522 :end' >>confcache
22523if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22524 if test -w "$cache_file"; then
22525 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022526 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22527echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022528 cat confcache >$cache_file
22529 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022530 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22531echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022532 fi
22533fi
22534rm -f confcache
22535
22536test "x$prefix" = xNONE && prefix=$ac_default_prefix
22537# Let make expand exec_prefix.
22538test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22539
John Criswell7a73b802003-06-30 21:59:07 +000022540DEFS=-DHAVE_CONFIG_H
22541
John Criswell0c38eaf2003-09-10 15:17:25 +000022542ac_libobjs=
22543ac_ltlibobjs=
22544for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22545 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022547 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22549 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022550 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22551 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022552done
22553LIBOBJS=$ac_libobjs
22554
22555LTLIBOBJS=$ac_ltlibobjs
22556
22557
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022558if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022559 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22560Usually this means the macro was only invoked conditionally." >&5
22561echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22562Usually this means the macro was only invoked conditionally." >&2;}
22563 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022564fi
22565if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22567Usually this means the macro was only invoked conditionally." >&5
22568echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22569Usually this means the macro was only invoked conditionally." >&2;}
22570 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022571fi
John Criswell7a73b802003-06-30 21:59:07 +000022572
22573: ${CONFIG_STATUS=./config.status}
22574ac_clean_files_save=$ac_clean_files
22575ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022576{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22577echo "$as_me: creating $CONFIG_STATUS" >&6;}
22578cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022579#! $SHELL
22580# Generated by $as_me.
22581# Run this file to recreate the current configuration.
22582# Compiler output produced by configure, useful for debugging
22583# configure, is in config.log if it exists.
22584
22585debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022586ac_cs_recheck=false
22587ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022588SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022589_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022591cat >>$CONFIG_STATUS <<\_ACEOF
22592## --------------------- ##
22593## M4sh Initialization. ##
22594## --------------------- ##
22595
22596# Be Bourne compatible
22597if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022598 emulate sh
22599 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022600 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022601 # is contrary to our usage. Disable this feature.
22602 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022603 setopt NO_GLOB_SUBST
22604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022605 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022607BIN_SH=xpg4; export BIN_SH # for Tru64
22608DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022609
John Criswell7a73b802003-06-30 21:59:07 +000022610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022611# PATH needs CR
22612# Avoid depending upon Character Ranges.
22613as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22614as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22615as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22616as_cr_digits='0123456789'
22617as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022618
22619# The user is always right.
22620if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022621 echo "#! /bin/sh" >conf$$.sh
22622 echo "exit 0" >>conf$$.sh
22623 chmod +x conf$$.sh
22624 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22625 PATH_SEPARATOR=';'
22626 else
22627 PATH_SEPARATOR=:
22628 fi
22629 rm -f conf$$.sh
22630fi
22631
22632# Support unset when possible.
22633if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22634 as_unset=unset
22635else
22636 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022637fi
John Criswell7a73b802003-06-30 21:59:07 +000022638
Reid Spencera773bd52006-08-04 18:18:08 +000022639
22640# IFS
22641# We need space, tab and new line, in precisely that order. Quoting is
22642# there to prevent editors from complaining about space-tab.
22643# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22644# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022645as_nl='
22646'
Reid Spencera773bd52006-08-04 18:18:08 +000022647IFS=" "" $as_nl"
22648
22649# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022650case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022651 *[\\/]* ) as_myself=$0 ;;
22652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022653for as_dir in $PATH
22654do
22655 IFS=$as_save_IFS
22656 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22658done
Reid Spencera773bd52006-08-04 18:18:08 +000022659IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022660
Reid Spencera773bd52006-08-04 18:18:08 +000022661 ;;
22662esac
22663# We did not find ourselves, most probably we were run as `sh COMMAND'
22664# in which case we are not to be found in the path.
22665if test "x$as_myself" = x; then
22666 as_myself=$0
22667fi
22668if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022669 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22670 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022671fi
22672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022673# Work around bugs in pre-3.0 UWIN ksh.
22674for as_var in ENV MAIL MAILPATH
22675do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022676done
22677PS1='$ '
22678PS2='> '
22679PS4='+ '
22680
22681# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022682for as_var in \
22683 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22684 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22685 LC_TELEPHONE LC_TIME
22686do
22687 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22688 eval $as_var=C; export $as_var
22689 else
22690 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022691 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022692done
Torok Edwin871384f2010-01-26 08:50:50 +000022693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022694# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022695if expr a : '\(a\)' >/dev/null 2>&1 &&
22696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22697 as_expr=expr
22698else
22699 as_expr=false
22700fi
22701
22702if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22703 as_basename=basename
22704else
22705 as_basename=false
22706fi
22707
22708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022709# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022710as_me=`$as_basename -- "$0" ||
22711$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22712 X"$0" : 'X\(//\)$' \| \
22713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022714echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022715 sed '/^.*\/\([^/][^/]*\)\/*$/{
22716 s//\1/
22717 q
22718 }
22719 /^X\/\(\/\/\)$/{
22720 s//\1/
22721 q
22722 }
22723 /^X\/\(\/\).*/{
22724 s//\1/
22725 q
22726 }
22727 s/.*/./; q'`
22728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022729# CDPATH.
22730$as_unset CDPATH
22731
22732
22733
22734 as_lineno_1=$LINENO
22735 as_lineno_2=$LINENO
22736 test "x$as_lineno_1" != "x$as_lineno_2" &&
22737 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22738
22739 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22740 # uniformly replaced by the line number. The first 'sed' inserts a
22741 # line-number line after each line using $LINENO; the second 'sed'
22742 # does the real work. The second script uses 'N' to pair each
22743 # line-number line with the line containing $LINENO, and appends
22744 # trailing '-' during substitution so that $LINENO is not a special
22745 # case at line end.
22746 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22747 # scripts with optimization help from Paolo Bonzini. Blame Lee
22748 # E. McMahon (1931-1989) for sed's syntax. :-)
22749 sed -n '
22750 p
22751 /[$]LINENO/=
22752 ' <$as_myself |
22753 sed '
22754 s/[$]LINENO.*/&-/
22755 t lineno
22756 b
22757 :lineno
22758 N
22759 :loop
22760 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22761 t loop
22762 s/-\n.*//
22763 ' >$as_me.lineno &&
22764 chmod +x "$as_me.lineno" ||
22765 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22766 { (exit 1); exit 1; }; }
22767
22768 # Don't try to exec as it changes $[0], causing all sort of problems
22769 # (the dirname of $[0] is not the place where we might find the
22770 # original and so on. Autoconf is especially sensitive to this).
22771 . "./$as_me.lineno"
22772 # Exit status is that of the last command.
22773 exit
22774}
22775
22776
22777if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22778 as_dirname=dirname
22779else
22780 as_dirname=false
22781fi
Reid Spencera773bd52006-08-04 18:18:08 +000022782
22783ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022784case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022785-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022786 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022787 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022788 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000022789 esac;;
22790*)
22791 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000022792esac
22793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022794if expr a : '\(a\)' >/dev/null 2>&1 &&
22795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22796 as_expr=expr
22797else
22798 as_expr=false
22799fi
22800
John Criswell7a73b802003-06-30 21:59:07 +000022801rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000022802if test -d conf$$.dir; then
22803 rm -f conf$$.dir/conf$$.file
22804else
22805 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022806 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000022807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022808echo >conf$$.file
22809if ln -s conf$$.file conf$$ 2>/dev/null; then
22810 as_ln_s='ln -s'
22811 # ... but there are two gotchas:
22812 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22813 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22814 # In both cases, we have to default to `cp -p'.
22815 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000022816 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022817elif ln conf$$.file conf$$ 2>/dev/null; then
22818 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000022819else
22820 as_ln_s='cp -p'
22821fi
Reid Spencera773bd52006-08-04 18:18:08 +000022822rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22823rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000022824
John Criswell0c38eaf2003-09-10 15:17:25 +000022825if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022826 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022827else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022828 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000022829 as_mkdir_p=false
22830fi
22831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022832# Find out whether ``test -x'' works. Don't use a zero-byte file, as
22833# systems may use methods other than mode bits to determine executability.
22834cat >conf$$.file <<_ASEOF
22835#! /bin/sh
22836exit 0
22837_ASEOF
22838chmod +x conf$$.file
22839if test -x conf$$.file >/dev/null 2>&1; then
22840 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000022841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022842 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000022843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022844rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000022845
22846# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022848
22849# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000022851
22852
John Criswell7a73b802003-06-30 21:59:07 +000022853exec 6>&1
22854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022855# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000022856# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000022857# values after options handling.
22858ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000022859This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022860generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022861
22862 CONFIG_FILES = $CONFIG_FILES
22863 CONFIG_HEADERS = $CONFIG_HEADERS
22864 CONFIG_LINKS = $CONFIG_LINKS
22865 CONFIG_COMMANDS = $CONFIG_COMMANDS
22866 $ $0 $@
22867
Reid Spencera773bd52006-08-04 18:18:08 +000022868on `(hostname || uname -n) 2>/dev/null | sed 1q`
22869"
22870
John Criswell7a73b802003-06-30 21:59:07 +000022871_ACEOF
22872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022873cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022874# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000022875config_files="$ac_config_files"
22876config_headers="$ac_config_headers"
22877config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000022878
Reid Spencera773bd52006-08-04 18:18:08 +000022879_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022881cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022882ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022883\`$as_me' instantiates files from templates according to the
22884current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000022885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022886Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000022887
22888 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022889 -V, --version print version number, then exit
22890 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022891 -d, --debug don't remove temporary files
22892 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022893 --file=FILE[:TEMPLATE]
22894 instantiate the configuration file FILE
22895 --header=FILE[:TEMPLATE]
22896 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000022897
22898Configuration files:
22899$config_files
22900
22901Configuration headers:
22902$config_headers
22903
John Criswellc764fbc2003-09-06 15:17:13 +000022904Configuration commands:
22905$config_commands
22906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022907Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000022908
Reid Spencera773bd52006-08-04 18:18:08 +000022909_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022910cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022911ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000022912llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022913configured by $0, generated by GNU Autoconf 2.60,
22914 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000022915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022916Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000022917This config.status script is free software; the Free Software Foundation
22918gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000022919
22920ac_pwd='$ac_pwd'
22921srcdir='$srcdir'
22922INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000022923_ACEOF
22924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022925cat >>$CONFIG_STATUS <<\_ACEOF
22926# If no file are specified by the user, then we need to provide default
22927# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000022928ac_need_defaults=:
22929while test $# != 0
22930do
22931 case $1 in
22932 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000022933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22934 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022935 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022936 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022937 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000022938 ac_option=$1
22939 ac_optarg=$2
22940 ac_shift=shift
22941 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022942 esac
22943
John Criswell0c38eaf2003-09-10 15:17:25 +000022944 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022945 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000022946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22947 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022949 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022950 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000022951 debug=: ;;
22952 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022953 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022954 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022955 ac_need_defaults=false;;
22956 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022957 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022958 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022959 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000022960 --he | --h)
22961 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022962 { echo "$as_me: error: ambiguous option: $1
22963Try \`$0 --help' for more information." >&2
22964 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022965 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022966 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22968 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22969 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022970
22971 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022972 -*) { echo "$as_me: error: unrecognized option: $1
22973Try \`$0 --help' for more information." >&2
22974 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000022975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022976 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000022977 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000022978
22979 esac
22980 shift
22981done
22982
John Criswell0c38eaf2003-09-10 15:17:25 +000022983ac_configure_extra_args=
22984
22985if $ac_cs_silent; then
22986 exec 6>/dev/null
22987 ac_configure_extra_args="$ac_configure_extra_args --silent"
22988fi
22989
22990_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022991cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022992if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022993 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22994 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000022995 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022996 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000022997fi
22998
John Criswell7a73b802003-06-30 21:59:07 +000022999_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023000cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023001exec 5>>config.log
23002{
23003 echo
23004 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23005## Running $as_me. ##
23006_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023007 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023008} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023009
Reid Spencera773bd52006-08-04 18:18:08 +000023010_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023011cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023012#
Reid Spencera773bd52006-08-04 18:18:08 +000023013# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023014#
Reid Spencerc0682832005-02-24 19:05:19 +000023015llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023016
23017_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023019cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023020
23021# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023022for ac_config_target in $ac_config_targets
23023do
Reid Spencera773bd52006-08-04 18:18:08 +000023024 case $ac_config_target in
23025 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023026 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023027 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23028 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023029 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023030 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023031 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023032 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023033 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023034 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023035 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23036 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23037 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23038 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23039 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23040 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023041 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023042 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23043 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023044 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023045 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23046 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23047 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023048 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23049 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023051 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23052echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23053 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023054 esac
23055done
23056
Reid Spencera773bd52006-08-04 18:18:08 +000023057
John Criswell7a73b802003-06-30 21:59:07 +000023058# If the user did not use the arguments to specify the items to instantiate,
23059# then the envvar interface is used. Set only those that are not.
23060# We use the long form for the default assignment because of an extremely
23061# bizarre bug on SunOS 4.1.3.
23062if $ac_need_defaults; then
23063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023066fi
23067
John Criswell0c38eaf2003-09-10 15:17:25 +000023068# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023069# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023070# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023071# Hook for its removal unless debugging.
23072# Note that there is a small window in which the directory will not be cleaned:
23073# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023074$debug ||
23075{
Reid Spencera773bd52006-08-04 18:18:08 +000023076 tmp=
23077 trap 'exit_status=$?
23078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23079' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023080 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023081}
John Criswell7a73b802003-06-30 21:59:07 +000023082# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023083
John Criswell7a73b802003-06-30 21:59:07 +000023084{
Reid Spencera773bd52006-08-04 18:18:08 +000023085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023086 test -n "$tmp" && test -d "$tmp"
23087} ||
23088{
Reid Spencera773bd52006-08-04 18:18:08 +000023089 tmp=./conf$$-$RANDOM
23090 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023091} ||
23092{
23093 echo "$me: cannot create a temporary directory in ." >&2
23094 { (exit 1); exit 1; }
23095}
John Criswell7a73b802003-06-30 21:59:07 +000023096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023097#
23098# Set up the sed scripts for CONFIG_FILES section.
23099#
23100
23101# No need to generate the scripts if there are no CONFIG_FILES.
23102# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023103if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023104
23105_ACEOF
23106
Reid Spencera773bd52006-08-04 18:18:08 +000023107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023108
Reid Spencera773bd52006-08-04 18:18:08 +000023109ac_delim='%!_!# '
23110for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023111 cat >conf$$subs.sed <<_ACEOF
23112SHELL!$SHELL$ac_delim
23113PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23114PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23115PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23116PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23117PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23118PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23119exec_prefix!$exec_prefix$ac_delim
23120prefix!$prefix$ac_delim
23121program_transform_name!$program_transform_name$ac_delim
23122bindir!$bindir$ac_delim
23123sbindir!$sbindir$ac_delim
23124libexecdir!$libexecdir$ac_delim
23125datarootdir!$datarootdir$ac_delim
23126datadir!$datadir$ac_delim
23127sysconfdir!$sysconfdir$ac_delim
23128sharedstatedir!$sharedstatedir$ac_delim
23129localstatedir!$localstatedir$ac_delim
23130includedir!$includedir$ac_delim
23131oldincludedir!$oldincludedir$ac_delim
23132docdir!$docdir$ac_delim
23133infodir!$infodir$ac_delim
23134htmldir!$htmldir$ac_delim
23135dvidir!$dvidir$ac_delim
23136pdfdir!$pdfdir$ac_delim
23137psdir!$psdir$ac_delim
23138libdir!$libdir$ac_delim
23139localedir!$localedir$ac_delim
23140mandir!$mandir$ac_delim
23141DEFS!$DEFS$ac_delim
23142ECHO_C!$ECHO_C$ac_delim
23143ECHO_N!$ECHO_N$ac_delim
23144ECHO_T!$ECHO_T$ac_delim
23145LIBS!$LIBS$ac_delim
23146build_alias!$build_alias$ac_delim
23147host_alias!$host_alias$ac_delim
23148target_alias!$target_alias$ac_delim
23149LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23150subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023151ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23152LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023153build!$build$ac_delim
23154build_cpu!$build_cpu$ac_delim
23155build_vendor!$build_vendor$ac_delim
23156build_os!$build_os$ac_delim
23157host!$host$ac_delim
23158host_cpu!$host_cpu$ac_delim
23159host_vendor!$host_vendor$ac_delim
23160host_os!$host_os$ac_delim
23161target!$target$ac_delim
23162target_cpu!$target_cpu$ac_delim
23163target_vendor!$target_vendor$ac_delim
23164target_os!$target_os$ac_delim
23165OS!$OS$ac_delim
23166HOST_OS!$HOST_OS$ac_delim
23167TARGET_OS!$TARGET_OS$ac_delim
23168LINKALL!$LINKALL$ac_delim
23169NOLINKALL!$NOLINKALL$ac_delim
23170LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23171LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23172ARCH!$ARCH$ac_delim
23173ENDIAN!$ENDIAN$ac_delim
23174CC!$CC$ac_delim
23175CFLAGS!$CFLAGS$ac_delim
23176LDFLAGS!$LDFLAGS$ac_delim
23177CPPFLAGS!$CPPFLAGS$ac_delim
23178ac_ct_CC!$ac_ct_CC$ac_delim
23179EXEEXT!$EXEEXT$ac_delim
23180OBJEXT!$OBJEXT$ac_delim
23181CPP!$CPP$ac_delim
23182GREP!$GREP$ac_delim
23183EGREP!$EGREP$ac_delim
23184LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23185BUILD_CC!$BUILD_CC$ac_delim
23186BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23187BUILD_CXX!$BUILD_CXX$ac_delim
23188CVSBUILD!$CVSBUILD$ac_delim
23189ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23190ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23191DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23192ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23193EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23194DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23195DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23196JIT!$JIT$ac_delim
23197TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023198ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023199ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23200ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023201ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023202ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023203ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023204ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023205ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023206TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23207LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23208LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023209_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023212 break
23213 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23215echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23216 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023217 else
23218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023219 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023220done
23221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023222ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23223if test -n "$ac_eof"; then
23224 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23225 ac_eof=`expr $ac_eof + 1`
23226fi
23227
23228cat >>$CONFIG_STATUS <<_ACEOF
23229cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023231_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023232sed '
23233s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23234s/^/s,@/; s/!/@,|#_!!_#|/
23235:n
23236t n
23237s/'"$ac_delim"'$/,g/; t
23238s/$/\\/; p
23239N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23240' >>$CONFIG_STATUS <conf$$subs.sed
23241rm -f conf$$subs.sed
23242cat >>$CONFIG_STATUS <<_ACEOF
23243CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023244_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023245
23246
23247ac_delim='%!_!# '
23248for ac_last_try in false false false false false :; do
23249 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023250LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023251LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023252ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023253CLANGPATH!$CLANGPATH$ac_delim
23254CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023255ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023256OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023257EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23258BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023259CXX!$CXX$ac_delim
23260CXXFLAGS!$CXXFLAGS$ac_delim
23261ac_ct_CXX!$ac_ct_CXX$ac_delim
23262NM!$NM$ac_delim
23263ifGNUmake!$ifGNUmake$ac_delim
23264LN_S!$LN_S$ac_delim
23265CMP!$CMP$ac_delim
23266CP!$CP$ac_delim
23267DATE!$DATE$ac_delim
23268FIND!$FIND$ac_delim
23269MKDIR!$MKDIR$ac_delim
23270MV!$MV$ac_delim
23271RANLIB!$RANLIB$ac_delim
23272AR!$AR$ac_delim
23273RM!$RM$ac_delim
23274SED!$SED$ac_delim
23275TAR!$TAR$ac_delim
23276BINPWD!$BINPWD$ac_delim
23277GRAPHVIZ!$GRAPHVIZ$ac_delim
23278DOT!$DOT$ac_delim
23279FDP!$FDP$ac_delim
23280NEATO!$NEATO$ac_delim
23281TWOPI!$TWOPI$ac_delim
23282CIRCO!$CIRCO$ac_delim
23283GV!$GV$ac_delim
23284DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023285XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023286PERL!$PERL$ac_delim
23287HAVE_PERL!$HAVE_PERL$ac_delim
23288INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23289INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23290INSTALL_DATA!$INSTALL_DATA$ac_delim
23291BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023292CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023293DOXYGEN!$DOXYGEN$ac_delim
23294GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023295GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023296POD2HTML!$POD2HTML$ac_delim
23297POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023298PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023299RUNTEST!$RUNTEST$ac_delim
23300TCLSH!$TCLSH$ac_delim
23301ZIP!$ZIP$ac_delim
23302OCAMLC!$OCAMLC$ac_delim
23303OCAMLOPT!$OCAMLOPT$ac_delim
23304OCAMLDEP!$OCAMLDEP$ac_delim
23305OCAMLDOC!$OCAMLDOC$ac_delim
23306GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023307HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023308INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23309INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23310CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23311CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23312LIBADD_DL!$LIBADD_DL$ac_delim
23313LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23314LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23315LLVMGCC!$LLVMGCC$ac_delim
23316LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023317LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023318NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23319NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23320USE_UDIS86!$USE_UDIS86$ac_delim
23321USE_OPROFILE!$USE_OPROFILE$ac_delim
23322HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23323HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23324MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023325LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023326LLVMCC1!$LLVMCC1$ac_delim
23327LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23328LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023329LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023330LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023331LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023332SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023333SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023334LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23335LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23336LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23337LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23338LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23339LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23340LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23341LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23342LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23343LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23344BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23345ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23346OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023347_ACEOF
23348
Tobias Grossera84b5672010-11-10 16:31:34 +000023349 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023350 break
23351 elif $ac_last_try; then
23352 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23353echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23354 { (exit 1); exit 1; }; }
23355 else
23356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23357 fi
23358done
23359
23360ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23361if test -n "$ac_eof"; then
23362 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23363 ac_eof=`expr $ac_eof + 1`
23364fi
23365
23366cat >>$CONFIG_STATUS <<_ACEOF
23367cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023368/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023369_ACEOF
23370sed '
23371s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23372s/^/s,@/; s/!/@,|#_!!_#|/
23373:n
23374t n
23375s/'"$ac_delim"'$/,g/; t
23376s/$/\\/; p
23377N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23378' >>$CONFIG_STATUS <conf$$subs.sed
23379rm -f conf$$subs.sed
23380cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023381CEOF$ac_eof
23382_ACEOF
23383
23384
Tobias Grossera84b5672010-11-10 16:31:34 +000023385ac_delim='%!_!# '
23386for ac_last_try in false false false false false :; do
23387 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023388ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023389RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023390RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023391LIBOBJS!$LIBOBJS$ac_delim
23392LTLIBOBJS!$LTLIBOBJS$ac_delim
23393_ACEOF
23394
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023395 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023396 break
23397 elif $ac_last_try; then
23398 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23399echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23400 { (exit 1); exit 1; }; }
23401 else
23402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23403 fi
23404done
23405
23406ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23407if test -n "$ac_eof"; then
23408 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23409 ac_eof=`expr $ac_eof + 1`
23410fi
23411
23412cat >>$CONFIG_STATUS <<_ACEOF
23413cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23414/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23415_ACEOF
23416sed '
23417s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23418s/^/s,@/; s/!/@,|#_!!_#|/
23419:n
23420t n
23421s/'"$ac_delim"'$/,g/; t
23422s/$/\\/; p
23423N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23424' >>$CONFIG_STATUS <conf$$subs.sed
23425rm -f conf$$subs.sed
23426cat >>$CONFIG_STATUS <<_ACEOF
23427:end
23428s/|#_!!_#|//g
23429CEOF$ac_eof
23430_ACEOF
23431
23432
Reid Spencera773bd52006-08-04 18:18:08 +000023433# VPATH may cause trouble with some makes, so we remove $(srcdir),
23434# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23435# trailing colons and then remove the whole line if VPATH becomes empty
23436# (actually we leave an empty line to preserve line numbers).
23437if test "x$srcdir" = x.; then
23438 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23439s/:*\$(srcdir):*/:/
23440s/:*\${srcdir}:*/:/
23441s/:*@srcdir@:*/:/
23442s/^\([^=]*=[ ]*\):*/\1/
23443s/:*$//
23444s/^[^=]*=[ ]*$//
23445}'
23446fi
23447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023448cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023449fi # test -n "$CONFIG_FILES"
23450
Reid Spencera773bd52006-08-04 18:18:08 +000023451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023452for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023453do
23454 case $ac_tag in
23455 :[FHLC]) ac_mode=$ac_tag; continue;;
23456 esac
23457 case $ac_mode$ac_tag in
23458 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023459 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23460echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23461 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023462 :[FH]-) ac_tag=-:-;;
23463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23464 esac
23465 ac_save_IFS=$IFS
23466 IFS=:
23467 set x $ac_tag
23468 IFS=$ac_save_IFS
23469 shift
23470 ac_file=$1
23471 shift
23472
23473 case $ac_mode in
23474 :L) ac_source=$1;;
23475 :[FH])
23476 ac_file_inputs=
23477 for ac_f
23478 do
23479 case $ac_f in
23480 -) ac_f="$tmp/stdin";;
23481 *) # Look for the file first in the build tree, then in the source tree
23482 # (if the path is not absolute). The absolute path cannot be DOS-style,
23483 # because $ac_f cannot contain `:'.
23484 test -f "$ac_f" ||
23485 case $ac_f in
23486 [\\/$]*) false;;
23487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23488 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023489 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23490echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23491 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023492 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023493 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023494 done
23495
23496 # Let's still pretend it is `configure' which instantiates (i.e., don't
23497 # use $as_me), people would be surprised to read:
23498 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023499 configure_input="Generated from "`IFS=:
23500 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023501 if test x"$ac_file" != x-; then
23502 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023503 { echo "$as_me:$LINENO: creating $ac_file" >&5
23504echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023505 fi
23506
23507 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023508 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023509 esac
23510 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023511 esac
23512
Reid Spencera773bd52006-08-04 18:18:08 +000023513 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023514$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023515 X"$ac_file" : 'X\(//\)[^/]' \| \
23516 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023517 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023518echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23520 s//\1/
23521 q
23522 }
23523 /^X\(\/\/\)[^/].*/{
23524 s//\1/
23525 q
23526 }
23527 /^X\(\/\/\)$/{
23528 s//\1/
23529 q
23530 }
23531 /^X\(\/\).*/{
23532 s//\1/
23533 q
23534 }
23535 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023536 { as_dir="$ac_dir"
23537 case $as_dir in #(
23538 -*) as_dir=./$as_dir;;
23539 esac
23540 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23541 as_dirs=
23542 while :; do
23543 case $as_dir in #(
23544 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23545 *) as_qdir=$as_dir;;
23546 esac
23547 as_dirs="'$as_qdir' $as_dirs"
23548 as_dir=`$as_dirname -- "$as_dir" ||
23549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23550 X"$as_dir" : 'X\(//\)[^/]' \| \
23551 X"$as_dir" : 'X\(//\)$' \| \
23552 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23553echo X"$as_dir" |
23554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23555 s//\1/
23556 q
23557 }
23558 /^X\(\/\/\)[^/].*/{
23559 s//\1/
23560 q
23561 }
23562 /^X\(\/\/\)$/{
23563 s//\1/
23564 q
23565 }
23566 /^X\(\/\).*/{
23567 s//\1/
23568 q
23569 }
23570 s/.*/./; q'`
23571 test -d "$as_dir" && break
23572 done
23573 test -z "$as_dirs" || eval "mkdir $as_dirs"
23574 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23575echo "$as_me: error: cannot create directory $as_dir" >&2;}
23576 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023577 ac_builddir=.
23578
Reid Spencera773bd52006-08-04 18:18:08 +000023579case "$ac_dir" in
23580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23581*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023582 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023583 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023584 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023585 case $ac_top_builddir_sub in
23586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23588 esac ;;
23589esac
23590ac_abs_top_builddir=$ac_pwd
23591ac_abs_builddir=$ac_pwd$ac_dir_suffix
23592# for backward compatibility:
23593ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023594
23595case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023596 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023597 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023598 ac_top_srcdir=$ac_top_builddir_sub
23599 ac_abs_top_srcdir=$ac_pwd ;;
23600 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023601 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023602 ac_top_srcdir=$srcdir
23603 ac_abs_top_srcdir=$srcdir ;;
23604 *) # Relative name.
23605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23606 ac_top_srcdir=$ac_top_build_prefix$srcdir
23607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023608esac
Reid Spencera773bd52006-08-04 18:18:08 +000023609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023610
John Criswell7a73b802003-06-30 21:59:07 +000023611
Reid Spencera773bd52006-08-04 18:18:08 +000023612 case $ac_mode in
23613 :F)
23614 #
23615 # CONFIG_FILE
23616 #
John Criswell7a73b802003-06-30 21:59:07 +000023617
23618 case $INSTALL in
23619 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023620 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023621 esac
John Criswell7a73b802003-06-30 21:59:07 +000023622_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023624cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023625# If the template does not know about datarootdir, expand it.
23626# FIXME: This hack should be removed a few years after 2.60.
23627ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023628
23629case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023630 p
23631 q
23632}
23633/@datadir@/p
23634/@docdir@/p
23635/@infodir@/p
23636/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023637/@mandir@/p
23638' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023639*datarootdir*) ac_datarootdir_seen=yes;;
23640*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023641 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23642echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023643_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023644cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023645 ac_datarootdir_hack='
23646 s&@datadir@&$datadir&g
23647 s&@docdir@&$docdir&g
23648 s&@infodir@&$infodir&g
23649 s&@localedir@&$localedir&g
23650 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023651 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023652esac
23653_ACEOF
23654
23655# Neutralize VPATH when `$srcdir' = `.'.
23656# Shell code in configure.ac might set extrasub.
23657# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023658cat >>$CONFIG_STATUS <<_ACEOF
23659 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023660$extrasub
23661_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023662cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023663:t
23664/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023665s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023666s&@top_builddir@&$ac_top_builddir_sub&;t t
23667s&@srcdir@&$ac_srcdir&;t t
23668s&@abs_srcdir@&$ac_abs_srcdir&;t t
23669s&@top_srcdir@&$ac_top_srcdir&;t t
23670s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23671s&@builddir@&$ac_builddir&;t t
23672s&@abs_builddir@&$ac_abs_builddir&;t t
23673s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23674s&@INSTALL@&$ac_INSTALL&;t t
23675$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023676" $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 +000023677
Reid Spencera773bd52006-08-04 18:18:08 +000023678test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23679 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23680 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023681 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023682which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023683echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023684which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023685
Reid Spencera773bd52006-08-04 18:18:08 +000023686 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023687 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023688 -) cat "$tmp/out"; rm -f "$tmp/out";;
23689 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23690 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023691 ;;
23692 :H)
23693 #
23694 # CONFIG_HEADER
23695 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023696_ACEOF
23697
23698# Transform confdefs.h into a sed script `conftest.defines', that
23699# substitutes the proper values into config.h.in to produce config.h.
23700rm -f conftest.defines conftest.tail
23701# First, append a space to every undef/define line, to ease matching.
23702echo 's/$/ /' >conftest.defines
23703# Then, protect against being on the right side of a sed subst, or in
23704# an unquoted here document, in config.status. If some macros were
23705# called several times there might be several #defines for the same
23706# symbol, which is useless. But do not sort them, since the last
23707# AC_DEFINE must be honored.
23708ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23709# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23710# NAME is the cpp macro being defined, VALUE is the value it is being given.
23711# PARAMS is the parameter list in the macro definition--in most cases, it's
23712# just an empty string.
23713ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23714ac_dB='\\)[ (].*,\\1define\\2'
23715ac_dC=' '
23716ac_dD=' ,'
23717
23718uniq confdefs.h |
23719 sed -n '
23720 t rset
23721 :rset
23722 s/^[ ]*#[ ]*define[ ][ ]*//
23723 t ok
23724 d
23725 :ok
23726 s/[\\&,]/\\&/g
23727 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23728 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23729 ' >>conftest.defines
23730
23731# Remove the space that was appended to ease matching.
23732# Then replace #undef with comments. This is necessary, for
23733# example, in the case of _POSIX_SOURCE, which is predefined and required
23734# on some systems where configure will not decide to define it.
23735# (The regexp can be short, since the line contains either #define or #undef.)
23736echo 's/ $//
23737s,^[ #]*u.*,/* & */,' >>conftest.defines
23738
23739# Break up conftest.defines:
23740ac_max_sed_lines=50
23741
23742# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23743# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23744# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23745# et cetera.
23746ac_in='$ac_file_inputs'
23747ac_out='"$tmp/out1"'
23748ac_nxt='"$tmp/out2"'
23749
23750while :
23751do
23752 # Write a here document:
23753 cat >>$CONFIG_STATUS <<_ACEOF
23754 # First, check the format of the line:
23755 cat >"\$tmp/defines.sed" <<\\CEOF
23756/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23757/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23758b
23759:def
23760_ACEOF
23761 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23762 echo 'CEOF
23763 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23764 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23765 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23766 grep . conftest.tail >/dev/null || break
23767 rm -f conftest.defines
23768 mv conftest.tail conftest.defines
23769done
23770rm -f conftest.defines conftest.tail
23771
23772echo "ac_result=$ac_in" >>$CONFIG_STATUS
23773cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023774 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023775 echo "/* $configure_input */" >"$tmp/config.h"
23776 cat "$ac_result" >>"$tmp/config.h"
23777 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23778 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23779echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023780 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023781 rm -f $ac_file
23782 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023783 fi
23784 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023785 echo "/* $configure_input */"
23786 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000023787 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023788 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000023789 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023791 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23792echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023793 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023794 esac
John Criswell7a73b802003-06-30 21:59:07 +000023795
Reid Spencera773bd52006-08-04 18:18:08 +000023796
23797 case $ac_file$ac_mode in
23798 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023799 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023800 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000023801 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023802 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023803 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023804 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023805 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023806 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023807 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023808 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023809 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023810 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000023811 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023812 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023813 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023814 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023815 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023816 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023817 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023818 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023819 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023820 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023821 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023822 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000023823 ${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 +000023824
23825 esac
23826done # for ac_tag
23827
John Criswell7a73b802003-06-30 21:59:07 +000023828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023829{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000023830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023831chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023832ac_clean_files=$ac_clean_files_save
23833
23834
23835# configure is writing to config.log, and then calls config.status.
23836# config.status does its own redirection, appending to config.log.
23837# Unfortunately, on DOS this fails, as config.log is still kept open
23838# by configure, so config.status won't be able to write to it; its
23839# output is simply discarded. So we exec the FD to /dev/null,
23840# effectively closing config.log, so it can be properly (re)opened and
23841# appended to by config.status. When coming back to configure, we
23842# need to make the FD available again.
23843if test "$no_create" != yes; then
23844 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023845 ac_config_status_args=
23846 test "$silent" = yes &&
23847 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000023848 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000023849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023850 exec 5>>config.log
23851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23852 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023853 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000023854fi
23855
John Criswell12399a12003-09-30 15:55:44 +000023856#
23857# CONFIG_SUBDIRS section.
23858#
23859if test "$no_recursion" != yes; then
23860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023861 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000023862 ac_sub_configure_args=
23863 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000023864 eval "set x $ac_configure_args"
23865 shift
23866 for ac_arg
23867 do
John Criswell12399a12003-09-30 15:55:44 +000023868 if test -n "$ac_prev"; then
23869 ac_prev=
23870 continue
23871 fi
23872 case $ac_arg in
23873 -cache-file | --cache-file | --cache-fil | --cache-fi \
23874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23875 ac_prev=cache_file ;;
23876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23878 | --c=*)
23879 ;;
23880 --config-cache | -C)
23881 ;;
23882 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23883 ac_prev=srcdir ;;
23884 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23885 ;;
23886 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23887 ac_prev=prefix ;;
23888 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023890 *)
23891 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023892 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023893 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023894 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000023895 esac
23896 done
23897
23898 # Always prepend --prefix to ensure using the same prefix
23899 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000023900 ac_arg="--prefix=$prefix"
23901 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023902 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023903 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023904 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000023905
23906 ac_popdir=`pwd`
23907 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23908
23909 # Do not complain, so a configure script can configure whichever
23910 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000023911 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000023912
Reid Spencera773bd52006-08-04 18:18:08 +000023913 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023914 echo "$as_me:$LINENO: $ac_msg" >&5
23915 echo "$ac_msg" >&6
23916 { as_dir="$ac_dir"
23917 case $as_dir in #(
23918 -*) as_dir=./$as_dir;;
23919 esac
23920 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23921 as_dirs=
23922 while :; do
23923 case $as_dir in #(
23924 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23925 *) as_qdir=$as_dir;;
23926 esac
23927 as_dirs="'$as_qdir' $as_dirs"
23928 as_dir=`$as_dirname -- "$as_dir" ||
23929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23930 X"$as_dir" : 'X\(//\)[^/]' \| \
23931 X"$as_dir" : 'X\(//\)$' \| \
23932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23933echo X"$as_dir" |
23934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23935 s//\1/
23936 q
23937 }
23938 /^X\(\/\/\)[^/].*/{
23939 s//\1/
23940 q
23941 }
23942 /^X\(\/\/\)$/{
23943 s//\1/
23944 q
23945 }
23946 /^X\(\/\).*/{
23947 s//\1/
23948 q
23949 }
23950 s/.*/./; q'`
23951 test -d "$as_dir" && break
23952 done
23953 test -z "$as_dirs" || eval "mkdir $as_dirs"
23954 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23955echo "$as_me: error: cannot create directory $as_dir" >&2;}
23956 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000023957 ac_builddir=.
23958
Reid Spencera773bd52006-08-04 18:18:08 +000023959case "$ac_dir" in
23960.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23961*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023962 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023963 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023964 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023965 case $ac_top_builddir_sub in
23966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23968 esac ;;
23969esac
23970ac_abs_top_builddir=$ac_pwd
23971ac_abs_builddir=$ac_pwd$ac_dir_suffix
23972# for backward compatibility:
23973ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000023974
23975case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023976 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000023977 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023978 ac_top_srcdir=$ac_top_builddir_sub
23979 ac_abs_top_srcdir=$ac_pwd ;;
23980 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000023981 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023982 ac_top_srcdir=$srcdir
23983 ac_abs_top_srcdir=$srcdir ;;
23984 *) # Relative name.
23985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23986 ac_top_srcdir=$ac_top_build_prefix$srcdir
23987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000023988esac
Reid Spencera773bd52006-08-04 18:18:08 +000023989ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000023990
23991
Reid Spencera773bd52006-08-04 18:18:08 +000023992 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000023993
23994 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000023995 if test -f "$ac_srcdir/configure.gnu"; then
23996 ac_sub_configure=$ac_srcdir/configure.gnu
23997 elif test -f "$ac_srcdir/configure"; then
23998 ac_sub_configure=$ac_srcdir/configure
23999 elif test -f "$ac_srcdir/configure.in"; then
24000 # This should be Cygnus configure.
24001 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024002 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024003 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24004echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024005 ac_sub_configure=
24006 fi
24007
24008 # The recursion is here.
24009 if test -n "$ac_sub_configure"; then
24010 # Make the cache file name correct relative to the subdirectory.
24011 case $cache_file in
24012 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024013 *) # Relative name.
24014 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024015 esac
24016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024017 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24018echo "$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 +000024019 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024020 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24021 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024022 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24023echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24024 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024025 fi
24026
Reid Spencera773bd52006-08-04 18:18:08 +000024027 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024028 done
24029fi
24030