blob: 496854d4bbaaf1b15862f715a80925b065f46422 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebc2fc12011-03-08 03:00:02 +00003# Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 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-'
Bill Wendlingebc2fc12011-03-08 03:00:02 +0000564PACKAGE_VERSION='3.0svn'
565PACKAGE_STRING='llvm 3.0svn'
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
Daniel Dunbared344d22011-06-16 22:30:41 +0000710EXTRA_LD_OPTIONS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000711BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712CXX
713CXXFLAGS
714ac_ct_CXX
715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739PERL
740HAVE_PERL
741INSTALL_PROGRAM
742INSTALL_SCRIPT
743INSTALL_DATA
744BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000745CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746DOXYGEN
747GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000748GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749POD2HTML
750POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000751PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000752RUNTEST
753TCLSH
754ZIP
755OCAMLC
756OCAMLOPT
757OCAMLDEP
758OCAMLDOC
759GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000760HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000761INSTALL_LTDL_TRUE
762INSTALL_LTDL_FALSE
763CONVENIENCE_LTDL_TRUE
764CONVENIENCE_LTDL_FALSE
765LIBADD_DL
766LLVMGCCCOMMAND
767LLVMGXXCOMMAND
768LLVMGCC
769LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000770LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
773USE_UDIS86
774USE_OPROFILE
775HAVE_PTHREAD
776HUGE_VAL_SANITY
777MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000778LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMCC1
780LLVMCC1PLUS
781LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000783LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000784LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000785SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000786SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803LIBOBJS
804LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000805ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
813CPP
814CXX
815CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000816CCC'
John Criswell0157f502010-03-19 21:31:39 +0000817ac_subdirs_all='projects/llvm-gcc
818projects/test-suite
819projects/llvm-test
820projects/poolalloc
821projects/llvm-poolalloc
822projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000824projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000825projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000826projects/llvm-java
827projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000828projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000829projects/llvm-kernel
830tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000857# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000866includedir='${prefix}/include'
867oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000877
878ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000879ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000880for ac_option
881do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000884 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000885 ac_prev=
886 continue
887 fi
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
John Criswell7a73b802003-06-30 21:59:07 +0000893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
Reid Spencera773bd52006-08-04 18:18:08 +0000896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
Reid Spencera773bd52006-08-04 18:18:08 +0000920 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000921 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000923 datadir=$ac_optarg ;;
924
Reid Spencera773bd52006-08-04 18:18:08 +0000925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
John Criswell7a73b802003-06-30 21:59:07 +0000932 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000934 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000950
951 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000953 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
Reid Spencera773bd52006-08-04 18:18:08 +0000985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
John Criswell7a73b802003-06-30 21:59:07 +0000991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
Reid Spencera773bd52006-08-04 18:18:08 +00001015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
John Criswell7a73b802003-06-30 21:59:07 +00001020 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
Reid Spencera773bd52006-08-04 18:18:08 +00001089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
John Criswell7a73b802003-06-30 21:59:07 +00001099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001150 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001156
1157 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001159 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001195 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001213fi
1214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001220do
Reid Spencera773bd52006-08-04 18:18:08 +00001221 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001222 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001225 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001228done
1229
1230# There might be people who depend on the old broken behavior: `$host'
1231# used to hold the argument of --host etc.
1232# FIXME: To remove some day.
1233build=$build_alias
1234host=$host_alias
1235target=$target_alias
1236
1237# FIXME: To remove some day.
1238if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1245 fi
1246fi
1247
1248ac_tool_prefix=
1249test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251test "$silent" = yes && exec 6>/dev/null
1252
1253
Reid Spencera773bd52006-08-04 18:18:08 +00001254ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255ac_ls_di=`ls -di .` &&
1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001262
1263
John Criswell7a73b802003-06-30 21:59:07 +00001264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001267 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001268 ac_confdir=`$as_dirname -- "$0" ||
1269$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001291 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001292 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
Reid Spencera773bd52006-08-04 18:18:08 +00001298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001302fi
Reid Spencera773bd52006-08-04 18:18:08 +00001303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
John Criswell7a73b802003-06-30 21:59:07 +00001324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001332\`configure' configures llvm 3.0svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393_ACEOF
1394fi
1395
1396if test -n "$ac_init_help"; then
1397 case $ac_init_help in
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001399 esac
1400 cat <<\_ACEOF
1401
1402Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001405 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
David Greenea696d242007-06-28 19:36:08 +00001410 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001417 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001418 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001419 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001420 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001421 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001422 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001423 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001439 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001440 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001441
1442Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001457 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001458 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001474 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001475 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1476 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001477 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001478 --with-oprofile=<prefix>
1479 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001482 CC C compiler command
1483 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001487 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001488 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
1495Report bugs to <llvmbugs@cs.uiuc.edu>.
1496_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001497ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001498fi
1499
1500if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001503 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_builddir=.
1505
Reid Spencera773bd52006-08-04 18:18:08 +00001506case "$ac_dir" in
1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001510 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516esac
1517ac_abs_top_builddir=$ac_pwd
1518ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519# for backward compatibility:
1520ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001521
1522case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001523 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001524 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001528 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001535esac
Reid Spencera773bd52006-08-04 18:18:08 +00001536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001537
Reid Spencera773bd52006-08-04 18:18:08 +00001538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001546 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001550 done
1551fi
1552
Reid Spencera773bd52006-08-04 18:18:08 +00001553test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001554if $ac_init_version; then
1555 cat <<\_ACEOF
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001556llvm configure 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001557generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001559Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001561This configure script is free software; the Free Software Foundation
1562gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001564Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001566 exit
John Criswell7a73b802003-06-30 21:59:07 +00001567fi
Reid Spencera773bd52006-08-04 18:18:08 +00001568cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001569This file contains any messages produced by compilers while
1570running configure, to aid debugging if configure makes a mistake.
1571
Bill Wendlingebc2fc12011-03-08 03:00:02 +00001572It was created by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001573generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001574
1575 $ $0 $@
1576
1577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001578exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001579{
1580cat <<_ASUNAME
1581## --------- ##
1582## Platform. ##
1583## --------- ##
1584
1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593
1594/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001597/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001598/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601
1602_ASUNAME
1603
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001609 echo "PATH: $as_dir"
1610done
Reid Spencera773bd52006-08-04 18:18:08 +00001611IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001612
1613} >&5
1614
1615cat >&5 <<_ACEOF
1616
1617
1618## ----------- ##
1619## Core tests. ##
1620## ----------- ##
1621
1622_ACEOF
1623
1624
1625# Keep a trace of the command line.
1626# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001627# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001628# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001629# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001630ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001631ac_configure_args0=
1632ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001633ac_must_keep_next=false
1634for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001635do
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 for ac_arg
1637 do
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001643 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 esac
1646 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001651 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1661 ;;
1662 -* ) ac_must_keep_next=true ;;
1663 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001665 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001666 ;;
1667 esac
1668 done
John Criswell7a73b802003-06-30 21:59:07 +00001669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001670$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671$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 +00001672
1673# When interrupted or exit'd, cleanup temporary files, and complete
1674# config.log. We remove comments because anyway the quotes in there
1675# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001676# WARNING: Use '\'' to represent an apostrophe within the trap.
1677# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001678trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1680 {
1681 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001682
John Criswell7a73b802003-06-30 21:59:07 +00001683 cat <<\_ASBOX
1684## ---------------- ##
1685## Cache variables. ##
1686## ---------------- ##
1687_ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001690(
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001701 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001702 esac ;;
1703 esac
1704 done
John Criswell7a73b802003-06-30 21:59:07 +00001705 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001708 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001712 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001715 esac |
1716 sort
1717)
John Criswell7a73b802003-06-30 21:59:07 +00001718 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001719
1720 cat <<\_ASBOX
1721## ----------------- ##
1722## Output variables. ##
1723## ----------------- ##
1724_ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
Reid Spencera773bd52006-08-04 18:18:08 +00001728 eval ac_val=\$$ac_var
1729 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001731 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 done | sort
1734 echo
1735
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001738## ------------------- ##
1739## File substitutions. ##
1740## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1744 do
Reid Spencera773bd52006-08-04 18:18:08 +00001745 eval ac_val=\$$ac_var
1746 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001748 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 done | sort
1751 echo
1752 fi
1753
John Criswell7a73b802003-06-30 21:59:07 +00001754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756## ----------- ##
1757## confdefs.h. ##
1758## ----------- ##
1759_ASBOX
1760 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001761 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001762 echo
1763 fi
1764 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001767 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001770 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001771' 0
John Criswell7a73b802003-06-30 21:59:07 +00001772for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001774done
1775ac_signal=0
1776
1777# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001778rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001779
1780# Predefined preprocessor variables.
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_NAME "$PACKAGE_NAME"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789_ACEOF
1790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791
John Criswell7a73b802003-06-30 21:59:07 +00001792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_VERSION "$PACKAGE_VERSION"
1794_ACEOF
1795
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796
John Criswell7a73b802003-06-30 21:59:07 +00001797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_STRING "$PACKAGE_STRING"
1799_ACEOF
1800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801
John Criswell7a73b802003-06-30 21:59:07 +00001802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804_ACEOF
1805
1806
1807# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001809if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001811elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817shift
1818for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001819do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1825 fi
1826done
1827
1828if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001837 esac
1838 fi
1839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 >$cache_file
1843fi
1844
1845# Check that the precious variables saved in the cache have kept the same
1846# value.
1847ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001848for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001853 case $ac_old_set,$ac_new_set in
1854 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001857 ac_cache_corrupted=: ;;
1858 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001861 ac_cache_corrupted=: ;;
1862 ,);;
1863 *)
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001883 esac
1884 fi
1885done
1886if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
Reid Spencera773bd52006-08-04 18:18:08 +00001917
John Criswell7a73b802003-06-30 21:59:07 +00001918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001926LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001927
1928
1929
1930
1931
1932
1933
John Criswell7a73b802003-06-30 21:59:07 +00001934ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
John Criswell7a73b802003-06-30 21:59:07 +00001949done
1950if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001954fi
Reid Spencera773bd52006-08-04 18:18:08 +00001955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
John Criswell7a73b802003-06-30 21:59:07 +00001964
John Criswell392aaa32003-07-22 19:18:09 +00001965
Reid Spencer2706f8c2004-09-19 23:53:36 +00001966if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001968 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1969echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1970 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001971 fi
John Criswell93e1c722003-09-15 17:04:06 +00001972fi
1973
John Criswell0157f502010-03-19 21:31:39 +00001974
1975
1976if test -d ${srcdir}/projects/llvm-gcc ; then
1977 subdirs="$subdirs projects/llvm-gcc"
1978
1979fi
1980
1981if test -d ${srcdir}/projects/test-suite ; then
1982 subdirs="$subdirs projects/test-suite"
1983
1984fi
1985
1986if test -d ${srcdir}/projects/llvm-test ; then
1987 subdirs="$subdirs projects/llvm-test"
1988
1989fi
1990
1991if test -d ${srcdir}/projects/poolalloc ; then
1992 subdirs="$subdirs projects/poolalloc"
1993
1994fi
1995
1996if test -d ${srcdir}/projects/llvm-poolalloc ; then
1997 subdirs="$subdirs projects/llvm-poolalloc"
1998
1999fi
2000
John Criswell33a911a2003-11-25 20:36:46 +00002001for i in `ls ${srcdir}/projects`
2002do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002003 if test -d ${srcdir}/projects/${i} ; then
2004 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002007 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002008 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002009 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002011 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002012;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002013 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002014 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002015 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002016 ;;
John Criswell7def2932010-02-25 22:57:19 +00002017 safecode) subdirs="$subdirs projects/safecode"
2018 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002019 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002020 ;;
John Criswell52c02862010-03-25 13:59:09 +00002021 llvm-gcc) ;;
2022 test-suite) ;;
2023 llvm-test) ;;
2024 poolalloc) ;;
2025 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002026 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2028echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002029 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002030 esac
John Criswell33a911a2003-11-25 20:36:46 +00002031 fi
2032done
John Criswell559a6c12003-09-30 16:31:48 +00002033
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002034# Check whether --enable-polly was given.
2035if test "${enable_polly+set}" = set; then
2036 enableval=$enable_polly;
2037else
2038 enableval=default
2039fi
2040
2041case "$enableval" in
2042 yes) ENABLE_POLLY=1
2043 ;;
2044 no) ENABLE_POLLY=0
2045 ;;
2046 default) ENABLE_POLLY=1
2047 ;;
2048 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2049echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2050 { (exit 1); exit 1; }; } ;;
2051esac
2052
2053
2054if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2055 LLVM_HAS_POLLY=1
2056
2057 subdirs="$subdirs tools/polly"
2058
2059fi
2060
John Criswell7a73b802003-06-30 21:59:07 +00002061
2062# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002063$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068{ echo "$as_me:$LINENO: checking build system type" >&5
2069echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2070if test "${ac_cv_build+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002072else
Reid Spencera773bd52006-08-04 18:18:08 +00002073 ac_build_alias=$build_alias
2074test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002080ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002084
2085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002088case $ac_cv_build in
2089*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002093esac
John Criswell7a73b802003-06-30 21:59:07 +00002094build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002095ac_save_IFS=$IFS; IFS='-'
2096set x $ac_cv_build
2097shift
2098build_cpu=$1
2099build_vendor=$2
2100shift; shift
2101# Remember, the first character of IFS is used to create $*,
2102# except with old shells:
2103build_os=$*
2104IFS=$ac_save_IFS
2105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002106
2107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108{ echo "$as_me:$LINENO: checking host system type" >&5
2109echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2110if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002112else
Reid Spencera773bd52006-08-04 18:18:08 +00002113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2115else
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002120fi
John Criswell7a73b802003-06-30 21:59:07 +00002121
2122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002123{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002125case $ac_cv_host in
2126*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002127*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002130esac
John Criswell7a73b802003-06-30 21:59:07 +00002131host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002132ac_save_IFS=$IFS; IFS='-'
2133set x $ac_cv_host
2134shift
2135host_cpu=$1
2136host_vendor=$2
2137shift; shift
2138# Remember, the first character of IFS is used to create $*,
2139# except with old shells:
2140host_os=$*
2141IFS=$ac_save_IFS
2142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002143
2144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145{ echo "$as_me:$LINENO: checking target system type" >&5
2146echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2147if test "${ac_cv_target+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002149else
Reid Spencera773bd52006-08-04 18:18:08 +00002150 if test "x$target_alias" = x; then
2151 ac_cv_target=$ac_cv_host
2152else
2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2155echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002157fi
John Criswell7a73b802003-06-30 21:59:07 +00002158
2159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002160{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2161echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002162case $ac_cv_target in
2163*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002164*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2165echo "$as_me: error: invalid value of canonical target" >&2;}
2166 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002167esac
John Criswell7a73b802003-06-30 21:59:07 +00002168target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002169ac_save_IFS=$IFS; IFS='-'
2170set x $ac_cv_target
2171shift
2172target_cpu=$1
2173target_vendor=$2
2174shift; shift
2175# Remember, the first character of IFS is used to create $*,
2176# except with old shells:
2177target_os=$*
2178IFS=$ac_save_IFS
2179case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002180
2181
2182# The aliases save the names the user supplied, while $host etc.
2183# will get canonicalized.
2184test -n "$target_alias" &&
2185 test "$program_prefix$program_suffix$program_transform_name" = \
2186 NONENONEs,x,x, &&
2187 program_prefix=${target_alias}-
2188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2190echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2191if test "${llvm_cv_os_type+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002193else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002194 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002195 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 llvm_cv_os_type="AIX"
2199 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002200 *-*-irix*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="IRIX"
2204 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 llvm_cv_os_type="Cygwin"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002211 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002212 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213 llvm_cv_os_type="Darwin"
2214 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002215 *-*-minix*)
2216 llvm_cv_link_all_option="-Wl,-all_load"
2217 llvm_cv_no_link_all_option="-Wl,-noall_load"
2218 llvm_cv_os_type="Minix"
2219 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002220 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002221 llvm_cv_link_all_option="-Wl,--whole-archive"
2222 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002223 llvm_cv_os_type="FreeBSD"
2224 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002225 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002228 llvm_cv_os_type="OpenBSD"
2229 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002230 *-*-netbsd*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="NetBSD"
2234 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002235 *-*-dragonfly*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="DragonFly"
2239 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002240 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002243 llvm_cv_os_type="HP-UX"
2244 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 llvm_cv_os_type="Interix"
2249 llvm_cv_platform_type="Unix" ;;
2250 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="Linux"
2254 llvm_cv_platform_type="Unix" ;;
2255 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002256 llvm_cv_link_all_option="-Wl,-z,allextract"
2257 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 llvm_cv_os_type="SunOS"
2259 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002260 *-*-auroraux*)
2261 llvm_cv_link_all_option="-Wl,-z,allextract"
2262 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2263 llvm_cv_os_type="AuroraUX"
2264 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,--whole-archive"
2267 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Win32"
2269 llvm_cv_platform_type="Win32" ;;
2270 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="MingW"
2274 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002275 *-*-haiku*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="Haiku"
2279 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002280 *-unknown-eabi*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="Freestanding"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-unknown-elf*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Freestanding"
2289 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option=""
2292 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Unknown"
2294 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002295esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2298echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2301echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2302if test "${llvm_cv_target_os_type+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002304else
2305 case $target in
2306 *-*-aix*)
2307 llvm_cv_target_os_type="AIX" ;;
2308 *-*-irix*)
2309 llvm_cv_target_os_type="IRIX" ;;
2310 *-*-cygwin*)
2311 llvm_cv_target_os_type="Cygwin" ;;
2312 *-*-darwin*)
2313 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002314 *-*-minix*)
2315 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002316 *-*-freebsd*)
2317 llvm_cv_target_os_type="FreeBSD" ;;
2318 *-*-openbsd*)
2319 llvm_cv_target_os_type="OpenBSD" ;;
2320 *-*-netbsd*)
2321 llvm_cv_target_os_type="NetBSD" ;;
2322 *-*-dragonfly*)
2323 llvm_cv_target_os_type="DragonFly" ;;
2324 *-*-hpux*)
2325 llvm_cv_target_os_type="HP-UX" ;;
2326 *-*-interix*)
2327 llvm_cv_target_os_type="Interix" ;;
2328 *-*-linux*)
2329 llvm_cv_target_os_type="Linux" ;;
2330 *-*-solaris*)
2331 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002332 *-*-auroraux*)
2333 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002334 *-*-win32*)
2335 llvm_cv_target_os_type="Win32" ;;
2336 *-*-mingw*)
2337 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002338 *-*-haiku*)
2339 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002340 *-unknown-eabi*)
2341 llvm_cv_target_os_type="Freestanding" ;;
2342 *)
2343 llvm_cv_target_os_type="Unknown" ;;
2344esac
2345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2347echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002348
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002350 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2351echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2352 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002353fi
2354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002357HOST_OS=$llvm_cv_os_type
2358
2359TARGET_OS=$llvm_cv_target_os_type
2360
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002361
Reid Spencera773bd52006-08-04 18:18:08 +00002362LINKALL=$llvm_cv_link_all_option
2363
2364NOLINKALL=$llvm_cv_no_link_all_option
2365
2366
Reid Spencer7b3e8512004-12-24 06:29:05 +00002367case $llvm_cv_platform_type in
2368 Unix)
2369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002370cat >>confdefs.h <<\_ACEOF
2371#define LLVM_ON_UNIX 1
2372_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002373
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002374 LLVM_ON_UNIX=1
2375
2376 LLVM_ON_WIN32=0
2377
Reid Spencer7b3e8512004-12-24 06:29:05 +00002378 ;;
2379 Win32)
2380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002381cat >>confdefs.h <<\_ACEOF
2382#define LLVM_ON_WIN32 1
2383_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002384
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002385 LLVM_ON_UNIX=0
2386
2387 LLVM_ON_WIN32=1
2388
Reid Spencer7b3e8512004-12-24 06:29:05 +00002389 ;;
2390esac
2391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002392{ echo "$as_me:$LINENO: checking target architecture" >&5
2393echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2394if test "${llvm_cv_target_arch+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396else
2397 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002398 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002399 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002400 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2401 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002402 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002403 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002404 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002405 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002406 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002407 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002408 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002409 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002410 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002411 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002412esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2415echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002418 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2419echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420fi
John Criswell76595452003-07-01 22:07:39 +00002421
Nick Lewycky83fc4472009-09-29 05:48:51 +00002422# Determine the LLVM native architecture for the target
2423case "$llvm_cv_target_arch" in
2424 x86) LLVM_NATIVE_ARCH="X86" ;;
2425 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2426 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2427esac
2428
2429ARCH=$llvm_cv_target_arch
2430
2431
2432ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433ac_cpp='$CPP $CPPFLAGS'
2434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002437if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2439set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 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 +00002455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457 break 2
2458 fi
2459done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460done
Reid Spencera773bd52006-08-04 18:18:08 +00002461IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462
2463fi
2464fi
2465CC=$ac_cv_prog_CC
2466if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002467 { echo "$as_me:$LINENO: result: $CC" >&5
2468echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002470 { echo "$as_me:$LINENO: result: no" >&5
2471echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472fi
2473
Reid Spencera773bd52006-08-04 18:18:08 +00002474
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475fi
2476if test -z "$ac_cv_prog_CC"; then
2477 ac_ct_CC=$CC
2478 # Extract the first word of "gcc", so it can be a program name with args.
2479set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484else
2485 if test -n "$ac_ct_CC"; then
2486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487else
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 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 +00002495 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497 break 2
2498 fi
2499done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500done
Reid Spencera773bd52006-08-04 18:18:08 +00002501IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502
2503fi
2504fi
2505ac_ct_CC=$ac_cv_prog_ac_ct_CC
2506if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2508echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510 { echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512fi
2513
Reid Spencera773bd52006-08-04 18:18:08 +00002514 if test "x$ac_ct_CC" = x; then
2515 CC=""
2516 else
2517 case $cross_compiling:$ac_tool_warned in
2518yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002519{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520whose name does not start with the host triplet. If you think this
2521configuration is useful to you, please write to autoconf@gnu.org." >&5
2522echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523whose name does not start with the host triplet. If you think this
2524configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002525ac_tool_warned=yes ;;
2526esac
2527 CC=$ac_ct_CC
2528 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529else
2530 CC="$ac_cv_prog_CC"
2531fi
2532
2533if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002534 if test -n "$ac_tool_prefix"; then
2535 # 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 +00002536set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 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 +00002552 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554 break 2
2555 fi
2556done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557done
Reid Spencera773bd52006-08-04 18:18:08 +00002558IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559
2560fi
2561fi
2562CC=$ac_cv_prog_CC
2563if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002564 { echo "$as_me:$LINENO: result: $CC" >&5
2565echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002567 { echo "$as_me:$LINENO: result: no" >&5
2568echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569fi
2570
Reid Spencera773bd52006-08-04 18:18:08 +00002571
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573fi
2574if test -z "$CC"; then
2575 # Extract the first word of "cc", so it can be a program name with args.
2576set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579if test "${ac_cv_prog_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581else
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2584else
2585 ac_prog_rejected=no
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 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 +00002593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2595 continue
2596 fi
2597 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599 break 2
2600 fi
2601done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602done
Reid Spencera773bd52006-08-04 18:18:08 +00002603IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604
2605if test $ac_prog_rejected = yes; then
2606 # We found a bogon in the path, so make sure we never use it.
2607 set dummy $ac_cv_prog_CC
2608 shift
2609 if test $# != 0; then
2610 # We chose a different compiler from the bogus one.
2611 # However, it has the same basename, so the bogon will be chosen
2612 # first if we set CC to just the basename; use the full file name.
2613 shift
2614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2615 fi
2616fi
2617fi
2618fi
2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002621 { echo "$as_me:$LINENO: result: $CC" >&5
2622echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624 { echo "$as_me:$LINENO: result: no" >&5
2625echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626fi
2627
Reid Spencera773bd52006-08-04 18:18:08 +00002628
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629fi
2630if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002632 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002633 do
2634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638if test "${ac_cv_prog_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002640else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 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 +00002651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002653 break 2
2654 fi
2655done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002656done
Reid Spencera773bd52006-08-04 18:18:08 +00002657IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002658
2659fi
2660fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661CC=$ac_cv_prog_CC
2662if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002663 { echo "$as_me:$LINENO: result: $CC" >&5
2664echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002666 { echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002668fi
2669
Reid Spencera773bd52006-08-04 18:18:08 +00002670
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002672 done
2673fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674if test -z "$CC"; then
2675 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002676 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002677do
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002684else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 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 +00002695 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002697 break 2
2698 fi
2699done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700done
Reid Spencera773bd52006-08-04 18:18:08 +00002701IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002702
2703fi
2704fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002705ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002707 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2708echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002710 { echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002712fi
2713
Reid Spencera773bd52006-08-04 18:18:08 +00002714
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002715 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002716done
John Criswell7a73b802003-06-30 21:59:07 +00002717
Reid Spencera773bd52006-08-04 18:18:08 +00002718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002723{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2724whose name does not start with the host triplet. If you think this
2725configuration is useful to you, please write to autoconf@gnu.org." >&5
2726echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2727whose name does not start with the host triplet. If you think this
2728configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002729ac_tool_warned=yes ;;
2730esac
2731 CC=$ac_ct_CC
2732 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002733fi
2734
John Criswell7a73b802003-06-30 21:59:07 +00002735fi
2736
2737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2739See \`config.log' for more details." >&5
2740echo "$as_me: error: no acceptable C compiler found in \$PATH
2741See \`config.log' for more details." >&2;}
2742 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002743
John Criswell7a73b802003-06-30 21:59:07 +00002744# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745echo "$as_me:$LINENO: checking for C compiler version" >&5
2746ac_compiler=`set X $ac_compile; echo $2`
2747{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002748case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002754 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757{ (ac_try="$ac_compiler -v >&5"
2758case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
2762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_compiler -v >&5") 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }
2767{ (ac_try="$ac_compiler -V >&5"
2768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler -V >&5") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002778cat >conftest.$ac_ext <<_ACEOF
2779/* confdefs.h. */
2780_ACEOF
2781cat confdefs.h >>conftest.$ac_ext
2782cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002784
John Criswell7a73b802003-06-30 21:59:07 +00002785int
2786main ()
2787{
2788
2789 ;
2790 return 0;
2791}
2792_ACEOF
2793ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002794ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002795# Try to create an executable without -o first, disregard a.out.
2796# It will help us diagnose broken compilers, and finding out an intuition
2797# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002798{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2799echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2800ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2801#
2802# List of possible output files, starting from the most likely.
2803# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2804# only as a last resort. b.out is created by i960 compilers.
2805ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2806#
2807# The IRIX 6 linker writes into existing files which may not be
2808# executable, retaining their permissions. Remove them first so a
2809# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002810ac_rmfiles=
2811for ac_file in $ac_files
2812do
2813 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2816 esac
2817done
2818rm -f $ac_rmfiles
2819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002821case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002826 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002827 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002830 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2831# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2832# in a Makefile. We should not override ac_cv_exeext if it was cached,
2833# so that the user can short-circuit this test for compilers unknown to
2834# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002835for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002836do
2837 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002838 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002840 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002841 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002842 # We found the default executable, but exeext='' is most
2843 # certainly right.
2844 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002845 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002846 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002847 then :; else
2848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2849 fi
2850 # We set ac_cv_exeext here because the later test for it is not
2851 # safe: cross compilers may not add the suffix if given an `-o'
2852 # argument, so we may need to know it at that point already.
2853 # Even if this section looks crufty: it has the advantage of
2854 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002855 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002856 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002857 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002858 esac
2859done
Reid Spencera773bd52006-08-04 18:18:08 +00002860test "$ac_cv_exeext" = no && ac_cv_exeext=
2861
John Criswell7a73b802003-06-30 21:59:07 +00002862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002864sed 's/^/| /' conftest.$ac_ext >&5
2865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002866{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2867See \`config.log' for more details." >&5
2868echo "$as_me: error: C compiler cannot create executables
2869See \`config.log' for more details." >&2;}
2870 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002871fi
John Criswell7a73b802003-06-30 21:59:07 +00002872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002873ac_exeext=$ac_cv_exeext
2874{ echo "$as_me:$LINENO: result: $ac_file" >&5
2875echo "${ECHO_T}$ac_file" >&6; }
2876
2877# Check that the compiler produces executables we can run. If not, either
2878# the compiler is broken, or we cross compile.
2879{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882# If not cross compiling, check that we can run a simple program.
2883if test "$cross_compiling" != yes; then
2884 if { ac_try='./$ac_file'
2885 { (case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 cross_compiling=no
2895 else
2896 if test "$cross_compiling" = maybe; then
2897 cross_compiling=yes
2898 else
2899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2900If you meant to cross compile, use \`--host'.
2901See \`config.log' for more details." >&5
2902echo "$as_me: error: cannot run C compiled programs.
2903If you meant to cross compile, use \`--host'.
2904See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907 fi
2908fi
2909{ echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6; }
2911
2912rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002913ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002914# Check that the compiler produces executables we can run. If not, either
2915# the compiler is broken, or we cross compile.
2916{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2917echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2918{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2919echo "${ECHO_T}$cross_compiling" >&6; }
2920
2921{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2922echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2923if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002929 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002930 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2935# work properly (i.e., refer to `conftest.exe'), while it won't with
2936# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002937for ac_file in conftest.exe conftest conftest.*; do
2938 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002939 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002942 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002943 * ) break;;
2944 esac
2945done
2946else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002947 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details." >&5
2949echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002953
2954rm -f conftest$ac_cv_exeext
2955{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002957
2958rm -f conftest.$ac_ext
2959EXEEXT=$ac_cv_exeext
2960ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002961{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2963if test "${ac_cv_objext+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002966 cat >conftest.$ac_ext <<_ACEOF
2967/* confdefs.h. */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002971/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002972
John Criswell7a73b802003-06-30 21:59:07 +00002973int
2974main ()
2975{
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002982if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002988 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002989 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002994 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 break;;
2998 esac
2999done
3000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003001 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003002sed 's/^/| /' conftest.$ac_ext >&5
3003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003004{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details." >&5
3006echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003010
John Criswell7a73b802003-06-30 21:59:07 +00003011rm -f conftest.$ac_cv_objext conftest.$ac_ext
3012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003013{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003015OBJEXT=$ac_cv_objext
3016ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003017{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3019if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003028
John Criswell7a73b802003-06-30 21:59:07 +00003029int
3030main ()
3031{
3032#ifndef __GNUC__
3033 choke me
3034#endif
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003040rm -f conftest.$ac_objext
3041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3048 ac_status=$?
3049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003074 ac_compiler_gnu=yes
3075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003076 echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003081
Reid Spencera773bd52006-08-04 18:18:08 +00003082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003083ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003084
3085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003086{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3088GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003089ac_test_CFLAGS=${CFLAGS+set}
3090ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003091{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3092echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3093if test "${ac_cv_prog_cc_g+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003095else
Reid Spencera773bd52006-08-04 18:18:08 +00003096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3098 ac_cv_prog_cc_g=no
3099 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003100 cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003106
John Criswell7a73b802003-06-30 21:59:07 +00003107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003115rm -f conftest.$ac_objext
3116if { (ac_try="$ac_compile"
3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003149 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 :
Torok Edwin871384f2010-01-26 08:50:50 +00003205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003206 echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003210 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003211 cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
3225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226rm -f conftest.$ac_objext
3227if { (ac_try="$ac_compile"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003260 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265
John Criswell7a73b802003-06-30 21:59:07 +00003266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003267
Reid Spencera773bd52006-08-04 18:18:08 +00003268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270
Reid Spencera773bd52006-08-04 18:18:08 +00003271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003273
Reid Spencera773bd52006-08-04 18:18:08 +00003274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003277{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3283 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003284 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003286 fi
3287else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288 if test "$GCC" = yes; then
3289 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003290 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003292 fi
3293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003294{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3295echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3296if test "${ac_cv_prog_cc_c89+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298else
Reid Spencera773bd52006-08-04 18:18:08 +00003299 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003301cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003306/* end confdefs.h. */
3307#include <stdarg.h>
3308#include <stdio.h>
3309#include <sys/types.h>
3310#include <sys/stat.h>
3311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3312struct buf { int x; };
3313FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314static char *e (p, i)
3315 char **p;
3316 int i;
3317{
3318 return p[i];
3319}
3320static char *f (char * (*g) (char **, int), char **p, ...)
3321{
3322 char *s;
3323 va_list v;
3324 va_start (v,p);
3325 s = g (p, va_arg (v,int));
3326 va_end (v);
3327 return s;
3328}
3329
3330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3331 function prototypes and stuff, but not '\xHH' hex character constants.
3332 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003333 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3335 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003336 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338
Reid Spencera773bd52006-08-04 18:18:08 +00003339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340 inside strings and character constants. */
3341#define FOO(x) 'x'
3342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344int test (int i, double x);
3345struct s1 {int (*f) (int a);};
3346struct s2 {int (*f) (double a);};
3347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348int argc;
3349char **argv;
3350int
3351main ()
3352{
3353return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3354 ;
3355 return 0;
3356}
3357_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360do
3361 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003362 rm -f conftest.$ac_objext
3363if { (ac_try="$ac_compile"
3364case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3377 { (case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003396 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003397else
3398 echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
3401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003403
Reid Spencera773bd52006-08-04 18:18:08 +00003404rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406done
Reid Spencera773bd52006-08-04 18:18:08 +00003407rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408CC=$ac_save_CC
3409
3410fi
Reid Spencera773bd52006-08-04 18:18:08 +00003411# AC_CACHE_VAL
3412case "x$ac_cv_prog_cc_c89" in
3413 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003414 { echo "$as_me:$LINENO: result: none needed" >&5
3415echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003416 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003417 { echo "$as_me:$LINENO: result: unsupported" >&5
3418echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003420 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423esac
3424
John Criswell0c38eaf2003-09-10 15:17:25 +00003425
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426ac_ext=c
3427ac_cpp='$CPP $CPPFLAGS'
3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431
3432
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433ac_ext=c
3434ac_cpp='$CPP $CPPFLAGS'
3435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003438{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440# On Suns, sometimes $CPP names a directory.
3441if test -n "$CPP" && test -d "$CPP"; then
3442 CPP=
3443fi
3444if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447else
3448 # Double quotes because CPP needs to be expanded
3449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3450 do
3451 ac_preproc_ok=false
3452for ac_c_preproc_warn_flag in '' yes
3453do
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003465/* end confdefs.h. */
3466#ifdef __STDC__
3467# include <limits.h>
3468#else
3469# include <assert.h>
3470#endif
3471 Syntax error
3472_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003473if { (ac_try="$ac_cpp conftest.$ac_ext"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_c_preproc_warn_flag
3488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489 else
3490 ac_cpp_err=
3491 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003493 ac_cpp_err=yes
3494fi
3495if test -z "$ac_cpp_err"; then
3496 :
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # Broken: fails on valid input.
3502continue
3503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003504
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505rm -f conftest.err conftest.$ac_ext
3506
Reid Spencera773bd52006-08-04 18:18:08 +00003507 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003509 cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003514/* end confdefs.h. */
3515#include <ac_nonexistent.h>
3516_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003517if { (ac_try="$ac_cpp conftest.$ac_ext"
3518case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521esac
3522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev/null; then
3530 if test -s conftest.err; then
3531 ac_cpp_err=$ac_c_preproc_warn_flag
3532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533 else
3534 ac_cpp_err=
3535 fi
3536else
3537 ac_cpp_err=yes
3538fi
3539if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003540 # Broken: success on invalid input.
3541continue
3542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003543 echo "$as_me: failed program was:" >&5
3544sed 's/^/| /' conftest.$ac_ext >&5
3545
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003546 # Passes both tests.
3547ac_preproc_ok=:
3548break
3549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003550
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003551rm -f conftest.err conftest.$ac_ext
3552
3553done
3554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003556if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003557 break
3558fi
3559
3560 done
3561 ac_cv_prog_CPP=$CPP
3562
3563fi
3564 CPP=$ac_cv_prog_CPP
3565else
3566 ac_cv_prog_CPP=$CPP
3567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003568{ echo "$as_me:$LINENO: result: $CPP" >&5
3569echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003570ac_preproc_ok=false
3571for ac_c_preproc_warn_flag in '' yes
3572do
3573 # Use a header file that comes with gcc, so configuring glibc
3574 # with a fresh cross-compiler works.
3575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3576 # <limits.h> exists even on freestanding compilers.
3577 # On the NeXT, cc -E runs the code through the compiler's parser,
3578 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003584/* end confdefs.h. */
3585#ifdef __STDC__
3586# include <limits.h>
3587#else
3588# include <assert.h>
3589#endif
3590 Syntax error
3591_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003592if { (ac_try="$ac_cpp conftest.$ac_ext"
3593case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596esac
3597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } >/dev/null; then
3605 if test -s conftest.err; then
3606 ac_cpp_err=$ac_c_preproc_warn_flag
3607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3608 else
3609 ac_cpp_err=
3610 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003612 ac_cpp_err=yes
3613fi
3614if test -z "$ac_cpp_err"; then
3615 :
3616else
3617 echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 # Broken: fails on valid input.
3621continue
3622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624rm -f conftest.err conftest.$ac_ext
3625
Reid Spencera773bd52006-08-04 18:18:08 +00003626 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003627 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003628 cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003633/* end confdefs.h. */
3634#include <ac_nonexistent.h>
3635_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003636if { (ac_try="$ac_cpp conftest.$ac_ext"
3637case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } >/dev/null; then
3649 if test -s conftest.err; then
3650 ac_cpp_err=$ac_c_preproc_warn_flag
3651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3652 else
3653 ac_cpp_err=
3654 fi
3655else
3656 ac_cpp_err=yes
3657fi
3658if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003659 # Broken: success on invalid input.
3660continue
3661else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003662 echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003665 # Passes both tests.
3666ac_preproc_ok=:
3667break
3668fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003670rm -f conftest.err conftest.$ac_ext
3671
3672done
3673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003675if $ac_preproc_ok; then
3676 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003678 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3679See \`config.log' for more details." >&5
3680echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3681See \`config.log' for more details." >&2;}
3682 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003683fi
3684
John Criswell7a73b802003-06-30 21:59:07 +00003685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
John Criswell7a73b802003-06-30 21:59:07 +00003691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003692{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3693echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3694if test "${ac_cv_path_GREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003697 # Extract the first word of "grep ggrep" to use in msg output
3698if test -z "$GREP"; then
3699set dummy grep ggrep; ac_prog_name=$2
3700if test "${ac_cv_path_GREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
Reid Spencera773bd52006-08-04 18:18:08 +00003703 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003704# Loop through the user's path and test for each of PROGNAME-LIST
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003710 for ac_prog in grep ggrep; do
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3713 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3714 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003715 # Check for GNU $ac_path_GREP
3716case `"$ac_path_GREP" --version 2>&1` in
3717*GNU*)
3718 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3719*)
3720 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003722 while :
3723 do
3724 cat "conftest.in" "conftest.in" >"conftest.tmp"
3725 mv "conftest.tmp" "conftest.in"
3726 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003727 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003728 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003730 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003731 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3732 # Best one so far, save it but keep looking for a better one
3733 ac_cv_path_GREP="$ac_path_GREP"
3734 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003735 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003736 # 10*(2^10) chars as input seems more than enough
3737 test $ac_count -gt 10 && break
3738 done
3739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740esac
3741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003742
3743 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003744 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003745done
3746
3747done
Reid Spencera773bd52006-08-04 18:18:08 +00003748IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003749
3750
3751fi
3752
3753GREP="$ac_cv_path_GREP"
3754if test -z "$GREP"; then
3755 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3756echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3757 { (exit 1); exit 1; }; }
3758fi
3759
Reid Spencera773bd52006-08-04 18:18:08 +00003760else
3761 ac_cv_path_GREP=$GREP
3762fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764
Reid Spencera773bd52006-08-04 18:18:08 +00003765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3767echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003768 GREP="$ac_cv_path_GREP"
3769
3770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003771{ echo "$as_me:$LINENO: checking for egrep" >&5
3772echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3773if test "${ac_cv_path_EGREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003775else
3776 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3777 then ac_cv_path_EGREP="$GREP -E"
3778 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003779 # Extract the first word of "egrep" to use in msg output
3780if test -z "$EGREP"; then
3781set dummy egrep; ac_prog_name=$2
3782if test "${ac_cv_path_EGREP+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
Reid Spencera773bd52006-08-04 18:18:08 +00003785 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003786# Loop through the user's path and test for each of PROGNAME-LIST
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003792 for ac_prog in egrep; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3795 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3796 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003797 # Check for GNU $ac_path_EGREP
3798case `"$ac_path_EGREP" --version 2>&1` in
3799*GNU*)
3800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801*)
3802 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003804 while :
3805 do
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003809 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003812 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_EGREP="$ac_path_EGREP"
3816 ac_path_EGREP_max=$ac_count
3817 fi
3818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3820 done
3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822esac
3823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003824
3825 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003826 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003827done
3828
3829done
Reid Spencera773bd52006-08-04 18:18:08 +00003830IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003831
3832
3833fi
3834
3835EGREP="$ac_cv_path_EGREP"
3836if test -z "$EGREP"; then
3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839 { (exit 1); exit 1; }; }
3840fi
3841
Reid Spencera773bd52006-08-04 18:18:08 +00003842else
3843 ac_cv_path_EGREP=$EGREP
3844fi
3845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003846
Reid Spencera773bd52006-08-04 18:18:08 +00003847 fi
3848fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003849{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3850echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003851 EGREP="$ac_cv_path_EGREP"
3852
3853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003854{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3855echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3856if test "${ac_cv_header_stdc+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003859 cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h. */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003865#include <stdlib.h>
3866#include <stdarg.h>
3867#include <string.h>
3868#include <float.h>
3869
John Criswell0c38eaf2003-09-10 15:17:25 +00003870int
3871main ()
3872{
3873
3874 ;
3875 return 0;
3876}
John Criswell7a73b802003-06-30 21:59:07 +00003877_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003878rm -f conftest.$ac_objext
3879if { (ac_try="$ac_compile"
3880case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883esac
3884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
3886 ac_status=$?
3887 grep -v '^ *+' conftest.er1 >conftest.err
3888 rm -f conftest.er1
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3893 { (case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896esac
3897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_try") 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906esac
3907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_try") 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003912 ac_cv_header_stdc=yes
3913else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003914 echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003919
Reid Spencera773bd52006-08-04 18:18:08 +00003920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003921
3922if test $ac_cv_header_stdc = yes; then
3923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003924 cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003930#include <string.h>
3931
3932_ACEOF
3933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003934 $EGREP "memchr" >/dev/null 2>&1; then
3935 :
John Criswell7a73b802003-06-30 21:59:07 +00003936else
3937 ac_cv_header_stdc=no
3938fi
3939rm -f conftest*
3940
3941fi
3942
3943if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003945 cat >conftest.$ac_ext <<_ACEOF
3946/* confdefs.h. */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003951#include <stdlib.h>
3952
3953_ACEOF
3954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955 $EGREP "free" >/dev/null 2>&1; then
3956 :
John Criswell7a73b802003-06-30 21:59:07 +00003957else
3958 ac_cv_header_stdc=no
3959fi
3960rm -f conftest*
3961
3962fi
3963
3964if test $ac_cv_header_stdc = yes; then
3965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003967 :
3968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003969 cat >conftest.$ac_ext <<_ACEOF
3970/* confdefs.h. */
3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003975#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003976#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003977#if ((' ' & 0x0FF) == 0x020)
3978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3980#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003981# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003982 (('a' <= (c) && (c) <= 'i') \
3983 || ('j' <= (c) && (c) <= 'r') \
3984 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986#endif
3987
3988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3989int
3990main ()
3991{
3992 int i;
3993 for (i = 0; i < 256; i++)
3994 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003995 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003996 return 2;
3997 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003998}
3999_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000rm -f conftest$ac_exeext
4001if { (ac_try="$ac_link"
4002case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005esac
4006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_link") 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014esac
4015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 :
John Criswell7a73b802003-06-30 21:59:07 +00004021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022 echo "$as_me: program exited with status $ac_status" >&5
4023echo "$as_me: failed program was:" >&5
4024sed 's/^/| /' conftest.$ac_ext >&5
4025
4026( exit $ac_status )
4027ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029rm -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 +00004030fi
4031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004032
John Criswell7a73b802003-06-30 21:59:07 +00004033fi
4034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4036echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004037if test $ac_cv_header_stdc = yes; then
4038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039cat >>confdefs.h <<\_ACEOF
4040#define STDC_HEADERS 1
4041_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004042
4043fi
4044
Reid Spencera773bd52006-08-04 18:18:08 +00004045# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046
4047
4048
4049
4050
4051
4052
4053
4054
Reid Spencera773bd52006-08-04 18:18:08 +00004055for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4056 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004057do
4058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064 cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h. */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h. */
4070$ac_includes_default
4071
4072#include <$ac_header>
4073_ACEOF
4074rm -f conftest.$ac_objext
4075if { (ac_try="$ac_compile"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_compile") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092esac
4093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_try") 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 eval "$as_ac_Header=yes"
4109else
4110 echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 eval "$as_ac_Header=no"
4114fi
4115
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117fi
4118ac_res=`eval echo '${'$as_ac_Header'}'`
4119 { echo "$as_me:$LINENO: result: $ac_res" >&5
4120echo "${ECHO_T}$ac_res" >&6; }
4121if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004122 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004124_ACEOF
4125
4126fi
4127
4128done
4129
4130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004131{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4132echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4133if test "${ac_cv_c_bigendian+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004136 # See if sys/param.h defines the BYTE_ORDER macro.
4137cat >conftest.$ac_ext <<_ACEOF
4138/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004139_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004142/* end confdefs.h. */
4143#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004145
4146int
4147main ()
4148{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4150 bogus endian macros
4151#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004152
4153 ;
4154 return 0;
4155}
4156_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004157rm -f conftest.$ac_objext
4158if { (ac_try="$ac_compile"
4159case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_compile") 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
4176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004191 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004192cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h. */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004197/* end confdefs.h. */
4198#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004199#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004200
4201int
4202main ()
4203{
4204#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 not big endian
4206#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004207
4208 ;
4209 return 0;
4210}
4211_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004212rm -f conftest.$ac_objext
4213if { (ac_try="$ac_compile"
4214case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004246 ac_cv_c_bigendian=yes
4247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248 echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004251 ac_cv_c_bigendian=no
4252fi
4253
4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255else
4256 echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 # It does not; compile a test program.
4260if test "$cross_compiling" = yes; then
4261 # try to guess the endianness by grepping values into an object file
4262 ac_cv_c_bigendian=unknown
4263 cat >conftest.$ac_ext <<_ACEOF
4264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
4269short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4270short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4271void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4272short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4273short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4274void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004275int
4276main ()
4277{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004278 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004279 ;
4280 return 0;
4281}
4282_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004283rm -f conftest.$ac_objext
4284if { (ac_try="$ac_compile"
4285case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301esac
4302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try='test -s conftest.$ac_objext'
4308 { (case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311esac
4312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004318 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004319fi
4320if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4321 if test "$ac_cv_c_bigendian" = unknown; then
4322 ac_cv_c_bigendian=no
4323 else
4324 # finding both strings is unlikely to happen, but who knows?
4325 ac_cv_c_bigendian=unknown
4326 fi
4327fi
Reid Spencera773bd52006-08-04 18:18:08 +00004328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004329 echo "$as_me: failed program was:" >&5
4330sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004332
Torok Edwin871384f2010-01-26 08:50:50 +00004333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004334
Reid Spencera773bd52006-08-04 18:18:08 +00004335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004342/* end confdefs.h. */
4343$ac_includes_default
4344int
4345main ()
4346{
4347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004348 /* Are we little or big endian? From Harbison&Steele. */
4349 union
4350 {
4351 long int l;
4352 char c[sizeof (long int)];
4353 } u;
4354 u.l = 1;
4355 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004356
4357 ;
4358 return 0;
4359}
4360_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004361rm -f conftest$ac_exeext
4362if { (ac_try="$ac_link"
4363case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_link") 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4372 { (case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375esac
4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004381 ac_cv_c_bigendian=no
4382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383 echo "$as_me: program exited with status $ac_status" >&5
4384echo "$as_me: failed program was:" >&5
4385sed 's/^/| /' conftest.$ac_ext >&5
4386
4387( exit $ac_status )
4388ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004390rm -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 +00004391fi
4392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004393
Reid Spencera773bd52006-08-04 18:18:08 +00004394fi
4395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397fi
4398{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4399echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4400case $ac_cv_c_bigendian in
4401 yes)
4402 ENDIAN=big
4403 ;;
4404 no)
4405 ENDIAN=little
4406 ;;
4407 *)
4408 { { echo "$as_me:$LINENO: error: unknown endianness
4409presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4410echo "$as_me: error: unknown endianness
4411presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4412 { (exit 1); exit 1; }; } ;;
4413esac
Reid Spencera773bd52006-08-04 18:18:08 +00004414
4415
4416if test "$cross_compiling" = yes; then
4417 LLVM_CROSS_COMPILING=1
4418
4419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004420{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4421echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4422if test "${ac_cv_build_exeext+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004424else
4425 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4426 ac_cv_build_exeext=.exe
4427else
4428 ac_build_prefix=${build_alias}-
4429
4430 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4431set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004436else
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439else
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 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 +00004447 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004449 break 2
4450 fi
4451done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452done
Reid Spencera773bd52006-08-04 18:18:08 +00004453IFS=$as_save_IFS
4454
4455fi
4456fi
4457BUILD_CC=$ac_cv_prog_BUILD_CC
4458if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004459 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4460echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004462 { echo "$as_me:$LINENO: result: no" >&5
4463echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004464fi
4465
4466
4467 if test -z "$BUILD_CC"; then
4468 # Extract the first word of "gcc", so it can be a program name with args.
4469set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004474else
4475 if test -n "$BUILD_CC"; then
4476 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 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 +00004485 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004487 break 2
4488 fi
4489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490done
Reid Spencera773bd52006-08-04 18:18:08 +00004491IFS=$as_save_IFS
4492
4493fi
4494fi
4495BUILD_CC=$ac_cv_prog_BUILD_CC
4496if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004497 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4498echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004500 { echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004502fi
4503
4504
4505 if test -z "$BUILD_CC"; then
4506 # Extract the first word of "cc", so it can be a program name with args.
4507set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004512else
4513 if test -n "$BUILD_CC"; then
4514 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4515else
4516 ac_prog_rejected=no
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 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 +00004524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4525 ac_prog_rejected=yes
4526 continue
4527 fi
4528 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004530 break 2
4531 fi
4532done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004533done
Reid Spencera773bd52006-08-04 18:18:08 +00004534IFS=$as_save_IFS
4535
4536if test $ac_prog_rejected = yes; then
4537 # We found a bogon in the path, so make sure we never use it.
4538 set dummy $ac_cv_prog_BUILD_CC
4539 shift
4540 if test $# != 0; then
4541 # We chose a different compiler from the bogus one.
4542 # However, it has the same basename, so the bogon will be chosen
4543 # first if we set BUILD_CC to just the basename; use the full file name.
4544 shift
4545 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4546 fi
4547fi
4548fi
4549fi
4550BUILD_CC=$ac_cv_prog_BUILD_CC
4551if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4553echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004555 { echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004557fi
4558
4559
4560 fi
4561 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4563echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4564 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004565 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4566 rm -f conftest*
4567 echo 'int main () { return 0; }' > conftest.$ac_ext
4568 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004570 (eval $ac_build_link) 2>&5
4571 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004574 for file in conftest.*; do
4575 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004576 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004577 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4578 esac
4579 done
4580 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4582echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4583 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004584 fi
4585 rm -f conftest*
4586 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4587fi
4588fi
4589
4590BUILD_EXEEXT=""
4591test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4593echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004594ac_build_exeext=$BUILD_EXEEXT
4595
Jim Grosbach673612e2008-10-02 22:56:44 +00004596 ac_build_prefix=${build_alias}-
4597 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4598set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004603else
4604 if test -n "$BUILD_CXX"; then
4605 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 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 +00004614 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004616 break 2
4617 fi
4618done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619done
Jim Grosbach673612e2008-10-02 22:56:44 +00004620IFS=$as_save_IFS
4621
4622fi
4623fi
4624BUILD_CXX=$ac_cv_prog_BUILD_CXX
4625if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4627echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004629 { echo "$as_me:$LINENO: result: no" >&5
4630echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004631fi
4632
4633
4634 if test -z "$BUILD_CXX"; then
4635 # Extract the first word of "g++", so it can be a program name with args.
4636set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004641else
4642 if test -n "$BUILD_CXX"; then
4643 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 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 +00004652 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004654 break 2
4655 fi
4656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657done
Jim Grosbach673612e2008-10-02 22:56:44 +00004658IFS=$as_save_IFS
4659
4660fi
4661fi
4662BUILD_CXX=$ac_cv_prog_BUILD_CXX
4663if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004664 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4665echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004666else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004667 { echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004669fi
4670
4671
4672 if test -z "$BUILD_CXX"; then
4673 # Extract the first word of "c++", so it can be a program name with args.
4674set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004679else
4680 if test -n "$BUILD_CXX"; then
4681 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4682else
4683 ac_prog_rejected=no
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 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 +00004691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4692 ac_prog_rejected=yes
4693 continue
4694 fi
4695 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004697 break 2
4698 fi
4699done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700done
Jim Grosbach673612e2008-10-02 22:56:44 +00004701IFS=$as_save_IFS
4702
4703if test $ac_prog_rejected = yes; then
4704 # We found a bogon in the path, so make sure we never use it.
4705 set dummy $ac_cv_prog_BUILD_CXX
4706 shift
4707 if test $# != 0; then
4708 # We chose a different compiler from the bogus one.
4709 # However, it has the same basename, so the bogon will be chosen
4710 # first if we set BUILD_CXX to just the basename; use the full file name.
4711 shift
4712 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4713 fi
4714fi
4715fi
4716fi
4717BUILD_CXX=$ac_cv_prog_BUILD_CXX
4718if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4720echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722 { echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004724fi
4725
4726
4727 fi
4728 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004729else
4730 LLVM_CROSS_COMPILING=0
4731
4732fi
4733
Dan Gohman56fb5f92010-08-04 16:25:01 +00004734if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004735 cvsbuild="yes"
4736 optimize="no"
4737 CVSBUILD=CVSBUILD=1
4738
4739else
4740 cvsbuild="no"
4741 optimize="yes"
4742fi
4743
4744
4745# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004746if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004747 enableval=$enable_optimized;
4748else
4749 enableval=$optimize
4750fi
4751
4752if test ${enableval} = "no" ; then
4753 ENABLE_OPTIMIZED=
4754
4755else
4756 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4757
4758fi
4759
David Greene2a5a12c2009-04-17 14:50:39 +00004760# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004761if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004762 enableval=$enable_profiling;
4763else
4764 enableval="no"
4765fi
4766
4767if test ${enableval} = "no" ; then
4768 ENABLE_PROFILING=
4769
4770else
4771 ENABLE_PROFILING=ENABLE_PROFILING=1
4772
4773fi
4774
Reid Spencera773bd52006-08-04 18:18:08 +00004775# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004776if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004777 enableval=$enable_assertions;
4778else
4779 enableval="yes"
4780fi
4781
4782if test ${enableval} = "yes" ; then
4783 DISABLE_ASSERTIONS=
4784
4785else
4786 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4787
4788fi
4789
David Greenea696d242007-06-28 19:36:08 +00004790# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004791if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004792 enableval=$enable_expensive_checks;
4793else
4794 enableval="no"
4795fi
4796
4797if test ${enableval} = "yes" ; then
4798 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4799
4800 EXPENSIVE_CHECKS=yes
4801
4802else
4803 ENABLE_EXPENSIVE_CHECKS=
4804
4805 EXPENSIVE_CHECKS=no
4806
4807fi
4808
Reid Spencer8b2e1412006-11-17 03:32:33 +00004809# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004810if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004811 enableval=$enable_debug_runtime;
4812else
4813 enableval=no
4814fi
4815
4816if test ${enableval} = "no" ; then
4817 DEBUG_RUNTIME=
4818
4819else
4820 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4821
4822fi
4823
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004824# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004825if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004826 enableval=$enable_debug_symbols;
4827else
4828 enableval=no
4829fi
4830
4831if test ${enableval} = "no" ; then
4832 DEBUG_SYMBOLS=
4833
4834else
4835 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4836
4837fi
4838
Reid Spencera773bd52006-08-04 18:18:08 +00004839# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004840if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004841 enableval=$enable_jit;
4842else
4843 enableval=default
4844fi
4845
4846if test ${enableval} = "no"
4847then
4848 JIT=
4849
4850else
4851 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004852 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004853 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004854 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004855 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004857 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004859 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004860 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004861 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004862 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004863 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004864 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004865 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004866 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004867 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004868 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004869 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004870 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004871 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 Blackfin) TARGET_HAS_JIT=0
4873 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004874 MBlaze) TARGET_HAS_JIT=0
4875 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004876 PTX) TARGET_HAS_JIT=0
4877 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004878 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004879 ;;
4880 esac
4881fi
4882
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004883# Check whether --enable-docs was given.
4884if test "${enable_docs+set}" = set; then
4885 enableval=$enable_docs;
4886else
4887 enableval=default
4888fi
4889
4890case "$enableval" in
4891 yes) ENABLE_DOCS=1
4892 ;;
4893 no) ENABLE_DOCS=0
4894 ;;
4895 default) ENABLE_DOCS=1
4896 ;;
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4898echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4900esac
4901
Reid Spencera773bd52006-08-04 18:18:08 +00004902# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004903if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004904 enableval=$enable_doxygen;
4905else
4906 enableval=default
4907fi
4908
4909case "$enableval" in
4910 yes) ENABLE_DOXYGEN=1
4911 ;;
4912 no) ENABLE_DOXYGEN=0
4913 ;;
4914 default) ENABLE_DOXYGEN=0
4915 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004916 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4917echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4918 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004919esac
4920
4921# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004923 enableval=$enable_threads;
4924else
Reid Spencer65c5d752006-11-05 17:08:18 +00004925 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004926fi
4927
4928case "$enableval" in
4929 yes) ENABLE_THREADS=1
4930 ;;
4931 no) ENABLE_THREADS=0
4932 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004933 default) ENABLE_THREADS=1
4934 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4936echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4937 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004938esac
4939
Owen Andersona8603702009-05-19 22:18:56 +00004940cat >>confdefs.h <<_ACEOF
4941#define ENABLE_THREADS $ENABLE_THREADS
4942_ACEOF
4943
4944
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00004945# Check whether --enable-pthreads was given.
4946if test "${enable_pthreads+set}" = set; then
4947 enableval=$enable_pthreads;
4948else
4949 enableval=default
4950fi
4951
4952case "$enableval" in
4953 yes) ENABLE_PTHREADS=1
4954 ;;
4955 no) ENABLE_PTHREADS=0
4956 ;;
4957 default) ENABLE_PTHREADS=1
4958 ;;
4959 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4960echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4961 { (exit 1); exit 1; }; } ;;
4962esac
4963
Reid Spencer89b0d992006-12-16 22:07:52 +00004964# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004965if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004966 enableval=$enable_pic;
4967else
4968 enableval=default
4969fi
4970
4971case "$enableval" in
4972 yes) ENABLE_PIC=1
4973 ;;
4974 no) ENABLE_PIC=0
4975 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004976 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004977 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4979echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004981esac
4982
4983cat >>confdefs.h <<_ACEOF
4984#define ENABLE_PIC $ENABLE_PIC
4985_ACEOF
4986
4987
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004988# Check whether --enable-shared was given.
4989if test "${enable_shared+set}" = set; then
4990 enableval=$enable_shared;
4991else
4992 enableval=default
4993fi
4994
4995case "$enableval" in
4996 yes) ENABLE_SHARED=1
4997 ;;
4998 no) ENABLE_SHARED=0
4999 ;;
5000 default) ENABLE_SHARED=0
5001 ;;
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5003echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5005esac
5006
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005007# Check whether --enable-embed-stdcxx was given.
5008if test "${enable_embed_stdcxx+set}" = set; then
5009 enableval=$enable_embed_stdcxx;
5010else
5011 enableval=default
5012fi
5013
5014case "$enableval" in
5015 yes) ENABLE_EMBED_STDCXX=1
5016 ;;
5017 no) ENABLE_EMBED_STDCXX=0
5018 ;;
5019 default) ENABLE_EMBED_STDCXX=1
5020 ;;
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5022echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5024esac
5025
Daniel Dunbardd464df2010-05-10 20:11:56 +00005026# Check whether --enable-timestamps was given.
5027if test "${enable_timestamps+set}" = set; then
5028 enableval=$enable_timestamps;
5029else
5030 enableval=default
5031fi
5032
5033case "$enableval" in
5034 yes) ENABLE_TIMESTAMPS=1
5035 ;;
5036 no) ENABLE_TIMESTAMPS=0
5037 ;;
5038 default) ENABLE_TIMESTAMPS=1
5039 ;;
5040 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5041echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5042 { (exit 1); exit 1; }; } ;;
5043esac
5044
5045cat >>confdefs.h <<_ACEOF
5046#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5047_ACEOF
5048
5049
Reid Spencera773bd52006-08-04 18:18:08 +00005050TARGETS_TO_BUILD=""
5051# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005052if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005053 enableval=$enable_targets;
5054else
5055 enableval=all
5056fi
5057
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005058if test "$enableval" = host-only ; then
5059 enableval=host
5060fi
Reid Spencera773bd52006-08-04 18:18:08 +00005061case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005062 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 +00005063 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5064 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005065 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5066 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5067 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5068 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5069 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5070 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5071 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5072 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005073 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5074 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5075 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5076 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5077 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005078 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005079 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005080 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005081 host) case "$llvm_cv_target_arch" in
5082 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5083 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5084 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5085 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5086 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5087 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5088 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005089 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005090 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005091 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5092 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005093 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005094 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005095 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005096 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5097echo "$as_me: error: Can not set target to build" >&2;}
5098 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005099 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005100 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5101echo "$as_me: error: Unrecognized target $a_target" >&2;}
5102 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005103 esac
5104 done
5105 ;;
5106esac
Reid Spencera773bd52006-08-04 18:18:08 +00005107TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5108
5109
Douglas Gregor0711c302009-06-17 00:43:20 +00005110# Determine whether we are building LLVM support for the native architecture.
5111# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5112for a_target in $TARGETS_TO_BUILD; do
5113 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5114
5115cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005116#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5117_ACEOF
5118
5119 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5120 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5121 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005122 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5123 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5124 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005125
5126cat >>confdefs.h <<_ACEOF
5127#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005128_ACEOF
5129
5130
5131cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005132#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5133_ACEOF
5134
5135
5136cat >>confdefs.h <<_ACEOF
5137#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005138_ACEOF
5139
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005140 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005141
5142cat >>confdefs.h <<_ACEOF
5143#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5144_ACEOF
5145
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005146 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005147 fi
5148done
5149
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005150# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5151# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005152LLVM_ENUM_TARGETS=""
5153LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005154LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005155LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005156for target_to_build in $TARGETS_TO_BUILD; do
5157 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005158 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005159 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5160 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005161 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5162 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5163 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005164 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5165 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5166 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005167done
5168
5169
5170
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005171
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005172
Reid Spencer65c5d752006-11-05 17:08:18 +00005173# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005174if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005175 enableval=$enable_cbe_printf_a;
5176else
5177 enableval=default
5178fi
5179
5180case "$enableval" in
5181 yes) ENABLE_CBE_PRINTF_A=1
5182 ;;
5183 no) ENABLE_CBE_PRINTF_A=0
5184 ;;
5185 default) ENABLE_CBE_PRINTF_A=1
5186 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5188echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005190esac
5191
5192cat >>confdefs.h <<_ACEOF
5193#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5194_ACEOF
5195
5196
Reid Spencera773bd52006-08-04 18:18:08 +00005197
5198# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005199if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005200 withval=$with_llvmgccdir;
5201else
5202 withval=default
5203fi
5204
5205case "$withval" in
5206 default) WITH_LLVMGCCDIR=default ;;
5207 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005208 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5209echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5210 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005211esac
5212
5213
Devang Patel5d28b882007-12-04 22:54:47 +00005214# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005215if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005216 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5217 WITH_LLVMGCCDIR=""
5218fi
5219
5220
5221
5222# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005223if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005224 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5225 WITH_LLVMGCCDIR=""
5226fi
5227
Douglas Gregor01746742009-05-11 18:05:52 +00005228
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005229if test -n "$LLVMGCC"; then
5230 LLVMGCCCOMMAND="$LLVMGCC"
5231fi
5232
5233if test -n "$LLVMGXX"; then
5234 LLVMGXXCOMMAND="$LLVMGXX"
5235fi
Devang Patel5d28b882007-12-04 22:54:47 +00005236
5237if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005238 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5239echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5240 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005241fi
5242
5243if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005244 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5245echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5246 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005247fi
5248
5249
Daniel Dunbar98515672010-02-23 10:00:49 +00005250# Check whether --with-clang was given.
5251if test "${with_clang+set}" = set; then
5252 withval=$with_clang;
5253else
5254 with_clang=default
5255fi
5256
5257
5258
5259# Check whether --with-built-clang was given.
5260if test "${with_built_clang+set}" = set; then
5261 withval=$with_built_clang;
5262else
5263 with_built_clang=check
5264fi
5265
5266
5267{ echo "$as_me:$LINENO: checking clang compiler" >&5
5268echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5269WITH_CLANGPATH=""
5270WITH_BUILT_CLANG=0
5271if test "$with_clang" != "default"; then
5272 WITH_CLANGPATH="$with_clang"
5273 if ! test -x "$WITH_CLANGPATH"; then
5274 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5275echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5276 { (exit 1); exit 1; }; }
5277 fi
5278elif test "$with_built_clang" = "yes"; then
5279 WITH_BUILT_CLANG=1
5280elif test "$with_built_clang" = "no"; then
5281 WITH_BUILT_CLANG=0
5282else
5283 if test "$with_built_clang" != "check"; then
5284 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5285echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5286 { (exit 1); exit 1; }; }
5287 fi
5288
5289 if test -f ${srcdir}/tools/clang/README.txt; then
5290 WITH_BUILT_CLANG=1
5291 fi
5292fi
5293
5294if ! test -z "$WITH_CLANGPATH"; then
5295 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5296echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5297 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5298elif test "$WITH_BUILT_CLANG" = "1"; then
5299 { echo "$as_me:$LINENO: result: built" >&5
5300echo "${ECHO_T}built" >&6; }
5301else
5302 { echo "$as_me:$LINENO: result: none" >&5
5303echo "${ECHO_T}none" >&6; }
5304fi
5305CLANGPATH=$WITH_CLANGPATH
5306
5307CLANGXXPATH=$WITH_CLANGXXPATH
5308
5309ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5310
5311
5312
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005313# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005314if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005315 withval=$with_optimize_option;
5316else
5317 withval=default
5318fi
5319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005320{ echo "$as_me:$LINENO: checking optimization flags" >&5
5321echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005322case "$withval" in
5323 default)
5324 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005325 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005326 MingW) optimize_option=-O2 ;;
5327 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005328 esac ;;
5329 *) optimize_option="$withval" ;;
5330esac
5331OPTIMIZE_OPTION=$optimize_option
5332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005333{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5334echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005335
5336
Reid Spencera773bd52006-08-04 18:18:08 +00005337# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005338if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005339 withval=$with_extra_options;
5340else
5341 withval=default
5342fi
5343
5344case "$withval" in
5345 default) EXTRA_OPTIONS= ;;
5346 *) EXTRA_OPTIONS=$withval ;;
5347esac
5348EXTRA_OPTIONS=$EXTRA_OPTIONS
5349
5350
Daniel Dunbared344d22011-06-16 22:30:41 +00005351
5352# Check whether --with-extra-ld-options was given.
5353if test "${with_extra_ld_options+set}" = set; then
5354 withval=$with_extra_ld_options;
5355else
5356 withval=default
5357fi
5358
5359case "$withval" in
5360 default) EXTRA_LD_OPTIONS= ;;
5361 *) EXTRA_LD_OPTIONS=$withval ;;
5362esac
5363EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5364
5365
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005366# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005367if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005368 enableval=$enable_bindings;
5369else
5370 enableval=default
5371fi
5372
5373BINDINGS_TO_BUILD=""
5374case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005375 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005376 all ) BINDINGS_TO_BUILD="ocaml" ;;
5377 none | no) BINDINGS_TO_BUILD="" ;;
5378 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5379 case "$a_binding" in
5380 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005381 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5382echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5383 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005384 esac
5385 done
5386 ;;
5387esac
5388
Reid Spencera773bd52006-08-04 18:18:08 +00005389
Gordon Henriksenf0915682007-10-02 16:42:22 +00005390# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005391if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005392 withval=$with_ocaml_libdir;
5393else
5394 withval=auto
5395fi
5396
5397case "$withval" in
5398 auto) with_ocaml_libdir="$withval" ;;
5399 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005400 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5401echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5402 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005403esac
5404
5405
Chandler Carruth6b241162010-10-19 08:21:25 +00005406# Check whether --with-clang-resource-dir was given.
5407if test "${with_clang_resource_dir+set}" = set; then
5408 withval=$with_clang_resource_dir;
5409else
5410 withval=""
5411fi
5412
5413
5414cat >>confdefs.h <<_ACEOF
5415#define CLANG_RESOURCE_DIR "$withval"
5416_ACEOF
5417
5418
5419
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005420# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005421if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005422 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005423else
5424 withval=""
5425fi
5426
5427
5428cat >>confdefs.h <<_ACEOF
5429#define C_INCLUDE_DIRS "$withval"
5430_ACEOF
5431
5432
5433
Rafael Espindola420d23c2009-11-16 19:46:55 +00005434# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005435if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005436 withval=$with_cxx_include_root;
5437else
5438 withval=""
5439fi
5440
5441
5442cat >>confdefs.h <<_ACEOF
5443#define CXX_INCLUDE_ROOT "$withval"
5444_ACEOF
5445
5446
5447
5448# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005449if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005450 withval=$with_cxx_include_arch;
5451else
5452 withval=""
5453fi
5454
5455
5456cat >>confdefs.h <<_ACEOF
5457#define CXX_INCLUDE_ARCH "$withval"
5458_ACEOF
5459
5460
5461
5462# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005463if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005464 withval=$with_cxx_include_32bit_dir;
5465else
5466 withval=""
5467fi
5468
5469
5470cat >>confdefs.h <<_ACEOF
5471#define CXX_INCLUDE_32BIT_DIR "$withval"
5472_ACEOF
5473
5474
5475
5476# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005477if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005478 withval=$with_cxx_include_64bit_dir;
5479else
5480 withval=""
5481fi
5482
5483
5484cat >>confdefs.h <<_ACEOF
5485#define CXX_INCLUDE_64BIT_DIR "$withval"
5486_ACEOF
5487
5488
5489
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005490# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005491if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005492 withval=$with_binutils_include;
5493else
5494 withval=default
5495fi
5496
5497case "$withval" in
5498 default) WITH_BINUTILS_INCDIR=default ;;
5499 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5501echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5502 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005503esac
5504if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5505 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5506
5507 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5508 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005509 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5510echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5511 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005512 fi
5513fi
5514
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005515# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005516if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005517 enableval=$enable_libffi; case "$enableval" in
5518 yes) llvm_cv_enable_libffi="yes" ;;
5519 no) llvm_cv_enable_libffi="no" ;;
5520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005521echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5522 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005523 esac
5524else
5525 llvm_cv_enable_libffi=no
5526fi
5527
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005528
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005529
Reid Spencera773bd52006-08-04 18:18:08 +00005530ac_ext=c
5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5536echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005537# On Suns, sometimes $CPP names a directory.
5538if test -n "$CPP" && test -d "$CPP"; then
5539 CPP=
5540fi
5541if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005542 if test "${ac_cv_prog_CPP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005544else
5545 # Double quotes because CPP needs to be expanded
5546 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5547 do
5548 ac_preproc_ok=false
5549for ac_c_preproc_warn_flag in '' yes
5550do
5551 # Use a header file that comes with gcc, so configuring glibc
5552 # with a fresh cross-compiler works.
5553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554 # <limits.h> exists even on freestanding compilers.
5555 # On the NeXT, cc -E runs the code through the compiler's parser,
5556 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005557 cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h. */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005562/* end confdefs.h. */
5563#ifdef __STDC__
5564# include <limits.h>
5565#else
5566# include <assert.h>
5567#endif
5568 Syntax error
5569_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005570if { (ac_try="$ac_cpp conftest.$ac_ext"
5571case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } >/dev/null; then
5583 if test -s conftest.err; then
5584 ac_cpp_err=$ac_c_preproc_warn_flag
5585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5586 else
5587 ac_cpp_err=
5588 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005590 ac_cpp_err=yes
5591fi
5592if test -z "$ac_cpp_err"; then
5593 :
5594else
5595 echo "$as_me: failed program was:" >&5
5596sed 's/^/| /' conftest.$ac_ext >&5
5597
Reid Spencera773bd52006-08-04 18:18:08 +00005598 # Broken: fails on valid input.
5599continue
5600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005601
Reid Spencera773bd52006-08-04 18:18:08 +00005602rm -f conftest.err conftest.$ac_ext
5603
5604 # OK, works on sane cases. Now check whether nonexistent headers
5605 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005606 cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005611/* end confdefs.h. */
5612#include <ac_nonexistent.h>
5613_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005614if { (ac_try="$ac_cpp conftest.$ac_ext"
5615case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618esac
5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev/null; then
5627 if test -s conftest.err; then
5628 ac_cpp_err=$ac_c_preproc_warn_flag
5629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5630 else
5631 ac_cpp_err=
5632 fi
5633else
5634 ac_cpp_err=yes
5635fi
5636if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005637 # Broken: success on invalid input.
5638continue
5639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640 echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
Reid Spencera773bd52006-08-04 18:18:08 +00005643 # Passes both tests.
5644ac_preproc_ok=:
5645break
5646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005647
Reid Spencera773bd52006-08-04 18:18:08 +00005648rm -f conftest.err conftest.$ac_ext
5649
5650done
5651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005653if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005654 break
5655fi
5656
5657 done
5658 ac_cv_prog_CPP=$CPP
5659
5660fi
5661 CPP=$ac_cv_prog_CPP
5662else
5663 ac_cv_prog_CPP=$CPP
5664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005665{ echo "$as_me:$LINENO: result: $CPP" >&5
5666echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005667ac_preproc_ok=false
5668for ac_c_preproc_warn_flag in '' yes
5669do
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005681/* end confdefs.h. */
5682#ifdef __STDC__
5683# include <limits.h>
5684#else
5685# include <assert.h>
5686#endif
5687 Syntax error
5688_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005689if { (ac_try="$ac_cpp conftest.$ac_ext"
5690case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } >/dev/null; then
5702 if test -s conftest.err; then
5703 ac_cpp_err=$ac_c_preproc_warn_flag
5704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5705 else
5706 ac_cpp_err=
5707 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005709 ac_cpp_err=yes
5710fi
5711if test -z "$ac_cpp_err"; then
5712 :
5713else
5714 echo "$as_me: failed program was:" >&5
5715sed 's/^/| /' conftest.$ac_ext >&5
5716
Reid Spencera773bd52006-08-04 18:18:08 +00005717 # Broken: fails on valid input.
5718continue
5719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005720
Reid Spencera773bd52006-08-04 18:18:08 +00005721rm -f conftest.err conftest.$ac_ext
5722
5723 # OK, works on sane cases. Now check whether nonexistent headers
5724 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005725 cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h. */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005730/* end confdefs.h. */
5731#include <ac_nonexistent.h>
5732_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005733if { (ac_try="$ac_cpp conftest.$ac_ext"
5734case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737esac
5738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } >/dev/null; then
5746 if test -s conftest.err; then
5747 ac_cpp_err=$ac_c_preproc_warn_flag
5748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5749 else
5750 ac_cpp_err=
5751 fi
5752else
5753 ac_cpp_err=yes
5754fi
5755if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005756 # Broken: success on invalid input.
5757continue
5758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005759 echo "$as_me: failed program was:" >&5
5760sed 's/^/| /' conftest.$ac_ext >&5
5761
Reid Spencera773bd52006-08-04 18:18:08 +00005762 # Passes both tests.
5763ac_preproc_ok=:
5764break
5765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005766
Reid Spencera773bd52006-08-04 18:18:08 +00005767rm -f conftest.err conftest.$ac_ext
5768
5769done
5770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5771rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005772if $ac_preproc_ok; then
5773 :
Reid Spencera773bd52006-08-04 18:18:08 +00005774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005775 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5776See \`config.log' for more details." >&5
5777echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5778See \`config.log' for more details." >&2;}
5779 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005780fi
5781
5782ac_ext=c
5783ac_cpp='$CPP $CPPFLAGS'
5784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787
5788ac_ext=c
5789ac_cpp='$CPP $CPPFLAGS'
5790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793if test -n "$ac_tool_prefix"; then
5794 for ac_prog in gcc
5795 do
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800if test "${ac_cv_prog_CC+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005802else
5803 if test -n "$CC"; then
5804 ac_cv_prog_CC="$CC" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 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 +00005813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005815 break 2
5816 fi
5817done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818done
Reid Spencera773bd52006-08-04 18:18:08 +00005819IFS=$as_save_IFS
5820
5821fi
5822fi
5823CC=$ac_cv_prog_CC
5824if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825 { echo "$as_me:$LINENO: result: $CC" >&5
5826echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 { echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005830fi
5831
5832
5833 test -n "$CC" && break
5834 done
5835fi
5836if test -z "$CC"; then
5837 ac_ct_CC=$CC
5838 for ac_prog in gcc
5839do
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005846else
5847 if test -n "$ac_ct_CC"; then
5848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 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 +00005857 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005859 break 2
5860 fi
5861done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862done
Reid Spencera773bd52006-08-04 18:18:08 +00005863IFS=$as_save_IFS
5864
5865fi
5866fi
5867ac_ct_CC=$ac_cv_prog_ac_ct_CC
5868if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5870echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872 { echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005874fi
5875
5876
5877 test -n "$ac_ct_CC" && break
5878done
5879
5880 if test "x$ac_ct_CC" = x; then
5881 CC=""
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5886whose name does not start with the host triplet. If you think this
5887configuration is useful to you, please write to autoconf@gnu.org." >&5
5888echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5889whose name does not start with the host triplet. If you think this
5890configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005891ac_tool_warned=yes ;;
5892esac
5893 CC=$ac_ct_CC
5894 fi
5895fi
5896
5897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5899See \`config.log' for more details." >&5
5900echo "$as_me: error: no acceptable C compiler found in \$PATH
5901See \`config.log' for more details." >&2;}
5902 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005903
5904# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905echo "$as_me:$LINENO: checking for C compiler version" >&5
5906ac_compiler=`set X $ac_compile; echo $2`
5907{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005908case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005914 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }
5917{ (ac_try="$ac_compiler -v >&5"
5918case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compiler -v >&5") 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }
5927{ (ac_try="$ac_compiler -V >&5"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compiler -V >&5") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005938{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5939echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5940if test "${ac_cv_c_compiler_gnu+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005942else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005943 cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005948/* end confdefs.h. */
5949
5950int
5951main ()
5952{
5953#ifndef __GNUC__
5954 choke me
5955#endif
5956
5957 ;
5958 return 0;
5959}
5960_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005961rm -f conftest.$ac_objext
5962if { (ac_try="$ac_compile"
5963case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966esac
5967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5976 { (case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_try") 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; } &&
5985 { ac_try='test -s conftest.$ac_objext'
5986 { (case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989esac
5990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_try") 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005995 ac_compiler_gnu=yes
5996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005997 echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002
Reid Spencera773bd52006-08-04 18:18:08 +00006003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004ac_cv_c_compiler_gnu=$ac_compiler_gnu
6005
6006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006007{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6008echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6009GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006010ac_test_CFLAGS=${CFLAGS+set}
6011ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006012{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6013echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6014if test "${ac_cv_prog_cc_g+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006016else
6017 ac_save_c_werror_flag=$ac_c_werror_flag
6018 ac_c_werror_flag=yes
6019 ac_cv_prog_cc_g=no
6020 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006026/* end confdefs.h. */
6027
6028int
6029main ()
6030{
6031
6032 ;
6033 return 0;
6034}
6035_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036rm -f conftest.$ac_objext
6037if { (ac_try="$ac_compile"
6038case "(($ac_try" in
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6041esac
6042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6051 { (case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_try") 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064esac
6065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_try") 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006070 ac_cv_prog_cc_g=yes
6071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006072 echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075 CFLAGS=""
6076 cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006081/* end confdefs.h. */
6082
6083int
6084main ()
6085{
6086
6087 ;
6088 return 0;
6089}
6090_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006091rm -f conftest.$ac_objext
6092if { (ac_try="$ac_compile"
6093case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109esac
6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.$ac_objext'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 :
Torok Edwin871384f2010-01-26 08:50:50 +00006126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006127 echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006131 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006132 cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h. */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006137/* end confdefs.h. */
6138
6139int
6140main ()
6141{
6142
6143 ;
6144 return 0;
6145}
6146_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147rm -f conftest.$ac_objext
6148if { (ac_try="$ac_compile"
6149case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152esac
6153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_compile") 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6162 { (case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165esac
6166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_try") 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest.$ac_objext'
6172 { (case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
6176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_try") 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006181 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182else
6183 echo "$as_me: failed program was:" >&5
6184sed 's/^/| /' conftest.$ac_ext >&5
6185
6186
Reid Spencera773bd52006-08-04 18:18:08 +00006187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188
Reid Spencera773bd52006-08-04 18:18:08 +00006189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191
Reid Spencera773bd52006-08-04 18:18:08 +00006192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194
Reid Spencera773bd52006-08-04 18:18:08 +00006195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 ac_c_werror_flag=$ac_save_c_werror_flag
6197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6199echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006200if test "$ac_test_CFLAGS" = set; then
6201 CFLAGS=$ac_save_CFLAGS
6202elif test $ac_cv_prog_cc_g = yes; then
6203 if test "$GCC" = yes; then
6204 CFLAGS="-g -O2"
6205 else
6206 CFLAGS="-g"
6207 fi
6208else
6209 if test "$GCC" = yes; then
6210 CFLAGS="-O2"
6211 else
6212 CFLAGS=
6213 fi
6214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006215{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6216echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6217if test "${ac_cv_prog_cc_c89+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006219else
6220 ac_cv_prog_cc_c89=no
6221ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006227/* end confdefs.h. */
6228#include <stdarg.h>
6229#include <stdio.h>
6230#include <sys/types.h>
6231#include <sys/stat.h>
6232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6233struct buf { int x; };
6234FILE * (*rcsopen) (struct buf *, struct stat *, int);
6235static char *e (p, i)
6236 char **p;
6237 int i;
6238{
6239 return p[i];
6240}
6241static char *f (char * (*g) (char **, int), char **p, ...)
6242{
6243 char *s;
6244 va_list v;
6245 va_start (v,p);
6246 s = g (p, va_arg (v,int));
6247 va_end (v);
6248 return s;
6249}
6250
6251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6252 function prototypes and stuff, but not '\xHH' hex character constants.
6253 These don't provoke an error unfortunately, instead are silently treated
6254 as 'x'. The following induces an error, until -std is added to get
6255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6256 array size at least. It's necessary to write '\x00'==0 to get something
6257 that's true only with -std. */
6258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6259
6260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6261 inside strings and character constants. */
6262#define FOO(x) 'x'
6263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6264
6265int test (int i, double x);
6266struct s1 {int (*f) (int a);};
6267struct s2 {int (*f) (double a);};
6268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6269int argc;
6270char **argv;
6271int
6272main ()
6273{
6274return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6275 ;
6276 return 0;
6277}
6278_ACEOF
6279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6281do
6282 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283 rm -f conftest.$ac_objext
6284if { (ac_try="$ac_compile"
6285case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288esac
6289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6298 { (case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301esac
6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_try") 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006317 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006318else
6319 echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322
Reid Spencera773bd52006-08-04 18:18:08 +00006323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324
Reid Spencera773bd52006-08-04 18:18:08 +00006325rm -f core conftest.err conftest.$ac_objext
6326 test "x$ac_cv_prog_cc_c89" != "xno" && break
6327done
6328rm -f conftest.$ac_ext
6329CC=$ac_save_CC
6330
6331fi
6332# AC_CACHE_VAL
6333case "x$ac_cv_prog_cc_c89" in
6334 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335 { echo "$as_me:$LINENO: result: none needed" >&5
6336echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006337 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338 { echo "$as_me:$LINENO: result: unsupported" >&5
6339echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006340 *)
6341 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6343echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006344esac
6345
6346
6347ac_ext=c
6348ac_cpp='$CPP $CPPFLAGS'
6349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352
6353ac_ext=cpp
6354ac_cpp='$CXXCPP $CPPFLAGS'
6355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6358if test -z "$CXX"; then
6359 if test -n "$CCC"; then
6360 CXX=$CCC
6361 else
6362 if test -n "$ac_tool_prefix"; then
6363 for ac_prog in g++
6364 do
6365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6369if test "${ac_cv_prog_CXX+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006371else
6372 if test -n "$CXX"; then
6373 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006382 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006384 break 2
6385 fi
6386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387done
Reid Spencera773bd52006-08-04 18:18:08 +00006388IFS=$as_save_IFS
6389
6390fi
6391fi
6392CXX=$ac_cv_prog_CXX
6393if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394 { echo "$as_me:$LINENO: result: $CXX" >&5
6395echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 { echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006399fi
6400
6401
6402 test -n "$CXX" && break
6403 done
6404fi
6405if test -z "$CXX"; then
6406 ac_ct_CXX=$CXX
6407 for ac_prog in g++
6408do
6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
6410set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6413if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006415else
6416 if test -n "$ac_ct_CXX"; then
6417 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6418else
6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 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 +00006426 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006428 break 2
6429 fi
6430done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431done
Reid Spencera773bd52006-08-04 18:18:08 +00006432IFS=$as_save_IFS
6433
6434fi
6435fi
6436ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6437if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6439echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 { echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006443fi
6444
6445
6446 test -n "$ac_ct_CXX" && break
6447done
6448
6449 if test "x$ac_ct_CXX" = x; then
6450 CXX="g++"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6455whose name does not start with the host triplet. If you think this
6456configuration is useful to you, please write to autoconf@gnu.org." >&5
6457echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6458whose name does not start with the host triplet. If you think this
6459configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006460ac_tool_warned=yes ;;
6461esac
6462 CXX=$ac_ct_CXX
6463 fi
6464fi
6465
6466 fi
6467fi
6468# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006469echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6470ac_compiler=`set X $ac_compile; echo $2`
6471{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006472case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006478 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }
6481{ (ac_try="$ac_compiler -v >&5"
6482case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485esac
6486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compiler -v >&5") 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }
6491{ (ac_try="$ac_compiler -V >&5"
6492case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495esac
6496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_compiler -V >&5") 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6503echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6504if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006506else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507 cat >conftest.$ac_ext <<_ACEOF
6508/* confdefs.h. */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006512/* end confdefs.h. */
6513
6514int
6515main ()
6516{
6517#ifndef __GNUC__
6518 choke me
6519#endif
6520
6521 ;
6522 return 0;
6523}
6524_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006525rm -f conftest.$ac_objext
6526if { (ac_try="$ac_compile"
6527case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530esac
6531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_compile") 2>conftest.er1
6533 ac_status=$?
6534 grep -v '^ *+' conftest.er1 >conftest.err
6535 rm -f conftest.er1
6536 cat conftest.err >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6540 { (case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543esac
6544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_try") 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try='test -s conftest.$ac_objext'
6550 { (case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553esac
6554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_try") 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006559 ac_compiler_gnu=yes
6560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006561 echo "$as_me: failed program was:" >&5
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566
Reid Spencera773bd52006-08-04 18:18:08 +00006567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6569
6570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006571{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6572echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6573GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006574ac_test_CXXFLAGS=${CXXFLAGS+set}
6575ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006576{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6577echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6578if test "${ac_cv_prog_cxx_g+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006580else
6581 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6582 ac_cxx_werror_flag=yes
6583 ac_cv_prog_cxx_g=no
6584 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585 cat >conftest.$ac_ext <<_ACEOF
6586/* confdefs.h. */
6587_ACEOF
6588cat confdefs.h >>conftest.$ac_ext
6589cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006590/* end confdefs.h. */
6591
6592int
6593main ()
6594{
6595
6596 ;
6597 return 0;
6598}
6599_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600rm -f conftest.$ac_objext
6601if { (ac_try="$ac_compile"
6602case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6605esac
6606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6615 { (case "(($ac_try" in
6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6618esac
6619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_try") 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest.$ac_objext'
6625 { (case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628esac
6629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_try") 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006634 ac_cv_prog_cxx_g=yes
6635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636 echo "$as_me: failed program was:" >&5
6637sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 CXXFLAGS=""
6640 cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h. */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006645/* end confdefs.h. */
6646
6647int
6648main ()
6649{
6650
6651 ;
6652 return 0;
6653}
6654_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655rm -f conftest.$ac_objext
6656if { (ac_try="$ac_compile"
6657case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6660esac
6661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_compile") 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6670 { (case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673esac
6674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_try") 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (case "(($ac_try" in
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6683esac
6684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_try") 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 :
Torok Edwin871384f2010-01-26 08:50:50 +00006690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691 echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006695 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696 cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006701/* end confdefs.h. */
6702
6703int
6704main ()
6705{
6706
6707 ;
6708 return 0;
6709}
6710_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711rm -f conftest.$ac_objext
6712if { (ac_try="$ac_compile"
6713case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716esac
6717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6726 { (case "(($ac_try" in
6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728 *) ac_try_echo=$ac_try;;
6729esac
6730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6731 (eval "$ac_try") 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; } &&
6735 { ac_try='test -s conftest.$ac_objext'
6736 { (case "(($ac_try" in
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6739esac
6740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_try") 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006745 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006746else
6747 echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750
Reid Spencera773bd52006-08-04 18:18:08 +00006751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752
Reid Spencera773bd52006-08-04 18:18:08 +00006753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755
Reid Spencera773bd52006-08-04 18:18:08 +00006756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758
Reid Spencera773bd52006-08-04 18:18:08 +00006759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6763echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006764if test "$ac_test_CXXFLAGS" = set; then
6765 CXXFLAGS=$ac_save_CXXFLAGS
6766elif test $ac_cv_prog_cxx_g = yes; then
6767 if test "$GXX" = yes; then
6768 CXXFLAGS="-g -O2"
6769 else
6770 CXXFLAGS="-g"
6771 fi
6772else
6773 if test "$GXX" = yes; then
6774 CXXFLAGS="-O2"
6775 else
6776 CXXFLAGS=
6777 fi
6778fi
6779ac_ext=c
6780ac_cpp='$CPP $CPPFLAGS'
6781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784
Reid Spencera773bd52006-08-04 18:18:08 +00006785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6787echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6788if test "${lt_cv_path_NM+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006790else
6791 if test -n "$NM"; then
6792 # Let the user override the test.
6793 lt_cv_path_NM="$NM"
6794else
6795 lt_nm_to_check="${ac_tool_prefix}nm"
6796 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6797 lt_nm_to_check="$lt_nm_to_check nm"
6798 fi
6799 for lt_tmp_nm in $lt_nm_to_check; do
6800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6801 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6802 IFS="$lt_save_ifs"
6803 test -z "$ac_dir" && ac_dir=.
6804 tmp_nm="$ac_dir/$lt_tmp_nm"
6805 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6806 # Check to see if the nm accepts a BSD-compat flag.
6807 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6808 # nm: unknown option "B" ignored
6809 # Tru64's nm complains that /dev/null is an invalid object file
6810 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6811 */dev/null* | *'Invalid file or object type'*)
6812 lt_cv_path_NM="$tmp_nm -B"
6813 break
6814 ;;
6815 *)
6816 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6817 */dev/null*)
6818 lt_cv_path_NM="$tmp_nm -p"
6819 break
6820 ;;
6821 *)
6822 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6823 continue # so that we can try to find one that supports BSD flags
6824 ;;
6825 esac
6826 ;;
6827 esac
6828 fi
6829 done
6830 IFS="$lt_save_ifs"
6831 done
6832 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6833fi
6834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006835{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6836echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006837NM="$lt_cv_path_NM"
6838
6839
6840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841{ echo "$as_me:$LINENO: checking for GNU make" >&5
6842echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6843if test "${llvm_cv_gnu_make_command+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006845else
6846 llvm_cv_gnu_make_command=''
6847 for a in "$MAKE" make gmake gnumake ; do
6848 if test -z "$a" ; then continue ; fi ;
6849 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6850 then
6851 llvm_cv_gnu_make_command=$a ;
6852 break;
6853 fi
6854 done
6855fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6857echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006858 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6859 ifGNUmake='' ;
6860 else
6861 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6863echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006864 fi
6865
6866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6868echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006869LN_S=$as_ln_s
6870if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871 { echo "$as_me:$LINENO: result: yes" >&5
6872echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006874 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6875echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006876fi
6877
6878# Extract the first word of "cmp", so it can be a program name with args.
6879set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882if test "${ac_cv_path_CMP+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006884else
6885 case $CMP in
6886 [\\/]* | ?:[\\/]*)
6887 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6888 ;;
6889 *)
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 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 +00006897 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006899 break 2
6900 fi
6901done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006902done
Reid Spencera773bd52006-08-04 18:18:08 +00006903IFS=$as_save_IFS
6904
6905 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6906 ;;
6907esac
6908fi
6909CMP=$ac_cv_path_CMP
6910if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006911 { echo "$as_me:$LINENO: result: $CMP" >&5
6912echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006913else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006914 { echo "$as_me:$LINENO: result: no" >&5
6915echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006916fi
6917
6918
6919# Extract the first word of "cp", so it can be a program name with args.
6920set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923if test "${ac_cv_path_CP+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006925else
6926 case $CP in
6927 [\\/]* | ?:[\\/]*)
6928 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6929 ;;
6930 *)
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006938 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006940 break 2
6941 fi
6942done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943done
Reid Spencera773bd52006-08-04 18:18:08 +00006944IFS=$as_save_IFS
6945
6946 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6947 ;;
6948esac
6949fi
6950CP=$ac_cv_path_CP
6951if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006952 { echo "$as_me:$LINENO: result: $CP" >&5
6953echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955 { echo "$as_me:$LINENO: result: no" >&5
6956echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006957fi
6958
6959
6960# Extract the first word of "date", so it can be a program name with args.
6961set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964if test "${ac_cv_path_DATE+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006966else
6967 case $DATE in
6968 [\\/]* | ?:[\\/]*)
6969 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6970 ;;
6971 *)
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 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 +00006979 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006981 break 2
6982 fi
6983done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006984done
Reid Spencera773bd52006-08-04 18:18:08 +00006985IFS=$as_save_IFS
6986
6987 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6988 ;;
6989esac
6990fi
6991DATE=$ac_cv_path_DATE
6992if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006993 { echo "$as_me:$LINENO: result: $DATE" >&5
6994echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006996 { echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006998fi
6999
7000
7001# Extract the first word of "find", so it can be a program name with args.
7002set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005if test "${ac_cv_path_FIND+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007007else
7008 case $FIND in
7009 [\\/]* | ?:[\\/]*)
7010 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7011 ;;
7012 *)
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 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 +00007020 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007022 break 2
7023 fi
7024done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025done
Reid Spencera773bd52006-08-04 18:18:08 +00007026IFS=$as_save_IFS
7027
7028 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7029 ;;
7030esac
7031fi
7032FIND=$ac_cv_path_FIND
7033if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034 { echo "$as_me:$LINENO: result: $FIND" >&5
7035echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007036else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 { echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007039fi
7040
7041
7042# Extract the first word of "grep", so it can be a program name with args.
7043set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046if test "${ac_cv_path_GREP+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007048else
7049 case $GREP in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7052 ;;
7053 *)
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 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 +00007061 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007063 break 2
7064 fi
7065done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007066done
Reid Spencera773bd52006-08-04 18:18:08 +00007067IFS=$as_save_IFS
7068
7069 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7070 ;;
7071esac
7072fi
7073GREP=$ac_cv_path_GREP
7074if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007075 { echo "$as_me:$LINENO: result: $GREP" >&5
7076echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007078 { echo "$as_me:$LINENO: result: no" >&5
7079echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007080fi
7081
7082
7083# Extract the first word of "mkdir", so it can be a program name with args.
7084set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087if test "${ac_cv_path_MKDIR+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007089else
7090 case $MKDIR in
7091 [\\/]* | ?:[\\/]*)
7092 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7093 ;;
7094 *)
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 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 +00007102 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007104 break 2
7105 fi
7106done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007107done
Reid Spencera773bd52006-08-04 18:18:08 +00007108IFS=$as_save_IFS
7109
7110 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7111 ;;
7112esac
7113fi
7114MKDIR=$ac_cv_path_MKDIR
7115if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007116 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7117echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007119 { echo "$as_me:$LINENO: result: no" >&5
7120echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007121fi
7122
7123
7124# Extract the first word of "mv", so it can be a program name with args.
7125set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128if test "${ac_cv_path_MV+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007130else
7131 case $MV in
7132 [\\/]* | ?:[\\/]*)
7133 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7134 ;;
7135 *)
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 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 +00007143 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007145 break 2
7146 fi
7147done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007148done
Reid Spencera773bd52006-08-04 18:18:08 +00007149IFS=$as_save_IFS
7150
7151 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7152 ;;
7153esac
7154fi
7155MV=$ac_cv_path_MV
7156if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 { echo "$as_me:$LINENO: result: $MV" >&5
7158echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160 { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007162fi
7163
7164
7165if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7167set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170if test "${ac_cv_prog_RANLIB+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007172else
7173 if test -n "$RANLIB"; then
7174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7175else
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 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 +00007183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007185 break 2
7186 fi
7187done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188done
Reid Spencera773bd52006-08-04 18:18:08 +00007189IFS=$as_save_IFS
7190
7191fi
7192fi
7193RANLIB=$ac_cv_prog_RANLIB
7194if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007195 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7196echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198 { echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007200fi
7201
7202
7203fi
7204if test -z "$ac_cv_prog_RANLIB"; then
7205 ac_ct_RANLIB=$RANLIB
7206 # Extract the first word of "ranlib", so it can be a program name with args.
7207set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007212else
7213 if test -n "$ac_ct_RANLIB"; then
7214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 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 +00007223 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007225 break 2
7226 fi
7227done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007228done
Reid Spencera773bd52006-08-04 18:18:08 +00007229IFS=$as_save_IFS
7230
7231fi
7232fi
7233ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7234if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7236echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007240fi
7241
7242 if test "x$ac_ct_RANLIB" = x; then
7243 RANLIB=":"
7244 else
7245 case $cross_compiling:$ac_tool_warned in
7246yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7248whose name does not start with the host triplet. If you think this
7249configuration is useful to you, please write to autoconf@gnu.org." >&5
7250echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7251whose name does not start with the host triplet. If you think this
7252configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007253ac_tool_warned=yes ;;
7254esac
7255 RANLIB=$ac_ct_RANLIB
7256 fi
7257else
7258 RANLIB="$ac_cv_prog_RANLIB"
7259fi
7260
Torok Edwin871384f2010-01-26 08:50:50 +00007261if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7263set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_prog_AR+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007268else
7269 if test -n "$AR"; then
7270 ac_cv_prog_AR="$AR" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 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 +00007279 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007281 break 2
7282 fi
7283done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284done
Torok Edwin871384f2010-01-26 08:50:50 +00007285IFS=$as_save_IFS
7286
7287fi
7288fi
7289AR=$ac_cv_prog_AR
7290if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291 { echo "$as_me:$LINENO: result: $AR" >&5
7292echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294 { echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007296fi
7297
7298
7299fi
7300if test -z "$ac_cv_prog_AR"; then
7301 ac_ct_AR=$AR
7302 # Extract the first word of "ar", so it can be a program name with args.
7303set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007308else
7309 if test -n "$ac_ct_AR"; then
7310 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 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 +00007319 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007321 break 2
7322 fi
7323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324done
Torok Edwin871384f2010-01-26 08:50:50 +00007325IFS=$as_save_IFS
7326
7327fi
7328fi
7329ac_ct_AR=$ac_cv_prog_ac_ct_AR
7330if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7332echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334 { echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007336fi
7337
7338 if test "x$ac_ct_AR" = x; then
7339 AR="false"
7340 else
7341 case $cross_compiling:$ac_tool_warned in
7342yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7344whose name does not start with the host triplet. If you think this
7345configuration is useful to you, please write to autoconf@gnu.org." >&5
7346echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7347whose name does not start with the host triplet. If you think this
7348configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007349ac_tool_warned=yes ;;
7350esac
7351 AR=$ac_ct_AR
7352 fi
7353else
7354 AR="$ac_cv_prog_AR"
7355fi
7356
Reid Spencera773bd52006-08-04 18:18:08 +00007357# Extract the first word of "rm", so it can be a program name with args.
7358set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361if test "${ac_cv_path_RM+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007363else
7364 case $RM in
7365 [\\/]* | ?:[\\/]*)
7366 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7367 ;;
7368 *)
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 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 +00007376 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007378 break 2
7379 fi
7380done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381done
Reid Spencera773bd52006-08-04 18:18:08 +00007382IFS=$as_save_IFS
7383
7384 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7385 ;;
7386esac
7387fi
7388RM=$ac_cv_path_RM
7389if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007390 { echo "$as_me:$LINENO: result: $RM" >&5
7391echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393 { echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007395fi
7396
7397
7398# Extract the first word of "sed", so it can be a program name with args.
7399set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402if test "${ac_cv_path_SED+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007404else
7405 case $SED in
7406 [\\/]* | ?:[\\/]*)
7407 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7408 ;;
7409 *)
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 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 +00007417 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007419 break 2
7420 fi
7421done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422done
Reid Spencera773bd52006-08-04 18:18:08 +00007423IFS=$as_save_IFS
7424
7425 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7426 ;;
7427esac
7428fi
7429SED=$ac_cv_path_SED
7430if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007431 { echo "$as_me:$LINENO: result: $SED" >&5
7432echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434 { echo "$as_me:$LINENO: result: no" >&5
7435echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007436fi
7437
7438
7439# Extract the first word of "tar", so it can be a program name with args.
7440set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7443if test "${ac_cv_path_TAR+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007445else
7446 case $TAR in
7447 [\\/]* | ?:[\\/]*)
7448 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7449 ;;
7450 *)
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 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 +00007458 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007460 break 2
7461 fi
7462done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007463done
Reid Spencera773bd52006-08-04 18:18:08 +00007464IFS=$as_save_IFS
7465
7466 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7467 ;;
7468esac
7469fi
7470TAR=$ac_cv_path_TAR
7471if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472 { echo "$as_me:$LINENO: result: $TAR" >&5
7473echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475 { echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007477fi
7478
7479
7480# Extract the first word of "pwd", so it can be a program name with args.
7481set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484if test "${ac_cv_path_BINPWD+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007486else
7487 case $BINPWD in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7490 ;;
7491 *)
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 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 +00007499 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007501 break 2
7502 fi
7503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504done
Reid Spencera773bd52006-08-04 18:18:08 +00007505IFS=$as_save_IFS
7506
7507 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7508 ;;
7509esac
7510fi
7511BINPWD=$ac_cv_path_BINPWD
7512if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7514echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007518fi
7519
7520
7521
7522# Extract the first word of "Graphviz", so it can be a program name with args.
7523set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007528else
7529 case $GRAPHVIZ in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 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 +00007541 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007543 break 2
7544 fi
7545done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546done
Reid Spencera773bd52006-08-04 18:18:08 +00007547IFS=$as_save_IFS
7548
7549 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7550 ;;
7551esac
7552fi
7553GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7554if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7556echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007558 { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007560fi
7561
7562
7563if test "$GRAPHVIZ" != "echo Graphviz" ; then
7564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007565cat >>confdefs.h <<\_ACEOF
7566#define HAVE_GRAPHVIZ 1
7567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007568
Jeff Cohen28783c32007-01-12 18:22:38 +00007569 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007570 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7571 fi
7572
7573cat >>confdefs.h <<_ACEOF
7574#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7575_ACEOF
7576
7577fi
7578# Extract the first word of "dot", so it can be a program name with args.
7579set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582if test "${ac_cv_path_DOT+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007584else
7585 case $DOT in
7586 [\\/]* | ?:[\\/]*)
7587 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7588 ;;
7589 *)
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 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 +00007597 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007599 break 2
7600 fi
7601done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602done
Reid Spencera773bd52006-08-04 18:18:08 +00007603IFS=$as_save_IFS
7604
7605 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7606 ;;
7607esac
7608fi
7609DOT=$ac_cv_path_DOT
7610if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611 { echo "$as_me:$LINENO: result: $DOT" >&5
7612echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007614 { echo "$as_me:$LINENO: result: no" >&5
7615echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007616fi
7617
7618
7619if test "$DOT" != "echo dot" ; then
7620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007621cat >>confdefs.h <<\_ACEOF
7622#define HAVE_DOT 1
7623_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007624
Jeff Cohen28783c32007-01-12 18:22:38 +00007625 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007626 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7627 fi
7628
7629cat >>confdefs.h <<_ACEOF
7630#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7631_ACEOF
7632
7633fi
David Greenef0b9eff2009-07-09 17:16:26 +00007634# Extract the first word of "fdp", so it can be a program name with args.
7635set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638if test "${ac_cv_path_FDP+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007640else
7641 case $FDP in
7642 [\\/]* | ?:[\\/]*)
7643 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7644 ;;
7645 *)
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 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 +00007653 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007655 break 2
7656 fi
7657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658done
David Greenef0b9eff2009-07-09 17:16:26 +00007659IFS=$as_save_IFS
7660
7661 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7662 ;;
7663esac
7664fi
7665FDP=$ac_cv_path_FDP
7666if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667 { echo "$as_me:$LINENO: result: $FDP" >&5
7668echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007670 { echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007672fi
7673
7674
7675if test "$FDP" != "echo fdp" ; then
7676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677cat >>confdefs.h <<\_ACEOF
7678#define HAVE_FDP 1
7679_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007680
7681 if test "$llvm_cv_os_type" = "MingW" ; then
7682 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7683 fi
7684
7685cat >>confdefs.h <<_ACEOF
7686#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7687_ACEOF
7688
7689fi
7690# Extract the first word of "neato", so it can be a program name with args.
7691set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694if test "${ac_cv_path_NEATO+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007696else
7697 case $NEATO in
7698 [\\/]* | ?:[\\/]*)
7699 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7700 ;;
7701 *)
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703for as_dir in $PATH
7704do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 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 +00007709 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007711 break 2
7712 fi
7713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714done
David Greenef0b9eff2009-07-09 17:16:26 +00007715IFS=$as_save_IFS
7716
7717 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7718 ;;
7719esac
7720fi
7721NEATO=$ac_cv_path_NEATO
7722if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723 { echo "$as_me:$LINENO: result: $NEATO" >&5
7724echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007726 { echo "$as_me:$LINENO: result: no" >&5
7727echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007728fi
7729
7730
7731if test "$NEATO" != "echo neato" ; then
7732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733cat >>confdefs.h <<\_ACEOF
7734#define HAVE_NEATO 1
7735_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007736
7737 if test "$llvm_cv_os_type" = "MingW" ; then
7738 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7739 fi
7740
7741cat >>confdefs.h <<_ACEOF
7742#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7743_ACEOF
7744
7745fi
7746# Extract the first word of "twopi", so it can be a program name with args.
7747set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7750if test "${ac_cv_path_TWOPI+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007752else
7753 case $TWOPI in
7754 [\\/]* | ?:[\\/]*)
7755 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7756 ;;
7757 *)
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759for as_dir in $PATH
7760do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 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 +00007765 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007767 break 2
7768 fi
7769done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007770done
David Greenef0b9eff2009-07-09 17:16:26 +00007771IFS=$as_save_IFS
7772
7773 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7774 ;;
7775esac
7776fi
7777TWOPI=$ac_cv_path_TWOPI
7778if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007779 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7780echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782 { echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007784fi
7785
7786
7787if test "$TWOPI" != "echo twopi" ; then
7788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789cat >>confdefs.h <<\_ACEOF
7790#define HAVE_TWOPI 1
7791_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007792
7793 if test "$llvm_cv_os_type" = "MingW" ; then
7794 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7795 fi
7796
7797cat >>confdefs.h <<_ACEOF
7798#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7799_ACEOF
7800
7801fi
7802# Extract the first word of "circo", so it can be a program name with args.
7803set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806if test "${ac_cv_path_CIRCO+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007808else
7809 case $CIRCO in
7810 [\\/]* | ?:[\\/]*)
7811 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7812 ;;
7813 *)
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 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 +00007821 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007823 break 2
7824 fi
7825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826done
David Greenef0b9eff2009-07-09 17:16:26 +00007827IFS=$as_save_IFS
7828
7829 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7830 ;;
7831esac
7832fi
7833CIRCO=$ac_cv_path_CIRCO
7834if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007835 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7836echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007838 { echo "$as_me:$LINENO: result: no" >&5
7839echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007840fi
7841
7842
7843if test "$CIRCO" != "echo circo" ; then
7844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007845cat >>confdefs.h <<\_ACEOF
7846#define HAVE_CIRCO 1
7847_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007848
7849 if test "$llvm_cv_os_type" = "MingW" ; then
7850 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7851 fi
7852
7853cat >>confdefs.h <<_ACEOF
7854#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7855_ACEOF
7856
7857fi
Reid Spencera773bd52006-08-04 18:18:08 +00007858for ac_prog in gv gsview32
7859do
7860 # Extract the first word of "$ac_prog", so it can be a program name with args.
7861set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864if test "${ac_cv_path_GV+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007866else
7867 case $GV in
7868 [\\/]* | ?:[\\/]*)
7869 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7870 ;;
7871 *)
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 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 +00007879 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007881 break 2
7882 fi
7883done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884done
Reid Spencera773bd52006-08-04 18:18:08 +00007885IFS=$as_save_IFS
7886
7887 ;;
7888esac
7889fi
7890GV=$ac_cv_path_GV
7891if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007892 { echo "$as_me:$LINENO: result: $GV" >&5
7893echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895 { echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007897fi
7898
7899
7900 test -n "$GV" && break
7901done
7902test -n "$GV" || GV="echo gv"
7903
7904if test "$GV" != "echo gv" ; then
7905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906cat >>confdefs.h <<\_ACEOF
7907#define HAVE_GV 1
7908_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007909
Jeff Cohen28783c32007-01-12 18:22:38 +00007910 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007911 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7912 fi
7913
7914cat >>confdefs.h <<_ACEOF
7915#define LLVM_PATH_GV "$GV${EXEEXT}"
7916_ACEOF
7917
7918fi
7919# Extract the first word of "dotty", so it can be a program name with args.
7920set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923if test "${ac_cv_path_DOTTY+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007925else
7926 case $DOTTY in
7927 [\\/]* | ?:[\\/]*)
7928 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7929 ;;
7930 *)
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 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 +00007938 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007940 break 2
7941 fi
7942done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943done
Reid Spencera773bd52006-08-04 18:18:08 +00007944IFS=$as_save_IFS
7945
7946 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7947 ;;
7948esac
7949fi
7950DOTTY=$ac_cv_path_DOTTY
7951if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007952 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7953echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007955 { echo "$as_me:$LINENO: result: no" >&5
7956echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007957fi
7958
7959
7960if test "$DOTTY" != "echo dotty" ; then
7961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007962cat >>confdefs.h <<\_ACEOF
7963#define HAVE_DOTTY 1
7964_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007965
Jeff Cohen28783c32007-01-12 18:22:38 +00007966 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007967 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7968 fi
7969
7970cat >>confdefs.h <<_ACEOF
7971#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7972_ACEOF
7973
7974fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007975# Extract the first word of "xdot.py", so it can be a program name with args.
7976set dummy xdot.py; ac_word=$2
7977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7979if test "${ac_cv_path_XDOT_PY+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982 case $XDOT_PY in
7983 [\\/]* | ?:[\\/]*)
7984 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7985 ;;
7986 *)
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988for as_dir in $PATH
7989do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998done
7999done
8000IFS=$as_save_IFS
8001
8002 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8003 ;;
8004esac
8005fi
8006XDOT_PY=$ac_cv_path_XDOT_PY
8007if test -n "$XDOT_PY"; then
8008 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8009echo "${ECHO_T}$XDOT_PY" >&6; }
8010else
8011 { echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6; }
8013fi
8014
8015
8016if test "$XDOT_PY" != "echo xdot.py" ; then
8017
8018cat >>confdefs.h <<\_ACEOF
8019#define HAVE_XDOT_PY 1
8020_ACEOF
8021
8022 if test "$llvm_cv_os_type" = "MingW" ; then
8023 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8024 fi
8025
8026cat >>confdefs.h <<_ACEOF
8027#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8028_ACEOF
8029
8030fi
Reid Spencera773bd52006-08-04 18:18:08 +00008031
8032
8033# Extract the first word of "perl", so it can be a program name with args.
8034set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8037if test "${ac_cv_path_PERL+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008039else
8040 case $PERL in
8041 [\\/]* | ?:[\\/]*)
8042 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8043 ;;
8044 *)
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046for as_dir in $PATH
8047do
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 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 +00008052 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008054 break 2
8055 fi
8056done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008057done
Reid Spencera773bd52006-08-04 18:18:08 +00008058IFS=$as_save_IFS
8059
8060 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8061 ;;
8062esac
8063fi
8064PERL=$ac_cv_path_PERL
8065if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008066 { echo "$as_me:$LINENO: result: $PERL" >&5
8067echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069 { echo "$as_me:$LINENO: result: no" >&5
8070echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008071fi
8072
8073
8074if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008075 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8076echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008077 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078 { echo "$as_me:$LINENO: result: yes" >&5
8079echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008080 else
8081 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008082 { echo "$as_me:$LINENO: result: not found" >&5
8083echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008084 fi
8085fi
8086
8087
8088if test x"$PERL" = xnone; then
8089 HAVE_PERL=0
8090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8092echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8093 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008094else
8095 HAVE_PERL=1
8096
8097fi
8098
8099# Find a good install program. We prefer a C program (faster),
8100# so one script is as good as another. But avoid the broken or
8101# incompatible versions:
8102# SysV /etc/install, /usr/sbin/install
8103# SunOS /usr/etc/install
8104# IRIX /sbin/install
8105# AIX /bin/install
8106# AmigaOS /C/install, which installs bootblocks on floppy discs
8107# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8108# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8109# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8110# OS/2's system install, which has a completely different semantic
8111# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8113echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008114if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008115if test "${ac_cv_path_install+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008117else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008123 # Account for people who put trailing slashes in PATH elements.
8124case $as_dir/ in
8125 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008126 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008128 /usr/ucb/* ) ;;
8129 *)
8130 # OSF1 and SCO ODT 3.0 have their own names for install.
8131 # Don't use installbsd from OSF since it installs stuff as root
8132 # by default.
8133 for ac_prog in ginstall scoinst install; do
8134 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135 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 +00008136 if test $ac_prog = install &&
8137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8138 # AIX install. It has an incompatible calling convention.
8139 :
8140 elif test $ac_prog = install &&
8141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8142 # program-specific install script used by HP pwplus--don't use.
8143 :
8144 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8146 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008147 fi
8148 fi
8149 done
8150 done
8151 ;;
8152esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153done
Reid Spencera773bd52006-08-04 18:18:08 +00008154IFS=$as_save_IFS
8155
8156
8157fi
8158 if test "${ac_cv_path_install+set}" = set; then
8159 INSTALL=$ac_cv_path_install
8160 else
8161 # As a last resort, use the slow shell script. Don't cache a
8162 # value for INSTALL within a source directory, because that will
8163 # break other packages using the cache if that directory is
8164 # removed, or if the value is a relative name.
8165 INSTALL=$ac_install_sh
8166 fi
8167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008168{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8169echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008170
8171# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8172# It thinks the first close brace ends the variable substitution.
8173test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8174
8175test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8176
8177test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8178
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008179case "$INSTALL" in
8180 [\\/$]* | ?:[\\/]* ) ;;
8181 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8182esac
Reid Spencera773bd52006-08-04 18:18:08 +00008183
8184# Extract the first word of "bzip2", so it can be a program name with args.
8185set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8188if test "${ac_cv_path_BZIP2+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008190else
8191 case $BZIP2 in
8192 [\\/]* | ?:[\\/]*)
8193 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8194 ;;
8195 *)
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 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 +00008203 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008205 break 2
8206 fi
8207done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008208done
Reid Spencera773bd52006-08-04 18:18:08 +00008209IFS=$as_save_IFS
8210
Reid Spencera773bd52006-08-04 18:18:08 +00008211 ;;
8212esac
8213fi
8214BZIP2=$ac_cv_path_BZIP2
8215if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8217echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008219 { echo "$as_me:$LINENO: result: no" >&5
8220echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008221fi
8222
8223
mike-m68cb3192010-05-06 23:45:43 +00008224# Extract the first word of "cat", so it can be a program name with args.
8225set dummy cat; ac_word=$2
8226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8228if test "${ac_cv_path_CAT+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230else
8231 case $CAT in
8232 [\\/]* | ?:[\\/]*)
8233 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8234 ;;
8235 *)
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247done
8248done
8249IFS=$as_save_IFS
8250
8251 ;;
8252esac
8253fi
8254CAT=$ac_cv_path_CAT
8255if test -n "$CAT"; then
8256 { echo "$as_me:$LINENO: result: $CAT" >&5
8257echo "${ECHO_T}$CAT" >&6; }
8258else
8259 { echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6; }
8261fi
8262
8263
Reid Spencera773bd52006-08-04 18:18:08 +00008264# Extract the first word of "doxygen", so it can be a program name with args.
8265set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8268if test "${ac_cv_path_DOXYGEN+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008270else
8271 case $DOXYGEN in
8272 [\\/]* | ?:[\\/]*)
8273 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8274 ;;
8275 *)
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277for as_dir in $PATH
8278do
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 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 +00008283 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008285 break 2
8286 fi
8287done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008288done
Reid Spencera773bd52006-08-04 18:18:08 +00008289IFS=$as_save_IFS
8290
Reid Spencera773bd52006-08-04 18:18:08 +00008291 ;;
8292esac
8293fi
8294DOXYGEN=$ac_cv_path_DOXYGEN
8295if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8297echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008299 { echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008301fi
8302
8303
Reid Spencera773bd52006-08-04 18:18:08 +00008304# Extract the first word of "groff", so it can be a program name with args.
8305set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308if test "${ac_cv_path_GROFF+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008310else
8311 case $GROFF in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8314 ;;
8315 *)
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317for as_dir in $PATH
8318do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 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 +00008323 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008325 break 2
8326 fi
8327done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328done
Reid Spencera773bd52006-08-04 18:18:08 +00008329IFS=$as_save_IFS
8330
Reid Spencera773bd52006-08-04 18:18:08 +00008331 ;;
8332esac
8333fi
8334GROFF=$ac_cv_path_GROFF
8335if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336 { echo "$as_me:$LINENO: result: $GROFF" >&5
8337echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008339 { echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008341fi
8342
8343
8344# Extract the first word of "gzip", so it can be a program name with args.
8345set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00008348if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008350else
Eric Christopher031d3072010-12-10 01:31:51 +00008351 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00008352 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00008353 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00008354 ;;
8355 *)
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357for as_dir in $PATH
8358do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 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 +00008363 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008365 break 2
8366 fi
8367done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368done
Reid Spencera773bd52006-08-04 18:18:08 +00008369IFS=$as_save_IFS
8370
Reid Spencera773bd52006-08-04 18:18:08 +00008371 ;;
8372esac
8373fi
Eric Christopher031d3072010-12-10 01:31:51 +00008374GZIPBIN=$ac_cv_path_GZIPBIN
8375if test -n "$GZIPBIN"; then
8376 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8377echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008378else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379 { echo "$as_me:$LINENO: result: no" >&5
8380echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008381fi
8382
8383
8384# Extract the first word of "pod2html", so it can be a program name with args.
8385set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8388if test "${ac_cv_path_POD2HTML+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008390else
8391 case $POD2HTML in
8392 [\\/]* | ?:[\\/]*)
8393 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8394 ;;
8395 *)
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 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 +00008403 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008405 break 2
8406 fi
8407done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008408done
Reid Spencera773bd52006-08-04 18:18:08 +00008409IFS=$as_save_IFS
8410
Reid Spencera773bd52006-08-04 18:18:08 +00008411 ;;
8412esac
8413fi
8414POD2HTML=$ac_cv_path_POD2HTML
8415if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8417echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008419 { echo "$as_me:$LINENO: result: no" >&5
8420echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008421fi
8422
8423
8424# Extract the first word of "pod2man", so it can be a program name with args.
8425set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8428if test "${ac_cv_path_POD2MAN+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008430else
8431 case $POD2MAN in
8432 [\\/]* | ?:[\\/]*)
8433 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8434 ;;
8435 *)
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437for as_dir in $PATH
8438do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 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 +00008443 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008445 break 2
8446 fi
8447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008448done
Reid Spencera773bd52006-08-04 18:18:08 +00008449IFS=$as_save_IFS
8450
Reid Spencera773bd52006-08-04 18:18:08 +00008451 ;;
8452esac
8453fi
8454POD2MAN=$ac_cv_path_POD2MAN
8455if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8457echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459 { echo "$as_me:$LINENO: result: no" >&5
8460echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008461fi
8462
8463
mike-m68cb3192010-05-06 23:45:43 +00008464# Extract the first word of "pdfroff", so it can be a program name with args.
8465set dummy pdfroff; ac_word=$2
8466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8468if test "${ac_cv_path_PDFROFF+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470else
8471 case $PDFROFF in
8472 [\\/]* | ?:[\\/]*)
8473 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8474 ;;
8475 *)
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487done
8488done
8489IFS=$as_save_IFS
8490
8491 ;;
8492esac
8493fi
8494PDFROFF=$ac_cv_path_PDFROFF
8495if test -n "$PDFROFF"; then
8496 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8497echo "${ECHO_T}$PDFROFF" >&6; }
8498else
8499 { echo "$as_me:$LINENO: result: no" >&5
8500echo "${ECHO_T}no" >&6; }
8501fi
8502
8503
Reid Spencera773bd52006-08-04 18:18:08 +00008504# Extract the first word of "runtest", so it can be a program name with args.
8505set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8508if test "${ac_cv_path_RUNTEST+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008510else
8511 case $RUNTEST in
8512 [\\/]* | ?:[\\/]*)
8513 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8514 ;;
8515 *)
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517for as_dir in $PATH
8518do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 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 +00008523 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008525 break 2
8526 fi
8527done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528done
Reid Spencera773bd52006-08-04 18:18:08 +00008529IFS=$as_save_IFS
8530
Reid Spencera773bd52006-08-04 18:18:08 +00008531 ;;
8532esac
8533fi
8534RUNTEST=$ac_cv_path_RUNTEST
8535if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8537echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539 { echo "$as_me:$LINENO: result: no" >&5
8540echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008541fi
8542
8543
8544
8545no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8547echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008548
8549# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008551 withval=$with_tclinclude; with_tclinclude=${withval}
8552else
8553 with_tclinclude=''
8554fi
8555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008556if 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
8560if test x"${with_tclinclude}" != x ; then
8561 if test -f ${with_tclinclude}/tclsh ; then
8562 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8563 elif test -f ${with_tclinclude}/src/tclsh ; then
8564 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8565 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008566 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8567echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8568 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008569 fi
8570fi
Torok Edwin871384f2010-01-26 08:50:50 +00008571fi
8572
Reid Spencera773bd52006-08-04 18:18:08 +00008573
8574if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008575 { echo "$as_me:$LINENO: result: none" >&5
8576echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008577 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
8578do
8579 # Extract the first word of "$ac_prog", so it can be a program name with args.
8580set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8583if test "${ac_cv_path_TCLSH+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008585else
8586 case $TCLSH in
8587 [\\/]* | ?:[\\/]*)
8588 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8589 ;;
8590 *)
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592for as_dir in $PATH
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 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 +00008598 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008600 break 2
8601 fi
8602done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008603done
Reid Spencera773bd52006-08-04 18:18:08 +00008604IFS=$as_save_IFS
8605
8606 ;;
8607esac
8608fi
8609TCLSH=$ac_cv_path_TCLSH
8610if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008611 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8612echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614 { echo "$as_me:$LINENO: result: no" >&5
8615echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008616fi
8617
8618
8619 test -n "$TCLSH" && break
8620done
8621
8622 if test x"${TCLSH}" = x ; then
8623 ac_cv_path_tclsh='';
8624 else
8625 ac_cv_path_tclsh="${TCLSH}";
8626 fi
8627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008628 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8629echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008630 TCLSH="${ac_cv_path_tclsh}"
8631
8632fi
8633
Reid Spencera773bd52006-08-04 18:18:08 +00008634# Extract the first word of "zip", so it can be a program name with args.
8635set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8638if test "${ac_cv_path_ZIP+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008640else
8641 case $ZIP in
8642 [\\/]* | ?:[\\/]*)
8643 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8644 ;;
8645 *)
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 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 +00008653 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008655 break 2
8656 fi
8657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008658done
Reid Spencera773bd52006-08-04 18:18:08 +00008659IFS=$as_save_IFS
8660
Reid Spencera773bd52006-08-04 18:18:08 +00008661 ;;
8662esac
8663fi
8664ZIP=$ac_cv_path_ZIP
8665if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666 { echo "$as_me:$LINENO: result: $ZIP" >&5
8667echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008669 { echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008671fi
8672
8673
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008674for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008675do
8676 # Extract the first word of "$ac_prog", so it can be a program name with args.
8677set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680if test "${ac_cv_path_OCAMLC+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008682else
8683 case $OCAMLC in
8684 [\\/]* | ?:[\\/]*)
8685 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8686 ;;
8687 *)
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 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 +00008695 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008697 break 2
8698 fi
8699done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008700done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008701IFS=$as_save_IFS
8702
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008703 ;;
8704esac
8705fi
8706OCAMLC=$ac_cv_path_OCAMLC
8707if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8709echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711 { echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008713fi
8714
8715
Gordon Henriksene7072162008-03-07 18:20:01 +00008716 test -n "$OCAMLC" && break
8717done
8718
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008719for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008720do
8721 # Extract the first word of "$ac_prog", so it can be a program name with args.
8722set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8725if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008727else
8728 case $OCAMLOPT in
8729 [\\/]* | ?:[\\/]*)
8730 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8731 ;;
8732 *)
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734for as_dir in $PATH
8735do
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 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 +00008740 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008742 break 2
8743 fi
8744done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008745done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008746IFS=$as_save_IFS
8747
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008748 ;;
8749esac
8750fi
8751OCAMLOPT=$ac_cv_path_OCAMLOPT
8752if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008753 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8754echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756 { echo "$as_me:$LINENO: result: no" >&5
8757echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008758fi
8759
8760
Gordon Henriksene7072162008-03-07 18:20:01 +00008761 test -n "$OCAMLOPT" && break
8762done
8763
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008764for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008765do
8766 # Extract the first word of "$ac_prog", so it can be a program name with args.
8767set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8770if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008772else
8773 case $OCAMLDEP in
8774 [\\/]* | ?:[\\/]*)
8775 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8776 ;;
8777 *)
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 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 +00008785 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008787 break 2
8788 fi
8789done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008790done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008791IFS=$as_save_IFS
8792
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008793 ;;
8794esac
8795fi
8796OCAMLDEP=$ac_cv_path_OCAMLDEP
8797if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008798 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8799echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008801 { echo "$as_me:$LINENO: result: no" >&5
8802echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008803fi
8804
8805
Gordon Henriksene7072162008-03-07 18:20:01 +00008806 test -n "$OCAMLDEP" && break
8807done
8808
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008809for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008810do
8811 # Extract the first word of "$ac_prog", so it can be a program name with args.
8812set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8815if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008817else
8818 case $OCAMLDOC in
8819 [\\/]* | ?:[\\/]*)
8820 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8821 ;;
8822 *)
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824for as_dir in $PATH
8825do
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 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 +00008830 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008832 break 2
8833 fi
8834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008835done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008836IFS=$as_save_IFS
8837
8838 ;;
8839esac
8840fi
8841OCAMLDOC=$ac_cv_path_OCAMLDOC
8842if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008843 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8844echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008845else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008846 { echo "$as_me:$LINENO: result: no" >&5
8847echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008848fi
8849
8850
8851 test -n "$OCAMLDOC" && break
8852done
8853
Torok Edwincc499a42008-10-22 09:56:27 +00008854for ac_prog in gas as
8855do
8856 # Extract the first word of "$ac_prog", so it can be a program name with args.
8857set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8860if test "${ac_cv_path_GAS+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008862else
8863 case $GAS in
8864 [\\/]* | ?:[\\/]*)
8865 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8866 ;;
8867 *)
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869for as_dir in $PATH
8870do
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 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 +00008875 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008877 break 2
8878 fi
8879done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008880done
Torok Edwincc499a42008-10-22 09:56:27 +00008881IFS=$as_save_IFS
8882
8883 ;;
8884esac
8885fi
8886GAS=$ac_cv_path_GAS
8887if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008888 { echo "$as_me:$LINENO: result: $GAS" >&5
8889echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008891 { echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008893fi
8894
8895
8896 test -n "$GAS" && break
8897done
8898
Reid Spencera773bd52006-08-04 18:18:08 +00008899
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008900{ echo "$as_me:$LINENO: checking for linker version" >&5
8901echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8902if test "${llvm_cv_link_version+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905
8906 version_string="$(ld -v 2>&1 | head -1)"
8907
8908 # Check for ld64.
8909 if (echo "$version_string" | grep -q "ld64"); then
8910 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8911 else
8912 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8913 fi
8914
8915fi
8916{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8917echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8918
8919cat >>confdefs.h <<_ACEOF
8920#define HOST_LINK_VERSION "$llvm_cv_link_version"
8921_ACEOF
8922
8923
8924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008925{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8926echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8927if test "${llvm_cv_link_use_r+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008929else
8930 ac_ext=c
8931ac_cpp='$CPP $CPPFLAGS'
8932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8934ac_compiler_gnu=$ac_cv_c_compiler_gnu
8935
8936 oldcflags="$CFLAGS"
8937 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008938 cat >conftest.$ac_ext <<_ACEOF
8939/* confdefs.h. */
8940_ACEOF
8941cat confdefs.h >>conftest.$ac_ext
8942cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008943/* end confdefs.h. */
8944
8945int
8946main ()
8947{
Dan Gohman39ed6782010-04-25 00:12:20 +00008948
Reid Spencera773bd52006-08-04 18:18:08 +00008949 ;
8950 return 0;
8951}
8952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008953rm -f conftest.$ac_objext conftest$ac_exeext
8954if { (ac_try="$ac_link"
8955case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958esac
8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_link") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8968 { (case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971esac
8972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_try") 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest$ac_exeext'
8978 { (case "(($ac_try" in
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8981esac
8982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_try") 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008987 llvm_cv_link_use_r=yes
8988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008994
Bill Wendlingebcceee2009-04-18 11:20:33 +00008995rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008996 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008997 CFLAGS="$oldcflags"
8998 ac_ext=c
8999ac_cpp='$CPP $CPPFLAGS'
9000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002ac_compiler_gnu=$ac_cv_c_compiler_gnu
9003
9004
9005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009006{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9007echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009008if test "$llvm_cv_link_use_r" = yes ; then
9009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009010cat >>confdefs.h <<\_ACEOF
9011#define HAVE_LINK_R 1
9012_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009013
9014 fi
9015
9016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009017{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9018echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9019if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009021else
9022 ac_ext=c
9023ac_cpp='$CPP $CPPFLAGS'
9024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026ac_compiler_gnu=$ac_cv_c_compiler_gnu
9027
9028 oldcflags="$CFLAGS"
9029 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009030 cat >conftest.$ac_ext <<_ACEOF
9031/* confdefs.h. */
9032_ACEOF
9033cat confdefs.h >>conftest.$ac_ext
9034cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009035/* end confdefs.h. */
9036
9037int
9038main ()
9039{
Dan Gohman39ed6782010-04-25 00:12:20 +00009040
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009041 ;
9042 return 0;
9043}
9044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009045rm -f conftest.$ac_objext conftest$ac_exeext
9046if { (ac_try="$ac_link"
9047case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050esac
9051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_link") 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9060 { (case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063esac
9064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9073esac
9074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_try") 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009079 llvm_cv_link_use_export_dynamic=yes
9080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009081 echo "$as_me: failed program was:" >&5
9082sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009086
Bill Wendlingebcceee2009-04-18 11:20:33 +00009087rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009088 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009089 CFLAGS="$oldcflags"
9090 ac_ext=c
9091ac_cpp='$CPP $CPPFLAGS'
9092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094ac_compiler_gnu=$ac_cv_c_compiler_gnu
9095
9096
9097fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009098{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9099echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009100if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009102cat >>confdefs.h <<\_ACEOF
9103#define HAVE_LINK_EXPORT_DYNAMIC 1
9104_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009105
9106 fi
9107
9108
Dan Gohmanda612d62010-06-01 14:56:56 +00009109{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9110echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9111if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113else
9114 ac_ext=c
9115ac_cpp='$CPP $CPPFLAGS'
9116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118ac_compiler_gnu=$ac_cv_c_compiler_gnu
9119
9120 oldcflags="$CFLAGS"
9121
9122 # The following code is from the autoconf manual,
9123 # "11.13: Limitations of Usual Tools".
9124 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9125 # Use mktemp if possible; otherwise fall back on mkdir,
9126 # with $RANDOM to make collisions less likely.
9127 : ${TMPDIR=/tmp}
9128 {
9129 tmp=`
9130 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9131 ` &&
9132 test -n "$tmp" && test -d "$tmp"
9133 } || {
9134 tmp=$TMPDIR/foo$$-$RANDOM
9135 (umask 077 && mkdir "$tmp")
9136 } || exit $?
9137
Dan Gohmanda612d62010-06-01 14:56:56 +00009138 echo "{" > "$tmp/export.map"
9139 echo " global: main;" >> "$tmp/export.map"
9140 echo " local: *;" >> "$tmp/export.map"
9141 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009142
Dan Gohmanda612d62010-06-01 14:56:56 +00009143 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009144 cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
9150
9151int
9152main ()
9153{
Dan Gohman39ed6782010-04-25 00:12:20 +00009154
Dan Gohman391569c2010-04-16 22:59:06 +00009155 ;
9156 return 0;
9157}
9158_ACEOF
9159rm -f conftest.$ac_objext conftest$ac_exeext
9160if { (ac_try="$ac_link"
9161case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164esac
9165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_link") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9174 { (case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177esac
9178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_try") 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try='test -s conftest$ac_exeext'
9184 { (case "(($ac_try" in
9185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186 *) ac_try_echo=$ac_try;;
9187esac
9188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9189 (eval "$ac_try") 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009193 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009194else
9195 echo "$as_me: failed program was:" >&5
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
Dan Gohman943005e2010-06-01 16:22:27 +00009198 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009199fi
9200
9201rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009203 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009204 rmdir "$tmp"
9205 CFLAGS="$oldcflags"
9206 ac_ext=c
9207ac_cpp='$CPP $CPPFLAGS'
9208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9210ac_compiler_gnu=$ac_cv_c_compiler_gnu
9211
9212
9213fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009214{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9215echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9216if test "$llvm_cv_link_use_version_script" = yes ; then
9217 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009218
9219 fi
9220
9221
Reid Spencera773bd52006-08-04 18:18:08 +00009222
9223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009224{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9225echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9226if test "${ac_cv_c_const+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009229 cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009234/* end confdefs.h. */
9235
9236int
9237main ()
9238{
9239/* FIXME: Include the comments suggested by Paul. */
9240#ifndef __cplusplus
9241 /* Ultrix mips cc rejects this. */
9242 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009243 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009244 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009245 char const *const *ccp;
9246 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009247 /* NEC SVR4.0.2 mips cc rejects this. */
9248 struct point {int x, y;};
9249 static struct point const zero = {0,0};
9250 /* AIX XL C 1.02.0.0 rejects this.
9251 It does not let you subtract one const X* pointer from another in
9252 an arm of an if-expression whose if-part is not a constant
9253 expression */
9254 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009255 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009256 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257 ++ccp;
9258 p = (char**) ccp;
9259 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009260 { /* SCO 3.2v4 cc rejects this. */
9261 char *t;
9262 char const *s = 0 ? (char *) 0 : (char const *) 0;
9263
9264 *t++ = 0;
9265 if (s) return 0;
9266 }
9267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9268 int x[] = {25, 17};
9269 const int *foo = &x[0];
9270 ++foo;
9271 }
9272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9273 typedef const int *iptr;
9274 iptr p = 0;
9275 ++p;
9276 }
9277 { /* AIX XL C 1.02.0.0 rejects this saying
9278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9279 struct s { int j; const int *ap[3]; };
9280 struct s *b; b->j = 5;
9281 }
9282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9283 const int foo = 10;
9284 if (!foo) return 0;
9285 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009286 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009287#endif
9288
9289 ;
9290 return 0;
9291}
9292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009293rm -f conftest.$ac_objext
9294if { (ac_try="$ac_compile"
9295case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298esac
9299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_compile") 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9308 { (case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311esac
9312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_try") 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321esac
9322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_try") 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009327 ac_cv_c_const=yes
9328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009329 echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009334
Reid Spencera773bd52006-08-04 18:18:08 +00009335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009337{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9338echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009339if test $ac_cv_c_const = no; then
9340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009341cat >>confdefs.h <<\_ACEOF
9342#define const
9343_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009344
9345fi
9346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009347
9348
9349
9350
9351
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009352ac_header_dirent=no
9353for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009354 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9355{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9356echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360 cat >conftest.$ac_ext <<_ACEOF
9361/* confdefs.h. */
9362_ACEOF
9363cat confdefs.h >>conftest.$ac_ext
9364cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009365/* end confdefs.h. */
9366#include <sys/types.h>
9367#include <$ac_hdr>
9368
9369int
9370main ()
9371{
9372if ((DIR *) 0)
9373return 0;
9374 ;
9375 return 0;
9376}
9377_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009378rm -f conftest.$ac_objext
9379if { (ac_try="$ac_compile"
9380case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383esac
9384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9393 { (case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396esac
9397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_try") 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406esac
9407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_try") 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412 eval "$as_ac_Header=yes"
9413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009414 echo "$as_me: failed program was:" >&5
9415sed 's/^/| /' conftest.$ac_ext >&5
9416
9417 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009419
Reid Spencera773bd52006-08-04 18:18:08 +00009420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009422ac_res=`eval echo '${'$as_ac_Header'}'`
9423 { echo "$as_me:$LINENO: result: $ac_res" >&5
9424echo "${ECHO_T}$ac_res" >&6; }
9425if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009426 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009427#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009428_ACEOF
9429
9430ac_header_dirent=$ac_hdr; break
9431fi
9432
9433done
9434# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9435if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009436 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9437echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9438if test "${ac_cv_search_opendir+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009440else
9441 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009442cat >conftest.$ac_ext <<_ACEOF
9443/* confdefs.h. */
9444_ACEOF
9445cat confdefs.h >>conftest.$ac_ext
9446cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009447/* end confdefs.h. */
9448
Reid Spencera773bd52006-08-04 18:18:08 +00009449/* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452#ifdef __cplusplus
9453extern "C"
9454#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009455char opendir ();
9456int
9457main ()
9458{
Reid Spencera773bd52006-08-04 18:18:08 +00009459return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009460 ;
9461 return 0;
9462}
9463_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009464for ac_lib in '' dir; do
9465 if test -z "$ac_lib"; then
9466 ac_res="none required"
9467 else
9468 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009470 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009471 rm -f conftest.$ac_objext conftest$ac_exeext
9472if { (ac_try="$ac_link"
9473case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476esac
9477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9486 { (case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9489esac
9490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_try") 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499esac
9500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_try") 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009505 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009506else
9507 echo "$as_me: failed program was:" >&5
9508sed 's/^/| /' conftest.$ac_ext >&5
9509
9510
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009512
Bill Wendlingebcceee2009-04-18 11:20:33 +00009513rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009514 conftest$ac_exeext
9515 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009516 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517fi
John Criswell7a73b802003-06-30 21:59:07 +00009518done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009519if test "${ac_cv_search_opendir+set}" = set; then
9520 :
Reid Spencera773bd52006-08-04 18:18:08 +00009521else
9522 ac_cv_search_opendir=no
9523fi
9524rm conftest.$ac_ext
9525LIBS=$ac_func_search_save_LIBS
9526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009527{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9528echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009529ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009530if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009532
Reid Spencera773bd52006-08-04 18:18:08 +00009533fi
9534
9535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009536 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9537echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9538if test "${ac_cv_search_opendir+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009540else
9541 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009542cat >conftest.$ac_ext <<_ACEOF
9543/* confdefs.h. */
9544_ACEOF
9545cat confdefs.h >>conftest.$ac_ext
9546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009547/* end confdefs.h. */
9548
9549/* Override any GCC internal prototype to avoid an error.
9550 Use char because int might match the return type of a GCC
9551 builtin and then its argument prototype would still apply. */
9552#ifdef __cplusplus
9553extern "C"
9554#endif
9555char opendir ();
9556int
9557main ()
9558{
9559return opendir ();
9560 ;
9561 return 0;
9562}
9563_ACEOF
9564for ac_lib in '' x; do
9565 if test -z "$ac_lib"; then
9566 ac_res="none required"
9567 else
9568 ac_res=-l$ac_lib
9569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9570 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009571 rm -f conftest.$ac_objext conftest$ac_exeext
9572if { (ac_try="$ac_link"
9573case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9576esac
9577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_link") 2>conftest.er1
9579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9586 { (case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9589esac
9590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_try") 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest$ac_exeext'
9596 { (case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599esac
9600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_try") 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009605 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009606else
9607 echo "$as_me: failed program was:" >&5
9608sed 's/^/| /' conftest.$ac_ext >&5
9609
9610
Reid Spencera773bd52006-08-04 18:18:08 +00009611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612
Bill Wendlingebcceee2009-04-18 11:20:33 +00009613rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009614 conftest$ac_exeext
9615 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009616 break
9617fi
9618done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009619if test "${ac_cv_search_opendir+set}" = set; then
9620 :
Reid Spencera773bd52006-08-04 18:18:08 +00009621else
9622 ac_cv_search_opendir=no
9623fi
9624rm conftest.$ac_ext
9625LIBS=$ac_func_search_save_LIBS
9626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009627{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9628echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009629ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009630if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9632
9633fi
9634
9635fi
John Criswell7a73b802003-06-30 21:59:07 +00009636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009637
John Criswell7a73b802003-06-30 21:59:07 +00009638for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009639do
9640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646fi
9647ac_res=`eval echo '${'$as_ac_Header'}'`
9648 { echo "$as_me:$LINENO: result: $ac_res" >&5
9649echo "${ECHO_T}$ac_res" >&6; }
9650else
9651 # Is the header compilable?
9652{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9654cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660$ac_includes_default
9661#include <$ac_header>
9662_ACEOF
9663rm -f conftest.$ac_objext
9664if { (ac_try="$ac_compile"
9665case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668esac
9669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678 { (case "(($ac_try" in
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9681esac
9682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_try") 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest.$ac_objext'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9691esac
9692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_header_compiler=yes
9698else
9699 echo "$as_me: failed program was:" >&5
9700sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 ac_header_compiler=no
9703fi
9704
9705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9707echo "${ECHO_T}$ac_header_compiler" >&6; }
9708
9709# Is the header present?
9710{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9712cat >conftest.$ac_ext <<_ACEOF
9713/* confdefs.h. */
9714_ACEOF
9715cat confdefs.h >>conftest.$ac_ext
9716cat >>conftest.$ac_ext <<_ACEOF
9717/* end confdefs.h. */
9718#include <$ac_header>
9719_ACEOF
9720if { (ac_try="$ac_cpp conftest.$ac_ext"
9721case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724esac
9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } >/dev/null; then
9733 if test -s conftest.err; then
9734 ac_cpp_err=$ac_c_preproc_warn_flag
9735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9736 else
9737 ac_cpp_err=
9738 fi
9739else
9740 ac_cpp_err=yes
9741fi
9742if test -z "$ac_cpp_err"; then
9743 ac_header_preproc=yes
9744else
9745 echo "$as_me: failed program was:" >&5
9746sed 's/^/| /' conftest.$ac_ext >&5
9747
9748 ac_header_preproc=no
9749fi
9750
9751rm -f conftest.err conftest.$ac_ext
9752{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9753echo "${ECHO_T}$ac_header_preproc" >&6; }
9754
9755# So? What about this header?
9756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9757 yes:no: )
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9762 ac_header_preproc=yes
9763 ;;
9764 no:yes:* )
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9777 ( cat <<\_ASBOX
9778## ----------------------------------- ##
9779## Report this to llvmbugs@cs.uiuc.edu ##
9780## ----------------------------------- ##
9781_ASBOX
9782 ) | sed "s/^/$as_me: WARNING: /" >&2
9783 ;;
9784esac
9785{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789else
9790 eval "$as_ac_Header=\$ac_header_preproc"
9791fi
9792ac_res=`eval echo '${'$as_ac_Header'}'`
9793 { echo "$as_me:$LINENO: result: $ac_res" >&5
9794echo "${ECHO_T}$ac_res" >&6; }
9795
9796fi
9797if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009798 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009800_ACEOF
9801
9802fi
9803
9804done
9805
Reid Spencera773bd52006-08-04 18:18:08 +00009806# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009807if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009808 enableval=$enable_ltdl_install;
9809fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009810
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009812
9813
9814if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009815 INSTALL_LTDL_TRUE=
9816 INSTALL_LTDL_FALSE='#'
9817else
9818 INSTALL_LTDL_TRUE='#'
9819 INSTALL_LTDL_FALSE=
9820fi
9821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009822
9823
9824if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825 CONVENIENCE_LTDL_TRUE=
9826 CONVENIENCE_LTDL_FALSE='#'
9827else
9828 CONVENIENCE_LTDL_TRUE='#'
9829 CONVENIENCE_LTDL_FALSE=
9830fi
9831
9832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009833{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9834echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835library_names_spec=
9836libname_spec='lib$name'
9837soname_spec=
9838shrext_cmds=".so"
9839postinstall_cmds=
9840postuninstall_cmds=
9841finish_cmds=
9842finish_eval=
9843shlibpath_var=
9844shlibpath_overrides_runpath=unknown
9845version_type=none
9846dynamic_linker="$host_os ld.so"
9847sys_lib_dlsearch_path_spec="/lib /usr/lib"
9848if test "$GCC" = yes; then
9849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9850 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9851 # if the path contains ";" then we assume it to be the separator
9852 # otherwise default to the standard path separator (i.e. ":") - it is
9853 # assumed that no part of a normal pathname contains ";" but that should
9854 # okay in the real world where ";" in dirpaths is itself problematic.
9855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9856 else
9857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9858 fi
9859else
9860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9861fi
9862need_lib_prefix=unknown
9863hardcode_into_libs=no
9864
9865# when you set need_version to no, make sure it does not cause -set_version
9866# flags to be left without arguments
9867need_version=unknown
9868
9869case $host_os in
9870aix3*)
9871 version_type=linux
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9873 shlibpath_var=LIBPATH
9874
9875 # AIX 3 has no versioning support, so we append a major version to the name.
9876 soname_spec='${libname}${release}${shared_ext}$major'
9877 ;;
9878
9879aix4* | aix5*)
9880 version_type=linux
9881 need_lib_prefix=no
9882 need_version=no
9883 hardcode_into_libs=yes
9884 if test "$host_cpu" = ia64; then
9885 # AIX 5 supports IA64
9886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 else
9889 # With GCC up to 2.95.x, collect2 would create an import file
9890 # for dependence libraries. The import file would start with
9891 # the line `#! .'. This would cause the generated library to
9892 # depend on `.', always an invalid library. This was fixed in
9893 # development snapshots of GCC prior to 3.0.
9894 case $host_os in
9895 aix4 | aix4.[01] | aix4.[01].*)
9896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9897 echo ' yes '
9898 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9899 :
9900 else
9901 can_build_shared=no
9902 fi
9903 ;;
9904 esac
9905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9906 # soname into executable. Probably we can add versioning support to
9907 # collect2, so additional links can be useful in future.
9908 if test "$aix_use_runtimelinking" = yes; then
9909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9910 # instead of lib<name>.a to let people know that these are not
9911 # typical AIX shared libraries.
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 else
9914 # We preserve .a as extension for shared libraries through AIX4.2
9915 # and later when we are not doing run time linking.
9916 library_names_spec='${libname}${release}.a $libname.a'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9918 fi
9919 shlibpath_var=LIBPATH
9920 fi
9921 ;;
9922
9923amigaos*)
9924 library_names_spec='$libname.ixlibrary $libname.a'
9925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9926 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'
9927 ;;
9928
9929beos*)
9930 library_names_spec='${libname}${shared_ext}'
9931 dynamic_linker="$host_os ld.so"
9932 shlibpath_var=LIBRARY_PATH
9933 ;;
9934
9935bsdi[45]*)
9936 version_type=linux
9937 need_version=no
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9944 # the default ld.so.conf also contains /usr/contrib/lib and
9945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9946 # libtool to hard-code these into programs
9947 ;;
9948
9949cygwin* | mingw* | pw32*)
9950 version_type=windows
9951 shrext_cmds=".dll"
9952 need_version=no
9953 need_lib_prefix=no
9954
9955 case $GCC,$host_os in
9956 yes,cygwin* | yes,mingw* | yes,pw32*)
9957 library_names_spec='$libname.dll.a'
9958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9959 postinstall_cmds='base_file=`basename \${file}`~
9960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9961 dldir=$destdir/`dirname \$dlpath`~
9962 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009963 $install_prog $dir/$dlname \$dldir/$dlname~
9964 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9966 dlpath=$dir/\$dldll~
9967 $rm \$dlpath'
9968 shlibpath_overrides_runpath=yes
9969
9970 case $host_os in
9971 cygwin*)
9972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9973 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9975 ;;
9976 mingw*)
9977 # MinGW DLLs use traditional 'lib' prefix
9978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9981 # It is most probably a Windows format PATH printed by
9982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9983 # path with ; separators, and with drive letters. We can handle the
9984 # drive letters (cygwin fileutils understands them), so leave them,
9985 # especially as we might pass files found there to a mingw objdump,
9986 # which wouldn't understand a cygwinified path. Ahh.
9987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9988 else
9989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9990 fi
9991 ;;
9992 pw32*)
9993 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009994 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 +00009995 ;;
9996 esac
9997 ;;
9998
9999 *)
10000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10001 ;;
10002 esac
10003 dynamic_linker='Win32 ld.exe'
10004 # FIXME: first we should search . and the directory the executable is in
10005 shlibpath_var=PATH
10006 ;;
10007
10008darwin* | rhapsody*)
10009 dynamic_linker="$host_os dyld"
10010 version_type=darwin
10011 need_lib_prefix=no
10012 need_version=no
10013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014 soname_spec='${libname}${release}${major}$shared_ext'
10015 shlibpath_overrides_runpath=yes
10016 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000010017 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10019 if test "$GCC" = yes; then
10020 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"`
10021 else
10022 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10023 fi
10024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10025 ;;
10026
10027dgux*)
10028 version_type=linux
10029 need_lib_prefix=no
10030 need_version=no
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 ;;
10035
10036freebsd1*)
10037 dynamic_linker=no
10038 ;;
10039
10040kfreebsd*-gnu)
10041 version_type=linux
10042 need_lib_prefix=no
10043 need_version=no
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10049 dynamic_linker='GNU ld.so'
10050 ;;
10051
Reid Spencera773bd52006-08-04 18:18:08 +000010052freebsd* | dragonfly*)
10053 # DragonFly does not have aout. When/if they implement a new
10054 # versioning mechanism, adjust this.
10055 if test -x /usr/bin/objformat; then
10056 objformat=`/usr/bin/objformat`
10057 else
10058 case $host_os in
10059 freebsd[123]*) objformat=aout ;;
10060 *) objformat=elf ;;
10061 esac
10062 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063 version_type=freebsd-$objformat
10064 case $version_type in
10065 freebsd-elf*)
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10067 need_version=no
10068 need_lib_prefix=no
10069 ;;
10070 freebsd-*)
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10072 need_version=yes
10073 ;;
10074 esac
10075 shlibpath_var=LD_LIBRARY_PATH
10076 case $host_os in
10077 freebsd2*)
10078 shlibpath_overrides_runpath=yes
10079 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010080 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081 shlibpath_overrides_runpath=yes
10082 hardcode_into_libs=yes
10083 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010084 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10085 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086 shlibpath_overrides_runpath=no
10087 hardcode_into_libs=yes
10088 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010089 freebsd*) # from 4.6 on
10090 shlibpath_overrides_runpath=yes
10091 hardcode_into_libs=yes
10092 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093 esac
10094 ;;
10095
10096gnu*)
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 hardcode_into_libs=yes
10104 ;;
10105
10106hpux9* | hpux10* | hpux11*)
10107 # Give a soname corresponding to the major version so that dld.sl refuses to
10108 # link against other versions.
10109 version_type=sunos
10110 need_lib_prefix=no
10111 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010112 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010113 ia64*)
10114 shrext_cmds='.so'
10115 hardcode_into_libs=yes
10116 dynamic_linker="$host_os dld.so"
10117 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 if test "X$HPUX_IA64_MODE" = X32; then
10122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10123 else
10124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10125 fi
10126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10127 ;;
10128 hppa*64*)
10129 shrext_cmds='.sl'
10130 hardcode_into_libs=yes
10131 dynamic_linker="$host_os dld.sl"
10132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138 ;;
10139 *)
10140 shrext_cmds='.sl'
10141 dynamic_linker="$host_os dld.sl"
10142 shlibpath_var=SHLIB_PATH
10143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 ;;
10147 esac
10148 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10149 postinstall_cmds='chmod 555 $lib'
10150 ;;
10151
Reid Spencera773bd52006-08-04 18:18:08 +000010152interix3*)
10153 version_type=linux
10154 need_lib_prefix=no
10155 need_version=no
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath=no
10161 hardcode_into_libs=yes
10162 ;;
10163
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010164irix5* | irix6* | nonstopux*)
10165 case $host_os in
10166 nonstopux*) version_type=nonstopux ;;
10167 *)
10168 if test "$lt_cv_prog_gnu_ld" = yes; then
10169 version_type=linux
10170 else
10171 version_type=irix
10172 fi ;;
10173 esac
10174 need_lib_prefix=no
10175 need_version=no
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10178 case $host_os in
10179 irix5* | nonstopux*)
10180 libsuff= shlibsuff=
10181 ;;
10182 *)
10183 case $LD in # libtool.m4 will add one of these switches to LD
10184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10185 libsuff= shlibsuff= libmagic=32-bit;;
10186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10187 libsuff=32 shlibsuff=N32 libmagic=N32;;
10188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10190 *) libsuff= shlibsuff= libmagic=never-match;;
10191 esac
10192 ;;
10193 esac
10194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10195 shlibpath_overrides_runpath=no
10196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10198 hardcode_into_libs=yes
10199 ;;
10200
10201# No shared lib support for Linux oldld, aout, or coff.
10202linux*oldld* | linux*aout* | linux*coff*)
10203 dynamic_linker=no
10204 ;;
10205
10206# This must be Linux ELF.
10207linux*)
10208 version_type=linux
10209 need_lib_prefix=no
10210 need_version=no
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=no
10216 # This implies no fast_install, which is unacceptable.
10217 # Some rework will be needed to allow for fast_install
10218 # before this can be enabled.
10219 hardcode_into_libs=yes
10220
10221 # Append ld.so.conf contents to the search path
10222 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010223 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 +000010224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10225 fi
10226
10227 # We used to test for /lib/ld.so.1 and disable shared libraries on
10228 # powerpc, because MkLinux only supported shared libraries with the
10229 # GNU dynamic linker. Since this was broken with cross compilers,
10230 # most powerpc-linux boxes support dynamic linking these days and
10231 # people can always --disable-shared, the test was removed, and we
10232 # assume the GNU/Linux dynamic linker is in use.
10233 dynamic_linker='GNU/Linux ld.so'
10234 ;;
10235
10236knetbsd*-gnu)
10237 version_type=linux
10238 need_lib_prefix=no
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=no
10244 hardcode_into_libs=yes
10245 dynamic_linker='GNU ld.so'
10246 ;;
10247
10248netbsd*)
10249 version_type=sunos
10250 need_lib_prefix=no
10251 need_version=no
10252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10255 dynamic_linker='NetBSD (a.out) ld.so'
10256 else
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 dynamic_linker='NetBSD ld.elf_so'
10260 fi
10261 shlibpath_var=LD_LIBRARY_PATH
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10264 ;;
10265
10266newsos6)
10267 version_type=linux
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 ;;
10272
10273nto-qnx*)
10274 version_type=linux
10275 need_lib_prefix=no
10276 need_version=no
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 ;;
10282
10283openbsd*)
10284 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010285 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010286 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010287 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10288 case $host_os in
10289 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10290 *) need_version=no ;;
10291 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10296 case $host_os in
10297 openbsd2.[89] | openbsd2.[89].*)
10298 shlibpath_overrides_runpath=no
10299 ;;
10300 *)
10301 shlibpath_overrides_runpath=yes
10302 ;;
10303 esac
10304 else
10305 shlibpath_overrides_runpath=yes
10306 fi
10307 ;;
10308
10309os2*)
10310 libname_spec='$name'
10311 shrext_cmds=".dll"
10312 need_lib_prefix=no
10313 library_names_spec='$libname${shared_ext} $libname.a'
10314 dynamic_linker='OS/2 ld.exe'
10315 shlibpath_var=LIBPATH
10316 ;;
10317
10318osf3* | osf4* | osf5*)
10319 version_type=osf
10320 need_lib_prefix=no
10321 need_version=no
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10326 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10327 ;;
10328
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010329solaris*)
10330 version_type=linux
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=yes
10337 hardcode_into_libs=yes
10338 # ldd complains unless libraries are executable
10339 postinstall_cmds='chmod +x $lib'
10340 ;;
10341
10342sunos4*)
10343 version_type=sunos
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=yes
10348 if test "$with_gnu_ld" = yes; then
10349 need_lib_prefix=no
10350 fi
10351 need_version=yes
10352 ;;
10353
Reid Spencera773bd52006-08-04 18:18:08 +000010354sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010355 version_type=linux
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 case $host_vendor in
10360 sni)
10361 shlibpath_overrides_runpath=no
10362 need_lib_prefix=no
10363 export_dynamic_flag_spec='${wl}-Blargedynsym'
10364 runpath_var=LD_RUN_PATH
10365 ;;
10366 siemens)
10367 need_lib_prefix=no
10368 ;;
10369 motorola)
10370 need_lib_prefix=no
10371 need_version=no
10372 shlibpath_overrides_runpath=no
10373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10374 ;;
10375 esac
10376 ;;
10377
10378sysv4*MP*)
10379 if test -d /usr/nec ;then
10380 version_type=linux
10381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10382 soname_spec='$libname${shared_ext}.$major'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 fi
10385 ;;
10386
Reid Spencera773bd52006-08-04 18:18:08 +000010387sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10388 version_type=freebsd-elf
10389 need_lib_prefix=no
10390 need_version=no
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 hardcode_into_libs=yes
10395 if test "$with_gnu_ld" = yes; then
10396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10397 shlibpath_overrides_runpath=no
10398 else
10399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10400 shlibpath_overrides_runpath=yes
10401 case $host_os in
10402 sco3.2v5*)
10403 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10404 ;;
10405 esac
10406 fi
10407 sys_lib_dlsearch_path_spec='/usr/lib'
10408 ;;
10409
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410uts4*)
10411 version_type=linux
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 ;;
10416
10417*)
10418 dynamic_linker=no
10419 ;;
10420esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010421{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10422echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423test "$dynamic_linker" = no && can_build_shared=no
10424
Reid Spencera773bd52006-08-04 18:18:08 +000010425variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10426if test "$GCC" = yes; then
10427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10428fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429
Reid Spencera773bd52006-08-04 18:18:08 +000010430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010431{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10432echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10433if test "${libltdl_cv_shlibext+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435else
10436
10437module=yes
10438eval libltdl_cv_shlibext=$shrext_cmds
10439
10440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010441{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10442echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443if test -n "$libltdl_cv_shlibext"; then
10444
10445cat >>confdefs.h <<_ACEOF
10446#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10447_ACEOF
10448
10449fi
10450
10451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010452{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10453echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10454if test "${libltdl_cv_shlibpath_var+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456else
10457 libltdl_cv_shlibpath_var="$shlibpath_var"
10458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010459{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10460echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010461if test -n "$libltdl_cv_shlibpath_var"; then
10462
10463cat >>confdefs.h <<_ACEOF
10464#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10465_ACEOF
10466
10467fi
10468
10469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010470{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10471echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10472if test "${libltdl_cv_sys_search_path+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474else
10475 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010477{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10478echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479if test -n "$libltdl_cv_sys_search_path"; then
10480 sys_search_path=
10481 for dir in $libltdl_cv_sys_search_path; do
10482 if test -z "$sys_search_path"; then
10483 sys_search_path="$dir"
10484 else
10485 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10486 fi
10487 done
10488
10489cat >>confdefs.h <<_ACEOF
10490#define LTDL_SYSSEARCHPATH "$sys_search_path"
10491_ACEOF
10492
10493fi
10494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010495{ echo "$as_me:$LINENO: checking for objdir" >&5
10496echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10497if test "${libltdl_cv_objdir+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499else
10500 libltdl_cv_objdir="$objdir"
10501 if test -n "$objdir"; then
10502 :
10503 else
10504 rm -f .libs 2>/dev/null
10505 mkdir .libs 2>/dev/null
10506 if test -d .libs; then
10507 libltdl_cv_objdir=.libs
10508 else
10509 # MS-DOS does not allow filenames that begin with a dot.
10510 libltdl_cv_objdir=_libs
10511 fi
10512 rmdir .libs 2>/dev/null
10513 fi
10514
10515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010516{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10517echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518
10519cat >>confdefs.h <<_ACEOF
10520#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10521_ACEOF
10522
10523
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010524
10525
10526
10527
10528# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010529{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10530echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10531if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533else
10534
10535# These are sane defaults that work on at least a few old systems.
10536# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10537
10538# Character class describing NM global symbol codes.
10539symcode='[BCDEGRST]'
10540
10541# Regexp to match symbols that can be accessed directly from C.
10542sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10543
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544# Transform an extracted symbol line into a proper C declaration
10545lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10546
10547# Transform an extracted symbol line into symbol name and symbol address
10548lt_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'"
10549
10550# Define system-specific variables.
10551case $host_os in
10552aix*)
10553 symcode='[BCDT]'
10554 ;;
10555cygwin* | mingw* | pw32*)
10556 symcode='[ABCDGISTW]'
10557 ;;
10558hpux*) # Its linker distinguishes data from code symbols
10559 if test "$host_cpu" = ia64; then
10560 symcode='[ABCDEGRST]'
10561 fi
10562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10563 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'"
10564 ;;
10565linux*)
10566 if test "$host_cpu" = ia64; then
10567 symcode='[ABCDGIRSTW]'
10568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10569 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'"
10570 fi
10571 ;;
10572irix* | nonstopux*)
10573 symcode='[BCDEGRST]'
10574 ;;
10575osf*)
10576 symcode='[BCDEGQRST]'
10577 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010578solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579 symcode='[BDRT]'
10580 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010581sco3.2v5*)
10582 symcode='[DT]'
10583 ;;
10584sysv4.2uw2*)
10585 symcode='[DT]'
10586 ;;
10587sysv5* | sco5v6* | unixware* | OpenUNIX*)
10588 symcode='[ABDT]'
10589 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590sysv4)
10591 symcode='[DFNSTU]'
10592 ;;
10593esac
10594
10595# Handle CRLF in mingw tool chain
10596opt_cr=
10597case $build_os in
10598mingw*)
10599 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10600 ;;
10601esac
10602
10603# If we're using GNU nm, then use its standard symbol codes.
10604case `$NM -V 2>&1` in
10605*GNU* | *'with BFD'*)
10606 symcode='[ABCDGIRSTW]' ;;
10607esac
10608
10609# Try without a prefix undercore, then with it.
10610for ac_symprfx in "" "_"; do
10611
Reid Spencera773bd52006-08-04 18:18:08 +000010612 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10613 symxfrm="\\1 $ac_symprfx\\2 \\2"
10614
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010616 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 +000010617
10618 # Check to see that the pipe works correctly.
10619 pipe_works=no
10620
10621 rm -f conftest*
10622 cat > conftest.$ac_ext <<EOF
10623#ifdef __cplusplus
10624extern "C" {
10625#endif
10626char nm_test_var;
10627void nm_test_func(){}
10628#ifdef __cplusplus
10629}
10630#endif
10631int main(){nm_test_var='a';nm_test_func();return(0);}
10632EOF
10633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635 (eval $ac_compile) 2>&5
10636 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010639 # Now try to grab the symbols.
10640 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010641 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 +000010642 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10643 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646 # Try sorting and uniquifying the output.
10647 if sort "$nlist" | uniq > "$nlist"T; then
10648 mv -f "$nlist"T "$nlist"
10649 else
10650 rm -f "$nlist"T
10651 fi
10652
10653 # Make sure that we snagged all the symbols we need.
10654 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10655 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10656 cat <<EOF > conftest.$ac_ext
10657#ifdef __cplusplus
10658extern "C" {
10659#endif
10660
10661EOF
10662 # Now generate the symbol file.
10663 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10664
10665 cat <<EOF >> conftest.$ac_ext
10666#if defined (__STDC__) && __STDC__
10667# define lt_ptr_t void *
10668#else
10669# define lt_ptr_t char *
10670# define const
10671#endif
10672
10673/* The mapping between symbol names and symbols. */
10674const struct {
10675 const char *name;
10676 lt_ptr_t address;
10677}
10678lt_preloaded_symbols[] =
10679{
10680EOF
10681 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10682 cat <<\EOF >> conftest.$ac_ext
10683 {0, (lt_ptr_t) 0}
10684};
10685
10686#ifdef __cplusplus
10687}
10688#endif
10689EOF
10690 # Now try linking the two files.
10691 mv conftest.$ac_objext conftstm.$ac_objext
10692 lt_save_LIBS="$LIBS"
10693 lt_save_CFLAGS="$CFLAGS"
10694 LIBS="conftstm.$ac_objext"
10695 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697 (eval $ac_link) 2>&5
10698 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701 pipe_works=yes
10702 fi
10703 LIBS="$lt_save_LIBS"
10704 CFLAGS="$lt_save_CFLAGS"
10705 else
10706 echo "cannot find nm_test_func in $nlist" >&5
10707 fi
10708 else
10709 echo "cannot find nm_test_var in $nlist" >&5
10710 fi
10711 else
10712 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10713 fi
10714 else
10715 echo "$progname: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10717 fi
10718 rm -f conftest* conftst*
10719
10720 # Do not use the global_symbol_pipe unless it works.
10721 if test "$pipe_works" = yes; then
10722 break
10723 else
10724 lt_cv_sys_global_symbol_pipe=
10725 fi
10726done
10727
10728fi
10729
10730if test -z "$lt_cv_sys_global_symbol_pipe"; then
10731 lt_cv_sys_global_symbol_to_cdecl=
10732fi
10733if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010734 { echo "$as_me:$LINENO: result: failed" >&5
10735echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737 { echo "$as_me:$LINENO: result: ok" >&5
10738echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739fi
10740
10741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010742{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10743echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10744if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746else
10747 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10748 libltdl_cv_preloaded_symbols=yes
10749 else
10750 libltdl_cv_preloaded_symbols=no
10751 fi
10752
10753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010754{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10755echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010758cat >>confdefs.h <<\_ACEOF
10759#define HAVE_PRELOADED_SYMBOLS 1
10760_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761
10762fi
10763
10764LIBADD_DL=
10765
10766ac_ext=c
10767ac_cpp='$CPP $CPPFLAGS'
10768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10770ac_compiler_gnu=$ac_cv_c_compiler_gnu
10771
10772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010773{ echo "$as_me:$LINENO: checking for shl_load" >&5
10774echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10775if test "${ac_cv_func_shl_load+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 cat >conftest.$ac_ext <<_ACEOF
10779/* confdefs.h. */
10780_ACEOF
10781cat confdefs.h >>conftest.$ac_ext
10782cat >>conftest.$ac_ext <<_ACEOF
10783/* end confdefs.h. */
10784/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010788/* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char shl_load (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10792
10793#ifdef __STDC__
10794# include <limits.h>
10795#else
10796# include <assert.h>
10797#endif
10798
10799#undef shl_load
10800
10801/* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804#ifdef __cplusplus
10805extern "C"
10806#endif
10807char shl_load ();
10808/* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811#if defined __stub_shl_load || defined __stub___shl_load
10812choke me
10813#endif
10814
10815int
10816main ()
10817{
10818return shl_load ();
10819 ;
10820 return 0;
10821}
10822_ACEOF
10823rm -f conftest.$ac_objext conftest$ac_exeext
10824if { (ac_try="$ac_link"
10825case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10841esac
10842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851esac
10852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 ac_cv_func_shl_load=yes
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ac_cv_func_shl_load=no
10863fi
10864
10865rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867fi
10868{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10869echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10870if test $ac_cv_func_shl_load = yes; then
10871
10872cat >>confdefs.h <<\_ACEOF
10873#define HAVE_SHL_LOAD 1
10874_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875
10876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010877 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10878echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10879if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881else
10882 ac_check_lib_save_LIBS=$LIBS
10883LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010884cat >conftest.$ac_ext <<_ACEOF
10885/* confdefs.h. */
10886_ACEOF
10887cat confdefs.h >>conftest.$ac_ext
10888cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889/* end confdefs.h. */
10890
Reid Spencera773bd52006-08-04 18:18:08 +000010891/* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894#ifdef __cplusplus
10895extern "C"
10896#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897char shl_load ();
10898int
10899main ()
10900{
Reid Spencera773bd52006-08-04 18:18:08 +000010901return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902 ;
10903 return 0;
10904}
10905_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010906rm -f conftest.$ac_objext conftest$ac_exeext
10907if { (ac_try="$ac_link"
10908case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911esac
10912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010940 ac_cv_lib_dld_shl_load=yes
10941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010942 echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947
Bill Wendlingebcceee2009-04-18 11:20:33 +000010948rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010949 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950LIBS=$ac_check_lib_save_LIBS
10951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010952{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10953echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10954if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010956cat >>confdefs.h <<\_ACEOF
10957#define HAVE_SHL_LOAD 1
10958_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010959
10960 LIBADD_DL="$LIBADD_DL -ldld"
10961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010962 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10963echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10964if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966else
10967 ac_check_lib_save_LIBS=$LIBS
10968LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010969cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h. */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974/* end confdefs.h. */
10975
Reid Spencera773bd52006-08-04 18:18:08 +000010976/* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979#ifdef __cplusplus
10980extern "C"
10981#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982char dlopen ();
10983int
10984main ()
10985{
Reid Spencera773bd52006-08-04 18:18:08 +000010986return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987 ;
10988 return 0;
10989}
10990_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010991rm -f conftest.$ac_objext conftest$ac_exeext
10992if { (ac_try="$ac_link"
10993case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11006 { (case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_try") 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025 ac_cv_lib_dl_dlopen=yes
11026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011027 echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011032
Bill Wendlingebcceee2009-04-18 11:20:33 +000011033rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011034 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035LIBS=$ac_check_lib_save_LIBS
11036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011037{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11038echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11039if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011041cat >>confdefs.h <<\_ACEOF
11042#define HAVE_LIBDL 1
11043_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044
11045 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011047 cat >conftest.$ac_ext <<_ACEOF
11048/* confdefs.h. */
11049_ACEOF
11050cat confdefs.h >>conftest.$ac_ext
11051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052/* end confdefs.h. */
11053#if HAVE_DLFCN_H
11054# include <dlfcn.h>
11055#endif
11056
11057int
11058main ()
11059{
11060dlopen(0, 0);
11061 ;
11062 return 0;
11063}
11064_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011065rm -f conftest.$ac_objext conftest$ac_exeext
11066if { (ac_try="$ac_link"
11067case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11070esac
11071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072 (eval "$ac_link") 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11080 { (case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11083esac
11084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_try") 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest$ac_exeext'
11090 { (case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11093esac
11094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_try") 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011100cat >>confdefs.h <<\_ACEOF
11101#define HAVE_LIBDL 1
11102_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103 libltdl_cv_func_dlopen="yes"
11104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011105 echo "$as_me: failed program was:" >&5
11106sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11109echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11110if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112else
11113 ac_check_lib_save_LIBS=$LIBS
11114LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011115cat >conftest.$ac_ext <<_ACEOF
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120/* end confdefs.h. */
11121
Reid Spencera773bd52006-08-04 18:18:08 +000011122/* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125#ifdef __cplusplus
11126extern "C"
11127#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128char dlopen ();
11129int
11130main ()
11131{
Reid Spencera773bd52006-08-04 18:18:08 +000011132return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133 ;
11134 return 0;
11135}
11136_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011137rm -f conftest.$ac_objext conftest$ac_exeext
11138if { (ac_try="$ac_link"
11139case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11142esac
11143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_link") 2>conftest.er1
11145 ac_status=$?
11146 grep -v '^ *+' conftest.er1 >conftest.err
11147 rm -f conftest.er1
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11155esac
11156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest$ac_exeext'
11162 { (case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165esac
11166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_try") 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171 ac_cv_lib_svld_dlopen=yes
11172else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011173 echo "$as_me: failed program was:" >&5
11174sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011178
Bill Wendlingebcceee2009-04-18 11:20:33 +000011179rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011180 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181LIBS=$ac_check_lib_save_LIBS
11182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011183{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11184echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11185if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011187cat >>confdefs.h <<\_ACEOF
11188#define HAVE_LIBDL 1
11189_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011190
11191 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011193 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11194echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11195if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197else
11198 ac_check_lib_save_LIBS=$LIBS
11199LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011200cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205/* end confdefs.h. */
11206
Reid Spencera773bd52006-08-04 18:18:08 +000011207/* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210#ifdef __cplusplus
11211extern "C"
11212#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213char dld_link ();
11214int
11215main ()
11216{
Reid Spencera773bd52006-08-04 18:18:08 +000011217return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011218 ;
11219 return 0;
11220}
11221_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011222rm -f conftest.$ac_objext conftest$ac_exeext
11223if { (ac_try="$ac_link"
11224case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227esac
11228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240esac
11241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_try") 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250esac
11251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256 ac_cv_lib_dld_dld_link=yes
11257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011263
Bill Wendlingebcceee2009-04-18 11:20:33 +000011264rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011265 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011266LIBS=$ac_check_lib_save_LIBS
11267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011268{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11269echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11270if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011272cat >>confdefs.h <<\_ACEOF
11273#define HAVE_DLD 1
11274_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275
11276 LIBADD_DL="$LIBADD_DL -ldld"
11277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011278 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11279echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11280if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282else
11283 cat >conftest.$ac_ext <<_ACEOF
11284/* confdefs.h. */
11285_ACEOF
11286cat confdefs.h >>conftest.$ac_ext
11287cat >>conftest.$ac_ext <<_ACEOF
11288/* end confdefs.h. */
11289/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11291#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011293/* System header to define __stub macros and hopefully few prototypes,
11294 which can conflict with char _dyld_func_lookup (); below.
11295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11296 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011298#ifdef __STDC__
11299# include <limits.h>
11300#else
11301# include <assert.h>
11302#endif
11303
11304#undef _dyld_func_lookup
11305
11306/* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309#ifdef __cplusplus
11310extern "C"
11311#endif
11312char _dyld_func_lookup ();
11313/* The GNU C library defines this for functions which it implements
11314 to always fail with ENOSYS. Some functions are actually named
11315 something starting with __ and the normal name is an alias. */
11316#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11317choke me
11318#endif
11319
11320int
11321main ()
11322{
11323return _dyld_func_lookup ();
11324 ;
11325 return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext conftest$ac_exeext
11329if { (ac_try="$ac_link"
11330case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333esac
11334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_link") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11343 { (case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346esac
11347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_try") 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; } &&
11352 { ac_try='test -s conftest$ac_exeext'
11353 { (case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356esac
11357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_try") 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_cv_func__dyld_func_lookup=yes
11363else
11364 echo "$as_me: failed program was:" >&5
11365sed 's/^/| /' conftest.$ac_ext >&5
11366
11367 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011368fi
Reid Spencera773bd52006-08-04 18:18:08 +000011369
Bill Wendlingebcceee2009-04-18 11:20:33 +000011370rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011371 conftest$ac_exeext conftest.$ac_ext
11372fi
11373{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11374echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11375if test $ac_cv_func__dyld_func_lookup = yes; then
11376
11377cat >>confdefs.h <<\_ACEOF
11378#define HAVE_DYLD 1
11379_ACEOF
11380
11381fi
11382
11383
11384fi
11385
11386
11387fi
11388
11389
11390fi
11391
11392rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394
11395fi
11396
11397
11398fi
11399
11400
11401fi
11402
11403
11404if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11405then
11406 lt_save_LIBS="$LIBS"
11407 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011408
11409for ac_func in dlerror
11410do
11411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11412{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11414if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416else
11417 cat >conftest.$ac_ext <<_ACEOF
11418/* confdefs.h. */
11419_ACEOF
11420cat confdefs.h >>conftest.$ac_ext
11421cat >>conftest.$ac_ext <<_ACEOF
11422/* end confdefs.h. */
11423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11425#define $ac_func innocuous_$ac_func
11426
11427/* System header to define __stub macros and hopefully few prototypes,
11428 which can conflict with char $ac_func (); below.
11429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11430 <limits.h> exists even on freestanding compilers. */
11431
11432#ifdef __STDC__
11433# include <limits.h>
11434#else
11435# include <assert.h>
11436#endif
11437
11438#undef $ac_func
11439
11440/* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443#ifdef __cplusplus
11444extern "C"
11445#endif
11446char $ac_func ();
11447/* The GNU C library defines this for functions which it implements
11448 to always fail with ENOSYS. Some functions are actually named
11449 something starting with __ and the normal name is an alias. */
11450#if defined __stub_$ac_func || defined __stub___$ac_func
11451choke me
11452#endif
11453
11454int
11455main ()
11456{
11457return $ac_func ();
11458 ;
11459 return 0;
11460}
11461_ACEOF
11462rm -f conftest.$ac_objext conftest$ac_exeext
11463if { (ac_try="$ac_link"
11464case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467esac
11468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_link") 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11477 { (case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480esac
11481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_try") 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest$ac_exeext'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490esac
11491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 eval "$as_ac_var=yes"
11497else
11498 echo "$as_me: failed program was:" >&5
11499sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 eval "$as_ac_var=no"
11502fi
11503
11504rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506fi
11507ac_res=`eval echo '${'$as_ac_var'}'`
11508 { echo "$as_me:$LINENO: result: $ac_res" >&5
11509echo "${ECHO_T}$ac_res" >&6; }
11510if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513_ACEOF
11514
11515fi
11516done
11517
11518 LIBS="$lt_save_LIBS"
11519fi
11520ac_ext=c
11521ac_cpp='$CPP $CPPFLAGS'
11522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11524ac_compiler_gnu=$ac_cv_c_compiler_gnu
11525
11526
11527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011528{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11529echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11530if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532else
11533 ac_cv_sys_symbol_underscore=no
11534 cat > conftest.$ac_ext <<EOF
11535void nm_test_func(){}
11536int main(){nm_test_func;return 0;}
11537EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539 (eval $ac_compile) 2>&5
11540 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543 # Now try to grab the symbols.
11544 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011545 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 +000011546 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11547 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550 # See whether the symbols have a leading underscore.
11551 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11552 ac_cv_sys_symbol_underscore=yes
11553 else
11554 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11555 :
11556 else
11557 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11558 fi
11559 fi
11560 else
11561 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11562 fi
11563 else
11564 echo "configure: failed program was:" >&5
11565 cat conftest.c >&5
11566 fi
11567 rm -rf conftest*
11568
11569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011570{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11571echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572
11573
11574if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11575 if test x"$libltdl_cv_func_dlopen" = xyes ||
11576 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011577 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11578echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11579if test "${libltdl_cv_need_uscore+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581else
11582 libltdl_cv_need_uscore=unknown
11583 save_LIBS="$LIBS"
11584 LIBS="$LIBS $LIBADD_DL"
11585 if test "$cross_compiling" = yes; then :
11586 libltdl_cv_need_uscore=cross
11587else
11588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11589 lt_status=$lt_dlunknown
11590 cat > conftest.$ac_ext <<EOF
Daniel Dunbared344d22011-06-16 22:30:41 +000011591#line 11591 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592#include "confdefs.h"
11593
11594#if HAVE_DLFCN_H
11595#include <dlfcn.h>
11596#endif
11597
11598#include <stdio.h>
11599
11600#ifdef RTLD_GLOBAL
11601# define LT_DLGLOBAL RTLD_GLOBAL
11602#else
11603# ifdef DL_GLOBAL
11604# define LT_DLGLOBAL DL_GLOBAL
11605# else
11606# define LT_DLGLOBAL 0
11607# endif
11608#endif
11609
11610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11611 find out it does not work in some platform. */
11612#ifndef LT_DLLAZY_OR_NOW
11613# ifdef RTLD_LAZY
11614# define LT_DLLAZY_OR_NOW RTLD_LAZY
11615# else
11616# ifdef DL_LAZY
11617# define LT_DLLAZY_OR_NOW DL_LAZY
11618# else
11619# ifdef RTLD_NOW
11620# define LT_DLLAZY_OR_NOW RTLD_NOW
11621# else
11622# ifdef DL_NOW
11623# define LT_DLLAZY_OR_NOW DL_NOW
11624# else
11625# define LT_DLLAZY_OR_NOW 0
11626# endif
11627# endif
11628# endif
11629# endif
11630#endif
11631
11632#ifdef __cplusplus
11633extern "C" void exit (int);
11634#endif
11635
11636void fnord() { int i=42;}
11637int main ()
11638{
11639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11640 int status = $lt_dlunknown;
11641
11642 if (self)
11643 {
11644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11646 /* dlclose (self); */
11647 }
Reid Spencera773bd52006-08-04 18:18:08 +000011648 else
11649 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650
11651 exit (status);
11652}
11653EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011655 (eval $ac_link) 2>&5
11656 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011659 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011660 lt_status=$?
11661 case x$lt_status in
11662 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11663 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011664 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011665 esac
11666 else :
11667 # compilation failed
11668
11669 fi
11670fi
11671rm -fr conftest*
11672
11673 LIBS="$save_LIBS"
11674
11675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011676{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11677echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011678 fi
11679fi
11680
11681if test x"$libltdl_cv_need_uscore" = xyes; then
11682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011683cat >>confdefs.h <<\_ACEOF
11684#define NEED_USCORE 1
11685_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686
11687fi
11688
11689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011690{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11691echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11692if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694else
11695 # PORTME does your system automatically load deplibs for dlopen?
11696 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11697 # For now, we just catch OSes we know something about -- in the
11698 # future, we'll try test this programmatically.
11699 libltdl_cv_sys_dlopen_deplibs=unknown
11700 case "$host_os" in
11701 aix3*|aix4.1.*|aix4.2.*)
11702 # Unknown whether this is true for these versions of AIX, but
11703 # we want this `case' here to explicitly catch those versions.
11704 libltdl_cv_sys_dlopen_deplibs=unknown
11705 ;;
11706 aix[45]*)
11707 libltdl_cv_sys_dlopen_deplibs=yes
11708 ;;
11709 darwin*)
11710 # Assuming the user has installed a libdl from somewhere, this is true
11711 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11712 libltdl_cv_sys_dlopen_deplibs=yes
11713 ;;
11714 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11715 # GNU and its variants, using gnu ld.so (Glibc)
11716 libltdl_cv_sys_dlopen_deplibs=yes
11717 ;;
11718 hpux10*|hpux11*)
11719 libltdl_cv_sys_dlopen_deplibs=yes
11720 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011721 interix*)
11722 libltdl_cv_sys_dlopen_deplibs=yes
11723 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724 irix[12345]*|irix6.[01]*)
11725 # Catch all versions of IRIX before 6.2, and indicate that we don't
11726 # know how it worked for any of those versions.
11727 libltdl_cv_sys_dlopen_deplibs=unknown
11728 ;;
11729 irix*)
11730 # The case above catches anything before 6.2, and it's known that
11731 # at 6.2 and later dlopen does load deplibs.
11732 libltdl_cv_sys_dlopen_deplibs=yes
11733 ;;
11734 netbsd*)
11735 libltdl_cv_sys_dlopen_deplibs=yes
11736 ;;
11737 openbsd*)
11738 libltdl_cv_sys_dlopen_deplibs=yes
11739 ;;
11740 osf[1234]*)
11741 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11742 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000011743 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744 libltdl_cv_sys_dlopen_deplibs=no
11745 ;;
11746 osf5.0|osf5.0a|osf5.1)
11747 # dlopen *does* load deplibs and with the right loader patch applied
11748 # it even uses RPATH in a shared library to search for shared objects
11749 # that the library depends on, but there's no easy way to know if that
11750 # patch is installed. Since this is the case, all we can really
11751 # say is unknown -- it depends on the patch being installed. If
11752 # it is, this changes to `yes'. Without it, it would be `no'.
11753 libltdl_cv_sys_dlopen_deplibs=unknown
11754 ;;
11755 osf*)
11756 # the two cases above should catch all versions of osf <= 5.1. Read
11757 # the comments above for what we know about them.
11758 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11759 # is used to find them so we can finally say `yes'.
11760 libltdl_cv_sys_dlopen_deplibs=yes
11761 ;;
11762 solaris*)
11763 libltdl_cv_sys_dlopen_deplibs=yes
11764 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11766 libltdl_cv_sys_dlopen_deplibs=yes
11767 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768 esac
11769
11770fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011771{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11772echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011775cat >>confdefs.h <<\_ACEOF
11776#define LTDL_DLOPEN_DEPLIBS 1
11777_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778
11779fi
11780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011781
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011783do
11784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11790fi
11791ac_res=`eval echo '${'$as_ac_Header'}'`
11792 { echo "$as_me:$LINENO: result: $ac_res" >&5
11793echo "${ECHO_T}$ac_res" >&6; }
11794else
11795 # Is the header compilable?
11796{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11798cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804$ac_includes_default
11805#include <$ac_header>
11806_ACEOF
11807rm -f conftest.$ac_objext
11808if { (ac_try="$ac_compile"
11809case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812esac
11813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_compile") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest.$ac_objext'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835esac
11836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_header_compiler=yes
11842else
11843 echo "$as_me: failed program was:" >&5
11844sed 's/^/| /' conftest.$ac_ext >&5
11845
11846 ac_header_compiler=no
11847fi
11848
11849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11851echo "${ECHO_T}$ac_header_compiler" >&6; }
11852
11853# Is the header present?
11854{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11856cat >conftest.$ac_ext <<_ACEOF
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862#include <$ac_header>
11863_ACEOF
11864if { (ac_try="$ac_cpp conftest.$ac_ext"
11865case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868esac
11869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } >/dev/null; then
11877 if test -s conftest.err; then
11878 ac_cpp_err=$ac_c_preproc_warn_flag
11879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11880 else
11881 ac_cpp_err=
11882 fi
11883else
11884 ac_cpp_err=yes
11885fi
11886if test -z "$ac_cpp_err"; then
11887 ac_header_preproc=yes
11888else
11889 echo "$as_me: failed program was:" >&5
11890sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 ac_header_preproc=no
11893fi
11894
11895rm -f conftest.err conftest.$ac_ext
11896{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897echo "${ECHO_T}$ac_header_preproc" >&6; }
11898
11899# So? What about this header?
11900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11901 yes:no: )
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc=yes
11907 ;;
11908 no:yes:* )
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11921 ( cat <<\_ASBOX
11922## ----------------------------------- ##
11923## Report this to llvmbugs@cs.uiuc.edu ##
11924## ----------------------------------- ##
11925_ASBOX
11926 ) | sed "s/^/$as_me: WARNING: /" >&2
11927 ;;
11928esac
11929{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934 eval "$as_ac_Header=\$ac_header_preproc"
11935fi
11936ac_res=`eval echo '${'$as_ac_Header'}'`
11937 { echo "$as_me:$LINENO: result: $ac_res" >&5
11938echo "${ECHO_T}$ac_res" >&6; }
11939
11940fi
11941if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944_ACEOF
11945
11946fi
11947
11948done
11949
11950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011951{ echo "$as_me:$LINENO: checking for error_t" >&5
11952echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11953if test "${ac_cv_type_error_t+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955else
11956 cat >conftest.$ac_ext <<_ACEOF
11957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
11962#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963# include <argz.h>
11964#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011965
11966typedef error_t ac__type_new_;
11967int
11968main ()
11969{
11970if ((ac__type_new_ *) 0)
11971 return 0;
11972if (sizeof (ac__type_new_))
11973 return 0;
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext
11979if { (ac_try="$ac_compile"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006esac
12007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 ac_cv_type_error_t=yes
12013else
12014 echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 ac_cv_type_error_t=no
12018fi
12019
12020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021fi
12022{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12023echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12024if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012025
12026cat >>confdefs.h <<_ACEOF
12027#define HAVE_ERROR_T 1
12028_ACEOF
12029
12030
12031else
12032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012033cat >>confdefs.h <<\_ACEOF
12034#define error_t int
12035_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036
12037fi
12038
12039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012040
12041
12042
12043
12044
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012045for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012046do
12047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
12053 cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h. */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h. */
12059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061#define $ac_func innocuous_$ac_func
12062
12063/* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12067
12068#ifdef __STDC__
12069# include <limits.h>
12070#else
12071# include <assert.h>
12072#endif
12073
12074#undef $ac_func
12075
12076/* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079#ifdef __cplusplus
12080extern "C"
12081#endif
12082char $ac_func ();
12083/* The GNU C library defines this for functions which it implements
12084 to always fail with ENOSYS. Some functions are actually named
12085 something starting with __ and the normal name is an alias. */
12086#if defined __stub_$ac_func || defined __stub___$ac_func
12087choke me
12088#endif
12089
12090int
12091main ()
12092{
12093return $ac_func ();
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext conftest$ac_exeext
12099if { (ac_try="$ac_link"
12100case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116esac
12117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 eval "$as_ac_var=yes"
12133else
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137 eval "$as_ac_var=no"
12138fi
12139
12140rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142fi
12143ac_res=`eval echo '${'$as_ac_var'}'`
12144 { echo "$as_me:$LINENO: result: $ac_res" >&5
12145echo "${ECHO_T}$ac_res" >&6; }
12146if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012147 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149_ACEOF
12150
12151fi
12152done
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012173
12174
12175
12176
12177
12178
12179
12180
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012181for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12182 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012183do
12184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190fi
12191ac_res=`eval echo '${'$as_ac_Header'}'`
12192 { echo "$as_me:$LINENO: result: $ac_res" >&5
12193echo "${ECHO_T}$ac_res" >&6; }
12194else
12195 # Is the header compilable?
12196{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12198cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h. */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h. */
12204$ac_includes_default
12205#include <$ac_header>
12206_ACEOF
12207rm -f conftest.$ac_objext
12208if { (ac_try="$ac_compile"
12209case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12222 { (case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225esac
12226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_try") 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; } &&
12231 { ac_try='test -s conftest.$ac_objext'
12232 { (case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235esac
12236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_try") 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_header_compiler=yes
12242else
12243 echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_header_compiler=no
12247fi
12248
12249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12251echo "${ECHO_T}$ac_header_compiler" >&6; }
12252
12253# Is the header present?
12254{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12256cat >conftest.$ac_ext <<_ACEOF
12257/* confdefs.h. */
12258_ACEOF
12259cat confdefs.h >>conftest.$ac_ext
12260cat >>conftest.$ac_ext <<_ACEOF
12261/* end confdefs.h. */
12262#include <$ac_header>
12263_ACEOF
12264if { (ac_try="$ac_cpp conftest.$ac_ext"
12265case "(($ac_try" in
12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12268esac
12269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } >/dev/null; then
12277 if test -s conftest.err; then
12278 ac_cpp_err=$ac_c_preproc_warn_flag
12279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12280 else
12281 ac_cpp_err=
12282 fi
12283else
12284 ac_cpp_err=yes
12285fi
12286if test -z "$ac_cpp_err"; then
12287 ac_header_preproc=yes
12288else
12289 echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_header_preproc=no
12293fi
12294
12295rm -f conftest.err conftest.$ac_ext
12296{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12297echo "${ECHO_T}$ac_header_preproc" >&6; }
12298
12299# So? What about this header?
12300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12301 yes:no: )
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12306 ac_header_preproc=yes
12307 ;;
12308 no:yes:* )
12309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12321 ( cat <<\_ASBOX
12322## ----------------------------------- ##
12323## Report this to llvmbugs@cs.uiuc.edu ##
12324## ----------------------------------- ##
12325_ASBOX
12326 ) | sed "s/^/$as_me: WARNING: /" >&2
12327 ;;
12328esac
12329{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333else
12334 eval "$as_ac_Header=\$ac_header_preproc"
12335fi
12336ac_res=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338echo "${ECHO_T}$ac_res" >&6; }
12339
12340fi
12341if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012342 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344_ACEOF
12345
12346fi
12347
12348done
12349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012350
12351
12352
12353
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012355do
12356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12362fi
12363ac_res=`eval echo '${'$as_ac_Header'}'`
12364 { echo "$as_me:$LINENO: result: $ac_res" >&5
12365echo "${ECHO_T}$ac_res" >&6; }
12366else
12367 # Is the header compilable?
12368{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12370cat >conftest.$ac_ext <<_ACEOF
12371/* confdefs.h. */
12372_ACEOF
12373cat confdefs.h >>conftest.$ac_ext
12374cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h. */
12376$ac_includes_default
12377#include <$ac_header>
12378_ACEOF
12379rm -f conftest.$ac_objext
12380if { (ac_try="$ac_compile"
12381case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384esac
12385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_compile") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest.$ac_objext'
12404 { (case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407esac
12408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_header_compiler=yes
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418 ac_header_compiler=no
12419fi
12420
12421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12423echo "${ECHO_T}$ac_header_compiler" >&6; }
12424
12425# Is the header present?
12426{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12428cat >conftest.$ac_ext <<_ACEOF
12429/* confdefs.h. */
12430_ACEOF
12431cat confdefs.h >>conftest.$ac_ext
12432cat >>conftest.$ac_ext <<_ACEOF
12433/* end confdefs.h. */
12434#include <$ac_header>
12435_ACEOF
12436if { (ac_try="$ac_cpp conftest.$ac_ext"
12437case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } >/dev/null; then
12449 if test -s conftest.err; then
12450 ac_cpp_err=$ac_c_preproc_warn_flag
12451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12452 else
12453 ac_cpp_err=
12454 fi
12455else
12456 ac_cpp_err=yes
12457fi
12458if test -z "$ac_cpp_err"; then
12459 ac_header_preproc=yes
12460else
12461 echo "$as_me: failed program was:" >&5
12462sed 's/^/| /' conftest.$ac_ext >&5
12463
12464 ac_header_preproc=no
12465fi
12466
12467rm -f conftest.err conftest.$ac_ext
12468{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12469echo "${ECHO_T}$ac_header_preproc" >&6; }
12470
12471# So? What about this header?
12472case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12473 yes:no: )
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12477echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12478 ac_header_preproc=yes
12479 ;;
12480 no:yes:* )
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12482echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12484echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12486echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12488echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12490echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12492echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12493 ( cat <<\_ASBOX
12494## ----------------------------------- ##
12495## Report this to llvmbugs@cs.uiuc.edu ##
12496## ----------------------------------- ##
12497_ASBOX
12498 ) | sed "s/^/$as_me: WARNING: /" >&2
12499 ;;
12500esac
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
12505else
12506 eval "$as_ac_Header=\$ac_header_preproc"
12507fi
12508ac_res=`eval echo '${'$as_ac_Header'}'`
12509 { echo "$as_me:$LINENO: result: $ac_res" >&5
12510echo "${ECHO_T}$ac_res" >&6; }
12511
12512fi
12513if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012514 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012516_ACEOF
12517
12518fi
12519
12520done
12521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012522
12523
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012524for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012525do
12526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532fi
12533ac_res=`eval echo '${'$as_ac_Header'}'`
12534 { echo "$as_me:$LINENO: result: $ac_res" >&5
12535echo "${ECHO_T}$ac_res" >&6; }
12536else
12537 # Is the header compilable?
12538{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12539echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12540cat >conftest.$ac_ext <<_ACEOF
12541/* confdefs.h. */
12542_ACEOF
12543cat confdefs.h >>conftest.$ac_ext
12544cat >>conftest.$ac_ext <<_ACEOF
12545/* end confdefs.h. */
12546$ac_includes_default
12547#include <$ac_header>
12548_ACEOF
12549rm -f conftest.$ac_objext
12550if { (ac_try="$ac_compile"
12551case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554esac
12555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_compile") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567esac
12568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest.$ac_objext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577esac
12578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 ac_header_compiler=yes
12584else
12585 echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 ac_header_compiler=no
12589fi
12590
12591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12593echo "${ECHO_T}$ac_header_compiler" >&6; }
12594
12595# Is the header present?
12596{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604#include <$ac_header>
12605_ACEOF
12606if { (ac_try="$ac_cpp conftest.$ac_ext"
12607case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610esac
12611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } >/dev/null; then
12619 if test -s conftest.err; then
12620 ac_cpp_err=$ac_c_preproc_warn_flag
12621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12622 else
12623 ac_cpp_err=
12624 fi
12625else
12626 ac_cpp_err=yes
12627fi
12628if test -z "$ac_cpp_err"; then
12629 ac_header_preproc=yes
12630else
12631 echo "$as_me: failed program was:" >&5
12632sed 's/^/| /' conftest.$ac_ext >&5
12633
12634 ac_header_preproc=no
12635fi
12636
12637rm -f conftest.err conftest.$ac_ext
12638{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12639echo "${ECHO_T}$ac_header_preproc" >&6; }
12640
12641# So? What about this header?
12642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12643 yes:no: )
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12648 ac_header_preproc=yes
12649 ;;
12650 no:yes:* )
12651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12654echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12658echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12663 ( cat <<\_ASBOX
12664## ----------------------------------- ##
12665## Report this to llvmbugs@cs.uiuc.edu ##
12666## ----------------------------------- ##
12667_ASBOX
12668 ) | sed "s/^/$as_me: WARNING: /" >&2
12669 ;;
12670esac
12671{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675else
12676 eval "$as_ac_Header=\$ac_header_preproc"
12677fi
12678ac_res=`eval echo '${'$as_ac_Header'}'`
12679 { echo "$as_me:$LINENO: result: $ac_res" >&5
12680echo "${ECHO_T}$ac_res" >&6; }
12681
12682fi
12683if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012684 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012686_ACEOF
12687 break
12688fi
12689
12690done
12691
12692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012693
12694
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012696do
12697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702else
12703 cat >conftest.$ac_ext <<_ACEOF
12704/* confdefs.h. */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h. */
12709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12711#define $ac_func innocuous_$ac_func
12712
12713/* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char $ac_func (); below.
12715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12716 <limits.h> exists even on freestanding compilers. */
12717
12718#ifdef __STDC__
12719# include <limits.h>
12720#else
12721# include <assert.h>
12722#endif
12723
12724#undef $ac_func
12725
12726/* Override any GCC internal prototype to avoid an error.
12727 Use char because int might match the return type of a GCC
12728 builtin and then its argument prototype would still apply. */
12729#ifdef __cplusplus
12730extern "C"
12731#endif
12732char $ac_func ();
12733/* The GNU C library defines this for functions which it implements
12734 to always fail with ENOSYS. Some functions are actually named
12735 something starting with __ and the normal name is an alias. */
12736#if defined __stub_$ac_func || defined __stub___$ac_func
12737choke me
12738#endif
12739
12740int
12741main ()
12742{
12743return $ac_func ();
12744 ;
12745 return 0;
12746}
12747_ACEOF
12748rm -f conftest.$ac_objext conftest$ac_exeext
12749if { (ac_try="$ac_link"
12750case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753esac
12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_link") 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766esac
12767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest$ac_exeext'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776esac
12777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
12782 eval "$as_ac_var=yes"
12783else
12784 echo "$as_me: failed program was:" >&5
12785sed 's/^/| /' conftest.$ac_ext >&5
12786
12787 eval "$as_ac_var=no"
12788fi
12789
12790rm -f core conftest.err conftest.$ac_objext \
12791 conftest$ac_exeext conftest.$ac_ext
12792fi
12793ac_res=`eval echo '${'$as_ac_var'}'`
12794 { echo "$as_me:$LINENO: result: $ac_res" >&5
12795echo "${ECHO_T}$ac_res" >&6; }
12796if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012797 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012799_ACEOF
12800 break
12801fi
12802done
12803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012804
12805
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012806for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012807do
12808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813else
12814 cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h. */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h. */
12820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12822#define $ac_func innocuous_$ac_func
12823
12824/* System header to define __stub macros and hopefully few prototypes,
12825 which can conflict with char $ac_func (); below.
12826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12827 <limits.h> exists even on freestanding compilers. */
12828
12829#ifdef __STDC__
12830# include <limits.h>
12831#else
12832# include <assert.h>
12833#endif
12834
12835#undef $ac_func
12836
12837/* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
12840#ifdef __cplusplus
12841extern "C"
12842#endif
12843char $ac_func ();
12844/* The GNU C library defines this for functions which it implements
12845 to always fail with ENOSYS. Some functions are actually named
12846 something starting with __ and the normal name is an alias. */
12847#if defined __stub_$ac_func || defined __stub___$ac_func
12848choke me
12849#endif
12850
12851int
12852main ()
12853{
12854return $ac_func ();
12855 ;
12856 return 0;
12857}
12858_ACEOF
12859rm -f conftest.$ac_objext conftest$ac_exeext
12860if { (ac_try="$ac_link"
12861case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_link") 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 eval "$as_ac_var=yes"
12894else
12895 echo "$as_me: failed program was:" >&5
12896sed 's/^/| /' conftest.$ac_ext >&5
12897
12898 eval "$as_ac_var=no"
12899fi
12900
12901rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903fi
12904ac_res=`eval echo '${'$as_ac_var'}'`
12905 { echo "$as_me:$LINENO: result: $ac_res" >&5
12906echo "${ECHO_T}$ac_res" >&6; }
12907if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012908 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012910_ACEOF
12911 break
12912fi
12913done
12914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012915
12916
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012917for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012918do
12919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924else
12925 cat >conftest.$ac_ext <<_ACEOF
12926/* confdefs.h. */
12927_ACEOF
12928cat confdefs.h >>conftest.$ac_ext
12929cat >>conftest.$ac_ext <<_ACEOF
12930/* end confdefs.h. */
12931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933#define $ac_func innocuous_$ac_func
12934
12935/* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func (); below.
12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938 <limits.h> exists even on freestanding compilers. */
12939
12940#ifdef __STDC__
12941# include <limits.h>
12942#else
12943# include <assert.h>
12944#endif
12945
12946#undef $ac_func
12947
12948/* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12951#ifdef __cplusplus
12952extern "C"
12953#endif
12954char $ac_func ();
12955/* The GNU C library defines this for functions which it implements
12956 to always fail with ENOSYS. Some functions are actually named
12957 something starting with __ and the normal name is an alias. */
12958#if defined __stub_$ac_func || defined __stub___$ac_func
12959choke me
12960#endif
12961
12962int
12963main ()
12964{
12965return $ac_func ();
12966 ;
12967 return 0;
12968}
12969_ACEOF
12970rm -f conftest.$ac_objext conftest$ac_exeext
12971if { (ac_try="$ac_link"
12972case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
12976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_link") 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest$ac_exeext'
12995 { (case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998esac
12999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 eval "$as_ac_var=yes"
13005else
13006 echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
13009 eval "$as_ac_var=no"
13010fi
13011
13012rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13014fi
13015ac_res=`eval echo '${'$as_ac_var'}'`
13016 { echo "$as_me:$LINENO: result: $ac_res" >&5
13017echo "${ECHO_T}$ac_res" >&6; }
13018if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013019 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013021_ACEOF
13022 break
13023fi
13024done
13025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013026
13027
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013028for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029do
13030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13031{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13033if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035else
13036 cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
13041/* end confdefs.h. */
13042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13044#define $ac_func innocuous_$ac_func
13045
13046/* System header to define __stub macros and hopefully few prototypes,
13047 which can conflict with char $ac_func (); below.
13048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13049 <limits.h> exists even on freestanding compilers. */
13050
13051#ifdef __STDC__
13052# include <limits.h>
13053#else
13054# include <assert.h>
13055#endif
13056
13057#undef $ac_func
13058
13059/* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13062#ifdef __cplusplus
13063extern "C"
13064#endif
13065char $ac_func ();
13066/* The GNU C library defines this for functions which it implements
13067 to always fail with ENOSYS. Some functions are actually named
13068 something starting with __ and the normal name is an alias. */
13069#if defined __stub_$ac_func || defined __stub___$ac_func
13070choke me
13071#endif
13072
13073int
13074main ()
13075{
13076return $ac_func ();
13077 ;
13078 return 0;
13079}
13080_ACEOF
13081rm -f conftest.$ac_objext conftest$ac_exeext
13082if { (ac_try="$ac_link"
13083case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13086esac
13087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_link") 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13096 { (case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099esac
13100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest$ac_exeext'
13106 { (case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_try") 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 eval "$as_ac_var=yes"
13116else
13117 echo "$as_me: failed program was:" >&5
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 eval "$as_ac_var=no"
13121fi
13122
13123rm -f core conftest.err conftest.$ac_objext \
13124 conftest$ac_exeext conftest.$ac_ext
13125fi
13126ac_res=`eval echo '${'$as_ac_var'}'`
13127 { echo "$as_me:$LINENO: result: $ac_res" >&5
13128echo "${ECHO_T}$ac_res" >&6; }
13129if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013130 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013132_ACEOF
13133
13134fi
13135done
13136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013137
13138
13139
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013140for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141do
13142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147else
13148 cat >conftest.$ac_ext <<_ACEOF
13149/* confdefs.h. */
13150_ACEOF
13151cat confdefs.h >>conftest.$ac_ext
13152cat >>conftest.$ac_ext <<_ACEOF
13153/* end confdefs.h. */
13154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156#define $ac_func innocuous_$ac_func
13157
13158/* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13162
13163#ifdef __STDC__
13164# include <limits.h>
13165#else
13166# include <assert.h>
13167#endif
13168
13169#undef $ac_func
13170
13171/* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174#ifdef __cplusplus
13175extern "C"
13176#endif
13177char $ac_func ();
13178/* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181#if defined __stub_$ac_func || defined __stub___$ac_func
13182choke me
13183#endif
13184
13185int
13186main ()
13187{
13188return $ac_func ();
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
13194if { (ac_try="$ac_link"
13195case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
13212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 eval "$as_ac_var=yes"
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 eval "$as_ac_var=no"
13233fi
13234
13235rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13237fi
13238ac_res=`eval echo '${'$as_ac_var'}'`
13239 { echo "$as_me:$LINENO: result: $ac_res" >&5
13240echo "${ECHO_T}$ac_res" >&6; }
13241if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013242 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013244_ACEOF
13245
13246fi
13247done
13248
13249
Douglas Gregor01746742009-05-11 18:05:52 +000013250
Reid Spencer7931a782004-12-27 06:15:02 +000013251if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013252 LLVMGCC="llvm-gcc${EXEEXT}"
13253 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013254 LLVMGCCCOMMAND="$LLVMGCC"
13255 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013256 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13257
13258 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13259
Reid Spencerc84492c2005-06-02 22:34:49 +000013260 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13261set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13264if test "${ac_cv_path_LLVMGCC+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013266else
13267 case $LLVMGCC in
13268 [\\/]* | ?:[\\/]*)
13269 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13270 ;;
13271 *)
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 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 +000013279 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013281 break 2
13282 fi
13283done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284done
Reid Spencera773bd52006-08-04 18:18:08 +000013285IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013286
Reid Spencer59473af2004-12-25 07:31:29 +000013287 ;;
13288esac
13289fi
13290LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013291if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013292 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13293echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013295 { echo "$as_me:$LINENO: result: no" >&5
13296echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013297fi
13298
Reid Spencera773bd52006-08-04 18:18:08 +000013299
Reid Spencerc84492c2005-06-02 22:34:49 +000013300 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13301set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13304if test "${ac_cv_path_LLVMGXX+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013306else
13307 case $LLVMGXX in
13308 [\\/]* | ?:[\\/]*)
13309 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13310 ;;
13311 *)
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313for as_dir in $PATH
13314do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 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 +000013319 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013321 break 2
13322 fi
13323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013324done
Reid Spencera773bd52006-08-04 18:18:08 +000013325IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013326
Reid Spencer59473af2004-12-25 07:31:29 +000013327 ;;
13328esac
13329fi
13330LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013331if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013332 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13333echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013335 { echo "$as_me:$LINENO: result: no" >&5
13336echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013337fi
13338
Reid Spencera773bd52006-08-04 18:18:08 +000013339
Reid Spencer59473af2004-12-25 07:31:29 +000013340else
Devang Patel5d28b882007-12-04 22:54:47 +000013341 if test -z "$LLVMGCC"; then
13342 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013343 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013344 fi
13345 if test -z "$LLVMGXX"; then
13346 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013347 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013348 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013349
Reid Spencer59473af2004-12-25 07:31:29 +000013350 LLVMGCC=$LLVMGCC
13351
13352 LLVMGXX=$LLVMGXX
13353
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013354 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13355
13356 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13357
Reid Spencer59473af2004-12-25 07:31:29 +000013358fi
13359
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013360
Daniel Dunbar98515672010-02-23 10:00:49 +000013361# Check whether --with-llvmcc was given.
13362if test "${with_llvmcc+set}" = set; then
13363 withval=$with_llvmcc;
13364else
13365 with_llvmcc=check
13366fi
13367
13368{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13369echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13370if test "$with_llvmcc" != "check"; then
13371 if (test "$with_llvmcc" != "llvm-gcc" &&
13372 test "$with_llvmcc" != "clang" &&
13373 test "$with_llvmcc" != "none"); then
13374 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13375echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13376 { (exit 1); exit 1; }; }
13377 fi
13378 WITH_LLVMCC="$with_llvmcc"
13379elif test -n "$LLVMGCC"; then
13380 WITH_LLVMCC=llvm-gcc
13381elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13382 WITH_LLVMCC=clang
13383else
13384 WITH_LLVMCC=none
13385fi
13386{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13387echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13388LLVMCC_OPTION=$WITH_LLVMCC
13389
13390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013391{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13392echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013393
Reid Spencer86901802004-12-08 23:07:27 +000013394ICC=no
13395IXX=no
13396case $CC in
13397 icc*|icpc*)
13398 ICC=yes
13399 IXX=yes
13400 ;;
13401 *)
13402 ;;
13403esac
13404
Duraid Madina937c60a2006-02-15 07:57:42 +000013405if test "$GCC" != "yes" && test "$ICC" != "yes"
13406then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013407 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13408echo "$as_me: error: gcc|icc required but not found" >&2;}
13409 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013410fi
13411
13412if test "$GXX" != "yes" && test "$IXX" != "yes"
13413then
Eric Christopher73e36da2010-12-08 02:02:14 +000013414 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13415echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013416 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013417fi
13418
Reid Spencer86901802004-12-08 23:07:27 +000013419if test "$GCC" = "yes"
13420then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013421 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013422#if !defined(__GNUC__) || __GNUC__ < 3
13423#error Unsupported GCC version
13424#endif
13425
13426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427rm -f conftest.$ac_objext
13428if { (ac_try="$ac_compile"
13429case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_compile") 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13442 { (case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13445esac
13446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_try") 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463 echo "$as_me: failed program was:" >&5
13464sed 's/^/| /' conftest.$ac_ext >&5
13465
13466 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13467echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13468 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013470
Chris Lattner399c7c72008-02-05 19:43:53 +000013471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013472fi
13473
13474if test -z "$llvm_cv_gnu_make_command"
13475then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013476 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13477echo "$as_me: error: GNU Make required but not found" >&2;}
13478 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013479fi
13480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013481{ echo "$as_me:$LINENO: result: ok" >&5
13482echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013484{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13485echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013486NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13487
13488NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013490{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13491echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013492
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013494
13495{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13496echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13497if test "${ac_cv_lib_m_sin+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013499else
13500 ac_check_lib_save_LIBS=$LIBS
13501LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013502cat >conftest.$ac_ext <<_ACEOF
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013507/* end confdefs.h. */
13508
Reid Spencera773bd52006-08-04 18:18:08 +000013509/* Override any GCC internal prototype to avoid an error.
13510 Use char because int might match the return type of a GCC
13511 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013512#ifdef __cplusplus
13513extern "C"
13514#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013515char sin ();
13516int
13517main ()
13518{
Reid Spencera773bd52006-08-04 18:18:08 +000013519return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013520 ;
13521 return 0;
13522}
13523_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524rm -f conftest.$ac_objext conftest$ac_exeext
13525if { (ac_try="$ac_link"
13526case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13529esac
13530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_link") 2>conftest.er1
13532 ac_status=$?
13533 grep -v '^ *+' conftest.er1 >conftest.err
13534 rm -f conftest.er1
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } &&
13538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13539 { (case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13542esac
13543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_try") 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest$ac_exeext'
13549 { (case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13552esac
13553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_try") 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013558 ac_cv_lib_m_sin=yes
13559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013560 echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
13563 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013565
Bill Wendlingebcceee2009-04-18 11:20:33 +000013566rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013567 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013568LIBS=$ac_check_lib_save_LIBS
13569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013570{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13571echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13572if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013573 cat >>confdefs.h <<_ACEOF
13574#define HAVE_LIBM 1
13575_ACEOF
13576
13577 LIBS="-lm $LIBS"
13578
13579fi
13580
Jeff Cohen28783c32007-01-12 18:22:38 +000013581if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013582
13583{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13584echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13585if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013587else
13588 ac_check_lib_save_LIBS=$LIBS
13589LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013590cat >conftest.$ac_ext <<_ACEOF
13591/* confdefs.h. */
13592_ACEOF
13593cat confdefs.h >>conftest.$ac_ext
13594cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013595/* end confdefs.h. */
13596
Reid Spencer48fdf912006-06-01 19:03:21 +000013597
Reid Spencer484fc8e2006-06-01 16:55:59 +000013598int
13599main ()
13600{
Reid Spencera773bd52006-08-04 18:18:08 +000013601return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013602 ;
13603 return 0;
13604}
13605_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013606rm -f conftest.$ac_objext conftest$ac_exeext
13607if { (ac_try="$ac_link"
13608case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611esac
13612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_link") 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13621 { (case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13624esac
13625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_try") 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13634esac
13635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_try") 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013640 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013641else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013646fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013647
Bill Wendlingebcceee2009-04-18 11:20:33 +000013648rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013649 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013650LIBS=$ac_check_lib_save_LIBS
13651fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013652{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13653echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13654if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013655 cat >>confdefs.h <<_ACEOF
13656#define HAVE_LIBIMAGEHLP 1
13657_ACEOF
13658
13659 LIBS="-limagehlp $LIBS"
13660
13661fi
13662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013663
13664{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13665echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13666if test "${ac_cv_lib_psapi_main+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013668else
13669 ac_check_lib_save_LIBS=$LIBS
13670LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013671cat >conftest.$ac_ext <<_ACEOF
13672/* confdefs.h. */
13673_ACEOF
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013676/* end confdefs.h. */
13677
Reid Spencer48fdf912006-06-01 19:03:21 +000013678
Reid Spencer484fc8e2006-06-01 16:55:59 +000013679int
13680main ()
13681{
Reid Spencera773bd52006-08-04 18:18:08 +000013682return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013683 ;
13684 return 0;
13685}
13686_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013687rm -f conftest.$ac_objext conftest$ac_exeext
13688if { (ac_try="$ac_link"
13689case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692esac
13693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_link") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705esac
13706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013721 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013722else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013723 echo "$as_me: failed program was:" >&5
13724sed 's/^/| /' conftest.$ac_ext >&5
13725
13726 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013728
Bill Wendlingebcceee2009-04-18 11:20:33 +000013729rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013730 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013731LIBS=$ac_check_lib_save_LIBS
13732fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013733{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13734echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13735if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013736 cat >>confdefs.h <<_ACEOF
13737#define HAVE_LIBPSAPI 1
13738_ACEOF
13739
13740 LIBS="-lpsapi $LIBS"
13741
13742fi
13743
13744fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013746{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13747echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13748if test "${ac_cv_search_dlopen+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013750else
13751 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013752cat >conftest.$ac_ext <<_ACEOF
13753/* confdefs.h. */
13754_ACEOF
13755cat confdefs.h >>conftest.$ac_ext
13756cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013758
Reid Spencera773bd52006-08-04 18:18:08 +000013759/* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013762#ifdef __cplusplus
13763extern "C"
13764#endif
John Criswell7a73b802003-06-30 21:59:07 +000013765char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013766int
13767main ()
13768{
Reid Spencera773bd52006-08-04 18:18:08 +000013769return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013770 ;
13771 return 0;
13772}
13773_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013774for ac_lib in '' dl; do
13775 if test -z "$ac_lib"; then
13776 ac_res="none required"
13777 else
13778 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013780 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013781 rm -f conftest.$ac_objext conftest$ac_exeext
13782if { (ac_try="$ac_link"
13783case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786esac
13787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_link") 2>conftest.er1
13789 ac_status=$?
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -f conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } &&
13795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13796 { (case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799esac
13800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_try") 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest$ac_exeext'
13806 { (case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809esac
13810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_try") 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013815 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013816else
13817 echo "$as_me: failed program was:" >&5
13818sed 's/^/| /' conftest.$ac_ext >&5
13819
13820
John Criswell7a73b802003-06-30 21:59:07 +000013821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013822
Bill Wendlingebcceee2009-04-18 11:20:33 +000013823rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013824 conftest$ac_exeext
13825 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013826 break
John Criswell7a73b802003-06-30 21:59:07 +000013827fi
Reid Spencera773bd52006-08-04 18:18:08 +000013828done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013829if test "${ac_cv_search_dlopen+set}" = set; then
13830 :
Reid Spencera773bd52006-08-04 18:18:08 +000013831else
13832 ac_cv_search_dlopen=no
13833fi
13834rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013835LIBS=$ac_func_search_save_LIBS
13836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13838echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013839ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013840if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013843cat >>confdefs.h <<\_ACEOF
13844#define HAVE_DLOPEN 1
13845_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013846
13847else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013848 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13849echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013850fi
13851
13852
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013853if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013854 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13855echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13856if test "${ac_cv_search_ffi_call+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013858else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013859 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013860cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013865/* end confdefs.h. */
13866
13867/* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13870#ifdef __cplusplus
13871extern "C"
13872#endif
13873char ffi_call ();
13874int
13875main ()
13876{
13877return ffi_call ();
13878 ;
13879 return 0;
13880}
13881_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013882for ac_lib in '' ffi; do
13883 if test -z "$ac_lib"; then
13884 ac_res="none required"
13885 else
13886 ac_res=-l$ac_lib
13887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13888 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013889 rm -f conftest.$ac_objext conftest$ac_exeext
13890if { (ac_try="$ac_link"
13891case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894esac
13895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_link") 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13907esac
13908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest$ac_exeext'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917esac
13918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013923 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924else
13925 echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
13928
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930
Bill Wendlingebcceee2009-04-18 11:20:33 +000013931rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013932 conftest$ac_exeext
13933 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013934 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013935fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013936done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013937if test "${ac_cv_search_ffi_call+set}" = set; then
13938 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013939else
13940 ac_cv_search_ffi_call=no
13941fi
13942rm conftest.$ac_ext
13943LIBS=$ac_func_search_save_LIBS
13944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013945{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13946echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013947ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013948if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013951cat >>confdefs.h <<\_ACEOF
13952#define HAVE_FFI_CALL 1
13953_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013954
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013955else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013956 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13957echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13958 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013959fi
13960
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013961fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013963{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13964echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13965if test "${ac_cv_search_mallinfo+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013967else
13968 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013969cat >conftest.$ac_ext <<_ACEOF
13970/* confdefs.h. */
13971_ACEOF
13972cat confdefs.h >>conftest.$ac_ext
13973cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013975
Reid Spencera773bd52006-08-04 18:18:08 +000013976/* Override any GCC internal prototype to avoid an error.
13977 Use char because int might match the return type of a GCC
13978 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013979#ifdef __cplusplus
13980extern "C"
13981#endif
John Criswell7a73b802003-06-30 21:59:07 +000013982char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013983int
13984main ()
13985{
Reid Spencera773bd52006-08-04 18:18:08 +000013986return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013987 ;
13988 return 0;
13989}
13990_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013991for ac_lib in '' malloc; do
13992 if test -z "$ac_lib"; then
13993 ac_res="none required"
13994 else
13995 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013997 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013998 rm -f conftest.$ac_objext conftest$ac_exeext
13999if { (ac_try="$ac_link"
14000case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14003esac
14004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_link") 2>conftest.er1
14006 ac_status=$?
14007 grep -v '^ *+' conftest.er1 >conftest.err
14008 rm -f conftest.er1
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013 { (case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14016esac
14017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_try") 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest$ac_exeext'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026esac
14027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014032 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033else
14034 echo "$as_me: failed program was:" >&5
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
14037
John Criswell7a73b802003-06-30 21:59:07 +000014038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014039
Bill Wendlingebcceee2009-04-18 11:20:33 +000014040rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041 conftest$ac_exeext
14042 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014043 break
John Criswell7a73b802003-06-30 21:59:07 +000014044fi
Reid Spencera773bd52006-08-04 18:18:08 +000014045done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014046if test "${ac_cv_search_mallinfo+set}" = set; then
14047 :
Reid Spencera773bd52006-08-04 18:18:08 +000014048else
14049 ac_cv_search_mallinfo=no
14050fi
14051rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014052LIBS=$ac_func_search_save_LIBS
14053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14055echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014056ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014057if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000014059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014060cat >>confdefs.h <<\_ACEOF
14061#define HAVE_MALLINFO 1
14062_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014063
14064fi
14065
14066
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000014067if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068
14069{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14070echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14071if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014073else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014074 ac_check_lib_save_LIBS=$LIBS
14075LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014076cat >conftest.$ac_ext <<_ACEOF
14077/* confdefs.h. */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014081/* end confdefs.h. */
14082
Reid Spencera773bd52006-08-04 18:18:08 +000014083/* Override any GCC internal prototype to avoid an error.
14084 Use char because int might match the return type of a GCC
14085 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014086#ifdef __cplusplus
14087extern "C"
14088#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014089char pthread_mutex_init ();
14090int
14091main ()
14092{
Reid Spencera773bd52006-08-04 18:18:08 +000014093return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014094 ;
14095 return 0;
14096}
14097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014098rm -f conftest.$ac_objext conftest$ac_exeext
14099if { (ac_try="$ac_link"
14100case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103esac
14104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_link") 2>conftest.er1
14106 ac_status=$?
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14113 { (case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116esac
14117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_try") 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try='test -s conftest$ac_exeext'
14123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014132 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134 echo "$as_me: failed program was:" >&5
14135sed 's/^/| /' conftest.$ac_ext >&5
14136
14137 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139
Bill Wendlingebcceee2009-04-18 11:20:33 +000014140rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014142LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14145echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14146if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014147 cat >>confdefs.h <<_ACEOF
14148#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014149_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014150
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014151 LIBS="-lpthread $LIBS"
14152
Reid Spencer22177fe2005-07-12 15:24:20 +000014153fi
14154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014155 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14156echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14157if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014159else
14160 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014161cat >conftest.$ac_ext <<_ACEOF
14162/* confdefs.h. */
14163_ACEOF
14164cat confdefs.h >>conftest.$ac_ext
14165cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014166/* end confdefs.h. */
14167
Reid Spencera773bd52006-08-04 18:18:08 +000014168/* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014171#ifdef __cplusplus
14172extern "C"
14173#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014174char pthread_mutex_lock ();
14175int
14176main ()
14177{
Reid Spencera773bd52006-08-04 18:18:08 +000014178return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014179 ;
14180 return 0;
14181}
14182_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014183for ac_lib in '' pthread; do
14184 if test -z "$ac_lib"; then
14185 ac_res="none required"
14186 else
14187 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014189 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014190 rm -f conftest.$ac_objext conftest$ac_exeext
14191if { (ac_try="$ac_link"
14192case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14195esac
14196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_link") 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14205 { (case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208esac
14209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_try") 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; } &&
14214 { ac_try='test -s conftest$ac_exeext'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218esac
14219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014224 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014225else
14226 echo "$as_me: failed program was:" >&5
14227sed 's/^/| /' conftest.$ac_ext >&5
14228
14229
Brian Gaeke5f268f72003-12-05 19:29:01 +000014230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231
Bill Wendlingebcceee2009-04-18 11:20:33 +000014232rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014233 conftest$ac_exeext
14234 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014235 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014236fi
Reid Spencera773bd52006-08-04 18:18:08 +000014237done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14239 :
Reid Spencera773bd52006-08-04 18:18:08 +000014240else
14241 ac_cv_search_pthread_mutex_lock=no
14242fi
14243rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014244LIBS=$ac_func_search_save_LIBS
14245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014246{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14247echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014248ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014249if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014252cat >>confdefs.h <<\_ACEOF
14253#define HAVE_PTHREAD_MUTEX_LOCK 1
14254_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014255
14256fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14259echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14260if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014262else
14263 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014264cat >conftest.$ac_ext <<_ACEOF
14265/* confdefs.h. */
14266_ACEOF
14267cat confdefs.h >>conftest.$ac_ext
14268cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014269/* end confdefs.h. */
14270
14271/* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14274#ifdef __cplusplus
14275extern "C"
14276#endif
14277char pthread_rwlock_init ();
14278int
14279main ()
14280{
14281return pthread_rwlock_init ();
14282 ;
14283 return 0;
14284}
14285_ACEOF
14286for ac_lib in '' pthread; do
14287 if test -z "$ac_lib"; then
14288 ac_res="none required"
14289 else
14290 ac_res=-l$ac_lib
14291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14292 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293 rm -f conftest.$ac_objext conftest$ac_exeext
14294if { (ac_try="$ac_link"
14295case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298esac
14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321esac
14322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014327 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328else
14329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
14332
Owen Andersonde8aed22009-06-16 18:20:20 +000014333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334
Owen Andersonde8aed22009-06-16 18:20:20 +000014335rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336 conftest$ac_exeext
14337 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014338 break
14339fi
14340done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14342 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014343else
14344 ac_cv_search_pthread_rwlock_init=no
14345fi
14346rm conftest.$ac_ext
14347LIBS=$ac_func_search_save_LIBS
14348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14350echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014351ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355cat >>confdefs.h <<\_ACEOF
14356#define HAVE_PTHREAD_RWLOCK_INIT 1
14357_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014358
14359fi
14360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014361 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14362echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14363if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014365else
14366 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014367cat >conftest.$ac_ext <<_ACEOF
14368/* confdefs.h. */
14369_ACEOF
14370cat confdefs.h >>conftest.$ac_ext
14371cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014372/* end confdefs.h. */
14373
14374/* Override any GCC internal prototype to avoid an error.
14375 Use char because int might match the return type of a GCC
14376 builtin and then its argument prototype would still apply. */
14377#ifdef __cplusplus
14378extern "C"
14379#endif
14380char pthread_getspecific ();
14381int
14382main ()
14383{
14384return pthread_getspecific ();
14385 ;
14386 return 0;
14387}
14388_ACEOF
14389for ac_lib in '' pthread; do
14390 if test -z "$ac_lib"; then
14391 ac_res="none required"
14392 else
14393 ac_res=-l$ac_lib
14394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14395 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014396 rm -f conftest.$ac_objext conftest$ac_exeext
14397if { (ac_try="$ac_link"
14398case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>conftest.er1
14404 ac_status=$?
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414esac
14415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest$ac_exeext'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424esac
14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014430 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431else
14432 echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
14435
Owen Anderson27fcfe12009-06-25 23:10:26 +000014436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014437
Owen Anderson27fcfe12009-06-25 23:10:26 +000014438rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014439 conftest$ac_exeext
14440 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014441 break
14442fi
14443done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014444if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14445 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014446else
14447 ac_cv_search_pthread_getspecific=no
14448fi
14449rm conftest.$ac_ext
14450LIBS=$ac_func_search_save_LIBS
14451fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014452{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14453echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014454ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014458cat >>confdefs.h <<\_ACEOF
14459#define HAVE_PTHREAD_GETSPECIFIC 1
14460_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014461
14462fi
14463
Reid Spencer0a262ba2005-08-24 10:07:20 +000014464fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014465
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014466
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014467# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014468if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014469 withval=$with_udis86;
14470 USE_UDIS86=1
14471
14472 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014473 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014474 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14475 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476
14477{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14478echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14479if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014481else
14482 ac_check_lib_save_LIBS=$LIBS
14483LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014484cat >conftest.$ac_ext <<_ACEOF
14485/* confdefs.h. */
14486_ACEOF
14487cat confdefs.h >>conftest.$ac_ext
14488cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014489/* end confdefs.h. */
14490
14491/* Override any GCC internal prototype to avoid an error.
14492 Use char because int might match the return type of a GCC
14493 builtin and then its argument prototype would still apply. */
14494#ifdef __cplusplus
14495extern "C"
14496#endif
14497char ud_init ();
14498int
14499main ()
14500{
14501return ud_init ();
14502 ;
14503 return 0;
14504}
14505_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014506rm -f conftest.$ac_objext conftest$ac_exeext
14507if { (ac_try="$ac_link"
14508case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511esac
14512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_link") 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524esac
14525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_try") 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest$ac_exeext'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534esac
14535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014540 ac_cv_lib_udis86_ud_init=yes
14541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014542 echo "$as_me: failed program was:" >&5
14543sed 's/^/| /' conftest.$ac_ext >&5
14544
14545 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014547
Bill Wendlingebcceee2009-04-18 11:20:33 +000014548rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014549 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014550LIBS=$ac_check_lib_save_LIBS
14551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014552{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14553echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14554if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014555 cat >>confdefs.h <<_ACEOF
14556#define HAVE_LIBUDIS86 1
14557_ACEOF
14558
14559 LIBS="-ludis86 $LIBS"
14560
14561else
14562
14563 echo "Error! You need to have libudis86 around."
14564 exit -1
14565
14566fi
14567
14568
14569else
14570 USE_UDIS86=0
14571
14572fi
14573
14574
14575cat >>confdefs.h <<_ACEOF
14576#define USE_UDIS86 $USE_UDIS86
14577_ACEOF
14578
14579
14580
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014581# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014583 withval=$with_oprofile;
14584 USE_OPROFILE=1
14585
14586 case "$withval" in
14587 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014588 no) llvm_cv_oppath=
14589 USE_OPROFILE=0
14590 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014591 *) llvm_cv_oppath="${withval}/lib/oprofile"
14592 CPPFLAGS="-I${withval}/include";;
14593 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014594 if test -n "$llvm_cv_oppath" ; then
14595 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014596 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14597echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14598if test "${ac_cv_search_bfd_init+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014600else
14601 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014602cat >conftest.$ac_ext <<_ACEOF
14603/* confdefs.h. */
14604_ACEOF
14605cat confdefs.h >>conftest.$ac_ext
14606cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014607/* end confdefs.h. */
14608
14609/* Override any GCC internal prototype to avoid an error.
14610 Use char because int might match the return type of a GCC
14611 builtin and then its argument prototype would still apply. */
14612#ifdef __cplusplus
14613extern "C"
14614#endif
14615char bfd_init ();
14616int
14617main ()
14618{
14619return bfd_init ();
14620 ;
14621 return 0;
14622}
14623_ACEOF
14624for ac_lib in '' bfd; do
14625 if test -z "$ac_lib"; then
14626 ac_res="none required"
14627 else
14628 ac_res=-l$ac_lib
14629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14630 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014631 rm -f conftest.$ac_objext conftest$ac_exeext
14632if { (ac_try="$ac_link"
14633case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636esac
14637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_link") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest$ac_exeext'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14659esac
14660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014665 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014666else
14667 echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014671fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014672
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014673rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014674 conftest$ac_exeext
14675 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014676 break
14677fi
14678done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014679if test "${ac_cv_search_bfd_init+set}" = set; then
14680 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014681else
14682 ac_cv_search_bfd_init=no
14683fi
14684rm conftest.$ac_ext
14685LIBS=$ac_func_search_save_LIBS
14686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014687{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14688echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014689ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014690if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14692
14693fi
14694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014695 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14696echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14697if test "${ac_cv_search_op_open_agent+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014699else
14700 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014701cat >conftest.$ac_ext <<_ACEOF
14702/* confdefs.h. */
14703_ACEOF
14704cat confdefs.h >>conftest.$ac_ext
14705cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014706/* end confdefs.h. */
14707
14708/* Override any GCC internal prototype to avoid an error.
14709 Use char because int might match the return type of a GCC
14710 builtin and then its argument prototype would still apply. */
14711#ifdef __cplusplus
14712extern "C"
14713#endif
14714char op_open_agent ();
14715int
14716main ()
14717{
14718return op_open_agent ();
14719 ;
14720 return 0;
14721}
14722_ACEOF
14723for ac_lib in '' opagent; do
14724 if test -z "$ac_lib"; then
14725 ac_res="none required"
14726 else
14727 ac_res=-l$ac_lib
14728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14729 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014730 rm -f conftest.$ac_objext conftest$ac_exeext
14731if { (ac_try="$ac_link"
14732case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735esac
14736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_link") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14748esac
14749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try='test -s conftest$ac_exeext'
14755 { (case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14758esac
14759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_try") 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014764 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
14769
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014770fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014771
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014772rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014773 conftest$ac_exeext
14774 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014775 break
14776fi
14777done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014778if test "${ac_cv_search_op_open_agent+set}" = set; then
14779 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014780else
14781 ac_cv_search_op_open_agent=no
14782fi
14783rm conftest.$ac_ext
14784LIBS=$ac_func_search_save_LIBS
14785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014786{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14787echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014788ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014789if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14791
14792else
14793
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014794 echo "Error! You need to have libopagent around."
14795 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014796
14797fi
14798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014799 if test "${ac_cv_header_opagent_h+set}" = set; then
14800 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14801echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14802if test "${ac_cv_header_opagent_h+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804fi
14805{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14806echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14807else
14808 # Is the header compilable?
14809{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14810echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14811cat >conftest.$ac_ext <<_ACEOF
14812/* confdefs.h. */
14813_ACEOF
14814cat confdefs.h >>conftest.$ac_ext
14815cat >>conftest.$ac_ext <<_ACEOF
14816/* end confdefs.h. */
14817$ac_includes_default
14818#include <opagent.h>
14819_ACEOF
14820rm -f conftest.$ac_objext
14821if { (ac_try="$ac_compile"
14822case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14825esac
14826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_compile") 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14835 { (case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838esac
14839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_try") 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848esac
14849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_try") 2>&5
14851 ac_status=$?
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_header_compiler=yes
14855else
14856 echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014859 ac_header_compiler=no
14860fi
14861
14862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14864echo "${ECHO_T}$ac_header_compiler" >&6; }
14865
14866# Is the header present?
14867{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14868echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14869cat >conftest.$ac_ext <<_ACEOF
14870/* confdefs.h. */
14871_ACEOF
14872cat confdefs.h >>conftest.$ac_ext
14873cat >>conftest.$ac_ext <<_ACEOF
14874/* end confdefs.h. */
14875#include <opagent.h>
14876_ACEOF
14877if { (ac_try="$ac_cpp conftest.$ac_ext"
14878case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881esac
14882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } >/dev/null; then
14890 if test -s conftest.err; then
14891 ac_cpp_err=$ac_c_preproc_warn_flag
14892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14893 else
14894 ac_cpp_err=
14895 fi
14896else
14897 ac_cpp_err=yes
14898fi
14899if test -z "$ac_cpp_err"; then
14900 ac_header_preproc=yes
14901else
14902 echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 ac_header_preproc=no
14906fi
14907
14908rm -f conftest.err conftest.$ac_ext
14909{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14910echo "${ECHO_T}$ac_header_preproc" >&6; }
14911
14912# So? What about this header?
14913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14914 yes:no: )
14915 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14916echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14918echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14919 ac_header_preproc=yes
14920 ;;
14921 no:yes:* )
14922 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14923echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14925echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14927echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14929echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14931echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14933echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14934 ( cat <<\_ASBOX
14935## ----------------------------------- ##
14936## Report this to llvmbugs@cs.uiuc.edu ##
14937## ----------------------------------- ##
14938_ASBOX
14939 ) | sed "s/^/$as_me: WARNING: /" >&2
14940 ;;
14941esac
14942{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14943echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14944if test "${ac_cv_header_opagent_h+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946else
14947 ac_cv_header_opagent_h=$ac_header_preproc
14948fi
14949{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14950echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14951
14952fi
14953if test $ac_cv_header_opagent_h = yes; then
14954 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014955else
14956
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014957 echo "Error! You need to have opagent.h around."
14958 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014959
14960fi
14961
14962
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014963 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014964
14965else
14966
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014967 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014968
14969
14970fi
14971
14972
14973cat >>confdefs.h <<_ACEOF
14974#define USE_OPROFILE $USE_OPROFILE
14975_ACEOF
14976
14977
14978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014979
14980
14981
14982
14983
Reid Spencer59473af2004-12-25 07:31:29 +000014984ac_header_dirent=no
14985for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014986 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14987{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14988echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014992 cat >conftest.$ac_ext <<_ACEOF
14993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014997/* end confdefs.h. */
14998#include <sys/types.h>
14999#include <$ac_hdr>
15000
15001int
15002main ()
15003{
15004if ((DIR *) 0)
15005return 0;
15006 ;
15007 return 0;
15008}
15009_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015010rm -f conftest.$ac_objext
15011if { (ac_try="$ac_compile"
15012case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015esac
15016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025 { (case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028esac
15029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_try") 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015044 eval "$as_ac_Header=yes"
15045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000015050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051
Reid Spencera773bd52006-08-04 18:18:08 +000015052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015054ac_res=`eval echo '${'$as_ac_Header'}'`
15055 { echo "$as_me:$LINENO: result: $ac_res" >&5
15056echo "${ECHO_T}$ac_res" >&6; }
15057if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015058 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015059#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015060_ACEOF
15061
15062ac_header_dirent=$ac_hdr; break
15063fi
15064
15065done
15066# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15067if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015068 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15069echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15070if test "${ac_cv_search_opendir+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015072else
15073 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015074cat >conftest.$ac_ext <<_ACEOF
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015079/* end confdefs.h. */
15080
Reid Spencera773bd52006-08-04 18:18:08 +000015081/* Override any GCC internal prototype to avoid an error.
15082 Use char because int might match the return type of a GCC
15083 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015084#ifdef __cplusplus
15085extern "C"
15086#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015087char opendir ();
15088int
15089main ()
15090{
Reid Spencera773bd52006-08-04 18:18:08 +000015091return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015092 ;
15093 return 0;
15094}
15095_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015096for ac_lib in '' dir; do
15097 if test -z "$ac_lib"; then
15098 ac_res="none required"
15099 else
15100 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015102 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015103 rm -f conftest.$ac_objext conftest$ac_exeext
15104if { (ac_try="$ac_link"
15105case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108esac
15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_link") 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121esac
15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest$ac_exeext'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015137 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015138else
15139 echo "$as_me: failed program was:" >&5
15140sed 's/^/| /' conftest.$ac_ext >&5
15141
15142
Reid Spencer59473af2004-12-25 07:31:29 +000015143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015144
Bill Wendlingebcceee2009-04-18 11:20:33 +000015145rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015146 conftest$ac_exeext
15147 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015148 break
Reid Spencer59473af2004-12-25 07:31:29 +000015149fi
Reid Spencera773bd52006-08-04 18:18:08 +000015150done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015151if test "${ac_cv_search_opendir+set}" = set; then
15152 :
Reid Spencera773bd52006-08-04 18:18:08 +000015153else
15154 ac_cv_search_opendir=no
15155fi
15156rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015157LIBS=$ac_func_search_save_LIBS
15158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15160echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015161ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015162if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015164
15165fi
15166
15167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015168 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15169echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15170if test "${ac_cv_search_opendir+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015172else
15173 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015174cat >conftest.$ac_ext <<_ACEOF
15175/* confdefs.h. */
15176_ACEOF
15177cat confdefs.h >>conftest.$ac_ext
15178cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015179/* end confdefs.h. */
15180
Reid Spencera773bd52006-08-04 18:18:08 +000015181/* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015184#ifdef __cplusplus
15185extern "C"
15186#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015187char opendir ();
15188int
15189main ()
15190{
Reid Spencera773bd52006-08-04 18:18:08 +000015191return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015192 ;
15193 return 0;
15194}
15195_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015196for ac_lib in '' x; do
15197 if test -z "$ac_lib"; then
15198 ac_res="none required"
15199 else
15200 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015202 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015203 rm -f conftest.$ac_objext conftest$ac_exeext
15204if { (ac_try="$ac_link"
15205case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208esac
15209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221esac
15222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; } &&
15227 { ac_try='test -s conftest$ac_exeext'
15228 { (case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15231esac
15232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233 (eval "$ac_try") 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015237 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015238else
15239 echo "$as_me: failed program was:" >&5
15240sed 's/^/| /' conftest.$ac_ext >&5
15241
15242
Reid Spencer59473af2004-12-25 07:31:29 +000015243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015244
Bill Wendlingebcceee2009-04-18 11:20:33 +000015245rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015246 conftest$ac_exeext
15247 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015248 break
Reid Spencer59473af2004-12-25 07:31:29 +000015249fi
Reid Spencera773bd52006-08-04 18:18:08 +000015250done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015251if test "${ac_cv_search_opendir+set}" = set; then
15252 :
Reid Spencera773bd52006-08-04 18:18:08 +000015253else
15254 ac_cv_search_opendir=no
15255fi
15256rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015257LIBS=$ac_func_search_save_LIBS
15258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15260echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015261ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015262if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015264
15265fi
15266
15267fi
15268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015269{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15270echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15271if test "${ac_cv_header_mmap_anon+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015273else
15274 ac_ext=c
15275ac_cpp='$CPP $CPPFLAGS'
15276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278ac_compiler_gnu=$ac_cv_c_compiler_gnu
15279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015280 cat >conftest.$ac_ext <<_ACEOF
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015285/* end confdefs.h. */
15286#include <sys/mman.h>
15287#include <unistd.h>
15288#include <fcntl.h>
15289int
15290main ()
15291{
15292mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15293 ;
15294 return 0;
15295}
15296_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015297rm -f conftest.$ac_objext
15298if { (ac_try="$ac_compile"
15299case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315esac
15316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15325esac
15326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015331 ac_cv_header_mmap_anon=yes
15332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015333 echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015338
Reid Spencera773bd52006-08-04 18:18:08 +000015339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015340 ac_ext=c
15341ac_cpp='$CPP $CPPFLAGS'
15342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344ac_compiler_gnu=$ac_cv_c_compiler_gnu
15345
15346
15347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015348{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15349echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015350if test "$ac_cv_header_mmap_anon" = yes; then
15351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015352cat >>confdefs.h <<\_ACEOF
15353#define HAVE_MMAP_ANONYMOUS 1
15354_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015355
15356fi
15357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015358{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15359echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15360if test "${ac_cv_header_stat_broken+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015363 cat >conftest.$ac_ext <<_ACEOF
15364/* confdefs.h. */
15365_ACEOF
15366cat confdefs.h >>conftest.$ac_ext
15367cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015368/* end confdefs.h. */
15369#include <sys/types.h>
15370#include <sys/stat.h>
15371
Reid Spencera773bd52006-08-04 18:18:08 +000015372#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015373# if S_ISBLK (S_IFDIR)
15374You lose.
15375# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015376#endif
15377
Reid Spencera773bd52006-08-04 18:18:08 +000015378#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015379# if S_ISBLK (S_IFCHR)
15380You lose.
15381# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015382#endif
15383
Reid Spencera773bd52006-08-04 18:18:08 +000015384#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015385# if S_ISLNK (S_IFREG)
15386You lose.
15387# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015388#endif
15389
Reid Spencera773bd52006-08-04 18:18:08 +000015390#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015391# if S_ISSOCK (S_IFREG)
15392You lose.
15393# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015394#endif
15395
15396_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15398 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015399 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015400else
15401 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015403rm -f conftest*
15404
Reid Spencer59473af2004-12-25 07:31:29 +000015405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015406{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15407echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015408if test $ac_cv_header_stat_broken = yes; then
15409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015410cat >>confdefs.h <<\_ACEOF
15411#define STAT_MACROS_BROKEN 1
15412_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015413
15414fi
15415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015416{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15417echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15418if test "${ac_cv_header_stdc+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015421 cat >conftest.$ac_ext <<_ACEOF
15422/* confdefs.h. */
15423_ACEOF
15424cat confdefs.h >>conftest.$ac_ext
15425cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015426/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015427#include <stdlib.h>
15428#include <stdarg.h>
15429#include <string.h>
15430#include <float.h>
15431
John Criswell0c38eaf2003-09-10 15:17:25 +000015432int
15433main ()
15434{
15435
15436 ;
15437 return 0;
15438}
John Criswell7a73b802003-06-30 21:59:07 +000015439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015440rm -f conftest.$ac_objext
15441if { (ac_try="$ac_compile"
15442case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_compile") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15455 { (case "(($ac_try" in
15456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15458esac
15459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15460 (eval "$ac_try") 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468esac
15469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015474 ac_cv_header_stdc=yes
15475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015476 echo "$as_me: failed program was:" >&5
15477sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015481
Reid Spencera773bd52006-08-04 18:18:08 +000015482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015483
15484if test $ac_cv_header_stdc = yes; then
15485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015486 cat >conftest.$ac_ext <<_ACEOF
15487/* confdefs.h. */
15488_ACEOF
15489cat confdefs.h >>conftest.$ac_ext
15490cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015492#include <string.h>
15493
15494_ACEOF
15495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015496 $EGREP "memchr" >/dev/null 2>&1; then
15497 :
John Criswell7a73b802003-06-30 21:59:07 +000015498else
15499 ac_cv_header_stdc=no
15500fi
15501rm -f conftest*
15502
15503fi
15504
15505if test $ac_cv_header_stdc = yes; then
15506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015507 cat >conftest.$ac_ext <<_ACEOF
15508/* confdefs.h. */
15509_ACEOF
15510cat confdefs.h >>conftest.$ac_ext
15511cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015512/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015513#include <stdlib.h>
15514
15515_ACEOF
15516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015517 $EGREP "free" >/dev/null 2>&1; then
15518 :
John Criswell7a73b802003-06-30 21:59:07 +000015519else
15520 ac_cv_header_stdc=no
15521fi
15522rm -f conftest*
15523
15524fi
15525
15526if test $ac_cv_header_stdc = yes; then
15527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015528 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015529 :
15530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015531 cat >conftest.$ac_ext <<_ACEOF
15532/* confdefs.h. */
15533_ACEOF
15534cat confdefs.h >>conftest.$ac_ext
15535cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015537#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015538#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015539#if ((' ' & 0x0FF) == 0x020)
15540# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15541# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15542#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015543# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015544 (('a' <= (c) && (c) <= 'i') \
15545 || ('j' <= (c) && (c) <= 'r') \
15546 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015547# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15548#endif
15549
15550#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15551int
15552main ()
15553{
15554 int i;
15555 for (i = 0; i < 256; i++)
15556 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015557 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015558 return 2;
15559 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015560}
15561_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015562rm -f conftest$ac_exeext
15563if { (ac_try="$ac_link"
15564case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567esac
15568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_link") 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15573 { (case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15576esac
15577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_try") 2>&5
15579 ac_status=$?
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 :
John Criswell7a73b802003-06-30 21:59:07 +000015583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015584 echo "$as_me: program exited with status $ac_status" >&5
15585echo "$as_me: failed program was:" >&5
15586sed 's/^/| /' conftest.$ac_ext >&5
15587
15588( exit $ac_status )
15589ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015591rm -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 +000015592fi
15593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015594
John Criswell7a73b802003-06-30 21:59:07 +000015595fi
15596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015597{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15598echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015599if test $ac_cv_header_stdc = yes; then
15600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015601cat >>confdefs.h <<\_ACEOF
15602#define STDC_HEADERS 1
15603_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015604
15605fi
15606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015607{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15608echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15609if test "${ac_cv_header_sys_wait_h+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015612 cat >conftest.$ac_ext <<_ACEOF
15613/* confdefs.h. */
15614_ACEOF
15615cat confdefs.h >>conftest.$ac_ext
15616cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015618#include <sys/types.h>
15619#include <sys/wait.h>
15620#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015621# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015622#endif
15623#ifndef WIFEXITED
15624# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15625#endif
15626
John Criswell7a73b802003-06-30 21:59:07 +000015627int
15628main ()
15629{
15630 int s;
15631 wait (&s);
15632 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15633 ;
15634 return 0;
15635}
15636_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015637rm -f conftest.$ac_objext
15638if { (ac_try="$ac_compile"
15639case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15642esac
15643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_compile") 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655esac
15656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_try") 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest.$ac_objext'
15662 { (case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665esac
15666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_try") 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015671 ac_cv_header_sys_wait_h=yes
15672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015673 echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015678
Reid Spencera773bd52006-08-04 18:18:08 +000015679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015681{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15682echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015683if test $ac_cv_header_sys_wait_h = yes; then
15684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015685cat >>confdefs.h <<\_ACEOF
15686#define HAVE_SYS_WAIT_H 1
15687_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015688
15689fi
15690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015691{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15692echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15693if test "${ac_cv_header_time+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015695else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015696 cat >conftest.$ac_ext <<_ACEOF
15697/* confdefs.h. */
15698_ACEOF
15699cat confdefs.h >>conftest.$ac_ext
15700cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015701/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015702#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015703#include <sys/time.h>
15704#include <time.h>
15705
15706int
15707main ()
15708{
15709if ((struct tm *) 0)
15710return 0;
15711 ;
15712 return 0;
15713}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015714_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015715rm -f conftest.$ac_objext
15716if { (ac_try="$ac_compile"
15717case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720esac
15721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15730 { (case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15733esac
15734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_try") 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
15740 { (case "(($ac_try" in
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15743esac
15744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_try") 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015749 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015756
Reid Spencera773bd52006-08-04 18:18:08 +000015757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015759{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15760echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015761if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015763cat >>confdefs.h <<\_ACEOF
15764#define TIME_WITH_SYS_TIME 1
15765_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015766
15767fi
15768
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015770
15771
15772
15773
15774
15775
Reid Spencer59473af2004-12-25 07:31:29 +000015776for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015777do
15778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15784fi
15785ac_res=`eval echo '${'$as_ac_Header'}'`
15786 { echo "$as_me:$LINENO: result: $ac_res" >&5
15787echo "${ECHO_T}$ac_res" >&6; }
15788else
15789 # Is the header compilable?
15790{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15792cat >conftest.$ac_ext <<_ACEOF
15793/* confdefs.h. */
15794_ACEOF
15795cat confdefs.h >>conftest.$ac_ext
15796cat >>conftest.$ac_ext <<_ACEOF
15797/* end confdefs.h. */
15798$ac_includes_default
15799#include <$ac_header>
15800_ACEOF
15801rm -f conftest.$ac_objext
15802if { (ac_try="$ac_compile"
15803case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15806esac
15807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_compile") 2>conftest.er1
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } &&
15815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15816 { (case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819esac
15820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_try") 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest.$ac_objext'
15826 { (case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829esac
15830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_try") 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_header_compiler=yes
15836else
15837 echo "$as_me: failed program was:" >&5
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
15840 ac_header_compiler=no
15841fi
15842
15843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15845echo "${ECHO_T}$ac_header_compiler" >&6; }
15846
15847# Is the header present?
15848{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15850cat >conftest.$ac_ext <<_ACEOF
15851/* confdefs.h. */
15852_ACEOF
15853cat confdefs.h >>conftest.$ac_ext
15854cat >>conftest.$ac_ext <<_ACEOF
15855/* end confdefs.h. */
15856#include <$ac_header>
15857_ACEOF
15858if { (ac_try="$ac_cpp conftest.$ac_ext"
15859case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15862esac
15863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } >/dev/null; then
15871 if test -s conftest.err; then
15872 ac_cpp_err=$ac_c_preproc_warn_flag
15873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15874 else
15875 ac_cpp_err=
15876 fi
15877else
15878 ac_cpp_err=yes
15879fi
15880if test -z "$ac_cpp_err"; then
15881 ac_header_preproc=yes
15882else
15883 echo "$as_me: failed program was:" >&5
15884sed 's/^/| /' conftest.$ac_ext >&5
15885
15886 ac_header_preproc=no
15887fi
15888
15889rm -f conftest.err conftest.$ac_ext
15890{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15891echo "${ECHO_T}$ac_header_preproc" >&6; }
15892
15893# So? What about this header?
15894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15895 yes:no: )
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15900 ac_header_preproc=yes
15901 ;;
15902 no:yes:* )
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15915 ( cat <<\_ASBOX
15916## ----------------------------------- ##
15917## Report this to llvmbugs@cs.uiuc.edu ##
15918## ----------------------------------- ##
15919_ASBOX
15920 ) | sed "s/^/$as_me: WARNING: /" >&2
15921 ;;
15922esac
15923{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15927else
15928 eval "$as_ac_Header=\$ac_header_preproc"
15929fi
15930ac_res=`eval echo '${'$as_ac_Header'}'`
15931 { echo "$as_me:$LINENO: result: $ac_res" >&5
15932echo "${ECHO_T}$ac_res" >&6; }
15933
15934fi
15935if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015936 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015938_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015939
15940fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015941
Reid Spencer59473af2004-12-25 07:31:29 +000015942done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015944
15945
15946
15947
15948
15949
Douglas Gregor071d73d2009-05-18 17:21:34 +000015950for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015951do
15952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958fi
15959ac_res=`eval echo '${'$as_ac_Header'}'`
15960 { echo "$as_me:$LINENO: result: $ac_res" >&5
15961echo "${ECHO_T}$ac_res" >&6; }
15962else
15963 # Is the header compilable?
15964{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15966cat >conftest.$ac_ext <<_ACEOF
15967/* confdefs.h. */
15968_ACEOF
15969cat confdefs.h >>conftest.$ac_ext
15970cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h. */
15972$ac_includes_default
15973#include <$ac_header>
15974_ACEOF
15975rm -f conftest.$ac_objext
15976if { (ac_try="$ac_compile"
15977case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980esac
15981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_compile") 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15990 { (case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15993esac
15994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995 (eval "$ac_try") 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16003esac
16004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_try") 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_header_compiler=yes
16010else
16011 echo "$as_me: failed program was:" >&5
16012sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 ac_header_compiler=no
16015fi
16016
16017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16019echo "${ECHO_T}$ac_header_compiler" >&6; }
16020
16021# Is the header present?
16022{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16023echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16024cat >conftest.$ac_ext <<_ACEOF
16025/* confdefs.h. */
16026_ACEOF
16027cat confdefs.h >>conftest.$ac_ext
16028cat >>conftest.$ac_ext <<_ACEOF
16029/* end confdefs.h. */
16030#include <$ac_header>
16031_ACEOF
16032if { (ac_try="$ac_cpp conftest.$ac_ext"
16033case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036esac
16037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } >/dev/null; then
16045 if test -s conftest.err; then
16046 ac_cpp_err=$ac_c_preproc_warn_flag
16047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16048 else
16049 ac_cpp_err=
16050 fi
16051else
16052 ac_cpp_err=yes
16053fi
16054if test -z "$ac_cpp_err"; then
16055 ac_header_preproc=yes
16056else
16057 echo "$as_me: failed program was:" >&5
16058sed 's/^/| /' conftest.$ac_ext >&5
16059
16060 ac_header_preproc=no
16061fi
16062
16063rm -f conftest.err conftest.$ac_ext
16064{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16065echo "${ECHO_T}$ac_header_preproc" >&6; }
16066
16067# So? What about this header?
16068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16069 yes:no: )
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16074 ac_header_preproc=yes
16075 ;;
16076 no:yes:* )
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16084echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16089 ( cat <<\_ASBOX
16090## ----------------------------------- ##
16091## Report this to llvmbugs@cs.uiuc.edu ##
16092## ----------------------------------- ##
16093_ASBOX
16094 ) | sed "s/^/$as_me: WARNING: /" >&2
16095 ;;
16096esac
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
16101else
16102 eval "$as_ac_Header=\$ac_header_preproc"
16103fi
16104ac_res=`eval echo '${'$as_ac_Header'}'`
16105 { echo "$as_me:$LINENO: result: $ac_res" >&5
16106echo "${ECHO_T}$ac_res" >&6; }
16107
16108fi
16109if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016110 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016112_ACEOF
16113
16114fi
16115
16116done
16117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016118
16119
Douglas Gregor071d73d2009-05-18 17:21:34 +000016120for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016121do
16122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16128fi
16129ac_res=`eval echo '${'$as_ac_Header'}'`
16130 { echo "$as_me:$LINENO: result: $ac_res" >&5
16131echo "${ECHO_T}$ac_res" >&6; }
16132else
16133 # Is the header compilable?
16134{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16136cat >conftest.$ac_ext <<_ACEOF
16137/* confdefs.h. */
16138_ACEOF
16139cat confdefs.h >>conftest.$ac_ext
16140cat >>conftest.$ac_ext <<_ACEOF
16141/* end confdefs.h. */
16142$ac_includes_default
16143#include <$ac_header>
16144_ACEOF
16145rm -f conftest.$ac_objext
16146if { (ac_try="$ac_compile"
16147case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16150esac
16151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_compile") 2>conftest.er1
16153 ac_status=$?
16154 grep -v '^ *+' conftest.er1 >conftest.err
16155 rm -f conftest.er1
16156 cat conftest.err >&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16160 { (case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163esac
16164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_try") 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; } &&
16169 { ac_try='test -s conftest.$ac_objext'
16170 { (case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16173esac
16174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_try") 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 ac_header_compiler=yes
16180else
16181 echo "$as_me: failed program was:" >&5
16182sed 's/^/| /' conftest.$ac_ext >&5
16183
16184 ac_header_compiler=no
16185fi
16186
16187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16189echo "${ECHO_T}$ac_header_compiler" >&6; }
16190
16191# Is the header present?
16192{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16194cat >conftest.$ac_ext <<_ACEOF
16195/* confdefs.h. */
16196_ACEOF
16197cat confdefs.h >>conftest.$ac_ext
16198cat >>conftest.$ac_ext <<_ACEOF
16199/* end confdefs.h. */
16200#include <$ac_header>
16201_ACEOF
16202if { (ac_try="$ac_cpp conftest.$ac_ext"
16203case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16206esac
16207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } >/dev/null; then
16215 if test -s conftest.err; then
16216 ac_cpp_err=$ac_c_preproc_warn_flag
16217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16218 else
16219 ac_cpp_err=
16220 fi
16221else
16222 ac_cpp_err=yes
16223fi
16224if test -z "$ac_cpp_err"; then
16225 ac_header_preproc=yes
16226else
16227 echo "$as_me: failed program was:" >&5
16228sed 's/^/| /' conftest.$ac_ext >&5
16229
16230 ac_header_preproc=no
16231fi
16232
16233rm -f conftest.err conftest.$ac_ext
16234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16235echo "${ECHO_T}$ac_header_preproc" >&6; }
16236
16237# So? What about this header?
16238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16239 yes:no: )
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16244 ac_header_preproc=yes
16245 ;;
16246 no:yes:* )
16247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16259 ( cat <<\_ASBOX
16260## ----------------------------------- ##
16261## Report this to llvmbugs@cs.uiuc.edu ##
16262## ----------------------------------- ##
16263_ASBOX
16264 ) | sed "s/^/$as_me: WARNING: /" >&2
16265 ;;
16266esac
16267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16271else
16272 eval "$as_ac_Header=\$ac_header_preproc"
16273fi
16274ac_res=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276echo "${ECHO_T}$ac_res" >&6; }
16277
16278fi
16279if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016280 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016282_ACEOF
16283
16284fi
16285
16286done
Reid Spencer59473af2004-12-25 07:31:29 +000016287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016288
16289
16290
16291
Daniel Dunbar3e462932011-02-03 02:40:02 +000016292
16293for 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 +000016294do
16295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301fi
16302ac_res=`eval echo '${'$as_ac_Header'}'`
16303 { echo "$as_me:$LINENO: result: $ac_res" >&5
16304echo "${ECHO_T}$ac_res" >&6; }
16305else
16306 # Is the header compilable?
16307{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16309cat >conftest.$ac_ext <<_ACEOF
16310/* confdefs.h. */
16311_ACEOF
16312cat confdefs.h >>conftest.$ac_ext
16313cat >>conftest.$ac_ext <<_ACEOF
16314/* end confdefs.h. */
16315$ac_includes_default
16316#include <$ac_header>
16317_ACEOF
16318rm -f conftest.$ac_objext
16319if { (ac_try="$ac_compile"
16320case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_compile") 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16336esac
16337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346esac
16347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_try") 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler=yes
16353else
16354 echo "$as_me: failed program was:" >&5
16355sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 ac_header_compiler=no
16358fi
16359
16360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16362echo "${ECHO_T}$ac_header_compiler" >&6; }
16363
16364# Is the header present?
16365{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16366echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16367cat >conftest.$ac_ext <<_ACEOF
16368/* confdefs.h. */
16369_ACEOF
16370cat confdefs.h >>conftest.$ac_ext
16371cat >>conftest.$ac_ext <<_ACEOF
16372/* end confdefs.h. */
16373#include <$ac_header>
16374_ACEOF
16375if { (ac_try="$ac_cpp conftest.$ac_ext"
16376case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16379esac
16380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16382 ac_status=$?
16383 grep -v '^ *+' conftest.er1 >conftest.err
16384 rm -f conftest.er1
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } >/dev/null; then
16388 if test -s conftest.err; then
16389 ac_cpp_err=$ac_c_preproc_warn_flag
16390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16391 else
16392 ac_cpp_err=
16393 fi
16394else
16395 ac_cpp_err=yes
16396fi
16397if test -z "$ac_cpp_err"; then
16398 ac_header_preproc=yes
16399else
16400 echo "$as_me: failed program was:" >&5
16401sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 ac_header_preproc=no
16404fi
16405
16406rm -f conftest.err conftest.$ac_ext
16407{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16408echo "${ECHO_T}$ac_header_preproc" >&6; }
16409
16410# So? What about this header?
16411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16412 yes:no: )
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16417 ac_header_preproc=yes
16418 ;;
16419 no:yes:* )
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16432 ( cat <<\_ASBOX
16433## ----------------------------------- ##
16434## Report this to llvmbugs@cs.uiuc.edu ##
16435## ----------------------------------- ##
16436_ASBOX
16437 ) | sed "s/^/$as_me: WARNING: /" >&2
16438 ;;
16439esac
16440{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16444else
16445 eval "$as_ac_Header=\$ac_header_preproc"
16446fi
16447ac_res=`eval echo '${'$as_ac_Header'}'`
16448 { echo "$as_me:$LINENO: result: $ac_res" >&5
16449echo "${ECHO_T}$ac_res" >&6; }
16450
16451fi
16452if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016453 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016455_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016456
16457fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016458
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016459done
16460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016461
16462
16463
16464
Douglas Gregor01746742009-05-11 18:05:52 +000016465for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016466do
16467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473fi
16474ac_res=`eval echo '${'$as_ac_Header'}'`
16475 { echo "$as_me:$LINENO: result: $ac_res" >&5
16476echo "${ECHO_T}$ac_res" >&6; }
16477else
16478 # Is the header compilable?
16479{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16481cat >conftest.$ac_ext <<_ACEOF
16482/* confdefs.h. */
16483_ACEOF
16484cat confdefs.h >>conftest.$ac_ext
16485cat >>conftest.$ac_ext <<_ACEOF
16486/* end confdefs.h. */
16487$ac_includes_default
16488#include <$ac_header>
16489_ACEOF
16490rm -f conftest.$ac_objext
16491if { (ac_try="$ac_compile"
16492case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16495esac
16496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_compile") 2>conftest.er1
16498 ac_status=$?
16499 grep -v '^ *+' conftest.er1 >conftest.err
16500 rm -f conftest.er1
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508esac
16509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518esac
16519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_header_compiler=yes
16525else
16526 echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529 ac_header_compiler=no
16530fi
16531
16532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16534echo "${ECHO_T}$ac_header_compiler" >&6; }
16535
16536# Is the header present?
16537{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16539cat >conftest.$ac_ext <<_ACEOF
16540/* confdefs.h. */
16541_ACEOF
16542cat confdefs.h >>conftest.$ac_ext
16543cat >>conftest.$ac_ext <<_ACEOF
16544/* end confdefs.h. */
16545#include <$ac_header>
16546_ACEOF
16547if { (ac_try="$ac_cpp conftest.$ac_ext"
16548case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16551esac
16552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16554 ac_status=$?
16555 grep -v '^ *+' conftest.er1 >conftest.err
16556 rm -f conftest.er1
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } >/dev/null; then
16560 if test -s conftest.err; then
16561 ac_cpp_err=$ac_c_preproc_warn_flag
16562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16563 else
16564 ac_cpp_err=
16565 fi
16566else
16567 ac_cpp_err=yes
16568fi
16569if test -z "$ac_cpp_err"; then
16570 ac_header_preproc=yes
16571else
16572 echo "$as_me: failed program was:" >&5
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 ac_header_preproc=no
16576fi
16577
16578rm -f conftest.err conftest.$ac_ext
16579{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16580echo "${ECHO_T}$ac_header_preproc" >&6; }
16581
16582# So? What about this header?
16583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16584 yes:no: )
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16589 ac_header_preproc=yes
16590 ;;
16591 no:yes:* )
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16604 ( cat <<\_ASBOX
16605## ----------------------------------- ##
16606## Report this to llvmbugs@cs.uiuc.edu ##
16607## ----------------------------------- ##
16608_ASBOX
16609 ) | sed "s/^/$as_me: WARNING: /" >&2
16610 ;;
16611esac
16612{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16616else
16617 eval "$as_ac_Header=\$ac_header_preproc"
16618fi
16619ac_res=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result: $ac_res" >&5
16621echo "${ECHO_T}$ac_res" >&6; }
16622
16623fi
16624if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016625 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016627_ACEOF
16628
16629fi
16630
16631done
16632
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016633
16634for ac_header in valgrind/valgrind.h
16635do
16636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16642fi
16643ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645echo "${ECHO_T}$ac_res" >&6; }
16646else
16647 # Is the header compilable?
16648{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16650cat >conftest.$ac_ext <<_ACEOF
16651/* confdefs.h. */
16652_ACEOF
16653cat confdefs.h >>conftest.$ac_ext
16654cat >>conftest.$ac_ext <<_ACEOF
16655/* end confdefs.h. */
16656$ac_includes_default
16657#include <$ac_header>
16658_ACEOF
16659rm -f conftest.$ac_objext
16660if { (ac_try="$ac_compile"
16661case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664esac
16665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_compile") 2>conftest.er1
16667 ac_status=$?
16668 grep -v '^ *+' conftest.er1 >conftest.err
16669 rm -f conftest.er1
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16677esac
16678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; } &&
16683 { ac_try='test -s conftest.$ac_objext'
16684 { (case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687esac
16688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_try") 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 ac_header_compiler=yes
16694else
16695 echo "$as_me: failed program was:" >&5
16696sed 's/^/| /' conftest.$ac_ext >&5
16697
16698 ac_header_compiler=no
16699fi
16700
16701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16703echo "${ECHO_T}$ac_header_compiler" >&6; }
16704
16705# Is the header present?
16706{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16708cat >conftest.$ac_ext <<_ACEOF
16709/* confdefs.h. */
16710_ACEOF
16711cat confdefs.h >>conftest.$ac_ext
16712cat >>conftest.$ac_ext <<_ACEOF
16713/* end confdefs.h. */
16714#include <$ac_header>
16715_ACEOF
16716if { (ac_try="$ac_cpp conftest.$ac_ext"
16717case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16723 ac_status=$?
16724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } >/dev/null; then
16729 if test -s conftest.err; then
16730 ac_cpp_err=$ac_c_preproc_warn_flag
16731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16732 else
16733 ac_cpp_err=
16734 fi
16735else
16736 ac_cpp_err=yes
16737fi
16738if test -z "$ac_cpp_err"; then
16739 ac_header_preproc=yes
16740else
16741 echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 ac_header_preproc=no
16745fi
16746
16747rm -f conftest.err conftest.$ac_ext
16748{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16749echo "${ECHO_T}$ac_header_preproc" >&6; }
16750
16751# So? What about this header?
16752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16753 yes:no: )
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16758 ac_header_preproc=yes
16759 ;;
16760 no:yes:* )
16761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16764echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16768echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16773 ( cat <<\_ASBOX
16774## ----------------------------------- ##
16775## Report this to llvmbugs@cs.uiuc.edu ##
16776## ----------------------------------- ##
16777_ASBOX
16778 ) | sed "s/^/$as_me: WARNING: /" >&2
16779 ;;
16780esac
16781{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785else
16786 eval "$as_ac_Header=\$ac_header_preproc"
16787fi
16788ac_res=`eval echo '${'$as_ac_Header'}'`
16789 { echo "$as_me:$LINENO: result: $ac_res" >&5
16790echo "${ECHO_T}$ac_res" >&6; }
16791
16792fi
16793if test `eval echo '${'$as_ac_Header'}'` = yes; then
16794 cat >>confdefs.h <<_ACEOF
16795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16796_ACEOF
16797
16798fi
16799
16800done
16801
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016802
16803for ac_header in fenv.h
16804do
16805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16811fi
16812ac_res=`eval echo '${'$as_ac_Header'}'`
16813 { echo "$as_me:$LINENO: result: $ac_res" >&5
16814echo "${ECHO_T}$ac_res" >&6; }
16815else
16816 # Is the header compilable?
16817{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16819cat >conftest.$ac_ext <<_ACEOF
16820/* confdefs.h. */
16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
16824/* end confdefs.h. */
16825$ac_includes_default
16826#include <$ac_header>
16827_ACEOF
16828rm -f conftest.$ac_objext
16829if { (ac_try="$ac_compile"
16830case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_compile") 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846esac
16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_header_compiler=yes
16863else
16864 echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
16867 ac_header_compiler=no
16868fi
16869
16870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16872echo "${ECHO_T}$ac_header_compiler" >&6; }
16873
16874# Is the header present?
16875{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16877cat >conftest.$ac_ext <<_ACEOF
16878/* confdefs.h. */
16879_ACEOF
16880cat confdefs.h >>conftest.$ac_ext
16881cat >>conftest.$ac_ext <<_ACEOF
16882/* end confdefs.h. */
16883#include <$ac_header>
16884_ACEOF
16885if { (ac_try="$ac_cpp conftest.$ac_ext"
16886case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889esac
16890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } >/dev/null; then
16898 if test -s conftest.err; then
16899 ac_cpp_err=$ac_c_preproc_warn_flag
16900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16901 else
16902 ac_cpp_err=
16903 fi
16904else
16905 ac_cpp_err=yes
16906fi
16907if test -z "$ac_cpp_err"; then
16908 ac_header_preproc=yes
16909else
16910 echo "$as_me: failed program was:" >&5
16911sed 's/^/| /' conftest.$ac_ext >&5
16912
16913 ac_header_preproc=no
16914fi
16915
16916rm -f conftest.err conftest.$ac_ext
16917{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16918echo "${ECHO_T}$ac_header_preproc" >&6; }
16919
16920# So? What about this header?
16921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16922 yes:no: )
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16926echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16927 ac_header_preproc=yes
16928 ;;
16929 no:yes:* )
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16933echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16935echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16937echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16941echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16942 ( cat <<\_ASBOX
16943## ----------------------------------- ##
16944## Report this to llvmbugs@cs.uiuc.edu ##
16945## ----------------------------------- ##
16946_ASBOX
16947 ) | sed "s/^/$as_me: WARNING: /" >&2
16948 ;;
16949esac
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
16954else
16955 eval "$as_ac_Header=\$ac_header_preproc"
16956fi
16957ac_res=`eval echo '${'$as_ac_Header'}'`
16958 { echo "$as_me:$LINENO: result: $ac_res" >&5
16959echo "${ECHO_T}$ac_res" >&6; }
16960
16961fi
16962if test `eval echo '${'$as_ac_Header'}'` = yes; then
16963 cat >>confdefs.h <<_ACEOF
16964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16965_ACEOF
16966
16967fi
16968
16969done
16970
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000016971if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016972
16973for ac_header in pthread.h
16974do
16975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981fi
16982ac_res=`eval echo '${'$as_ac_Header'}'`
16983 { echo "$as_me:$LINENO: result: $ac_res" >&5
16984echo "${ECHO_T}$ac_res" >&6; }
16985else
16986 # Is the header compilable?
16987{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16989cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995$ac_includes_default
16996#include <$ac_header>
16997_ACEOF
16998rm -f conftest.$ac_objext
16999if { (ac_try="$ac_compile"
17000case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_compile") 2>conftest.er1
17006 ac_status=$?
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } &&
17012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17013 { (case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016esac
17017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_try") 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest.$ac_objext'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026esac
17027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_header_compiler=yes
17033else
17034 echo "$as_me: failed program was:" >&5
17035sed 's/^/| /' conftest.$ac_ext >&5
17036
17037 ac_header_compiler=no
17038fi
17039
17040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17042echo "${ECHO_T}$ac_header_compiler" >&6; }
17043
17044# Is the header present?
17045{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17047cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053#include <$ac_header>
17054_ACEOF
17055if { (ac_try="$ac_cpp conftest.$ac_ext"
17056case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } >/dev/null; then
17068 if test -s conftest.err; then
17069 ac_cpp_err=$ac_c_preproc_warn_flag
17070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17071 else
17072 ac_cpp_err=
17073 fi
17074else
17075 ac_cpp_err=yes
17076fi
17077if test -z "$ac_cpp_err"; then
17078 ac_header_preproc=yes
17079else
17080 echo "$as_me: failed program was:" >&5
17081sed 's/^/| /' conftest.$ac_ext >&5
17082
17083 ac_header_preproc=no
17084fi
17085
17086rm -f conftest.err conftest.$ac_ext
17087{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17088echo "${ECHO_T}$ac_header_preproc" >&6; }
17089
17090# So? What about this header?
17091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17092 yes:no: )
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17097 ac_header_preproc=yes
17098 ;;
17099 no:yes:* )
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17103echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17107echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17112 ( cat <<\_ASBOX
17113## ----------------------------------- ##
17114## Report this to llvmbugs@cs.uiuc.edu ##
17115## ----------------------------------- ##
17116_ASBOX
17117 ) | sed "s/^/$as_me: WARNING: /" >&2
17118 ;;
17119esac
17120{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17124else
17125 eval "$as_ac_Header=\$ac_header_preproc"
17126fi
17127ac_res=`eval echo '${'$as_ac_Header'}'`
17128 { echo "$as_me:$LINENO: result: $ac_res" >&5
17129echo "${ECHO_T}$ac_res" >&6; }
17130
17131fi
17132if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017133 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017135_ACEOF
17136 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017137
17138else
17139 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017140
17141fi
17142
Reid Spencerbe3e4192007-08-17 05:45:26 +000017143done
Reid Spencer1000b732006-12-01 00:37:14 +000017144
17145else
17146 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017147
17148fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017149
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017150if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017151
17152
17153for ac_header in ffi.h ffi/ffi.h
17154do
17155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17161fi
17162ac_res=`eval echo '${'$as_ac_Header'}'`
17163 { echo "$as_me:$LINENO: result: $ac_res" >&5
17164echo "${ECHO_T}$ac_res" >&6; }
17165else
17166 # Is the header compilable?
17167{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17168echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17169cat >conftest.$ac_ext <<_ACEOF
17170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
17175$ac_includes_default
17176#include <$ac_header>
17177_ACEOF
17178rm -f conftest.$ac_objext
17179if { (ac_try="$ac_compile"
17180case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17183esac
17184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17186 ac_status=$?
17187 grep -v '^ *+' conftest.er1 >conftest.err
17188 rm -f conftest.er1
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196esac
17197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest.$ac_objext'
17203 { (case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17206esac
17207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_try") 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 ac_header_compiler=yes
17213else
17214 echo "$as_me: failed program was:" >&5
17215sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 ac_header_compiler=no
17218fi
17219
17220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17222echo "${ECHO_T}$ac_header_compiler" >&6; }
17223
17224# Is the header present?
17225{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17227cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
17233#include <$ac_header>
17234_ACEOF
17235if { (ac_try="$ac_cpp conftest.$ac_ext"
17236case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } >/dev/null; then
17248 if test -s conftest.err; then
17249 ac_cpp_err=$ac_c_preproc_warn_flag
17250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17251 else
17252 ac_cpp_err=
17253 fi
17254else
17255 ac_cpp_err=yes
17256fi
17257if test -z "$ac_cpp_err"; then
17258 ac_header_preproc=yes
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263 ac_header_preproc=no
17264fi
17265
17266rm -f conftest.err conftest.$ac_ext
17267{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17268echo "${ECHO_T}$ac_header_preproc" >&6; }
17269
17270# So? What about this header?
17271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17272 yes:no: )
17273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17277 ac_header_preproc=yes
17278 ;;
17279 no:yes:* )
17280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17292 ( cat <<\_ASBOX
17293## ----------------------------------- ##
17294## Report this to llvmbugs@cs.uiuc.edu ##
17295## ----------------------------------- ##
17296_ASBOX
17297 ) | sed "s/^/$as_me: WARNING: /" >&2
17298 ;;
17299esac
17300{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304else
17305 eval "$as_ac_Header=\$ac_header_preproc"
17306fi
17307ac_res=`eval echo '${'$as_ac_Header'}'`
17308 { echo "$as_me:$LINENO: result: $ac_res" >&5
17309echo "${ECHO_T}$ac_res" >&6; }
17310
17311fi
17312if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017313 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017315_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017316
17317fi
17318
17319done
17320
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017321fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017322
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017323
Eric Christopher654dee42010-06-22 21:01:04 +000017324for ac_header in CrashReporterClient.h
17325do
17326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17332fi
17333ac_res=`eval echo '${'$as_ac_Header'}'`
17334 { echo "$as_me:$LINENO: result: $ac_res" >&5
17335echo "${ECHO_T}$ac_res" >&6; }
17336else
17337 # Is the header compilable?
17338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17340cat >conftest.$ac_ext <<_ACEOF
17341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
17346$ac_includes_default
17347#include <$ac_header>
17348_ACEOF
17349rm -f conftest.$ac_objext
17350if { (ac_try="$ac_compile"
17351case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17354esac
17355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367esac
17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest.$ac_objext'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377esac
17378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_header_compiler=yes
17384else
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388 ac_header_compiler=no
17389fi
17390
17391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17393echo "${ECHO_T}$ac_header_compiler" >&6; }
17394
17395# Is the header present?
17396{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17398cat >conftest.$ac_ext <<_ACEOF
17399/* confdefs.h. */
17400_ACEOF
17401cat confdefs.h >>conftest.$ac_ext
17402cat >>conftest.$ac_ext <<_ACEOF
17403/* end confdefs.h. */
17404#include <$ac_header>
17405_ACEOF
17406if { (ac_try="$ac_cpp conftest.$ac_ext"
17407case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17410esac
17411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17413 ac_status=$?
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } >/dev/null; then
17419 if test -s conftest.err; then
17420 ac_cpp_err=$ac_c_preproc_warn_flag
17421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17422 else
17423 ac_cpp_err=
17424 fi
17425else
17426 ac_cpp_err=yes
17427fi
17428if test -z "$ac_cpp_err"; then
17429 ac_header_preproc=yes
17430else
17431 echo "$as_me: failed program was:" >&5
17432sed 's/^/| /' conftest.$ac_ext >&5
17433
17434 ac_header_preproc=no
17435fi
17436
17437rm -f conftest.err conftest.$ac_ext
17438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17439echo "${ECHO_T}$ac_header_preproc" >&6; }
17440
17441# So? What about this header?
17442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17443 yes:no: )
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17448 ac_header_preproc=yes
17449 ;;
17450 no:yes:* )
17451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17458echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17463 ( cat <<\_ASBOX
17464## ----------------------------------- ##
17465## Report this to llvmbugs@cs.uiuc.edu ##
17466## ----------------------------------- ##
17467_ASBOX
17468 ) | sed "s/^/$as_me: WARNING: /" >&2
17469 ;;
17470esac
17471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17475else
17476 eval "$as_ac_Header=\$ac_header_preproc"
17477fi
17478ac_res=`eval echo '${'$as_ac_Header'}'`
17479 { echo "$as_me:$LINENO: result: $ac_res" >&5
17480echo "${ECHO_T}$ac_res" >&6; }
17481
17482fi
17483if test `eval echo '${'$as_ac_Header'}'` = yes; then
17484 cat >>confdefs.h <<_ACEOF
17485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17486_ACEOF
17487
17488fi
17489
17490done
17491
17492
Eric Christopher51e57132010-12-07 02:05:42 +000017493{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17494echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017495cat >conftest.$ac_ext <<_ACEOF
17496/* confdefs.h. */
17497_ACEOF
17498cat confdefs.h >>conftest.$ac_ext
17499cat >>conftest.$ac_ext <<_ACEOF
17500/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017501extern const char *__crashreporter_info__;
17502 int main() {
17503 __crashreporter_info__ = "test";
17504 return 0;
17505 }
Eric Christopher481d4022010-12-03 07:45:22 +000017506
Eric Christopher481d4022010-12-03 07:45:22 +000017507_ACEOF
17508rm -f conftest.$ac_objext conftest$ac_exeext
17509if { (ac_try="$ac_link"
17510case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513esac
17514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_link") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526esac
17527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536esac
17537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017542 { echo "$as_me:$LINENO: result: yes" >&5
17543echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017544
17545cat >>confdefs.h <<\_ACEOF
17546#define HAVE_CRASHREPORTER_INFO 1
17547_ACEOF
17548
Eric Christopher51e57132010-12-07 02:05:42 +000017549else
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 { echo "$as_me:$LINENO: result: no" >&5
17554echo "${ECHO_T}no" >&6; }
17555
17556cat >>confdefs.h <<\_ACEOF
17557#define HAVE_CRASHREPORTER_INFO 0
17558_ACEOF
17559
Eric Christopher481d4022010-12-03 07:45:22 +000017560fi
Eric Christopher654dee42010-06-22 21:01:04 +000017561
Eric Christopher51e57132010-12-07 02:05:42 +000017562rm -f core conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17564
17565
Reid Spencer8085cff2005-01-16 02:58:39 +000017566
Torok Edwin871384f2010-01-26 08:50:50 +000017567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017568 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17569echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17570if test "${ac_cv_huge_val_sanity+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017572else
17573
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017574 ac_ext=cpp
17575ac_cpp='$CXXCPP $CPPFLAGS'
17576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017579
Eric Christopherc7718502010-03-02 05:06:54 +000017580 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017581 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017582 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017583 ac_cv_huge_val_sanity=yes
17584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017585 cat >conftest.$ac_ext <<_ACEOF
17586/* confdefs.h. */
17587_ACEOF
17588cat confdefs.h >>conftest.$ac_ext
17589cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017590/* end confdefs.h. */
17591#include <math.h>
17592int
17593main ()
17594{
17595double x = HUGE_VAL; return x != x;
17596 ;
17597 return 0;
17598}
17599_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017600rm -f conftest$ac_exeext
17601if { (ac_try="$ac_link"
17602case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17605esac
17606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_link") 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614esac
17615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017620 ac_cv_huge_val_sanity=yes
17621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017622 echo "$as_me: program exited with status $ac_status" >&5
17623echo "$as_me: failed program was:" >&5
17624sed 's/^/| /' conftest.$ac_ext >&5
17625
17626( exit $ac_status )
17627ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017629rm -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 +000017630fi
17631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017632
Eric Christopherc7718502010-03-02 05:06:54 +000017633 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017634 ac_ext=c
17635ac_cpp='$CPP $CPPFLAGS'
17636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638ac_compiler_gnu=$ac_cv_c_compiler_gnu
17639
17640
17641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017642{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17643echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017644 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17645
17646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017647{ echo "$as_me:$LINENO: checking for pid_t" >&5
17648echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17649if test "${ac_cv_type_pid_t+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651else
17652 cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658$ac_includes_default
17659typedef pid_t ac__type_new_;
17660int
17661main ()
17662{
17663if ((ac__type_new_ *) 0)
17664 return 0;
17665if (sizeof (ac__type_new_))
17666 return 0;
17667 ;
17668 return 0;
17669}
17670_ACEOF
17671rm -f conftest.$ac_objext
17672if { (ac_try="$ac_compile"
17673case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676esac
17677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_compile") 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689esac
17690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17699esac
17700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_type_pid_t=yes
17706else
17707 echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017710 ac_cv_type_pid_t=no
17711fi
17712
17713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714fi
17715{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17716echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17717if test $ac_cv_type_pid_t = yes; then
17718 :
John Criswell7a73b802003-06-30 21:59:07 +000017719else
17720
17721cat >>confdefs.h <<_ACEOF
17722#define pid_t int
17723_ACEOF
17724
17725fi
17726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017727{ echo "$as_me:$LINENO: checking for size_t" >&5
17728echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17729if test "${ac_cv_type_size_t+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17731else
17732 cat >conftest.$ac_ext <<_ACEOF
17733/* confdefs.h. */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h. */
17738$ac_includes_default
17739typedef size_t ac__type_new_;
17740int
17741main ()
17742{
17743if ((ac__type_new_ *) 0)
17744 return 0;
17745if (sizeof (ac__type_new_))
17746 return 0;
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext
17752if { (ac_try="$ac_compile"
17753case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756esac
17757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17759 ac_status=$?
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
17765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17769esac
17770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; } &&
17775 { ac_try='test -s conftest.$ac_objext'
17776 { (case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17779esac
17780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_try") 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 ac_cv_type_size_t=yes
17786else
17787 echo "$as_me: failed program was:" >&5
17788sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017790 ac_cv_type_size_t=no
17791fi
17792
17793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17794fi
17795{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17796echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17797if test $ac_cv_type_size_t = yes; then
17798 :
John Criswell7a73b802003-06-30 21:59:07 +000017799else
17800
17801cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017802#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017803_ACEOF
17804
17805fi
17806
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017807
17808cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017809#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017810_ACEOF
17811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017812{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17813echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17814if test "${ac_cv_struct_tm+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017817 cat >conftest.$ac_ext <<_ACEOF
17818/* confdefs.h. */
17819_ACEOF
17820cat confdefs.h >>conftest.$ac_ext
17821cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017822/* end confdefs.h. */
17823#include <sys/types.h>
17824#include <time.h>
17825
17826int
17827main ()
17828{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017829struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017830 ;
17831 return 0;
17832}
17833_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017834rm -f conftest.$ac_objext
17835if { (ac_try="$ac_compile"
17836case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839esac
17840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852esac
17853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862esac
17863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017868 ac_cv_struct_tm=time.h
17869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017874fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017875
Reid Spencera773bd52006-08-04 18:18:08 +000017876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017878{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17879echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017880if test $ac_cv_struct_tm = sys/time.h; then
17881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017882cat >>confdefs.h <<\_ACEOF
17883#define TM_IN_SYS_TIME 1
17884_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017885
17886fi
17887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017888{ echo "$as_me:$LINENO: checking for int64_t" >&5
17889echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17890if test "${ac_cv_type_int64_t+set}" = set; then
17891 echo $ECHO_N "(cached) $ECHO_C" >&6
17892else
17893 cat >conftest.$ac_ext <<_ACEOF
17894/* confdefs.h. */
17895_ACEOF
17896cat confdefs.h >>conftest.$ac_ext
17897cat >>conftest.$ac_ext <<_ACEOF
17898/* end confdefs.h. */
17899$ac_includes_default
17900typedef int64_t ac__type_new_;
17901int
17902main ()
17903{
17904if ((ac__type_new_ *) 0)
17905 return 0;
17906if (sizeof (ac__type_new_))
17907 return 0;
17908 ;
17909 return 0;
17910}
17911_ACEOF
17912rm -f conftest.$ac_objext
17913if { (ac_try="$ac_compile"
17914case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17917esac
17918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_compile") 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17930esac
17931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest.$ac_objext'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940esac
17941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17946 ac_cv_type_int64_t=yes
17947else
17948 echo "$as_me: failed program was:" >&5
17949sed 's/^/| /' conftest.$ac_ext >&5
17950
17951 ac_cv_type_int64_t=no
17952fi
17953
17954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17955fi
17956{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17957echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17958if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017959
17960cat >>confdefs.h <<_ACEOF
17961#define HAVE_INT64_T 1
17962_ACEOF
17963
17964
17965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017966 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17967echo "$as_me: error: Type int64_t required but not found" >&2;}
17968 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017969fi
17970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017971{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17972echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17973if test "${ac_cv_type_uint64_t+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975else
17976 cat >conftest.$ac_ext <<_ACEOF
17977/* confdefs.h. */
17978_ACEOF
17979cat confdefs.h >>conftest.$ac_ext
17980cat >>conftest.$ac_ext <<_ACEOF
17981/* end confdefs.h. */
17982$ac_includes_default
17983typedef uint64_t ac__type_new_;
17984int
17985main ()
17986{
17987if ((ac__type_new_ *) 0)
17988 return 0;
17989if (sizeof (ac__type_new_))
17990 return 0;
17991 ;
17992 return 0;
17993}
17994_ACEOF
17995rm -f conftest.$ac_objext
17996if { (ac_try="$ac_compile"
17997case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000esac
18001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_compile") 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18010 { (case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013esac
18014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_try") 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } &&
18019 { ac_try='test -s conftest.$ac_objext'
18020 { (case "(($ac_try" in
18021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022 *) ac_try_echo=$ac_try;;
18023esac
18024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_try") 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_type_uint64_t=yes
18030else
18031 echo "$as_me: failed program was:" >&5
18032sed 's/^/| /' conftest.$ac_ext >&5
18033
18034 ac_cv_type_uint64_t=no
18035fi
18036
18037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18038fi
18039{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18040echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18041if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018042
18043cat >>confdefs.h <<_ACEOF
18044#define HAVE_UINT64_T 1
18045_ACEOF
18046
18047
18048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018049 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18050echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18051if test "${ac_cv_type_u_int64_t+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053else
18054 cat >conftest.$ac_ext <<_ACEOF
18055/* confdefs.h. */
18056_ACEOF
18057cat confdefs.h >>conftest.$ac_ext
18058cat >>conftest.$ac_ext <<_ACEOF
18059/* end confdefs.h. */
18060$ac_includes_default
18061typedef u_int64_t ac__type_new_;
18062int
18063main ()
18064{
18065if ((ac__type_new_ *) 0)
18066 return 0;
18067if (sizeof (ac__type_new_))
18068 return 0;
18069 ;
18070 return 0;
18071}
18072_ACEOF
18073rm -f conftest.$ac_objext
18074if { (ac_try="$ac_compile"
18075case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18078esac
18079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_compile") 2>conftest.er1
18081 ac_status=$?
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18088 { (case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest.$ac_objext'
18098 { (case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101esac
18102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 ac_cv_type_u_int64_t=yes
18108else
18109 echo "$as_me: failed program was:" >&5
18110sed 's/^/| /' conftest.$ac_ext >&5
18111
18112 ac_cv_type_u_int64_t=no
18113fi
18114
18115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116fi
18117{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18118echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18119if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018120
18121cat >>confdefs.h <<_ACEOF
18122#define HAVE_U_INT64_T 1
18123_ACEOF
18124
18125
Misha Brukmanceca9042004-09-02 23:02:30 +000018126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018127 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18128echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18129 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018130fi
18131
John Criswell679ff312004-09-02 18:44:44 +000018132fi
18133
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018134
18135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018136
18137
18138
18139
18140
18141
18142
Reid Spencerdf3be822006-01-23 08:15:53 +000018143for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018144do
18145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18146{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150else
18151 cat >conftest.$ac_ext <<_ACEOF
18152/* confdefs.h. */
18153_ACEOF
18154cat confdefs.h >>conftest.$ac_ext
18155cat >>conftest.$ac_ext <<_ACEOF
18156/* end confdefs.h. */
18157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18159#define $ac_func innocuous_$ac_func
18160
18161/* System header to define __stub macros and hopefully few prototypes,
18162 which can conflict with char $ac_func (); below.
18163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18164 <limits.h> exists even on freestanding compilers. */
18165
18166#ifdef __STDC__
18167# include <limits.h>
18168#else
18169# include <assert.h>
18170#endif
18171
18172#undef $ac_func
18173
18174/* Override any GCC internal prototype to avoid an error.
18175 Use char because int might match the return type of a GCC
18176 builtin and then its argument prototype would still apply. */
18177#ifdef __cplusplus
18178extern "C"
18179#endif
18180char $ac_func ();
18181/* The GNU C library defines this for functions which it implements
18182 to always fail with ENOSYS. Some functions are actually named
18183 something starting with __ and the normal name is an alias. */
18184#if defined __stub_$ac_func || defined __stub___$ac_func
18185choke me
18186#endif
18187
18188int
18189main ()
18190{
18191return $ac_func ();
18192 ;
18193 return 0;
18194}
18195_ACEOF
18196rm -f conftest.$ac_objext conftest$ac_exeext
18197if { (ac_try="$ac_link"
18198case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18201esac
18202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_link") 2>conftest.er1
18204 ac_status=$?
18205 grep -v '^ *+' conftest.er1 >conftest.err
18206 rm -f conftest.er1
18207 cat conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18211 { (case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214esac
18215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } &&
18220 { ac_try='test -s conftest$ac_exeext'
18221 { (case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18224esac
18225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226 (eval "$ac_try") 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 eval "$as_ac_var=yes"
18231else
18232 echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235 eval "$as_ac_var=no"
18236fi
18237
18238rm -f core conftest.err conftest.$ac_objext \
18239 conftest$ac_exeext conftest.$ac_ext
18240fi
18241ac_res=`eval echo '${'$as_ac_var'}'`
18242 { echo "$as_me:$LINENO: result: $ac_res" >&5
18243echo "${ECHO_T}$ac_res" >&6; }
18244if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018245 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018247_ACEOF
18248
18249fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018250done
John Criswell7a73b802003-06-30 21:59:07 +000018251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018252
18253
18254
18255
Reid Spencer96cf5872007-07-13 10:05:30 +000018256for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018257do
18258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18263else
18264 cat >conftest.$ac_ext <<_ACEOF
18265/* confdefs.h. */
18266_ACEOF
18267cat confdefs.h >>conftest.$ac_ext
18268cat >>conftest.$ac_ext <<_ACEOF
18269/* end confdefs.h. */
18270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18272#define $ac_func innocuous_$ac_func
18273
18274/* System header to define __stub macros and hopefully few prototypes,
18275 which can conflict with char $ac_func (); below.
18276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277 <limits.h> exists even on freestanding compilers. */
18278
18279#ifdef __STDC__
18280# include <limits.h>
18281#else
18282# include <assert.h>
18283#endif
18284
18285#undef $ac_func
18286
18287/* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290#ifdef __cplusplus
18291extern "C"
18292#endif
18293char $ac_func ();
18294/* The GNU C library defines this for functions which it implements
18295 to always fail with ENOSYS. Some functions are actually named
18296 something starting with __ and the normal name is an alias. */
18297#if defined __stub_$ac_func || defined __stub___$ac_func
18298choke me
18299#endif
18300
18301int
18302main ()
18303{
18304return $ac_func ();
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext conftest$ac_exeext
18310if { (ac_try="$ac_link"
18311case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314esac
18315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_link") 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327esac
18328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest$ac_exeext'
18334 { (case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337esac
18338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_try") 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 eval "$as_ac_var=yes"
18344else
18345 echo "$as_me: failed program was:" >&5
18346sed 's/^/| /' conftest.$ac_ext >&5
18347
18348 eval "$as_ac_var=no"
18349fi
18350
18351rm -f core conftest.err conftest.$ac_objext \
18352 conftest$ac_exeext conftest.$ac_ext
18353fi
18354ac_res=`eval echo '${'$as_ac_var'}'`
18355 { echo "$as_me:$LINENO: result: $ac_res" >&5
18356echo "${ECHO_T}$ac_res" >&6; }
18357if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018358 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018360_ACEOF
18361
18362fi
18363done
18364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018365
18366
18367
18368
18369
Reid Spencerb90645c2007-02-16 19:17:20 +000018370for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018371do
18372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18373{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377else
18378 cat >conftest.$ac_ext <<_ACEOF
18379/* confdefs.h. */
18380_ACEOF
18381cat confdefs.h >>conftest.$ac_ext
18382cat >>conftest.$ac_ext <<_ACEOF
18383/* end confdefs.h. */
18384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18386#define $ac_func innocuous_$ac_func
18387
18388/* System header to define __stub macros and hopefully few prototypes,
18389 which can conflict with char $ac_func (); below.
18390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18391 <limits.h> exists even on freestanding compilers. */
18392
18393#ifdef __STDC__
18394# include <limits.h>
18395#else
18396# include <assert.h>
18397#endif
18398
18399#undef $ac_func
18400
18401/* Override any GCC internal prototype to avoid an error.
18402 Use char because int might match the return type of a GCC
18403 builtin and then its argument prototype would still apply. */
18404#ifdef __cplusplus
18405extern "C"
18406#endif
18407char $ac_func ();
18408/* The GNU C library defines this for functions which it implements
18409 to always fail with ENOSYS. Some functions are actually named
18410 something starting with __ and the normal name is an alias. */
18411#if defined __stub_$ac_func || defined __stub___$ac_func
18412choke me
18413#endif
18414
18415int
18416main ()
18417{
18418return $ac_func ();
18419 ;
18420 return 0;
18421}
18422_ACEOF
18423rm -f conftest.$ac_objext conftest$ac_exeext
18424if { (ac_try="$ac_link"
18425case "(($ac_try" in
18426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18428esac
18429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430 (eval "$ac_link") 2>conftest.er1
18431 ac_status=$?
18432 grep -v '^ *+' conftest.er1 >conftest.err
18433 rm -f conftest.er1
18434 cat conftest.err >&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18441esac
18442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 eval "$as_ac_var=yes"
18458else
18459 echo "$as_me: failed program was:" >&5
18460sed 's/^/| /' conftest.$ac_ext >&5
18461
18462 eval "$as_ac_var=no"
18463fi
18464
18465rm -f core conftest.err conftest.$ac_objext \
18466 conftest$ac_exeext conftest.$ac_ext
18467fi
18468ac_res=`eval echo '${'$as_ac_var'}'`
18469 { echo "$as_me:$LINENO: result: $ac_res" >&5
18470echo "${ECHO_T}$ac_res" >&6; }
18471if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018472 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018474_ACEOF
18475
18476fi
18477done
18478
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018479
18480
18481
Reid Spencerb90645c2007-02-16 19:17:20 +000018482for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018483do
18484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18485{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18487if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18489else
18490 cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h. */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
18495/* end confdefs.h. */
18496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18498#define $ac_func innocuous_$ac_func
18499
18500/* System header to define __stub macros and hopefully few prototypes,
18501 which can conflict with char $ac_func (); below.
18502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18503 <limits.h> exists even on freestanding compilers. */
18504
18505#ifdef __STDC__
18506# include <limits.h>
18507#else
18508# include <assert.h>
18509#endif
18510
18511#undef $ac_func
18512
18513/* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18516#ifdef __cplusplus
18517extern "C"
18518#endif
18519char $ac_func ();
18520/* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523#if defined __stub_$ac_func || defined __stub___$ac_func
18524choke me
18525#endif
18526
18527int
18528main ()
18529{
18530return $ac_func ();
18531 ;
18532 return 0;
18533}
18534_ACEOF
18535rm -f conftest.$ac_objext conftest$ac_exeext
18536if { (ac_try="$ac_link"
18537case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18543 ac_status=$?
18544 grep -v '^ *+' conftest.er1 >conftest.err
18545 rm -f conftest.er1
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } &&
18549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553esac
18554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } &&
18559 { ac_try='test -s conftest$ac_exeext'
18560 { (case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18563esac
18564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_try") 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 eval "$as_ac_var=yes"
18570else
18571 echo "$as_me: failed program was:" >&5
18572sed 's/^/| /' conftest.$ac_ext >&5
18573
18574 eval "$as_ac_var=no"
18575fi
18576
18577rm -f core conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
18579fi
18580ac_res=`eval echo '${'$as_ac_var'}'`
18581 { echo "$as_me:$LINENO: result: $ac_res" >&5
18582echo "${ECHO_T}$ac_res" >&6; }
18583if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018584 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018586_ACEOF
18587
18588fi
18589done
18590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018591
18592
18593
18594
18595
Eric Christophere4291822010-04-16 05:14:21 +000018596
18597for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018598do
18599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18600{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18602if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18604else
18605 cat >conftest.$ac_ext <<_ACEOF
18606/* confdefs.h. */
18607_ACEOF
18608cat confdefs.h >>conftest.$ac_ext
18609cat >>conftest.$ac_ext <<_ACEOF
18610/* end confdefs.h. */
18611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18613#define $ac_func innocuous_$ac_func
18614
18615/* System header to define __stub macros and hopefully few prototypes,
18616 which can conflict with char $ac_func (); below.
18617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18618 <limits.h> exists even on freestanding compilers. */
18619
18620#ifdef __STDC__
18621# include <limits.h>
18622#else
18623# include <assert.h>
18624#endif
18625
18626#undef $ac_func
18627
18628/* Override any GCC internal prototype to avoid an error.
18629 Use char because int might match the return type of a GCC
18630 builtin and then its argument prototype would still apply. */
18631#ifdef __cplusplus
18632extern "C"
18633#endif
18634char $ac_func ();
18635/* The GNU C library defines this for functions which it implements
18636 to always fail with ENOSYS. Some functions are actually named
18637 something starting with __ and the normal name is an alias. */
18638#if defined __stub_$ac_func || defined __stub___$ac_func
18639choke me
18640#endif
18641
18642int
18643main ()
18644{
18645return $ac_func ();
18646 ;
18647 return 0;
18648}
18649_ACEOF
18650rm -f conftest.$ac_objext conftest$ac_exeext
18651if { (ac_try="$ac_link"
18652case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18655esac
18656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_link") 2>conftest.er1
18658 ac_status=$?
18659 grep -v '^ *+' conftest.er1 >conftest.err
18660 rm -f conftest.er1
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } &&
18664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668esac
18669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest$ac_exeext'
18675 { (case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18678esac
18679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_try") 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 eval "$as_ac_var=yes"
18685else
18686 echo "$as_me: failed program was:" >&5
18687sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 eval "$as_ac_var=no"
18690fi
18691
18692rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18694fi
18695ac_res=`eval echo '${'$as_ac_var'}'`
18696 { echo "$as_me:$LINENO: result: $ac_res" >&5
18697echo "${ECHO_T}$ac_res" >&6; }
18698if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018699 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018701_ACEOF
18702
18703fi
18704done
Reid Spencerdf3be822006-01-23 08:15:53 +000018705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018706
18707
18708
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018709for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018710do
18711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717 cat >conftest.$ac_ext <<_ACEOF
18718/* confdefs.h. */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h. */
18723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18725#define $ac_func innocuous_$ac_func
18726
18727/* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char $ac_func (); below.
18729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18730 <limits.h> exists even on freestanding compilers. */
18731
18732#ifdef __STDC__
18733# include <limits.h>
18734#else
18735# include <assert.h>
18736#endif
18737
18738#undef $ac_func
18739
18740/* Override any GCC internal prototype to avoid an error.
18741 Use char because int might match the return type of a GCC
18742 builtin and then its argument prototype would still apply. */
18743#ifdef __cplusplus
18744extern "C"
18745#endif
18746char $ac_func ();
18747/* The GNU C library defines this for functions which it implements
18748 to always fail with ENOSYS. Some functions are actually named
18749 something starting with __ and the normal name is an alias. */
18750#if defined __stub_$ac_func || defined __stub___$ac_func
18751choke me
18752#endif
18753
18754int
18755main ()
18756{
18757return $ac_func ();
18758 ;
18759 return 0;
18760}
18761_ACEOF
18762rm -f conftest.$ac_objext conftest$ac_exeext
18763if { (ac_try="$ac_link"
18764case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767esac
18768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780esac
18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790esac
18791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 eval "$as_ac_var=yes"
18797else
18798 echo "$as_me: failed program was:" >&5
18799sed 's/^/| /' conftest.$ac_ext >&5
18800
18801 eval "$as_ac_var=no"
18802fi
18803
18804rm -f core conftest.err conftest.$ac_objext \
18805 conftest$ac_exeext conftest.$ac_ext
18806fi
18807ac_res=`eval echo '${'$as_ac_var'}'`
18808 { echo "$as_me:$LINENO: result: $ac_res" >&5
18809echo "${ECHO_T}$ac_res" >&6; }
18810if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018811 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018813_ACEOF
18814
18815fi
18816done
18817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018818
18819
18820
18821
Chris Lattner511f11d2005-11-14 07:25:50 +000018822for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018823do
18824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18825{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18827if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829else
18830 cat >conftest.$ac_ext <<_ACEOF
18831/* confdefs.h. */
18832_ACEOF
18833cat confdefs.h >>conftest.$ac_ext
18834cat >>conftest.$ac_ext <<_ACEOF
18835/* end confdefs.h. */
18836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18838#define $ac_func innocuous_$ac_func
18839
18840/* System header to define __stub macros and hopefully few prototypes,
18841 which can conflict with char $ac_func (); below.
18842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18843 <limits.h> exists even on freestanding compilers. */
18844
18845#ifdef __STDC__
18846# include <limits.h>
18847#else
18848# include <assert.h>
18849#endif
18850
18851#undef $ac_func
18852
18853/* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18856#ifdef __cplusplus
18857extern "C"
18858#endif
18859char $ac_func ();
18860/* The GNU C library defines this for functions which it implements
18861 to always fail with ENOSYS. Some functions are actually named
18862 something starting with __ and the normal name is an alias. */
18863#if defined __stub_$ac_func || defined __stub___$ac_func
18864choke me
18865#endif
18866
18867int
18868main ()
18869{
18870return $ac_func ();
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875rm -f conftest.$ac_objext conftest$ac_exeext
18876if { (ac_try="$ac_link"
18877case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880esac
18881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_link") 2>conftest.er1
18883 ac_status=$?
18884 grep -v '^ *+' conftest.er1 >conftest.err
18885 rm -f conftest.er1
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893esac
18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903esac
18904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 eval "$as_ac_var=yes"
18910else
18911 echo "$as_me: failed program was:" >&5
18912sed 's/^/| /' conftest.$ac_ext >&5
18913
18914 eval "$as_ac_var=no"
18915fi
18916
18917rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919fi
18920ac_res=`eval echo '${'$as_ac_var'}'`
18921 { echo "$as_me:$LINENO: result: $ac_res" >&5
18922echo "${ECHO_T}$ac_res" >&6; }
18923if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018924 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018926_ACEOF
18927
18928fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018929done
John Criswell7a73b802003-06-30 21:59:07 +000018930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018931
18932
18933
18934
Daniel Dunbar3e462932011-02-03 02:40:02 +000018935
18936for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018937do
18938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18939{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943else
18944 cat >conftest.$ac_ext <<_ACEOF
18945/* confdefs.h. */
18946_ACEOF
18947cat confdefs.h >>conftest.$ac_ext
18948cat >>conftest.$ac_ext <<_ACEOF
18949/* end confdefs.h. */
18950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18952#define $ac_func innocuous_$ac_func
18953
18954/* System header to define __stub macros and hopefully few prototypes,
18955 which can conflict with char $ac_func (); below.
18956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18957 <limits.h> exists even on freestanding compilers. */
18958
18959#ifdef __STDC__
18960# include <limits.h>
18961#else
18962# include <assert.h>
18963#endif
18964
18965#undef $ac_func
18966
18967/* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18970#ifdef __cplusplus
18971extern "C"
18972#endif
18973char $ac_func ();
18974/* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977#if defined __stub_$ac_func || defined __stub___$ac_func
18978choke me
18979#endif
18980
18981int
18982main ()
18983{
18984return $ac_func ();
18985 ;
18986 return 0;
18987}
18988_ACEOF
18989rm -f conftest.$ac_objext conftest$ac_exeext
18990if { (ac_try="$ac_link"
18991case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994esac
18995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_link") 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19004 { (case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007esac
19008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_try") 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest$ac_exeext'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017esac
19018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 eval "$as_ac_var=yes"
19024else
19025 echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 eval "$as_ac_var=no"
19029fi
19030
19031rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19033fi
19034ac_res=`eval echo '${'$as_ac_var'}'`
19035 { echo "$as_me:$LINENO: result: $ac_res" >&5
19036echo "${ECHO_T}$ac_res" >&6; }
19037if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000019038 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000019040_ACEOF
19041
19042fi
19043done
19044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019045{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19046echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19047if test "${llvm_cv_c_printf_a+set}" = set; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019049else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019050 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019051ac_cpp='$CPP $CPPFLAGS'
19052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054ac_compiler_gnu=$ac_cv_c_compiler_gnu
19055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019056 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019057 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019059 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000019060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019061 /* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019066
John Criswella0137d32003-10-13 16:22:01 +000019067#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000019068#include <stdlib.h>
19069
John Criswella0137d32003-10-13 16:22:01 +000019070int
19071main ()
19072{
19073
Reid Spencer2706f8c2004-09-19 23:53:36 +000019074volatile double A, B;
19075char Buffer[100];
19076A = 1;
19077A /= 10.0;
19078sprintf(Buffer, "%a", A);
19079B = atof(Buffer);
19080if (A != B)
19081 return (1);
19082if (A != 0x1.999999999999ap-4)
19083 return (1);
19084return (0);
John Criswella0137d32003-10-13 16:22:01 +000019085 ;
19086 return 0;
19087}
19088_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019089rm -f conftest$ac_exeext
19090if { (ac_try="$ac_link"
19091case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094esac
19095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019109 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019111 echo "$as_me: program exited with status $ac_status" >&5
19112echo "$as_me: failed program was:" >&5
19113sed 's/^/| /' conftest.$ac_ext >&5
19114
19115( exit $ac_status )
19116llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019118rm -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 +000019119fi
Reid Spencera773bd52006-08-04 18:18:08 +000019120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019121
Reid Spencer2706f8c2004-09-19 23:53:36 +000019122 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019123ac_cpp='$CPP $CPPFLAGS'
19124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19126ac_compiler_gnu=$ac_cv_c_compiler_gnu
19127
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019128fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019129{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19130echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019131 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019133cat >>confdefs.h <<\_ACEOF
19134#define HAVE_PRINTF_A 1
19135_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019136
Reid Spencer2706f8c2004-09-19 23:53:36 +000019137 fi
John Criswella0137d32003-10-13 16:22:01 +000019138
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019140{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19141echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19142if test "${ac_cv_func_rand48+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019144else
Reid Spencera773bd52006-08-04 18:18:08 +000019145 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019146ac_cpp='$CXXCPP $CPPFLAGS'
19147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019151 cat >conftest.$ac_ext <<_ACEOF
19152/* confdefs.h. */
19153_ACEOF
19154cat confdefs.h >>conftest.$ac_ext
19155cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019156/* end confdefs.h. */
19157#include <stdlib.h>
19158int
19159main ()
19160{
19161srand48(0);lrand48();drand48();
19162 ;
19163 return 0;
19164}
19165_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019166rm -f conftest.$ac_objext
19167if { (ac_try="$ac_compile"
19168case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19171esac
19172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_compile") 2>conftest.er1
19174 ac_status=$?
19175 grep -v '^ *+' conftest.er1 >conftest.err
19176 rm -f conftest.er1
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } &&
19180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19181 { (case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184esac
19185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_try") 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest.$ac_objext'
19191 { (case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194esac
19195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_try") 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019200 ac_cv_func_rand48=yes
19201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019202 echo "$as_me: failed program was:" >&5
19203sed 's/^/| /' conftest.$ac_ext >&5
19204
19205 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019206fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019207
Reid Spencera773bd52006-08-04 18:18:08 +000019208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019209 ac_ext=c
19210ac_cpp='$CPP $CPPFLAGS'
19211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213ac_compiler_gnu=$ac_cv_c_compiler_gnu
19214
19215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019216{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19217echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019218
19219if test "$ac_cv_func_rand48" = "yes" ; then
19220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019221cat >>confdefs.h <<\_ACEOF
19222#define HAVE_RAND48 1
19223_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019224
19225fi
John Criswell0021c312004-02-13 21:57:29 +000019226
19227
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000019228{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19229echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19230if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232else
19233 cat >conftest.$ac_ext <<_ACEOF
19234/* confdefs.h. */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h. */
19239$ac_includes_default
19240int
19241main ()
19242{
19243#ifndef strerror_s
19244 char *p = (char *) strerror_s;
19245 return !p;
19246#endif
19247
19248 ;
19249 return 0;
19250}
19251_ACEOF
19252rm -f conftest.$ac_objext
19253if { (ac_try="$ac_compile"
19254case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257esac
19258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_compile") 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270esac
19271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest.$ac_objext'
19277 { (case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280esac
19281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_cv_have_decl_strerror_s=yes
19287else
19288 echo "$as_me: failed program was:" >&5
19289sed 's/^/| /' conftest.$ac_ext >&5
19290
19291 ac_cv_have_decl_strerror_s=no
19292fi
19293
19294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295fi
19296{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19297echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19298if test $ac_cv_have_decl_strerror_s = yes; then
19299
19300cat >>confdefs.h <<_ACEOF
19301#define HAVE_DECL_STRERROR_S 1
19302_ACEOF
19303
19304
19305else
19306 cat >>confdefs.h <<_ACEOF
19307#define HAVE_DECL_STRERROR_S 0
19308_ACEOF
19309
19310
19311fi
19312
19313
19314
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000019315if test "$llvm_cv_os_type" = "MingW" ; then
19316 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19317echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19318if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19320else
19321 ac_check_lib_save_LIBS=$LIBS
19322LIBS="-lgcc $LIBS"
19323cat >conftest.$ac_ext <<_ACEOF
19324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
19328/* end confdefs.h. */
19329
19330/* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19333#ifdef __cplusplus
19334extern "C"
19335#endif
19336char _alloca ();
19337int
19338main ()
19339{
19340return _alloca ();
19341 ;
19342 return 0;
19343}
19344_ACEOF
19345rm -f conftest.$ac_objext conftest$ac_exeext
19346if { (ac_try="$ac_link"
19347case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest$ac_exeext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373esac
19374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_lib_gcc__alloca=yes
19380else
19381 echo "$as_me: failed program was:" >&5
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_lib_gcc__alloca=no
19385fi
19386
19387rm -f core conftest.err conftest.$ac_objext \
19388 conftest$ac_exeext conftest.$ac_ext
19389LIBS=$ac_check_lib_save_LIBS
19390fi
19391{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19392echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19393if test $ac_cv_lib_gcc__alloca = yes; then
19394
19395cat >>confdefs.h <<\_ACEOF
19396#define HAVE__ALLOCA 1
19397_ACEOF
19398
19399fi
19400
19401 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19402echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19403if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405else
19406 ac_check_lib_save_LIBS=$LIBS
19407LIBS="-lgcc $LIBS"
19408cat >conftest.$ac_ext <<_ACEOF
19409/* confdefs.h. */
19410_ACEOF
19411cat confdefs.h >>conftest.$ac_ext
19412cat >>conftest.$ac_ext <<_ACEOF
19413/* end confdefs.h. */
19414
19415/* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19418#ifdef __cplusplus
19419extern "C"
19420#endif
19421char __alloca ();
19422int
19423main ()
19424{
19425return __alloca ();
19426 ;
19427 return 0;
19428}
19429_ACEOF
19430rm -f conftest.$ac_objext conftest$ac_exeext
19431if { (ac_try="$ac_link"
19432case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19435esac
19436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_link") 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448esac
19449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest$ac_exeext'
19455 { (case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19458esac
19459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_lib_gcc___alloca=yes
19465else
19466 echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
19469 ac_cv_lib_gcc___alloca=no
19470fi
19471
19472rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474LIBS=$ac_check_lib_save_LIBS
19475fi
19476{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19477echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19478if test $ac_cv_lib_gcc___alloca = yes; then
19479
19480cat >>confdefs.h <<\_ACEOF
19481#define HAVE___ALLOCA 1
19482_ACEOF
19483
19484fi
19485
19486 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19487echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19488if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490else
19491 ac_check_lib_save_LIBS=$LIBS
19492LIBS="-lgcc $LIBS"
19493cat >conftest.$ac_ext <<_ACEOF
19494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
19499
19500/* Override any GCC internal prototype to avoid an error.
19501 Use char because int might match the return type of a GCC
19502 builtin and then its argument prototype would still apply. */
19503#ifdef __cplusplus
19504extern "C"
19505#endif
19506char __chkstk ();
19507int
19508main ()
19509{
19510return __chkstk ();
19511 ;
19512 return 0;
19513}
19514_ACEOF
19515rm -f conftest.$ac_objext conftest$ac_exeext
19516if { (ac_try="$ac_link"
19517case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520esac
19521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533esac
19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest$ac_exeext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543esac
19544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_lib_gcc___chkstk=yes
19550else
19551 echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
19553
19554 ac_cv_lib_gcc___chkstk=no
19555fi
19556
19557rm -f core conftest.err conftest.$ac_objext \
19558 conftest$ac_exeext conftest.$ac_ext
19559LIBS=$ac_check_lib_save_LIBS
19560fi
19561{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19562echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19563if test $ac_cv_lib_gcc___chkstk = yes; then
19564
19565cat >>confdefs.h <<\_ACEOF
19566#define HAVE___CHKSTK 1
19567_ACEOF
19568
19569fi
19570
19571 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19572echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19573if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575else
19576 ac_check_lib_save_LIBS=$LIBS
19577LIBS="-lgcc $LIBS"
19578cat >conftest.$ac_ext <<_ACEOF
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584
19585/* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588#ifdef __cplusplus
19589extern "C"
19590#endif
19591char ___chkstk ();
19592int
19593main ()
19594{
19595return ___chkstk ();
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext conftest$ac_exeext
19601if { (ac_try="$ac_link"
19602case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605esac
19606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_link") 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19615 { (case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618esac
19619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_try") 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; } &&
19624 { ac_try='test -s conftest$ac_exeext'
19625 { (case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628esac
19629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_try") 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_lib_gcc____chkstk=yes
19635else
19636 echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_cv_lib_gcc____chkstk=no
19640fi
19641
19642rm -f core conftest.err conftest.$ac_objext \
19643 conftest$ac_exeext conftest.$ac_ext
19644LIBS=$ac_check_lib_save_LIBS
19645fi
19646{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19647echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19648if test $ac_cv_lib_gcc____chkstk = yes; then
19649
19650cat >>confdefs.h <<\_ACEOF
19651#define HAVE____CHKSTK 1
19652_ACEOF
19653
19654fi
19655
19656
19657 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19658echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19659if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19661else
19662 ac_check_lib_save_LIBS=$LIBS
19663LIBS="-lgcc $LIBS"
19664cat >conftest.$ac_ext <<_ACEOF
19665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
19669/* end confdefs.h. */
19670
19671/* Override any GCC internal prototype to avoid an error.
19672 Use char because int might match the return type of a GCC
19673 builtin and then its argument prototype would still apply. */
19674#ifdef __cplusplus
19675extern "C"
19676#endif
19677char __ashldi3 ();
19678int
19679main ()
19680{
19681return __ashldi3 ();
19682 ;
19683 return 0;
19684}
19685_ACEOF
19686rm -f conftest.$ac_objext conftest$ac_exeext
19687if { (ac_try="$ac_link"
19688case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691esac
19692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_link") 2>conftest.er1
19694 ac_status=$?
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -f conftest.er1
19697 cat conftest.err >&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } &&
19700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19701 { (case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704esac
19705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_try") 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest$ac_exeext'
19711 { (case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714esac
19715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_try") 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19720 ac_cv_lib_gcc___ashldi3=yes
19721else
19722 echo "$as_me: failed program was:" >&5
19723sed 's/^/| /' conftest.$ac_ext >&5
19724
19725 ac_cv_lib_gcc___ashldi3=no
19726fi
19727
19728rm -f core conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19730LIBS=$ac_check_lib_save_LIBS
19731fi
19732{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19733echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19734if test $ac_cv_lib_gcc___ashldi3 = yes; then
19735
19736cat >>confdefs.h <<\_ACEOF
19737#define HAVE___ASHLDI3 1
19738_ACEOF
19739
19740fi
19741
19742 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19743echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19744if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19746else
19747 ac_check_lib_save_LIBS=$LIBS
19748LIBS="-lgcc $LIBS"
19749cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
19755
19756/* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19759#ifdef __cplusplus
19760extern "C"
19761#endif
19762char __ashrdi3 ();
19763int
19764main ()
19765{
19766return __ashrdi3 ();
19767 ;
19768 return 0;
19769}
19770_ACEOF
19771rm -f conftest.$ac_objext conftest$ac_exeext
19772if { (ac_try="$ac_link"
19773case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19776esac
19777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>conftest.er1
19779 ac_status=$?
19780 grep -v '^ *+' conftest.er1 >conftest.err
19781 rm -f conftest.er1
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } &&
19785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19786 { (case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19789esac
19790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_try") 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest$ac_exeext'
19796 { (case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799esac
19800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_try") 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 ac_cv_lib_gcc___ashrdi3=yes
19806else
19807 echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
19810 ac_cv_lib_gcc___ashrdi3=no
19811fi
19812
19813rm -f core conftest.err conftest.$ac_objext \
19814 conftest$ac_exeext conftest.$ac_ext
19815LIBS=$ac_check_lib_save_LIBS
19816fi
19817{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19818echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19819if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19820
19821cat >>confdefs.h <<\_ACEOF
19822#define HAVE___ASHRDI3 1
19823_ACEOF
19824
19825fi
19826
19827 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19828echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19829if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19831else
19832 ac_check_lib_save_LIBS=$LIBS
19833LIBS="-lgcc $LIBS"
19834cat >conftest.$ac_ext <<_ACEOF
19835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
19839/* end confdefs.h. */
19840
19841/* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844#ifdef __cplusplus
19845extern "C"
19846#endif
19847char __divdi3 ();
19848int
19849main ()
19850{
19851return __divdi3 ();
19852 ;
19853 return 0;
19854}
19855_ACEOF
19856rm -f conftest.$ac_objext conftest$ac_exeext
19857if { (ac_try="$ac_link"
19858case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861esac
19862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871 { (case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest$ac_exeext'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884esac
19885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_cv_lib_gcc___divdi3=yes
19891else
19892 echo "$as_me: failed program was:" >&5
19893sed 's/^/| /' conftest.$ac_ext >&5
19894
19895 ac_cv_lib_gcc___divdi3=no
19896fi
19897
19898rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900LIBS=$ac_check_lib_save_LIBS
19901fi
19902{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19903echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19904if test $ac_cv_lib_gcc___divdi3 = yes; then
19905
19906cat >>confdefs.h <<\_ACEOF
19907#define HAVE___DIVDI3 1
19908_ACEOF
19909
19910fi
19911
19912 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19913echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19914if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916else
19917 ac_check_lib_save_LIBS=$LIBS
19918LIBS="-lgcc $LIBS"
19919cat >conftest.$ac_ext <<_ACEOF
19920/* confdefs.h. */
19921_ACEOF
19922cat confdefs.h >>conftest.$ac_ext
19923cat >>conftest.$ac_ext <<_ACEOF
19924/* end confdefs.h. */
19925
19926/* Override any GCC internal prototype to avoid an error.
19927 Use char because int might match the return type of a GCC
19928 builtin and then its argument prototype would still apply. */
19929#ifdef __cplusplus
19930extern "C"
19931#endif
19932char __fixdfdi ();
19933int
19934main ()
19935{
19936return __fixdfdi ();
19937 ;
19938 return 0;
19939}
19940_ACEOF
19941rm -f conftest.$ac_objext conftest$ac_exeext
19942if { (ac_try="$ac_link"
19943case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946esac
19947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_link") 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19959esac
19960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest$ac_exeext'
19966 { (case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19969esac
19970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_lib_gcc___fixdfdi=yes
19976else
19977 echo "$as_me: failed program was:" >&5
19978sed 's/^/| /' conftest.$ac_ext >&5
19979
19980 ac_cv_lib_gcc___fixdfdi=no
19981fi
19982
19983rm -f core conftest.err conftest.$ac_objext \
19984 conftest$ac_exeext conftest.$ac_ext
19985LIBS=$ac_check_lib_save_LIBS
19986fi
19987{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19988echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19989if test $ac_cv_lib_gcc___fixdfdi = yes; then
19990
19991cat >>confdefs.h <<\_ACEOF
19992#define HAVE___FIXDFDI 1
19993_ACEOF
19994
19995fi
19996
19997 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19998echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19999if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20001else
20002 ac_check_lib_save_LIBS=$LIBS
20003LIBS="-lgcc $LIBS"
20004cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010
20011/* Override any GCC internal prototype to avoid an error.
20012 Use char because int might match the return type of a GCC
20013 builtin and then its argument prototype would still apply. */
20014#ifdef __cplusplus
20015extern "C"
20016#endif
20017char __fixsfdi ();
20018int
20019main ()
20020{
20021return __fixsfdi ();
20022 ;
20023 return 0;
20024}
20025_ACEOF
20026rm -f conftest.$ac_objext conftest$ac_exeext
20027if { (ac_try="$ac_link"
20028case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031esac
20032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_link") 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
20040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20041 { (case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044esac
20045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_try") 2>&5
20047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest$ac_exeext'
20051 { (case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20054esac
20055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_try") 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_cv_lib_gcc___fixsfdi=yes
20061else
20062 echo "$as_me: failed program was:" >&5
20063sed 's/^/| /' conftest.$ac_ext >&5
20064
20065 ac_cv_lib_gcc___fixsfdi=no
20066fi
20067
20068rm -f core conftest.err conftest.$ac_objext \
20069 conftest$ac_exeext conftest.$ac_ext
20070LIBS=$ac_check_lib_save_LIBS
20071fi
20072{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20073echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20074if test $ac_cv_lib_gcc___fixsfdi = yes; then
20075
20076cat >>confdefs.h <<\_ACEOF
20077#define HAVE___FIXSFDI 1
20078_ACEOF
20079
20080fi
20081
20082 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20083echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20084if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086else
20087 ac_check_lib_save_LIBS=$LIBS
20088LIBS="-lgcc $LIBS"
20089cat >conftest.$ac_ext <<_ACEOF
20090/* confdefs.h. */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h. */
20095
20096/* Override any GCC internal prototype to avoid an error.
20097 Use char because int might match the return type of a GCC
20098 builtin and then its argument prototype would still apply. */
20099#ifdef __cplusplus
20100extern "C"
20101#endif
20102char __floatdidf ();
20103int
20104main ()
20105{
20106return __floatdidf ();
20107 ;
20108 return 0;
20109}
20110_ACEOF
20111rm -f conftest.$ac_objext conftest$ac_exeext
20112if { (ac_try="$ac_link"
20113case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116esac
20117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_link") 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20126 { (case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129esac
20130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_try") 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest$ac_exeext'
20136 { (case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139esac
20140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_try") 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 ac_cv_lib_gcc___floatdidf=yes
20146else
20147 echo "$as_me: failed program was:" >&5
20148sed 's/^/| /' conftest.$ac_ext >&5
20149
20150 ac_cv_lib_gcc___floatdidf=no
20151fi
20152
20153rm -f core conftest.err conftest.$ac_objext \
20154 conftest$ac_exeext conftest.$ac_ext
20155LIBS=$ac_check_lib_save_LIBS
20156fi
20157{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20158echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20159if test $ac_cv_lib_gcc___floatdidf = yes; then
20160
20161cat >>confdefs.h <<\_ACEOF
20162#define HAVE___FLOATDIDF 1
20163_ACEOF
20164
20165fi
20166
20167 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20168echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20169if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171else
20172 ac_check_lib_save_LIBS=$LIBS
20173LIBS="-lgcc $LIBS"
20174cat >conftest.$ac_ext <<_ACEOF
20175/* confdefs.h. */
20176_ACEOF
20177cat confdefs.h >>conftest.$ac_ext
20178cat >>conftest.$ac_ext <<_ACEOF
20179/* end confdefs.h. */
20180
20181/* Override any GCC internal prototype to avoid an error.
20182 Use char because int might match the return type of a GCC
20183 builtin and then its argument prototype would still apply. */
20184#ifdef __cplusplus
20185extern "C"
20186#endif
20187char __lshrdi3 ();
20188int
20189main ()
20190{
20191return __lshrdi3 ();
20192 ;
20193 return 0;
20194}
20195_ACEOF
20196rm -f conftest.$ac_objext conftest$ac_exeext
20197if { (ac_try="$ac_link"
20198case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20201esac
20202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_link") 2>conftest.er1
20204 ac_status=$?
20205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20211 { (case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214esac
20215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_try") 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest$ac_exeext'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_lib_gcc___lshrdi3=yes
20231else
20232 echo "$as_me: failed program was:" >&5
20233sed 's/^/| /' conftest.$ac_ext >&5
20234
20235 ac_cv_lib_gcc___lshrdi3=no
20236fi
20237
20238rm -f core conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20240LIBS=$ac_check_lib_save_LIBS
20241fi
20242{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20243echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20244if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20245
20246cat >>confdefs.h <<\_ACEOF
20247#define HAVE___LSHRDI3 1
20248_ACEOF
20249
20250fi
20251
20252 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20253echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20254if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20256else
20257 ac_check_lib_save_LIBS=$LIBS
20258LIBS="-lgcc $LIBS"
20259cat >conftest.$ac_ext <<_ACEOF
20260/* confdefs.h. */
20261_ACEOF
20262cat confdefs.h >>conftest.$ac_ext
20263cat >>conftest.$ac_ext <<_ACEOF
20264/* end confdefs.h. */
20265
20266/* Override any GCC internal prototype to avoid an error.
20267 Use char because int might match the return type of a GCC
20268 builtin and then its argument prototype would still apply. */
20269#ifdef __cplusplus
20270extern "C"
20271#endif
20272char __moddi3 ();
20273int
20274main ()
20275{
20276return __moddi3 ();
20277 ;
20278 return 0;
20279}
20280_ACEOF
20281rm -f conftest.$ac_objext conftest$ac_exeext
20282if { (ac_try="$ac_link"
20283case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286esac
20287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_link") 2>conftest.er1
20289 ac_status=$?
20290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20296 { (case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299esac
20300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_try") 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest$ac_exeext'
20306 { (case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20309esac
20310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_try") 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_lib_gcc___moddi3=yes
20316else
20317 echo "$as_me: failed program was:" >&5
20318sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 ac_cv_lib_gcc___moddi3=no
20321fi
20322
20323rm -f core conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20325LIBS=$ac_check_lib_save_LIBS
20326fi
20327{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20328echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20329if test $ac_cv_lib_gcc___moddi3 = yes; then
20330
20331cat >>confdefs.h <<\_ACEOF
20332#define HAVE___MODDI3 1
20333_ACEOF
20334
20335fi
20336
20337 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20338echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20339if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20341else
20342 ac_check_lib_save_LIBS=$LIBS
20343LIBS="-lgcc $LIBS"
20344cat >conftest.$ac_ext <<_ACEOF
20345/* confdefs.h. */
20346_ACEOF
20347cat confdefs.h >>conftest.$ac_ext
20348cat >>conftest.$ac_ext <<_ACEOF
20349/* end confdefs.h. */
20350
20351/* Override any GCC internal prototype to avoid an error.
20352 Use char because int might match the return type of a GCC
20353 builtin and then its argument prototype would still apply. */
20354#ifdef __cplusplus
20355extern "C"
20356#endif
20357char __udivdi3 ();
20358int
20359main ()
20360{
20361return __udivdi3 ();
20362 ;
20363 return 0;
20364}
20365_ACEOF
20366rm -f conftest.$ac_objext conftest$ac_exeext
20367if { (ac_try="$ac_link"
20368case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371esac
20372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_link") 2>conftest.er1
20374 ac_status=$?
20375 grep -v '^ *+' conftest.er1 >conftest.err
20376 rm -f conftest.er1
20377 cat conftest.err >&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } &&
20380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20381 { (case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384esac
20385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_try") 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; } &&
20390 { ac_try='test -s conftest$ac_exeext'
20391 { (case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20394esac
20395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_try") 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_lib_gcc___udivdi3=yes
20401else
20402 echo "$as_me: failed program was:" >&5
20403sed 's/^/| /' conftest.$ac_ext >&5
20404
20405 ac_cv_lib_gcc___udivdi3=no
20406fi
20407
20408rm -f core conftest.err conftest.$ac_objext \
20409 conftest$ac_exeext conftest.$ac_ext
20410LIBS=$ac_check_lib_save_LIBS
20411fi
20412{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20413echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20414if test $ac_cv_lib_gcc___udivdi3 = yes; then
20415
20416cat >>confdefs.h <<\_ACEOF
20417#define HAVE___UDIVDI3 1
20418_ACEOF
20419
20420fi
20421
20422 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20423echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20424if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426else
20427 ac_check_lib_save_LIBS=$LIBS
20428LIBS="-lgcc $LIBS"
20429cat >conftest.$ac_ext <<_ACEOF
20430/* confdefs.h. */
20431_ACEOF
20432cat confdefs.h >>conftest.$ac_ext
20433cat >>conftest.$ac_ext <<_ACEOF
20434/* end confdefs.h. */
20435
20436/* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439#ifdef __cplusplus
20440extern "C"
20441#endif
20442char __umoddi3 ();
20443int
20444main ()
20445{
20446return __umoddi3 ();
20447 ;
20448 return 0;
20449}
20450_ACEOF
20451rm -f conftest.$ac_objext conftest$ac_exeext
20452if { (ac_try="$ac_link"
20453case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456esac
20457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>conftest.er1
20459 ac_status=$?
20460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466 { (case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469esac
20470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_try") 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try='test -s conftest$ac_exeext'
20476 { (case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479esac
20480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_try") 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_lib_gcc___umoddi3=yes
20486else
20487 echo "$as_me: failed program was:" >&5
20488sed 's/^/| /' conftest.$ac_ext >&5
20489
20490 ac_cv_lib_gcc___umoddi3=no
20491fi
20492
20493rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20495LIBS=$ac_check_lib_save_LIBS
20496fi
20497{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20498echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20499if test $ac_cv_lib_gcc___umoddi3 = yes; then
20500
20501cat >>confdefs.h <<\_ACEOF
20502#define HAVE___UMODDI3 1
20503_ACEOF
20504
20505fi
20506
20507
20508 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20509echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20510if test "${ac_cv_lib_gcc___main+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20512else
20513 ac_check_lib_save_LIBS=$LIBS
20514LIBS="-lgcc $LIBS"
20515cat >conftest.$ac_ext <<_ACEOF
20516/* confdefs.h. */
20517_ACEOF
20518cat confdefs.h >>conftest.$ac_ext
20519cat >>conftest.$ac_ext <<_ACEOF
20520/* end confdefs.h. */
20521
20522/* Override any GCC internal prototype to avoid an error.
20523 Use char because int might match the return type of a GCC
20524 builtin and then its argument prototype would still apply. */
20525#ifdef __cplusplus
20526extern "C"
20527#endif
20528char __main ();
20529int
20530main ()
20531{
20532return __main ();
20533 ;
20534 return 0;
20535}
20536_ACEOF
20537rm -f conftest.$ac_objext conftest$ac_exeext
20538if { (ac_try="$ac_link"
20539case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542esac
20543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555esac
20556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest$ac_exeext'
20562 { (case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565esac
20566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_try") 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ac_cv_lib_gcc___main=yes
20572else
20573 echo "$as_me: failed program was:" >&5
20574sed 's/^/| /' conftest.$ac_ext >&5
20575
20576 ac_cv_lib_gcc___main=no
20577fi
20578
20579rm -f core conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
20581LIBS=$ac_check_lib_save_LIBS
20582fi
20583{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20584echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20585if test $ac_cv_lib_gcc___main = yes; then
20586
20587cat >>confdefs.h <<\_ACEOF
20588#define HAVE___MAIN 1
20589_ACEOF
20590
20591fi
20592
20593 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20594echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20595if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20597else
20598 ac_check_lib_save_LIBS=$LIBS
20599LIBS="-lgcc $LIBS"
20600cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h. */
20606
20607/* Override any GCC internal prototype to avoid an error.
20608 Use char because int might match the return type of a GCC
20609 builtin and then its argument prototype would still apply. */
20610#ifdef __cplusplus
20611extern "C"
20612#endif
20613char __cmpdi2 ();
20614int
20615main ()
20616{
20617return __cmpdi2 ();
20618 ;
20619 return 0;
20620}
20621_ACEOF
20622rm -f conftest.$ac_objext conftest$ac_exeext
20623if { (ac_try="$ac_link"
20624case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627esac
20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_link") 2>conftest.er1
20630 ac_status=$?
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } &&
20636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20637 { (case "(($ac_try" in
20638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639 *) ac_try_echo=$ac_try;;
20640esac
20641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642 (eval "$ac_try") 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest$ac_exeext'
20647 { (case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650esac
20651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_try") 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_cv_lib_gcc___cmpdi2=yes
20657else
20658 echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
20661 ac_cv_lib_gcc___cmpdi2=no
20662fi
20663
20664rm -f core conftest.err conftest.$ac_objext \
20665 conftest$ac_exeext conftest.$ac_ext
20666LIBS=$ac_check_lib_save_LIBS
20667fi
20668{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20669echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20670if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20671
20672cat >>confdefs.h <<\_ACEOF
20673#define HAVE___CMPDI2 1
20674_ACEOF
20675
20676fi
20677
20678fi
20679
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000020680if test "$llvm_cv_os_type" = "MingW" ; then
20681 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20682echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20684#include <windows.h>
20685#include <imagehlp.h>
20686extern void foo(PENUMLOADED_MODULES_CALLBACK);
20687extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20688_ACEOF
20689rm -f conftest.$ac_objext
20690if { (ac_try="$ac_compile"
20691case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694esac
20695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707esac
20708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717esac
20718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723
20724 { echo "$as_me:$LINENO: result: yes" >&5
20725echo "${ECHO_T}yes" >&6; }
20726 llvm_cv_win32_elmcb_pcstr="PCSTR"
20727
20728else
20729 echo "$as_me: failed program was:" >&5
20730sed 's/^/| /' conftest.$ac_ext >&5
20731
20732
20733 { echo "$as_me:$LINENO: result: no" >&5
20734echo "${ECHO_T}no" >&6; }
20735 llvm_cv_win32_elmcb_pcstr="PSTR"
20736
20737fi
20738
20739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740
20741cat >>confdefs.h <<_ACEOF
20742#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20743_ACEOF
20744
20745fi
20746
Torok Edwin871384f2010-01-26 08:50:50 +000020747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20749echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20750if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020752else
Reid Spencera773bd52006-08-04 18:18:08 +000020753 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000020754ac_cpp='$CXXCPP $CPPFLAGS'
20755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020759 cat >conftest.$ac_ext <<_ACEOF
20760/* confdefs.h. */
20761_ACEOF
20762cat confdefs.h >>conftest.$ac_ext
20763cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020764/* end confdefs.h. */
20765#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020766int
20767main ()
20768{
20769float f; isnan(f);
20770 ;
20771 return 0;
20772}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020773_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774rm -f conftest.$ac_objext
20775if { (ac_try="$ac_compile"
20776case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779esac
20780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20789 { (case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792esac
20793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_try") 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
20799 { (case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20802esac
20803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_try") 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020808 ac_cv_func_isnan_in_math_h=yes
20809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810 echo "$as_me: failed program was:" >&5
20811sed 's/^/| /' conftest.$ac_ext >&5
20812
20813 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020815
Reid Spencera773bd52006-08-04 18:18:08 +000020816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020817 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020818ac_cpp='$CPP $CPPFLAGS'
20819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822
20823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020824{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20825echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020826
20827
20828if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020830cat >>confdefs.h <<\_ACEOF
20831#define HAVE_ISNAN_IN_MATH_H 1
20832_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020833
Reid Spencerabec8f92004-10-27 23:03:44 +000020834fi
20835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020836{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20837echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20838if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020840else
Reid Spencera773bd52006-08-04 18:18:08 +000020841 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020842ac_cpp='$CXXCPP $CPPFLAGS'
20843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020847 cat >conftest.$ac_ext <<_ACEOF
20848/* confdefs.h. */
20849_ACEOF
20850cat confdefs.h >>conftest.$ac_ext
20851cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020852/* end confdefs.h. */
20853#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020854int
20855main ()
20856{
20857float f; isnan(f);
20858 ;
20859 return 0;
20860}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020861_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020862rm -f conftest.$ac_objext
20863if { (ac_try="$ac_compile"
20864case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867esac
20868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_compile") 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20877 { (case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20880esac
20881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_try") 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; } &&
20886 { ac_try='test -s conftest.$ac_objext'
20887 { (case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20890esac
20891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_try") 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020896 ac_cv_func_isnan_in_cmath=yes
20897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898 echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903
Reid Spencera773bd52006-08-04 18:18:08 +000020904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020905 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020906ac_cpp='$CPP $CPPFLAGS'
20907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909ac_compiler_gnu=$ac_cv_c_compiler_gnu
20910
20911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020912{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20913echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020914
20915if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020917cat >>confdefs.h <<\_ACEOF
20918#define HAVE_ISNAN_IN_CMATH 1
20919_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020920
Reid Spencerabec8f92004-10-27 23:03:44 +000020921fi
20922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20924echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20925if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020927else
Reid Spencera773bd52006-08-04 18:18:08 +000020928 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020929ac_cpp='$CXXCPP $CPPFLAGS'
20930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020934 cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020939/* end confdefs.h. */
20940#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020941int
20942main ()
20943{
20944float f; std::isnan(f);
20945 ;
20946 return 0;
20947}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020948_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949rm -f conftest.$ac_objext
20950if { (ac_try="$ac_compile"
20951case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954esac
20955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
20963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20964 { (case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_try") 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; } &&
20973 { ac_try='test -s conftest.$ac_objext'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020983 ac_cv_func_std_isnan_in_cmath=yes
20984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985 echo "$as_me: failed program was:" >&5
20986sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020990
Reid Spencera773bd52006-08-04 18:18:08 +000020991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020992 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020993ac_cpp='$CPP $CPPFLAGS'
20994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996ac_compiler_gnu=$ac_cv_c_compiler_gnu
20997
20998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020999{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21000echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021001
21002if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004cat >>confdefs.h <<\_ACEOF
21005#define HAVE_STD_ISNAN_IN_CMATH 1
21006_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021007
Reid Spencerabec8f92004-10-27 23:03:44 +000021008fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021009
21010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021011{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21012echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21013if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021015else
Reid Spencera773bd52006-08-04 18:18:08 +000021016 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021017ac_cpp='$CXXCPP $CPPFLAGS'
21018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021022 cat >conftest.$ac_ext <<_ACEOF
21023/* confdefs.h. */
21024_ACEOF
21025cat confdefs.h >>conftest.$ac_ext
21026cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021027/* end confdefs.h. */
21028#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021029int
21030main ()
21031{
21032float f; isinf(f);
21033 ;
21034 return 0;
21035}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021036_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021037rm -f conftest.$ac_objext
21038if { (ac_try="$ac_compile"
21039case "(($ac_try" in
21040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041 *) ac_try_echo=$ac_try;;
21042esac
21043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044 (eval "$ac_compile") 2>conftest.er1
21045 ac_status=$?
21046 grep -v '^ *+' conftest.er1 >conftest.err
21047 rm -f conftest.er1
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21052 { (case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055esac
21056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_try") 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } &&
21061 { ac_try='test -s conftest.$ac_objext'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065esac
21066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021071 ac_cv_func_isinf_in_math_h=yes
21072else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021073 echo "$as_me: failed program was:" >&5
21074sed 's/^/| /' conftest.$ac_ext >&5
21075
21076 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021078
Reid Spencera773bd52006-08-04 18:18:08 +000021079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021080 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021081ac_cpp='$CPP $CPPFLAGS'
21082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21084ac_compiler_gnu=$ac_cv_c_compiler_gnu
21085
21086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021087{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21088echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021089
21090if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092cat >>confdefs.h <<\_ACEOF
21093#define HAVE_ISINF_IN_MATH_H 1
21094_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021095
Reid Spencerabec8f92004-10-27 23:03:44 +000021096fi
21097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021098{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21099echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21100if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021102else
Reid Spencera773bd52006-08-04 18:18:08 +000021103 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021104ac_cpp='$CXXCPP $CPPFLAGS'
21105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021109 cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */
21111_ACEOF
21112cat confdefs.h >>conftest.$ac_ext
21113cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021114/* end confdefs.h. */
21115#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021116int
21117main ()
21118{
21119float f; isinf(f);
21120 ;
21121 return 0;
21122}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021124rm -f conftest.$ac_objext
21125if { (ac_try="$ac_compile"
21126case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129esac
21130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_compile") 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21139 { (case "(($ac_try" in
21140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141 *) ac_try_echo=$ac_try;;
21142esac
21143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144 (eval "$ac_try") 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; } &&
21148 { ac_try='test -s conftest.$ac_objext'
21149 { (case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21152esac
21153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_try") 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021158 ac_cv_func_isinf_in_cmath=yes
21159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021160 echo "$as_me: failed program was:" >&5
21161sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021165
Reid Spencera773bd52006-08-04 18:18:08 +000021166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021167 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021168ac_cpp='$CPP $CPPFLAGS'
21169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21171ac_compiler_gnu=$ac_cv_c_compiler_gnu
21172
21173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021174{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21175echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021176
21177if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179cat >>confdefs.h <<\_ACEOF
21180#define HAVE_ISINF_IN_CMATH 1
21181_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021182
Reid Spencerabec8f92004-10-27 23:03:44 +000021183fi
21184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021185{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21186echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21187if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000021189else
Reid Spencera773bd52006-08-04 18:18:08 +000021190 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000021191ac_cpp='$CXXCPP $CPPFLAGS'
21192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021196 cat >conftest.$ac_ext <<_ACEOF
21197/* confdefs.h. */
21198_ACEOF
21199cat confdefs.h >>conftest.$ac_ext
21200cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021201/* end confdefs.h. */
21202#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000021203int
21204main ()
21205{
21206float f; std::isinf(f)}
21207 ;
21208 return 0;
21209}
Brian Gaeke52a551d2004-07-21 03:14:12 +000021210_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021211rm -f conftest.$ac_objext
21212if { (ac_try="$ac_compile"
21213case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21216esac
21217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218 (eval "$ac_compile") 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
21225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21226 { (case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229esac
21230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_try") 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; } &&
21235 { ac_try='test -s conftest.$ac_objext'
21236 { (case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21239esac
21240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_try") 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021245 ac_cv_func_std_isinf_in_cmath=yes
21246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247 echo "$as_me: failed program was:" >&5
21248sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000021251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021252
Reid Spencera773bd52006-08-04 18:18:08 +000021253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021254 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000021255ac_cpp='$CPP $CPPFLAGS'
21256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259
21260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021261{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21262echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021263
21264if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000021265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021266cat >>confdefs.h <<\_ACEOF
21267#define HAVE_STD_ISINF_IN_CMATH 1
21268_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021269
Reid Spencerabec8f92004-10-27 23:03:44 +000021270fi
21271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021272{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21273echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21274if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000021276else
Reid Spencera773bd52006-08-04 18:18:08 +000021277 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000021278ac_cpp='$CXXCPP $CPPFLAGS'
21279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283 cat >conftest.$ac_ext <<_ACEOF
21284/* confdefs.h. */
21285_ACEOF
21286cat confdefs.h >>conftest.$ac_ext
21287cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021288/* end confdefs.h. */
21289#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000021290int
21291main ()
21292{
21293float f; finite(f);
21294 ;
21295 return 0;
21296}
Brian Gaeked59a6472004-07-21 03:33:58 +000021297_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021298rm -f conftest.$ac_objext
21299if { (ac_try="$ac_compile"
21300case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303esac
21304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21306 ac_status=$?
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
21312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21313 { (case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21316esac
21317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_try") 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; } &&
21322 { ac_try='test -s conftest.$ac_objext'
21323 { (case "(($ac_try" in
21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21326esac
21327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_try") 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021332 ac_cv_func_finite_in_ieeefp_h=yes
21333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021334 echo "$as_me: failed program was:" >&5
21335sed 's/^/| /' conftest.$ac_ext >&5
21336
21337 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000021338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021339
Reid Spencera773bd52006-08-04 18:18:08 +000021340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000021341 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000021342ac_cpp='$CPP $CPPFLAGS'
21343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21345ac_compiler_gnu=$ac_cv_c_compiler_gnu
21346
21347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21349echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000021350
Brian Gaeke6802b552004-10-28 05:06:45 +000021351if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000021352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021353cat >>confdefs.h <<\_ACEOF
21354#define HAVE_FINITE_IN_IEEEFP_H 1
21355_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000021356
Reid Spencerabec8f92004-10-27 23:03:44 +000021357fi
21358
21359
21360
Reid Spencer30fe5262007-01-20 07:48:49 +000021361if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000021362
21363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021364for ac_header in stdlib.h unistd.h
21365do
21366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21372fi
21373ac_res=`eval echo '${'$as_ac_Header'}'`
21374 { echo "$as_me:$LINENO: result: $ac_res" >&5
21375echo "${ECHO_T}$ac_res" >&6; }
21376else
21377 # Is the header compilable?
21378{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21380cat >conftest.$ac_ext <<_ACEOF
21381/* confdefs.h. */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h. */
21386$ac_includes_default
21387#include <$ac_header>
21388_ACEOF
21389rm -f conftest.$ac_objext
21390if { (ac_try="$ac_compile"
21391case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21394esac
21395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21397 ac_status=$?
21398 grep -v '^ *+' conftest.er1 >conftest.err
21399 rm -f conftest.er1
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
21403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21404 { (case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21407esac
21408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_try") 2>&5
21410 ac_status=$?
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; } &&
21413 { ac_try='test -s conftest.$ac_objext'
21414 { (case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21417esac
21418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_try") 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_header_compiler=yes
21424else
21425 echo "$as_me: failed program was:" >&5
21426sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021428 ac_header_compiler=no
21429fi
21430
21431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21433echo "${ECHO_T}$ac_header_compiler" >&6; }
21434
21435# Is the header present?
21436{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21438cat >conftest.$ac_ext <<_ACEOF
21439/* confdefs.h. */
21440_ACEOF
21441cat confdefs.h >>conftest.$ac_ext
21442cat >>conftest.$ac_ext <<_ACEOF
21443/* end confdefs.h. */
21444#include <$ac_header>
21445_ACEOF
21446if { (ac_try="$ac_cpp conftest.$ac_ext"
21447case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450esac
21451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } >/dev/null; then
21459 if test -s conftest.err; then
21460 ac_cpp_err=$ac_c_preproc_warn_flag
21461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21462 else
21463 ac_cpp_err=
21464 fi
21465else
21466 ac_cpp_err=yes
21467fi
21468if test -z "$ac_cpp_err"; then
21469 ac_header_preproc=yes
21470else
21471 echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
21474 ac_header_preproc=no
21475fi
21476
21477rm -f conftest.err conftest.$ac_ext
21478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21479echo "${ECHO_T}$ac_header_preproc" >&6; }
21480
21481# So? What about this header?
21482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21483 yes:no: )
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21488 ac_header_preproc=yes
21489 ;;
21490 no:yes:* )
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21503 ( cat <<\_ASBOX
21504## ----------------------------------- ##
21505## Report this to llvmbugs@cs.uiuc.edu ##
21506## ----------------------------------- ##
21507_ASBOX
21508 ) | sed "s/^/$as_me: WARNING: /" >&2
21509 ;;
21510esac
21511{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515else
21516 eval "$as_ac_Header=\$ac_header_preproc"
21517fi
21518ac_res=`eval echo '${'$as_ac_Header'}'`
21519 { echo "$as_me:$LINENO: result: $ac_res" >&5
21520echo "${ECHO_T}$ac_res" >&6; }
21521
21522fi
21523if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021524 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021526_ACEOF
21527
21528fi
21529
21530done
21531
21532
21533for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021534do
21535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21536{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21538if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540else
21541 cat >conftest.$ac_ext <<_ACEOF
21542/* confdefs.h. */
21543_ACEOF
21544cat confdefs.h >>conftest.$ac_ext
21545cat >>conftest.$ac_ext <<_ACEOF
21546/* end confdefs.h. */
21547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21549#define $ac_func innocuous_$ac_func
21550
21551/* System header to define __stub macros and hopefully few prototypes,
21552 which can conflict with char $ac_func (); below.
21553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21554 <limits.h> exists even on freestanding compilers. */
21555
21556#ifdef __STDC__
21557# include <limits.h>
21558#else
21559# include <assert.h>
21560#endif
21561
21562#undef $ac_func
21563
21564/* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21567#ifdef __cplusplus
21568extern "C"
21569#endif
21570char $ac_func ();
21571/* The GNU C library defines this for functions which it implements
21572 to always fail with ENOSYS. Some functions are actually named
21573 something starting with __ and the normal name is an alias. */
21574#if defined __stub_$ac_func || defined __stub___$ac_func
21575choke me
21576#endif
21577
21578int
21579main ()
21580{
21581return $ac_func ();
21582 ;
21583 return 0;
21584}
21585_ACEOF
21586rm -f conftest.$ac_objext conftest$ac_exeext
21587if { (ac_try="$ac_link"
21588case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21591esac
21592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_link") 2>conftest.er1
21594 ac_status=$?
21595 grep -v '^ *+' conftest.er1 >conftest.err
21596 rm -f conftest.er1
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
21600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21601 { (case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21604esac
21605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_try") 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; } &&
21610 { ac_try='test -s conftest$ac_exeext'
21611 { (case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21614esac
21615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_try") 2>&5
21617 ac_status=$?
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 eval "$as_ac_var=yes"
21621else
21622 echo "$as_me: failed program was:" >&5
21623sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 eval "$as_ac_var=no"
21626fi
21627
21628rm -f core conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
21630fi
21631ac_res=`eval echo '${'$as_ac_var'}'`
21632 { echo "$as_me:$LINENO: result: $ac_res" >&5
21633echo "${ECHO_T}$ac_res" >&6; }
21634if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021635 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000021637_ACEOF
21638
21639fi
21640done
21641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642{ echo "$as_me:$LINENO: checking for working mmap" >&5
21643echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21644if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021648 ac_cv_func_mmap_fixed_mapped=no
21649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650 cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021656$ac_includes_default
21657/* malloc might have been renamed as rpl_malloc. */
21658#undef malloc
21659
21660/* Thanks to Mike Haertel and Jim Avera for this test.
21661 Here is a matrix of mmap possibilities:
21662 mmap private not fixed
21663 mmap private fixed at somewhere currently unmapped
21664 mmap private fixed at somewhere already mapped
21665 mmap shared not fixed
21666 mmap shared fixed at somewhere currently unmapped
21667 mmap shared fixed at somewhere already mapped
21668 For private mappings, we should verify that changes cannot be read()
21669 back from the file, nor mmap's back from the file at a different
21670 address. (There have been systems where private was not correctly
21671 implemented like the infamous i386 svr4.0, and systems where the
21672 VM page cache was not coherent with the file system buffer cache
21673 like early versions of FreeBSD and possibly contemporary NetBSD.)
21674 For shared mappings, we should conversely verify that changes get
21675 propagated back to all the places they're supposed to be.
21676
21677 Grep wants private fixed already mapped.
21678 The main things grep needs to know about mmap are:
21679 * does it exist and is it safe to write into the mmap'd area
21680 * how to use it (BSD variants) */
21681
21682#include <fcntl.h>
21683#include <sys/mman.h>
21684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021685#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000021686char *malloc ();
21687#endif
21688
21689/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690#if !HAVE_GETPAGESIZE
21691/* Assume that all systems that can run configure have sys/param.h. */
21692# if !HAVE_SYS_PARAM_H
21693# define HAVE_SYS_PARAM_H 1
21694# endif
21695
John Criswell7a73b802003-06-30 21:59:07 +000021696# ifdef _SC_PAGESIZE
21697# define getpagesize() sysconf(_SC_PAGESIZE)
21698# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021699# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000021700# include <sys/param.h>
21701# ifdef EXEC_PAGESIZE
21702# define getpagesize() EXEC_PAGESIZE
21703# else /* no EXEC_PAGESIZE */
21704# ifdef NBPG
21705# define getpagesize() NBPG * CLSIZE
21706# ifndef CLSIZE
21707# define CLSIZE 1
21708# endif /* no CLSIZE */
21709# else /* no NBPG */
21710# ifdef NBPC
21711# define getpagesize() NBPC
21712# else /* no NBPC */
21713# ifdef PAGESIZE
21714# define getpagesize() PAGESIZE
21715# endif /* PAGESIZE */
21716# endif /* no NBPC */
21717# endif /* no NBPG */
21718# endif /* no EXEC_PAGESIZE */
21719# else /* no HAVE_SYS_PARAM_H */
21720# define getpagesize() 8192 /* punt totally */
21721# endif /* no HAVE_SYS_PARAM_H */
21722# endif /* no _SC_PAGESIZE */
21723
21724#endif /* no HAVE_GETPAGESIZE */
21725
21726int
21727main ()
21728{
21729 char *data, *data2, *data3;
21730 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021731 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000021732
21733 pagesize = getpagesize ();
21734
21735 /* First, make a file with some known garbage in it. */
21736 data = (char *) malloc (pagesize);
21737 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000021738 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021739 for (i = 0; i < pagesize; ++i)
21740 *(data + i) = rand ();
21741 umask (0);
21742 fd = creat ("conftest.mmap", 0600);
21743 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021744 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021745 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021747 close (fd);
21748
21749 /* Next, try to mmap the file at a fixed address which already has
21750 something else allocated at it. If we can, also make sure that
21751 we see the same garbage. */
21752 fd = open ("conftest.mmap", O_RDWR);
21753 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021754 return 1;
21755 data2 = (char *) malloc (2 * pagesize);
21756 if (!data2)
21757 return 1;
21758 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021759 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000021760 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021762 for (i = 0; i < pagesize; ++i)
21763 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021764 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021765
21766 /* Finally, make sure that changes to the mapped area do not
21767 percolate back to the file as seen by read(). (This is a bug on
21768 some variants of i386 svr4.0.) */
21769 for (i = 0; i < pagesize; ++i)
21770 *(data2 + i) = *(data2 + i) + 1;
21771 data3 = (char *) malloc (pagesize);
21772 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021773 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021774 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021776 for (i = 0; i < pagesize; ++i)
21777 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021778 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000021779 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000021780 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021781}
21782_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021783rm -f conftest$ac_exeext
21784if { (ac_try="$ac_link"
21785case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788esac
21789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21794 { (case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797esac
21798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_try") 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021803 ac_cv_func_mmap_fixed_mapped=yes
21804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021805 echo "$as_me: program exited with status $ac_status" >&5
21806echo "$as_me: failed program was:" >&5
21807sed 's/^/| /' conftest.$ac_ext >&5
21808
21809( exit $ac_status )
21810ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000021811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812rm -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 +000021813fi
Reid Spencera773bd52006-08-04 18:18:08 +000021814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815
John Criswell7a73b802003-06-30 21:59:07 +000021816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021817{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21818echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021819if test $ac_cv_func_mmap_fixed_mapped = yes; then
21820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021821cat >>confdefs.h <<\_ACEOF
21822#define HAVE_MMAP 1
21823_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021824
21825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021826rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000021827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21829echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21830if test "${ac_cv_func_mmap_file+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000021832else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021833 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000021834ac_cpp='$CPP $CPPFLAGS'
21835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21837ac_compiler_gnu=$ac_cv_c_compiler_gnu
21838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021839 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021840 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021842 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000021843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844 /* confdefs.h. */
21845_ACEOF
21846cat confdefs.h >>conftest.$ac_ext
21847cat >>conftest.$ac_ext <<_ACEOF
21848/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000021849
John Criswell7a73b802003-06-30 21:59:07 +000021850#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000021851#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000021852#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000021853
21854int
21855main ()
21856{
John Criswell7a73b802003-06-30 21:59:07 +000021857
21858 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000021859 fd = creat ("foo",0777);
21860 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21861 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000021862 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000021863 ;
21864 return 0;
21865}
John Criswell7a73b802003-06-30 21:59:07 +000021866_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021867rm -f conftest$ac_exeext
21868if { (ac_try="$ac_link"
21869case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872esac
21873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_link") 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21878 { (case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21881esac
21882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_try") 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021887 ac_cv_func_mmap_file=yes
21888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889 echo "$as_me: program exited with status $ac_status" >&5
21890echo "$as_me: failed program was:" >&5
21891sed 's/^/| /' conftest.$ac_ext >&5
21892
21893( exit $ac_status )
21894ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000021895fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021896rm -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 +000021897fi
Reid Spencera773bd52006-08-04 18:18:08 +000021898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021899
John Criswell7a73b802003-06-30 21:59:07 +000021900 ac_ext=c
21901ac_cpp='$CPP $CPPFLAGS'
21902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904ac_compiler_gnu=$ac_cv_c_compiler_gnu
21905
21906
21907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021908{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21909echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000021910if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021912cat >>confdefs.h <<\_ACEOF
21913#define HAVE_MMAP_FILE
21914_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021915
21916 MMAP_FILE=yes
21917
21918fi
21919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21921echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21922if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000021924else
Reid Spencer582a23c2004-12-29 07:07:57 +000021925 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000021926 ac_cv_need_dev_zero_for_mmap=yes
21927 else
21928 ac_cv_need_dev_zero_for_mmap=no
21929 fi
21930
21931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21933echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000021934if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021936cat >>confdefs.h <<\_ACEOF
21937#define NEED_DEV_ZERO_FOR_MMAP 1
21938_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000021939
21940fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021941
Reid Spencer30fe5262007-01-20 07:48:49 +000021942 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21943 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21945echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021946 fi
21947 if test "$ac_cv_func_mmap_file" = "no"
21948 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021949 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21950echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000021951 fi
John Criswellb13092b2003-07-22 21:00:24 +000021952fi
John Criswell7a73b802003-06-30 21:59:07 +000021953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21955echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000021956ac_ext=cpp
21957ac_cpp='$CXXCPP $CPPFLAGS'
21958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021962cat >conftest.$ac_ext <<_ACEOF
21963/* confdefs.h. */
21964_ACEOF
21965cat confdefs.h >>conftest.$ac_ext
21966cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000021967/* end confdefs.h. */
21968int main() {
Owen Andersona8603702009-05-19 22:18:56 +000021969 volatile unsigned long val = 1;
21970 __sync_synchronize();
21971 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000021972 __sync_add_and_fetch(&val, 1);
21973 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000021974 return 0;
21975 }
Owen Andersond4b272b2009-05-18 23:58:51 +000021976
21977_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021978rm -f conftest.$ac_objext conftest$ac_exeext
21979if { (ac_try="$ac_link"
21980case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21983esac
21984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_link") 2>conftest.er1
21986 ac_status=$?
21987 grep -v '^ *+' conftest.er1 >conftest.err
21988 rm -f conftest.er1
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); } &&
21992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21993 { (case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996esac
21997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_try") 2>&5
21999 ac_status=$?
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; } &&
22002 { ac_try='test -s conftest$ac_exeext'
22003 { (case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22006esac
22007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_try") 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000022012 ac_ext=c
22013ac_cpp='$CPP $CPPFLAGS'
22014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22016ac_compiler_gnu=$ac_cv_c_compiler_gnu
22017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022018 { echo "$as_me:$LINENO: result: yes" >&5
22019echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000022020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022021cat >>confdefs.h <<\_ACEOF
22022#define LLVM_MULTITHREADED 1
22023_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000022024
Owen Andersond4b272b2009-05-18 23:58:51 +000022025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022026 echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000022028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022029 { echo "$as_me:$LINENO: result: no" >&5
22030echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000022031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022032cat >>confdefs.h <<\_ACEOF
22033#define LLVM_MULTITHREADED 0
22034_ACEOF
22035
22036 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22037echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000022038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039
Owen Andersond4b272b2009-05-18 23:58:51 +000022040rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000022042
John Criswell7a73b802003-06-30 21:59:07 +000022043
Nick Lewycky4372e692009-09-29 06:18:23 +000022044if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022045 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22046echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22047if test "${llvm_cv_linux_mixed+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000022049else
22050 ac_ext=c
22051ac_cpp='$CPP $CPPFLAGS'
22052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22054ac_compiler_gnu=$ac_cv_c_compiler_gnu
22055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022056 cat >conftest.$ac_ext <<_ACEOF
22057/* confdefs.h. */
22058_ACEOF
22059cat confdefs.h >>conftest.$ac_ext
22060cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000022061/* end confdefs.h. */
22062#ifndef __x86_64__
22063 error: Not x86-64 even if uname says so!
22064 #endif
22065
22066int
22067main ()
22068{
22069
22070 ;
22071 return 0;
22072}
22073_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022074rm -f conftest.$ac_objext
22075if { (ac_try="$ac_compile"
22076case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079esac
22080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_compile") 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22089 { (case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092esac
22093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest.$ac_objext'
22099 { (case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102esac
22103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_try") 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000022108 llvm_cv_linux_mixed=no
22109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110 echo "$as_me: failed program was:" >&5
22111sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000022114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022115
Nick Lewycky4372e692009-09-29 06:18:23 +000022116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117 ac_ext=c
22118ac_cpp='$CPP $CPPFLAGS'
22119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22121ac_compiler_gnu=$ac_cv_c_compiler_gnu
22122
22123
22124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022125{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22126echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000022127
22128 if test "$llvm_cv_linux_mixed" = "yes"; then
22129 llvm_cv_target_arch="x86"
22130 ARCH="x86"
22131 fi
22132fi
22133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022134
Reid Spencer9372f152007-07-30 20:13:24 +000022135for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022136do
22137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22138{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22142else
22143 cat >conftest.$ac_ext <<_ACEOF
22144/* confdefs.h. */
22145_ACEOF
22146cat confdefs.h >>conftest.$ac_ext
22147cat >>conftest.$ac_ext <<_ACEOF
22148/* end confdefs.h. */
22149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22151#define $ac_func innocuous_$ac_func
22152
22153/* System header to define __stub macros and hopefully few prototypes,
22154 which can conflict with char $ac_func (); below.
22155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22156 <limits.h> exists even on freestanding compilers. */
22157
22158#ifdef __STDC__
22159# include <limits.h>
22160#else
22161# include <assert.h>
22162#endif
22163
22164#undef $ac_func
22165
22166/* Override any GCC internal prototype to avoid an error.
22167 Use char because int might match the return type of a GCC
22168 builtin and then its argument prototype would still apply. */
22169#ifdef __cplusplus
22170extern "C"
22171#endif
22172char $ac_func ();
22173/* The GNU C library defines this for functions which it implements
22174 to always fail with ENOSYS. Some functions are actually named
22175 something starting with __ and the normal name is an alias. */
22176#if defined __stub_$ac_func || defined __stub___$ac_func
22177choke me
22178#endif
22179
22180int
22181main ()
22182{
22183return $ac_func ();
22184 ;
22185 return 0;
22186}
22187_ACEOF
22188rm -f conftest.$ac_objext conftest$ac_exeext
22189if { (ac_try="$ac_link"
22190case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193esac
22194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
22202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22203 { (case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22206esac
22207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_try") 2>&5
22209 ac_status=$?
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; } &&
22212 { ac_try='test -s conftest$ac_exeext'
22213 { (case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216esac
22217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_try") 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 eval "$as_ac_var=yes"
22223else
22224 echo "$as_me: failed program was:" >&5
22225sed 's/^/| /' conftest.$ac_ext >&5
22226
22227 eval "$as_ac_var=no"
22228fi
22229
22230rm -f core conftest.err conftest.$ac_objext \
22231 conftest$ac_exeext conftest.$ac_ext
22232fi
22233ac_res=`eval echo '${'$as_ac_var'}'`
22234 { echo "$as_me:$LINENO: result: $ac_res" >&5
22235echo "${ECHO_T}$ac_res" >&6; }
22236if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000022237 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000022239_ACEOF
22240
22241fi
22242done
22243
22244
Tobias Grossera84b5672010-11-10 16:31:34 +000022245{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22246echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22247if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22249else
22250 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022251if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000022252 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022253 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000022254 if test $? -eq 0 ; then
22255 llvm_cv_llvmgcc_dragonegg="yes"
22256 fi
22257 rm conftest.c
22258fi
22259fi
22260{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22261echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22262
22263if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22264 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sandsfcc482e2011-05-23 16:50:29 +000022265 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
Tobias Grossera84b5672010-11-10 16:31:34 +000022266else
22267 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000022268 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000022269fi
22270
22271
22272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022273{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22274echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22275if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022277else
22278 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000022279if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022280 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000022281 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000022282 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022283 if test $? -eq 0 ; then
22284 llvm_cv_llvmgcc_sanity="yes"
22285 fi
22286 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000022287fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22290echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022291
22292if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022293 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22294echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000022295 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022296 LLVMCC1=$llvmcc1path
22297
Duncan Sands1526b192010-11-25 17:47:42 +000022298 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022299 LLVMCC1PLUS=$llvmcc1pluspath
22300
Reid Spencer502935f2004-12-22 05:56:56 +000022301 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22302 LLVMGCCDIR=$llvmgccdir
22303
Duncan Sands1526b192010-11-25 17:47:42 +000022304 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000022305 LLVMGCC_LANGS=$llvmgcclangs
22306
Tobias Grossera84b5672010-11-10 16:31:34 +000022307 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22308
22309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022310 { echo "$as_me:$LINENO: result: ok" >&5
22311echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000022312fi
22313
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022314SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000022315
22316
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022317SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22318
22319
Reid Spencere9de0912004-08-20 09:03:57 +000022320# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022321# information into substitutions that will end up in Makefile.config.in
22322# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000022323if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000022324 prefix="/usr/local"
22325fi
Reid Spencere9de0912004-08-20 09:03:57 +000022326eval LLVM_PREFIX="${prefix}";
22327eval LLVM_BINDIR="${prefix}/bin";
22328eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000022329eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000022330eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000022331eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000022332eval LLVM_INCLUDEDIR="${prefix}/include";
22333eval LLVM_INFODIR="${prefix}/info";
22334eval LLVM_MANDIR="${prefix}/man";
22335LLVM_CONFIGTIME=`date`
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022347# Place the various directores into the config.h file as #defines so that we
22348# can know about the installation paths within LLVM.
22349
Reid Spencere9de0912004-08-20 09:03:57 +000022350cat >>confdefs.h <<_ACEOF
22351#define LLVM_PREFIX "$LLVM_PREFIX"
22352_ACEOF
22353
22354
22355cat >>confdefs.h <<_ACEOF
22356#define LLVM_BINDIR "$LLVM_BINDIR"
22357_ACEOF
22358
22359
22360cat >>confdefs.h <<_ACEOF
22361#define LLVM_LIBDIR "$LLVM_LIBDIR"
22362_ACEOF
22363
22364
22365cat >>confdefs.h <<_ACEOF
22366#define LLVM_DATADIR "$LLVM_DATADIR"
22367_ACEOF
22368
22369
22370cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000022371#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022372_ACEOF
22373
22374
22375cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022376#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022377_ACEOF
22378
22379
22380cat >>confdefs.h <<_ACEOF
22381#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22382_ACEOF
22383
22384
22385cat >>confdefs.h <<_ACEOF
22386#define LLVM_INFODIR "$LLVM_INFODIR"
22387_ACEOF
22388
22389
22390cat >>confdefs.h <<_ACEOF
22391#define LLVM_MANDIR "$LLVM_MANDIR"
22392_ACEOF
22393
22394
22395cat >>confdefs.h <<_ACEOF
22396#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22397_ACEOF
22398
22399
Eric Christopher790e11c2007-12-01 00:34:39 +000022400cat >>confdefs.h <<_ACEOF
22401#define LLVM_HOSTTRIPLE "$host"
22402_ACEOF
22403
22404
Gordon Henriksenc0efff82007-10-02 09:50:32 +000022405# Determine which bindings to build.
22406if test "$BINDINGS_TO_BUILD" = auto ; then
22407 BINDINGS_TO_BUILD=""
22408 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22409 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22410 fi
22411fi
22412BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22413
22414
22415# This isn't really configurey, but it avoids having to repeat the list in
22416# other files.
22417ALL_BINDINGS=ocaml
22418
22419
Gordon Henriksenf0915682007-10-02 16:42:22 +000022420# Do any work necessary to ensure that bindings have what they need.
22421binding_prereqs_failed=0
22422for a_binding in $BINDINGS_TO_BUILD ; do
22423 case "$a_binding" in
22424 ocaml)
22425 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022426 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22427echo "$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 +000022428 binding_prereqs_failed=1
22429 fi
22430 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022431 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22432echo "$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 +000022433 binding_prereqs_failed=1
22434 fi
22435 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022436 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22437echo "$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 +000022438 fi
22439 if test "x$with_ocaml_libdir" != xauto ; then
22440 OCAML_LIBDIR=$with_ocaml_libdir
22441
22442 else
22443 ocaml_stdlib="`"$OCAMLC" -where`"
22444 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22445 then
22446 # ocaml stdlib is beneath our prefix; use stdlib
22447 OCAML_LIBDIR=$ocaml_stdlib
22448
22449 else
22450 # ocaml stdlib is outside our prefix; use libdir/ocaml
22451 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22452
22453 fi
22454 fi
22455 ;;
22456 esac
22457done
22458if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022459 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22460echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22461 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000022462fi
22463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022464{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22465echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22466if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022468else
22469 ac_ext=cpp
22470ac_cpp='$CXXCPP $CPPFLAGS'
22471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22474
22475 oldcxxflags="$CXXFLAGS"
22476 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022477 cat >conftest.$ac_ext <<_ACEOF
22478/* confdefs.h. */
22479_ACEOF
22480cat confdefs.h >>conftest.$ac_ext
22481cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022482/* end confdefs.h. */
22483
22484int
22485main ()
22486{
22487
22488 ;
22489 return 0;
22490}
22491_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022492rm -f conftest.$ac_objext
22493if { (ac_try="$ac_compile"
22494case "(($ac_try" in
22495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496 *) ac_try_echo=$ac_try;;
22497esac
22498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_compile") 2>conftest.er1
22500 ac_status=$?
22501 grep -v '^ *+' conftest.er1 >conftest.err
22502 rm -f conftest.er1
22503 cat conftest.err >&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
22506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22507 { (case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22510esac
22511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_try") 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22520esac
22521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_try") 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022526 llvm_cv_cxx_visibility_inlines_hidden=yes
22527else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022528 echo "$as_me: failed program was:" >&5
22529sed 's/^/| /' conftest.$ac_ext >&5
22530
22531 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022532fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022533
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 CXXFLAGS="$oldcxxflags"
22536 ac_ext=c
22537ac_cpp='$CPP $CPPFLAGS'
22538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22540ac_compiler_gnu=$ac_cv_c_compiler_gnu
22541
22542
22543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022544{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22545echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000022546if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22547 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22548
22549else
22550 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22551
22552fi
22553
Gordon Henriksenf0915682007-10-02 16:42:22 +000022554
Nick Lewycky731c6ab2009-03-05 08:20:44 +000022555if test "$llvm_cv_link_use_r" = "yes" ; then
22556 RPATH="-Wl,-R"
22557else
22558 RPATH="-Wl,-rpath"
22559fi
22560
22561
22562if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22563 RDYNAMIC="-Wl,-export-dynamic"
22564else
22565 RDYNAMIC=""
22566fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000022567
22568
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022569
Eric Christophera1cba682010-08-08 02:44:25 +000022570ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022571
Eric Christopher21d3eeb2010-08-08 09:20:39 +000022572
22573
22574
22575
22576
Douglas Gregor1555a232009-06-16 20:12:29 +000022577ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22578
22579ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22580
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022581ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22582
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022583ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22584
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022585ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022586
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022587
Reid Spencera773bd52006-08-04 18:18:08 +000022588ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022589
22590
Reid Spencerea949cf2006-08-16 00:45:38 +000022591ac_config_files="$ac_config_files llvm.spec"
22592
22593
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022594ac_config_files="$ac_config_files docs/doxygen.cfg"
22595
22596if test -f ${srcdir}/tools/clang/README.txt; then
22597 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22598
22599fi
22600
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000022601ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000022602
22603
Reid Spencera773bd52006-08-04 18:18:08 +000022604ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000022605
22606
Reid Spencera773bd52006-08-04 18:18:08 +000022607ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000022608
Reid Spencera773bd52006-08-04 18:18:08 +000022609ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022610
22611
Reid Spencera773bd52006-08-04 18:18:08 +000022612ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022613
22614
Reid Spencera773bd52006-08-04 18:18:08 +000022615ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022616
22617
Reid Spencera773bd52006-08-04 18:18:08 +000022618ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022619
22620
Reid Spencer8b2e1412006-11-17 03:32:33 +000022621ac_config_commands="$ac_config_commands runtime/Makefile"
22622
22623
Reid Spencera773bd52006-08-04 18:18:08 +000022624ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022625
22626
Reid Spencera773bd52006-08-04 18:18:08 +000022627ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022628
22629
Bill Wendlingf24eb392009-01-04 23:12:30 +000022630ac_config_commands="$ac_config_commands unittests/Makefile"
22631
22632
Reid Spencera773bd52006-08-04 18:18:08 +000022633ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022634
22635
Reid Spencera773bd52006-08-04 18:18:08 +000022636ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022637
22638
Reid Spencera773bd52006-08-04 18:18:08 +000022639ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022640
22641
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022642ac_config_commands="$ac_config_commands bindings/Makefile"
22643
22644
22645ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22646
22647
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022648
John Criswell7a73b802003-06-30 21:59:07 +000022649cat >confcache <<\_ACEOF
22650# This file is a shell script that caches the results of configure
22651# tests run on this system so they can be shared between configure
22652# scripts and configure runs, see configure's option --config-cache.
22653# It is not useful on other systems. If it contains results you don't
22654# want to keep, you may remove or edit it.
22655#
22656# config.status only pays attention to the cache file if you give it
22657# the --recheck option to rerun configure.
22658#
John Criswell0c38eaf2003-09-10 15:17:25 +000022659# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022660# loading this file, other *unset* `ac_cv_foo' will be assigned the
22661# following values.
22662
22663_ACEOF
22664
22665# The following way of writing the cache mishandles newlines in values,
22666# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000022667# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000022668# Ultrix sh set writes to stderr and can't be redirected directly,
22669# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000022670(
22671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22672 eval ac_val=\$$ac_var
22673 case $ac_val in #(
22674 *${as_nl}*)
22675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022678 esac
22679 case $ac_var in #(
22680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022682 esac ;;
22683 esac
22684 done
22685
John Criswell7a73b802003-06-30 21:59:07 +000022686 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000022687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22688 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022689 # `set' does not quote correctly, so add quotes (double-quote
22690 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000022691 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022692 "s/'/'\\\\''/g;
22693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000022694 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000022695 *)
22696 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000022697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000022698 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022699 esac |
22700 sort
22701) |
John Criswell7a73b802003-06-30 21:59:07 +000022702 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000022703 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000022704 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000022705 :clear
John Criswell7a73b802003-06-30 21:59:07 +000022706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22707 t end
Reid Spencera773bd52006-08-04 18:18:08 +000022708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22709 :end' >>confcache
22710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22711 if test -w "$cache_file"; then
22712 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022713 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22714echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022715 cat confcache >$cache_file
22716 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022717 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22718echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022719 fi
22720fi
22721rm -f confcache
22722
22723test "x$prefix" = xNONE && prefix=$ac_default_prefix
22724# Let make expand exec_prefix.
22725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22726
John Criswell7a73b802003-06-30 21:59:07 +000022727DEFS=-DHAVE_CONFIG_H
22728
John Criswell0c38eaf2003-09-10 15:17:25 +000022729ac_libobjs=
22730ac_ltlibobjs=
22731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22732 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000022733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022734 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000022735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22736 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022737 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22738 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000022739done
22740LIBOBJS=$ac_libobjs
22741
22742LTLIBOBJS=$ac_ltlibobjs
22743
22744
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022745if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022746 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22747Usually this means the macro was only invoked conditionally." >&5
22748echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22749Usually this means the macro was only invoked conditionally." >&2;}
22750 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022751fi
22752if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022753 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22754Usually this means the macro was only invoked conditionally." >&5
22755echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22756Usually this means the macro was only invoked conditionally." >&2;}
22757 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000022758fi
John Criswell7a73b802003-06-30 21:59:07 +000022759
22760: ${CONFIG_STATUS=./config.status}
22761ac_clean_files_save=$ac_clean_files
22762ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022763{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22764echo "$as_me: creating $CONFIG_STATUS" >&6;}
22765cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022766#! $SHELL
22767# Generated by $as_me.
22768# Run this file to recreate the current configuration.
22769# Compiler output produced by configure, useful for debugging
22770# configure, is in config.log if it exists.
22771
22772debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022773ac_cs_recheck=false
22774ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022775SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022776_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022778cat >>$CONFIG_STATUS <<\_ACEOF
22779## --------------------- ##
22780## M4sh Initialization. ##
22781## --------------------- ##
22782
22783# Be Bourne compatible
22784if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022785 emulate sh
22786 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022787 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022788 # is contrary to our usage. Disable this feature.
22789 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000022790 setopt NO_GLOB_SUBST
22791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022792 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000022793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022794BIN_SH=xpg4; export BIN_SH # for Tru64
22795DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000022796
John Criswell7a73b802003-06-30 21:59:07 +000022797
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022798# PATH needs CR
22799# Avoid depending upon Character Ranges.
22800as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22801as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22802as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22803as_cr_digits='0123456789'
22804as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000022805
22806# The user is always right.
22807if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022808 echo "#! /bin/sh" >conf$$.sh
22809 echo "exit 0" >>conf$$.sh
22810 chmod +x conf$$.sh
22811 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22812 PATH_SEPARATOR=';'
22813 else
22814 PATH_SEPARATOR=:
22815 fi
22816 rm -f conf$$.sh
22817fi
22818
22819# Support unset when possible.
22820if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22821 as_unset=unset
22822else
22823 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000022824fi
John Criswell7a73b802003-06-30 21:59:07 +000022825
Reid Spencera773bd52006-08-04 18:18:08 +000022826
22827# IFS
22828# We need space, tab and new line, in precisely that order. Quoting is
22829# there to prevent editors from complaining about space-tab.
22830# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22831# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022832as_nl='
22833'
Reid Spencera773bd52006-08-04 18:18:08 +000022834IFS=" "" $as_nl"
22835
22836# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022837case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000022838 *[\\/]* ) as_myself=$0 ;;
22839 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000022840for as_dir in $PATH
22841do
22842 IFS=$as_save_IFS
22843 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022844 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22845done
Reid Spencera773bd52006-08-04 18:18:08 +000022846IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000022847
Reid Spencera773bd52006-08-04 18:18:08 +000022848 ;;
22849esac
22850# We did not find ourselves, most probably we were run as `sh COMMAND'
22851# in which case we are not to be found in the path.
22852if test "x$as_myself" = x; then
22853 as_myself=$0
22854fi
22855if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022856 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22857 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000022858fi
22859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022860# Work around bugs in pre-3.0 UWIN ksh.
22861for as_var in ENV MAIL MAILPATH
22862do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000022863done
22864PS1='$ '
22865PS2='> '
22866PS4='+ '
22867
22868# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022869for as_var in \
22870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22872 LC_TELEPHONE LC_TIME
22873do
22874 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22875 eval $as_var=C; export $as_var
22876 else
22877 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000022878 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022879done
Torok Edwin871384f2010-01-26 08:50:50 +000022880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022881# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000022882if expr a : '\(a\)' >/dev/null 2>&1 &&
22883 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22884 as_expr=expr
22885else
22886 as_expr=false
22887fi
22888
22889if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22890 as_basename=basename
22891else
22892 as_basename=false
22893fi
22894
22895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022896# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000022897as_me=`$as_basename -- "$0" ||
22898$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22899 X"$0" : 'X\(//\)$' \| \
22900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022901echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000022902 sed '/^.*\/\([^/][^/]*\)\/*$/{
22903 s//\1/
22904 q
22905 }
22906 /^X\/\(\/\/\)$/{
22907 s//\1/
22908 q
22909 }
22910 /^X\/\(\/\).*/{
22911 s//\1/
22912 q
22913 }
22914 s/.*/./; q'`
22915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022916# CDPATH.
22917$as_unset CDPATH
22918
22919
22920
22921 as_lineno_1=$LINENO
22922 as_lineno_2=$LINENO
22923 test "x$as_lineno_1" != "x$as_lineno_2" &&
22924 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22925
22926 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22927 # uniformly replaced by the line number. The first 'sed' inserts a
22928 # line-number line after each line using $LINENO; the second 'sed'
22929 # does the real work. The second script uses 'N' to pair each
22930 # line-number line with the line containing $LINENO, and appends
22931 # trailing '-' during substitution so that $LINENO is not a special
22932 # case at line end.
22933 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22934 # scripts with optimization help from Paolo Bonzini. Blame Lee
22935 # E. McMahon (1931-1989) for sed's syntax. :-)
22936 sed -n '
22937 p
22938 /[$]LINENO/=
22939 ' <$as_myself |
22940 sed '
22941 s/[$]LINENO.*/&-/
22942 t lineno
22943 b
22944 :lineno
22945 N
22946 :loop
22947 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22948 t loop
22949 s/-\n.*//
22950 ' >$as_me.lineno &&
22951 chmod +x "$as_me.lineno" ||
22952 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22953 { (exit 1); exit 1; }; }
22954
22955 # Don't try to exec as it changes $[0], causing all sort of problems
22956 # (the dirname of $[0] is not the place where we might find the
22957 # original and so on. Autoconf is especially sensitive to this).
22958 . "./$as_me.lineno"
22959 # Exit status is that of the last command.
22960 exit
22961}
22962
22963
22964if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22965 as_dirname=dirname
22966else
22967 as_dirname=false
22968fi
Reid Spencera773bd52006-08-04 18:18:08 +000022969
22970ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022971case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000022972-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022973 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000022974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022975 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000022976 esac;;
22977*)
22978 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000022979esac
22980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022981if expr a : '\(a\)' >/dev/null 2>&1 &&
22982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22983 as_expr=expr
22984else
22985 as_expr=false
22986fi
22987
John Criswell7a73b802003-06-30 21:59:07 +000022988rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000022989if test -d conf$$.dir; then
22990 rm -f conf$$.dir/conf$$.file
22991else
22992 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022993 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000022994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022995echo >conf$$.file
22996if ln -s conf$$.file conf$$ 2>/dev/null; then
22997 as_ln_s='ln -s'
22998 # ... but there are two gotchas:
22999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23001 # In both cases, we have to default to `cp -p'.
23002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000023003 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023004elif ln conf$$.file conf$$ 2>/dev/null; then
23005 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000023006else
23007 as_ln_s='cp -p'
23008fi
Reid Spencera773bd52006-08-04 18:18:08 +000023009rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23010rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000023011
John Criswell0c38eaf2003-09-10 15:17:25 +000023012if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023013 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023014else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023015 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000023016 as_mkdir_p=false
23017fi
23018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023019# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23020# systems may use methods other than mode bits to determine executability.
23021cat >conf$$.file <<_ASEOF
23022#! /bin/sh
23023exit 0
23024_ASEOF
23025chmod +x conf$$.file
23026if test -x conf$$.file >/dev/null 2>&1; then
23027 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000023028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023029 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000023030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023031rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000023032
23033# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023034as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023035
23036# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023037as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023038
23039
John Criswell7a73b802003-06-30 21:59:07 +000023040exec 6>&1
23041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023042# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000023043# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000023044# values after options handling.
23045ac_log="
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023046This file was extended by llvm $as_me 3.0svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023047generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023048
23049 CONFIG_FILES = $CONFIG_FILES
23050 CONFIG_HEADERS = $CONFIG_HEADERS
23051 CONFIG_LINKS = $CONFIG_LINKS
23052 CONFIG_COMMANDS = $CONFIG_COMMANDS
23053 $ $0 $@
23054
Reid Spencera773bd52006-08-04 18:18:08 +000023055on `(hostname || uname -n) 2>/dev/null | sed 1q`
23056"
23057
John Criswell7a73b802003-06-30 21:59:07 +000023058_ACEOF
23059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023060cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023061# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000023062config_files="$ac_config_files"
23063config_headers="$ac_config_headers"
23064config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000023065
Reid Spencera773bd52006-08-04 18:18:08 +000023066_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023068cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023069ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023070\`$as_me' instantiates files from templates according to the
23071current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000023072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023073Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000023074
23075 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023076 -V, --version print version number, then exit
23077 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023078 -d, --debug don't remove temporary files
23079 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023080 --file=FILE[:TEMPLATE]
23081 instantiate the configuration file FILE
23082 --header=FILE[:TEMPLATE]
23083 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023084
23085Configuration files:
23086$config_files
23087
23088Configuration headers:
23089$config_headers
23090
John Criswellc764fbc2003-09-06 15:17:13 +000023091Configuration commands:
23092$config_commands
23093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023094Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000023095
Reid Spencera773bd52006-08-04 18:18:08 +000023096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023097cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023098ac_cs_version="\\
Bill Wendlingebc2fc12011-03-08 03:00:02 +000023099llvm config.status 3.0svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023100configured by $0, generated by GNU Autoconf 2.60,
23101 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000023102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023103Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023104This config.status script is free software; the Free Software Foundation
23105gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000023106
23107ac_pwd='$ac_pwd'
23108srcdir='$srcdir'
23109INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000023110_ACEOF
23111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023112cat >>$CONFIG_STATUS <<\_ACEOF
23113# If no file are specified by the user, then we need to provide default
23114# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000023115ac_need_defaults=:
23116while test $# != 0
23117do
23118 case $1 in
23119 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000023120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023122 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023123 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023124 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000023125 ac_option=$1
23126 ac_optarg=$2
23127 ac_shift=shift
23128 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023129 esac
23130
John Criswell0c38eaf2003-09-10 15:17:25 +000023131 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023132 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000023133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23134 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023136 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023137 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000023138 debug=: ;;
23139 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023140 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023142 ac_need_defaults=false;;
23143 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023144 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023145 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023146 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000023147 --he | --h)
23148 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023149 { echo "$as_me: error: ambiguous option: $1
23150Try \`$0 --help' for more information." >&2
23151 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023152 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023153 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23156 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023157
23158 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023159 -*) { echo "$as_me: error: unrecognized option: $1
23160Try \`$0 --help' for more information." >&2
23161 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000023162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023163 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000023164 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000023165
23166 esac
23167 shift
23168done
23169
John Criswell0c38eaf2003-09-10 15:17:25 +000023170ac_configure_extra_args=
23171
23172if $ac_cs_silent; then
23173 exec 6>/dev/null
23174 ac_configure_extra_args="$ac_configure_extra_args --silent"
23175fi
23176
23177_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023178cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023179if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023180 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23181 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000023182 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023183 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000023184fi
23185
John Criswell7a73b802003-06-30 21:59:07 +000023186_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023187cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023188exec 5>>config.log
23189{
23190 echo
23191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23192## Running $as_me. ##
23193_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023194 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000023195} >&5
John Criswell7a73b802003-06-30 21:59:07 +000023196
Reid Spencera773bd52006-08-04 18:18:08 +000023197_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023198cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023199#
Reid Spencera773bd52006-08-04 18:18:08 +000023200# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000023201#
Reid Spencerc0682832005-02-24 19:05:19 +000023202llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000023203
23204_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023206cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023207
23208# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000023209for ac_config_target in $ac_config_targets
23210do
Reid Spencera773bd52006-08-04 18:18:08 +000023211 case $ac_config_target in
23212 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000023213 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000023214 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23215 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000023216 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000023217 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000023218 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023219 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000023220 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000023221 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23222 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000023223 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023224 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23225 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23226 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23227 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23228 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23229 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023230 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023231 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23232 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000023233 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023234 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23235 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23236 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000023237 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23238 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23241echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23242 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000023243 esac
23244done
23245
Reid Spencera773bd52006-08-04 18:18:08 +000023246
John Criswell7a73b802003-06-30 21:59:07 +000023247# If the user did not use the arguments to specify the items to instantiate,
23248# then the envvar interface is used. Set only those that are not.
23249# We use the long form for the default assignment because of an extremely
23250# bizarre bug on SunOS 4.1.3.
23251if $ac_need_defaults; then
23252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023255fi
23256
John Criswell0c38eaf2003-09-10 15:17:25 +000023257# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000023258# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000023259# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000023260# Hook for its removal unless debugging.
23261# Note that there is a small window in which the directory will not be cleaned:
23262# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000023263$debug ||
23264{
Reid Spencera773bd52006-08-04 18:18:08 +000023265 tmp=
23266 trap 'exit_status=$?
23267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23268' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023269 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000023270}
John Criswell7a73b802003-06-30 21:59:07 +000023271# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023272
John Criswell7a73b802003-06-30 21:59:07 +000023273{
Reid Spencera773bd52006-08-04 18:18:08 +000023274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023275 test -n "$tmp" && test -d "$tmp"
23276} ||
23277{
Reid Spencera773bd52006-08-04 18:18:08 +000023278 tmp=./conf$$-$RANDOM
23279 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023280} ||
23281{
23282 echo "$me: cannot create a temporary directory in ." >&2
23283 { (exit 1); exit 1; }
23284}
John Criswell7a73b802003-06-30 21:59:07 +000023285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023286#
23287# Set up the sed scripts for CONFIG_FILES section.
23288#
23289
23290# No need to generate the scripts if there are no CONFIG_FILES.
23291# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000023292if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000023293
23294_ACEOF
23295
Reid Spencera773bd52006-08-04 18:18:08 +000023296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023297
Reid Spencera773bd52006-08-04 18:18:08 +000023298ac_delim='%!_!# '
23299for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023300 cat >conf$$subs.sed <<_ACEOF
23301SHELL!$SHELL$ac_delim
23302PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23303PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23304PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23305PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23306PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23307PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23308exec_prefix!$exec_prefix$ac_delim
23309prefix!$prefix$ac_delim
23310program_transform_name!$program_transform_name$ac_delim
23311bindir!$bindir$ac_delim
23312sbindir!$sbindir$ac_delim
23313libexecdir!$libexecdir$ac_delim
23314datarootdir!$datarootdir$ac_delim
23315datadir!$datadir$ac_delim
23316sysconfdir!$sysconfdir$ac_delim
23317sharedstatedir!$sharedstatedir$ac_delim
23318localstatedir!$localstatedir$ac_delim
23319includedir!$includedir$ac_delim
23320oldincludedir!$oldincludedir$ac_delim
23321docdir!$docdir$ac_delim
23322infodir!$infodir$ac_delim
23323htmldir!$htmldir$ac_delim
23324dvidir!$dvidir$ac_delim
23325pdfdir!$pdfdir$ac_delim
23326psdir!$psdir$ac_delim
23327libdir!$libdir$ac_delim
23328localedir!$localedir$ac_delim
23329mandir!$mandir$ac_delim
23330DEFS!$DEFS$ac_delim
23331ECHO_C!$ECHO_C$ac_delim
23332ECHO_N!$ECHO_N$ac_delim
23333ECHO_T!$ECHO_T$ac_delim
23334LIBS!$LIBS$ac_delim
23335build_alias!$build_alias$ac_delim
23336host_alias!$host_alias$ac_delim
23337target_alias!$target_alias$ac_delim
23338LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23339subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023340ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23341LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023342build!$build$ac_delim
23343build_cpu!$build_cpu$ac_delim
23344build_vendor!$build_vendor$ac_delim
23345build_os!$build_os$ac_delim
23346host!$host$ac_delim
23347host_cpu!$host_cpu$ac_delim
23348host_vendor!$host_vendor$ac_delim
23349host_os!$host_os$ac_delim
23350target!$target$ac_delim
23351target_cpu!$target_cpu$ac_delim
23352target_vendor!$target_vendor$ac_delim
23353target_os!$target_os$ac_delim
23354OS!$OS$ac_delim
23355HOST_OS!$HOST_OS$ac_delim
23356TARGET_OS!$TARGET_OS$ac_delim
23357LINKALL!$LINKALL$ac_delim
23358NOLINKALL!$NOLINKALL$ac_delim
23359LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23360LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23361ARCH!$ARCH$ac_delim
23362ENDIAN!$ENDIAN$ac_delim
23363CC!$CC$ac_delim
23364CFLAGS!$CFLAGS$ac_delim
23365LDFLAGS!$LDFLAGS$ac_delim
23366CPPFLAGS!$CPPFLAGS$ac_delim
23367ac_ct_CC!$ac_ct_CC$ac_delim
23368EXEEXT!$EXEEXT$ac_delim
23369OBJEXT!$OBJEXT$ac_delim
23370CPP!$CPP$ac_delim
23371GREP!$GREP$ac_delim
23372EGREP!$EGREP$ac_delim
23373LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23374BUILD_CC!$BUILD_CC$ac_delim
23375BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23376BUILD_CXX!$BUILD_CXX$ac_delim
23377CVSBUILD!$CVSBUILD$ac_delim
23378ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23379ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23380DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23381ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23382EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23383DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23384DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23385JIT!$JIT$ac_delim
23386TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023387ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023388ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23389ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023390ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023391ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023392ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023393ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023394ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023395TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23396LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23397LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023398_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023400 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000023401 break
23402 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023403 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23404echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23405 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000023406 else
23407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000023408 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023409done
23410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023411ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23412if test -n "$ac_eof"; then
23413 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23414 ac_eof=`expr $ac_eof + 1`
23415fi
23416
23417cat >>$CONFIG_STATUS <<_ACEOF
23418cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23419/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000023420_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023421sed '
23422s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23423s/^/s,@/; s/!/@,|#_!!_#|/
23424:n
23425t n
23426s/'"$ac_delim"'$/,g/; t
23427s/$/\\/; p
23428N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23429' >>$CONFIG_STATUS <conf$$subs.sed
23430rm -f conf$$subs.sed
23431cat >>$CONFIG_STATUS <<_ACEOF
23432CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000023433_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023434
23435
23436ac_delim='%!_!# '
23437for ac_last_try in false false false false false :; do
23438 cat >conf$$subs.sed <<_ACEOF
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023439LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023440LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023441ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023442CLANGPATH!$CLANGPATH$ac_delim
23443CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000023444ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023445OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023446EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000023447EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023448BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023449CXX!$CXX$ac_delim
23450CXXFLAGS!$CXXFLAGS$ac_delim
23451ac_ct_CXX!$ac_ct_CXX$ac_delim
23452NM!$NM$ac_delim
23453ifGNUmake!$ifGNUmake$ac_delim
23454LN_S!$LN_S$ac_delim
23455CMP!$CMP$ac_delim
23456CP!$CP$ac_delim
23457DATE!$DATE$ac_delim
23458FIND!$FIND$ac_delim
23459MKDIR!$MKDIR$ac_delim
23460MV!$MV$ac_delim
23461RANLIB!$RANLIB$ac_delim
23462AR!$AR$ac_delim
23463RM!$RM$ac_delim
23464SED!$SED$ac_delim
23465TAR!$TAR$ac_delim
23466BINPWD!$BINPWD$ac_delim
23467GRAPHVIZ!$GRAPHVIZ$ac_delim
23468DOT!$DOT$ac_delim
23469FDP!$FDP$ac_delim
23470NEATO!$NEATO$ac_delim
23471TWOPI!$TWOPI$ac_delim
23472CIRCO!$CIRCO$ac_delim
23473GV!$GV$ac_delim
23474DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000023475XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023476PERL!$PERL$ac_delim
23477HAVE_PERL!$HAVE_PERL$ac_delim
23478INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23479INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23480INSTALL_DATA!$INSTALL_DATA$ac_delim
23481BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023482CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023483DOXYGEN!$DOXYGEN$ac_delim
23484GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000023485GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023486POD2HTML!$POD2HTML$ac_delim
23487POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000023488PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023489RUNTEST!$RUNTEST$ac_delim
23490TCLSH!$TCLSH$ac_delim
23491ZIP!$ZIP$ac_delim
23492OCAMLC!$OCAMLC$ac_delim
23493OCAMLOPT!$OCAMLOPT$ac_delim
23494OCAMLDEP!$OCAMLDEP$ac_delim
23495OCAMLDOC!$OCAMLDOC$ac_delim
23496GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000023497HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023498INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23499INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23500CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23501CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23502LIBADD_DL!$LIBADD_DL$ac_delim
23503LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23504LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23505LLVMGCC!$LLVMGCC$ac_delim
23506LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000023507LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023508NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23509NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23510USE_UDIS86!$USE_UDIS86$ac_delim
23511USE_OPROFILE!$USE_OPROFILE$ac_delim
23512HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23513HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23514MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023515LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023516LLVMCC1!$LLVMCC1$ac_delim
23517LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23518LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023519LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023520LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000023521LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023522SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000023523SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023524LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23525LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23526LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23527LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23528LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23529LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23530LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23531LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23532LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23533LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23534BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23535ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000023536_ACEOF
23537
Tobias Grossera84b5672010-11-10 16:31:34 +000023538 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023539 break
23540 elif $ac_last_try; then
23541 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23542echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23543 { (exit 1); exit 1; }; }
23544 else
23545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23546 fi
23547done
23548
23549ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23550if test -n "$ac_eof"; then
23551 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23552 ac_eof=`expr $ac_eof + 1`
23553fi
23554
23555cat >>$CONFIG_STATUS <<_ACEOF
23556cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000023557/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023558_ACEOF
23559sed '
23560s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23561s/^/s,@/; s/!/@,|#_!!_#|/
23562:n
23563t n
23564s/'"$ac_delim"'$/,g/; t
23565s/$/\\/; p
23566N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23567' >>$CONFIG_STATUS <conf$$subs.sed
23568rm -f conf$$subs.sed
23569cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023570CEOF$ac_eof
23571_ACEOF
23572
23573
Tobias Grossera84b5672010-11-10 16:31:34 +000023574ac_delim='%!_!# '
23575for ac_last_try in false false false false false :; do
23576 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbared344d22011-06-16 22:30:41 +000023577OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000023578ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000023579RPATH!$RPATH$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000023580RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000023581LIBOBJS!$LIBOBJS$ac_delim
23582LTLIBOBJS!$LTLIBOBJS$ac_delim
23583_ACEOF
23584
Daniel Dunbared344d22011-06-16 22:30:41 +000023585 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
Tobias Grossera84b5672010-11-10 16:31:34 +000023586 break
23587 elif $ac_last_try; then
23588 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23589echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23590 { (exit 1); exit 1; }; }
23591 else
23592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23593 fi
23594done
23595
23596ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23597if test -n "$ac_eof"; then
23598 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23599 ac_eof=`expr $ac_eof + 1`
23600fi
23601
23602cat >>$CONFIG_STATUS <<_ACEOF
23603cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23604/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23605_ACEOF
23606sed '
23607s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23608s/^/s,@/; s/!/@,|#_!!_#|/
23609:n
23610t n
23611s/'"$ac_delim"'$/,g/; t
23612s/$/\\/; p
23613N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23614' >>$CONFIG_STATUS <conf$$subs.sed
23615rm -f conf$$subs.sed
23616cat >>$CONFIG_STATUS <<_ACEOF
23617:end
23618s/|#_!!_#|//g
23619CEOF$ac_eof
23620_ACEOF
23621
23622
Reid Spencera773bd52006-08-04 18:18:08 +000023623# VPATH may cause trouble with some makes, so we remove $(srcdir),
23624# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23625# trailing colons and then remove the whole line if VPATH becomes empty
23626# (actually we leave an empty line to preserve line numbers).
23627if test "x$srcdir" = x.; then
23628 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23629s/:*\$(srcdir):*/:/
23630s/:*\${srcdir}:*/:/
23631s/:*@srcdir@:*/:/
23632s/^\([^=]*=[ ]*\):*/\1/
23633s/:*$//
23634s/^[^=]*=[ ]*$//
23635}'
23636fi
23637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023638cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023639fi # test -n "$CONFIG_FILES"
23640
Reid Spencera773bd52006-08-04 18:18:08 +000023641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023642for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000023643do
23644 case $ac_tag in
23645 :[FHLC]) ac_mode=$ac_tag; continue;;
23646 esac
23647 case $ac_mode$ac_tag in
23648 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023649 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23650echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23651 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023652 :[FH]-) ac_tag=-:-;;
23653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23654 esac
23655 ac_save_IFS=$IFS
23656 IFS=:
23657 set x $ac_tag
23658 IFS=$ac_save_IFS
23659 shift
23660 ac_file=$1
23661 shift
23662
23663 case $ac_mode in
23664 :L) ac_source=$1;;
23665 :[FH])
23666 ac_file_inputs=
23667 for ac_f
23668 do
23669 case $ac_f in
23670 -) ac_f="$tmp/stdin";;
23671 *) # Look for the file first in the build tree, then in the source tree
23672 # (if the path is not absolute). The absolute path cannot be DOS-style,
23673 # because $ac_f cannot contain `:'.
23674 test -f "$ac_f" ||
23675 case $ac_f in
23676 [\\/$]*) false;;
23677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23678 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023679 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23680echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23681 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000023682 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023683 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000023684 done
23685
23686 # Let's still pretend it is `configure' which instantiates (i.e., don't
23687 # use $as_me), people would be surprised to read:
23688 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023689 configure_input="Generated from "`IFS=:
23690 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000023691 if test x"$ac_file" != x-; then
23692 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023693 { echo "$as_me:$LINENO: creating $ac_file" >&5
23694echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023695 fi
23696
23697 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023698 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000023699 esac
23700 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023701 esac
23702
Reid Spencera773bd52006-08-04 18:18:08 +000023703 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000023704$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023705 X"$ac_file" : 'X\(//\)[^/]' \| \
23706 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000023707 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023708echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000023709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23710 s//\1/
23711 q
23712 }
23713 /^X\(\/\/\)[^/].*/{
23714 s//\1/
23715 q
23716 }
23717 /^X\(\/\/\)$/{
23718 s//\1/
23719 q
23720 }
23721 /^X\(\/\).*/{
23722 s//\1/
23723 q
23724 }
23725 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023726 { as_dir="$ac_dir"
23727 case $as_dir in #(
23728 -*) as_dir=./$as_dir;;
23729 esac
23730 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23731 as_dirs=
23732 while :; do
23733 case $as_dir in #(
23734 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23735 *) as_qdir=$as_dir;;
23736 esac
23737 as_dirs="'$as_qdir' $as_dirs"
23738 as_dir=`$as_dirname -- "$as_dir" ||
23739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23740 X"$as_dir" : 'X\(//\)[^/]' \| \
23741 X"$as_dir" : 'X\(//\)$' \| \
23742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23743echo X"$as_dir" |
23744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23745 s//\1/
23746 q
23747 }
23748 /^X\(\/\/\)[^/].*/{
23749 s//\1/
23750 q
23751 }
23752 /^X\(\/\/\)$/{
23753 s//\1/
23754 q
23755 }
23756 /^X\(\/\).*/{
23757 s//\1/
23758 q
23759 }
23760 s/.*/./; q'`
23761 test -d "$as_dir" && break
23762 done
23763 test -z "$as_dirs" || eval "mkdir $as_dirs"
23764 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23765echo "$as_me: error: cannot create directory $as_dir" >&2;}
23766 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023767 ac_builddir=.
23768
Reid Spencera773bd52006-08-04 18:18:08 +000023769case "$ac_dir" in
23770.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23771*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023772 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023773 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023774 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000023775 case $ac_top_builddir_sub in
23776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23778 esac ;;
23779esac
23780ac_abs_top_builddir=$ac_pwd
23781ac_abs_builddir=$ac_pwd$ac_dir_suffix
23782# for backward compatibility:
23783ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000023784
23785case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000023786 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000023787 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000023788 ac_top_srcdir=$ac_top_builddir_sub
23789 ac_abs_top_srcdir=$ac_pwd ;;
23790 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000023791 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000023792 ac_top_srcdir=$srcdir
23793 ac_abs_top_srcdir=$srcdir ;;
23794 *) # Relative name.
23795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23796 ac_top_srcdir=$ac_top_build_prefix$srcdir
23797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000023798esac
Reid Spencera773bd52006-08-04 18:18:08 +000023799ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000023800
John Criswell7a73b802003-06-30 21:59:07 +000023801
Reid Spencera773bd52006-08-04 18:18:08 +000023802 case $ac_mode in
23803 :F)
23804 #
23805 # CONFIG_FILE
23806 #
John Criswell7a73b802003-06-30 21:59:07 +000023807
23808 case $INSTALL in
23809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023810 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000023811 esac
John Criswell7a73b802003-06-30 21:59:07 +000023812_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023814cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023815# If the template does not know about datarootdir, expand it.
23816# FIXME: This hack should be removed a few years after 2.60.
23817ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023818
23819case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000023820 p
23821 q
23822}
23823/@datadir@/p
23824/@docdir@/p
23825/@infodir@/p
23826/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023827/@mandir@/p
23828' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000023829*datarootdir*) ac_datarootdir_seen=yes;;
23830*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023831 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23832echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000023833_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023834cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000023835 ac_datarootdir_hack='
23836 s&@datadir@&$datadir&g
23837 s&@docdir@&$docdir&g
23838 s&@infodir@&$infodir&g
23839 s&@localedir@&$localedir&g
23840 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023841 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023842esac
23843_ACEOF
23844
23845# Neutralize VPATH when `$srcdir' = `.'.
23846# Shell code in configure.ac might set extrasub.
23847# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023848cat >>$CONFIG_STATUS <<_ACEOF
23849 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000023850$extrasub
23851_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023852cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023853:t
23854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023855s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000023856s&@top_builddir@&$ac_top_builddir_sub&;t t
23857s&@srcdir@&$ac_srcdir&;t t
23858s&@abs_srcdir@&$ac_abs_srcdir&;t t
23859s&@top_srcdir@&$ac_top_srcdir&;t t
23860s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23861s&@builddir@&$ac_builddir&;t t
23862s&@abs_builddir@&$ac_abs_builddir&;t t
23863s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23864s&@INSTALL@&$ac_INSTALL&;t t
23865$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000023866" $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 +000023867
Reid Spencera773bd52006-08-04 18:18:08 +000023868test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23869 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023871 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023872which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023873echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000023874which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023875
Reid Spencera773bd52006-08-04 18:18:08 +000023876 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000023877 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023878 -) cat "$tmp/out"; rm -f "$tmp/out";;
23879 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23880 esac
Reid Spencera773bd52006-08-04 18:18:08 +000023881 ;;
23882 :H)
23883 #
23884 # CONFIG_HEADER
23885 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023886_ACEOF
23887
23888# Transform confdefs.h into a sed script `conftest.defines', that
23889# substitutes the proper values into config.h.in to produce config.h.
23890rm -f conftest.defines conftest.tail
23891# First, append a space to every undef/define line, to ease matching.
23892echo 's/$/ /' >conftest.defines
23893# Then, protect against being on the right side of a sed subst, or in
23894# an unquoted here document, in config.status. If some macros were
23895# called several times there might be several #defines for the same
23896# symbol, which is useless. But do not sort them, since the last
23897# AC_DEFINE must be honored.
23898ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23899# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23900# NAME is the cpp macro being defined, VALUE is the value it is being given.
23901# PARAMS is the parameter list in the macro definition--in most cases, it's
23902# just an empty string.
23903ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23904ac_dB='\\)[ (].*,\\1define\\2'
23905ac_dC=' '
23906ac_dD=' ,'
23907
23908uniq confdefs.h |
23909 sed -n '
23910 t rset
23911 :rset
23912 s/^[ ]*#[ ]*define[ ][ ]*//
23913 t ok
23914 d
23915 :ok
23916 s/[\\&,]/\\&/g
23917 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23918 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23919 ' >>conftest.defines
23920
23921# Remove the space that was appended to ease matching.
23922# Then replace #undef with comments. This is necessary, for
23923# example, in the case of _POSIX_SOURCE, which is predefined and required
23924# on some systems where configure will not decide to define it.
23925# (The regexp can be short, since the line contains either #define or #undef.)
23926echo 's/ $//
23927s,^[ #]*u.*,/* & */,' >>conftest.defines
23928
23929# Break up conftest.defines:
23930ac_max_sed_lines=50
23931
23932# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23933# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23934# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23935# et cetera.
23936ac_in='$ac_file_inputs'
23937ac_out='"$tmp/out1"'
23938ac_nxt='"$tmp/out2"'
23939
23940while :
23941do
23942 # Write a here document:
23943 cat >>$CONFIG_STATUS <<_ACEOF
23944 # First, check the format of the line:
23945 cat >"\$tmp/defines.sed" <<\\CEOF
23946/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23947/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23948b
23949:def
23950_ACEOF
23951 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23952 echo 'CEOF
23953 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23954 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23955 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23956 grep . conftest.tail >/dev/null || break
23957 rm -f conftest.defines
23958 mv conftest.tail conftest.defines
23959done
23960rm -f conftest.defines conftest.tail
23961
23962echo "ac_result=$ac_in" >>$CONFIG_STATUS
23963cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023964 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023965 echo "/* $configure_input */" >"$tmp/config.h"
23966 cat "$ac_result" >>"$tmp/config.h"
23967 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23968 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23969echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000023970 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023971 rm -f $ac_file
23972 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000023973 fi
23974 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023975 echo "/* $configure_input */"
23976 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000023977 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023978 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000023979 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000023981 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23982echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000023983 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023984 esac
John Criswell7a73b802003-06-30 21:59:07 +000023985
Reid Spencera773bd52006-08-04 18:18:08 +000023986
23987 case $ac_file$ac_mode in
23988 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023990 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000023991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023992 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023994 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000023996 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023998 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000023999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024000 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000024001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000024002 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024004 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024006 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024008 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024009 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024010 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000024011 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000024012 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000024013 ${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 +000024014
24015 esac
24016done # for ac_tag
24017
John Criswell7a73b802003-06-30 21:59:07 +000024018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024019{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000024020_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024021chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024022ac_clean_files=$ac_clean_files_save
24023
24024
24025# configure is writing to config.log, and then calls config.status.
24026# config.status does its own redirection, appending to config.log.
24027# Unfortunately, on DOS this fails, as config.log is still kept open
24028# by configure, so config.status won't be able to write to it; its
24029# output is simply discarded. So we exec the FD to /dev/null,
24030# effectively closing config.log, so it can be properly (re)opened and
24031# appended to by config.status. When coming back to configure, we
24032# need to make the FD available again.
24033if test "$no_create" != yes; then
24034 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024035 ac_config_status_args=
24036 test "$silent" = yes &&
24037 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024038 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024040 exec 5>>config.log
24041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24042 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024043 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000024044fi
24045
John Criswell12399a12003-09-30 15:55:44 +000024046#
24047# CONFIG_SUBDIRS section.
24048#
24049if test "$no_recursion" != yes; then
24050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024051 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000024052 ac_sub_configure_args=
24053 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000024054 eval "set x $ac_configure_args"
24055 shift
24056 for ac_arg
24057 do
John Criswell12399a12003-09-30 15:55:44 +000024058 if test -n "$ac_prev"; then
24059 ac_prev=
24060 continue
24061 fi
24062 case $ac_arg in
24063 -cache-file | --cache-file | --cache-fil | --cache-fi \
24064 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24065 ac_prev=cache_file ;;
24066 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24067 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24068 | --c=*)
24069 ;;
24070 --config-cache | -C)
24071 ;;
24072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24073 ac_prev=srcdir ;;
24074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24075 ;;
24076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24077 ac_prev=prefix ;;
24078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24079 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024080 *)
24081 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024082 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024083 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024084 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000024085 esac
24086 done
24087
24088 # Always prepend --prefix to ensure using the same prefix
24089 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000024090 ac_arg="--prefix=$prefix"
24091 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024092 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024093 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024094 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000024095
24096 ac_popdir=`pwd`
24097 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24098
24099 # Do not complain, so a configure script can configure whichever
24100 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000024101 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000024102
Reid Spencera773bd52006-08-04 18:18:08 +000024103 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024104 echo "$as_me:$LINENO: $ac_msg" >&5
24105 echo "$ac_msg" >&6
24106 { as_dir="$ac_dir"
24107 case $as_dir in #(
24108 -*) as_dir=./$as_dir;;
24109 esac
24110 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24111 as_dirs=
24112 while :; do
24113 case $as_dir in #(
24114 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24115 *) as_qdir=$as_dir;;
24116 esac
24117 as_dirs="'$as_qdir' $as_dirs"
24118 as_dir=`$as_dirname -- "$as_dir" ||
24119$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24120 X"$as_dir" : 'X\(//\)[^/]' \| \
24121 X"$as_dir" : 'X\(//\)$' \| \
24122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24123echo X"$as_dir" |
24124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24125 s//\1/
24126 q
24127 }
24128 /^X\(\/\/\)[^/].*/{
24129 s//\1/
24130 q
24131 }
24132 /^X\(\/\/\)$/{
24133 s//\1/
24134 q
24135 }
24136 /^X\(\/\).*/{
24137 s//\1/
24138 q
24139 }
24140 s/.*/./; q'`
24141 test -d "$as_dir" && break
24142 done
24143 test -z "$as_dirs" || eval "mkdir $as_dirs"
24144 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24145echo "$as_me: error: cannot create directory $as_dir" >&2;}
24146 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000024147 ac_builddir=.
24148
Reid Spencera773bd52006-08-04 18:18:08 +000024149case "$ac_dir" in
24150.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24151*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024152 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024153 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024154 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000024155 case $ac_top_builddir_sub in
24156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24158 esac ;;
24159esac
24160ac_abs_top_builddir=$ac_pwd
24161ac_abs_builddir=$ac_pwd$ac_dir_suffix
24162# for backward compatibility:
24163ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000024164
24165case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000024166 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000024167 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000024168 ac_top_srcdir=$ac_top_builddir_sub
24169 ac_abs_top_srcdir=$ac_pwd ;;
24170 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000024171 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000024172 ac_top_srcdir=$srcdir
24173 ac_abs_top_srcdir=$srcdir ;;
24174 *) # Relative name.
24175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24176 ac_top_srcdir=$ac_top_build_prefix$srcdir
24177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000024178esac
Reid Spencera773bd52006-08-04 18:18:08 +000024179ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000024180
24181
Reid Spencera773bd52006-08-04 18:18:08 +000024182 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000024183
24184 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000024185 if test -f "$ac_srcdir/configure.gnu"; then
24186 ac_sub_configure=$ac_srcdir/configure.gnu
24187 elif test -f "$ac_srcdir/configure"; then
24188 ac_sub_configure=$ac_srcdir/configure
24189 elif test -f "$ac_srcdir/configure.in"; then
24190 # This should be Cygnus configure.
24191 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000024192 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024193 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24194echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000024195 ac_sub_configure=
24196 fi
24197
24198 # The recursion is here.
24199 if test -n "$ac_sub_configure"; then
24200 # Make the cache file name correct relative to the subdirectory.
24201 case $cache_file in
24202 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024203 *) # Relative name.
24204 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024205 esac
24206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024207 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24208echo "$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 +000024209 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000024210 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24211 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000024212 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24213echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24214 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000024215 fi
24216
Reid Spencera773bd52006-08-04 18:18:08 +000024217 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000024218 done
24219fi
24220