blob: a172059f6e5d92822dbe59c36f251d97a5506474 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherb26697c2010-09-06 18:47:10 +00003# Generated by GNU Autoconf 2.60 for llvm 2.9svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Eric Christopherb26697c2010-09-06 18:47:10 +0000564PACKAGE_VERSION='2.9svn'
565PACKAGE_STRING='llvm 2.9svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000691ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_DOXYGEN
693ENABLE_THREADS
694ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000695ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000696ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697TARGETS_TO_BUILD
698LLVM_ENUM_TARGETS
699LLVM_ENUM_ASM_PRINTERS
700LLVM_ENUM_ASM_PARSERS
701LLVM_ENUM_DISASSEMBLERS
702ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000703CLANGPATH
704CLANGXXPATH
705ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706OPTIMIZE_OPTION
707EXTRA_OPTIONS
708BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000709CXX
710CXXFLAGS
711ac_ct_CXX
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000735XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000736PERL
737HAVE_PERL
738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000742CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000743DOXYGEN
744GROFF
745GZIP
746POD2HTML
747POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000748PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000757HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763LLVMGCCCOMMAND
764LLVMGXXCOMMAND
765LLVMGCC
766LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000767LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000768NO_VARIADIC_MACROS
769NO_MISSING_FIELD_INITIALIZERS
770USE_UDIS86
771USE_OPROFILE
772HAVE_PTHREAD
773HUGE_VAL_SANITY
774MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000775LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVMCC1
777LLVMCC1PLUS
778LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000780LLVMGCC_DRAGONEGG
Eric Christopher481d4022010-12-03 07:45:22 +0000781LLVMCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000783SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000784LLVM_PREFIX
785LLVM_BINDIR
786LLVM_LIBDIR
787LLVM_DATADIR
788LLVM_DOCSDIR
789LLVM_ETCDIR
790LLVM_INCLUDEDIR
791LLVM_INFODIR
792LLVM_MANDIR
793LLVM_CONFIGTIME
794BINDINGS_TO_BUILD
795ALL_BINDINGS
796OCAML_LIBDIR
797ENABLE_VISIBILITY_INLINES_HIDDEN
798RPATH
799RDYNAMIC
800LIBOBJS
801LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000802ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000803 ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809CPPFLAGS
810CPP
811CXX
812CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000813CCC'
John Criswell0157f502010-03-19 21:31:39 +0000814ac_subdirs_all='projects/llvm-gcc
815projects/test-suite
816projects/llvm-test
817projects/poolalloc
818projects/llvm-poolalloc
819projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000821projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000822projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/llvm-java
824projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000825projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000826projects/llvm-kernel
827tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000854# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000863includedir='${prefix}/include'
864oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000874
875ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000876ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000877for ac_option
878do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000881 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000882 ac_prev=
883 continue
884 fi
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_option in
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *) ac_optarg=yes ;;
889 esac
John Criswell7a73b802003-06-30 21:59:07 +0000890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
Reid Spencera773bd52006-08-04 18:18:08 +0000893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
Reid Spencera773bd52006-08-04 18:18:08 +0000917 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000918 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000920 datadir=$ac_optarg ;;
921
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
John Criswell7a73b802003-06-30 21:59:07 +0000929 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000931 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000950 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
Reid Spencera773bd52006-08-04 18:18:08 +0000982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
John Criswell7a73b802003-06-30 21:59:07 +0000988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
Reid Spencera773bd52006-08-04 18:18:08 +00001012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
John Criswell7a73b802003-06-30 21:59:07 +00001017 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001018 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001019 ac_prev=localstatedir ;;
1020 -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 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
Reid Spencera773bd52006-08-04 18:18:08 +00001086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
John Criswell7a73b802003-06-30 21:59:07 +00001096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001156 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001192 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 ;;
1202
1203 esac
1204done
1205
1206if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001210fi
1211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001217do
Reid Spencera773bd52006-08-04 18:18:08 +00001218 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001219 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001222 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
Reid Spencera773bd52006-08-04 18:18:08 +00001251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259
1260
John Criswell7a73b802003-06-30 21:59:07 +00001261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001264 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001265 ac_confdir=`$as_dirname -- "$0" ||
1266$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001288 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001289 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
Reid Spencera773bd52006-08-04 18:18:08 +00001295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001299fi
Reid Spencera773bd52006-08-04 18:18:08 +00001300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001304 pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001329\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
John Criswell7a73b802003-06-30 21:59:07 +00001349Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001351 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001382_ACEOF
1383
1384 cat <<\_ACEOF
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001395 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001396 esac
1397 cat <<\_ACEOF
1398
1399Optional Features:
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001402 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1406 YES)
David Greenea696d242007-06-28 19:36:08 +00001407 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001408 Compile with expensive debug checks enabled (default
1409 is NO)
1410 --enable-debug-runtime Build runtime libs with debug symbols (default is
1411 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001412 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1413 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001414 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001415 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001416 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001417 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001418 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001419 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001420 --enable-shared Build a shared library and link tools against it
1421 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001422 --enable-timestamps Enable embedding timestamp information in build
1423 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001424 --enable-targets Build specific host targets: all or
1425 target1,target2,... Valid targets are: host, x86,
1426 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001427 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1428 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001429 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1430 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001431 --enable-bindings Build specific language bindings:
1432 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001433 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001434 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001435
1436Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001439 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1440 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001441 --with-llvmgcc Specify location of llvm-gcc driver (default
1442 searches PATH)
1443 --with-llvmgxx Specify location of llvm-g++ driver (default
1444 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001445 --with-clang Specify location of clang compiler (default is
1446 --with-built-clang)
1447 --with-built-clang Use the compiled Clang as the LLVM compiler
1448 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001449 --with-optimize-option Select the compiler options to use for optimized
1450 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001451 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001452 --with-ocaml-libdir Specify install location for ocaml bindings (default
1453 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001454 --with-clang-resource-dir
1455 Relative directory from the Clang binary for
1456 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001457 --with-c-include-dirs Colon separated list of directories clang will
1458 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001459 --with-cxx-include-root Directory with the libstdc++ headers.
1460 --with-cxx-include-arch Architecture of the libstdc++ headers.
1461 --with-cxx-include-32bit-dir
1462 32 bit multilib dir.
1463 --with-cxx-include-64bit-dir
1464 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001465 --with-binutils-include Specify path to binutils/include/ containing
1466 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001467 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001468 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1469 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001470 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001471 --with-oprofile=<prefix>
1472 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001473
1474Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001475 CC C compiler command
1476 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001480 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001481 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001482 CXX C++ compiler command
1483 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
1488Report bugs to <llvmbugs@cs.uiuc.edu>.
1489_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001490ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001496 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001497 ac_builddir=.
1498
Reid Spencera773bd52006-08-04 18:18:08 +00001499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001503 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001514
1515case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001516 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001517 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001521 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001528esac
Reid Spencera773bd52006-08-04 18:18:08 +00001529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001530
Reid Spencera773bd52006-08-04 18:18:08 +00001531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001539 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001543 done
1544fi
1545
Reid Spencera773bd52006-08-04 18:18:08 +00001546test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001547if $ac_init_version; then
1548 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001549llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001550generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001552Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15532002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001554This configure script is free software; the Free Software Foundation
1555gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001556
John Criswell5a129712010-03-19 21:04:16 +00001557Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001559 exit
John Criswell7a73b802003-06-30 21:59:07 +00001560fi
Reid Spencera773bd52006-08-04 18:18:08 +00001561cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001562This file contains any messages produced by compilers while
1563running configure, to aid debugging if configure makes a mistake.
1564
Eric Christopherb26697c2010-09-06 18:47:10 +00001565It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001566generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001567
1568 $ $0 $@
1569
1570_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001571exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001572{
1573cat <<_ASUNAME
1574## --------- ##
1575## Platform. ##
1576## --------- ##
1577
1578hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582uname -v = `(uname -v) 2>/dev/null || echo unknown`
1583
1584/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1586
1587/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001590/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001591/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594
1595_ASUNAME
1596
1597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598for as_dir in $PATH
1599do
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001602 echo "PATH: $as_dir"
1603done
Reid Spencera773bd52006-08-04 18:18:08 +00001604IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001605
1606} >&5
1607
1608cat >&5 <<_ACEOF
1609
1610
1611## ----------- ##
1612## Core tests. ##
1613## ----------- ##
1614
1615_ACEOF
1616
1617
1618# Keep a trace of the command line.
1619# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001620# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001621# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001622# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001623ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001624ac_configure_args0=
1625ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001626ac_must_keep_next=false
1627for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001628do
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 for ac_arg
1630 do
1631 case $ac_arg in
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1635 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001636 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001637 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 esac
1639 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001644 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001646 case $ac_arg in
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 esac
1654 ;;
1655 -* ) ac_must_keep_next=true ;;
1656 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001657 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001658 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 ;;
1660 esac
1661 done
John Criswell7a73b802003-06-30 21:59:07 +00001662done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001663$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664$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 +00001665
1666# When interrupted or exit'd, cleanup temporary files, and complete
1667# config.log. We remove comments because anyway the quotes in there
1668# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001669# WARNING: Use '\'' to represent an apostrophe within the trap.
1670# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001671trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1673 {
1674 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001675
John Criswell7a73b802003-06-30 21:59:07 +00001676 cat <<\_ASBOX
1677## ---------------- ##
1678## Cache variables. ##
1679## ---------------- ##
1680_ASBOX
1681 echo
1682 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001683(
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1686 case $ac_val in #(
1687 *${as_nl}*)
1688 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001689 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1690echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001691 esac
1692 case $ac_var in #(
1693 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001694 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac ;;
1696 esac
1697 done
John Criswell7a73b802003-06-30 21:59:07 +00001698 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1700 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001701 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001702 "s/'\''/'\''\\\\'\'''\''/g;
1703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001705 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001708 esac |
1709 sort
1710)
John Criswell7a73b802003-06-30 21:59:07 +00001711 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001712
1713 cat <<\_ASBOX
1714## ----------------- ##
1715## Output variables. ##
1716## ----------------- ##
1717_ASBOX
1718 echo
1719 for ac_var in $ac_subst_vars
1720 do
Reid Spencera773bd52006-08-04 18:18:08 +00001721 eval ac_val=\$$ac_var
1722 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001724 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001726 done | sort
1727 echo
1728
1729 if test -n "$ac_subst_files"; then
1730 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001731## ------------------- ##
1732## File substitutions. ##
1733## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001734_ASBOX
1735 echo
1736 for ac_var in $ac_subst_files
1737 do
Reid Spencera773bd52006-08-04 18:18:08 +00001738 eval ac_val=\$$ac_var
1739 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001741 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 done | sort
1744 echo
1745 fi
1746
John Criswell7a73b802003-06-30 21:59:07 +00001747 if test -s confdefs.h; then
1748 cat <<\_ASBOX
1749## ----------- ##
1750## confdefs.h. ##
1751## ----------- ##
1752_ASBOX
1753 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001754 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001755 echo
1756 fi
1757 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001758 echo "$as_me: caught signal $ac_signal"
1759 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001760 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001763 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001764' 0
John Criswell7a73b802003-06-30 21:59:07 +00001765for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001767done
1768ac_signal=0
1769
1770# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001771rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001772
1773# Predefined preprocessor variables.
1774
1775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_NAME "$PACKAGE_NAME"
1777_ACEOF
1778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779
John Criswell7a73b802003-06-30 21:59:07 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782_ACEOF
1783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_VERSION "$PACKAGE_VERSION"
1787_ACEOF
1788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789
John Criswell7a73b802003-06-30 21:59:07 +00001790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_STRING "$PACKAGE_STRING"
1792_ACEOF
1793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794
John Criswell7a73b802003-06-30 21:59:07 +00001795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797_ACEOF
1798
1799
1800# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001802if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001804elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 set x "$ac_default_prefix/share/config.site" \
1808 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810shift
1811for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001812do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001813 if test -r "$ac_site_file"; then
1814 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1815echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001816 sed 's/^/| /' "$ac_site_file" >&5
1817 . "$ac_site_file"
1818 fi
1819done
1820
1821if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001822 # Some versions of bash will fail to source /dev/null (special
1823 # files actually), so we avoid doing that.
1824 if test -f "$cache_file"; then
1825 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1826echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001827 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001828 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1829 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001830 esac
1831 fi
1832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1834echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001835 >$cache_file
1836fi
1837
1838# Check that the precious variables saved in the cache have kept the same
1839# value.
1840ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001841for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001842 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1843 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001844 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1845 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001846 case $ac_old_set,$ac_new_set in
1847 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001848 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1849echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001850 ac_cache_corrupted=: ;;
1851 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1853echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001854 ac_cache_corrupted=: ;;
1855 ,);;
1856 *)
1857 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1859echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1860 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1861echo "$as_me: former value: $ac_old_val" >&2;}
1862 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1863echo "$as_me: current value: $ac_new_val" >&2;}
1864 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001865 fi;;
1866 esac
1867 # Pass precious variables to config.status.
1868 if test "$ac_new_set" = set; then
1869 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001871 *) ac_arg=$ac_var=$ac_new_val ;;
1872 esac
1873 case " $ac_configure_args " in
1874 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001875 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001876 esac
1877 fi
1878done
1879if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001880 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
Reid Spencera773bd52006-08-04 18:18:08 +00001910
John Criswell7a73b802003-06-30 21:59:07 +00001911ac_ext=c
1912ac_cpp='$CPP $CPPFLAGS'
1913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918
John Criswell5a129712010-03-19 21:04:16 +00001919LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001920
1921
1922
1923
1924
1925
1926
John Criswell7a73b802003-06-30 21:59:07 +00001927ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001928for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001929 if test -f "$ac_dir/install-sh"; then
1930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/install-sh -c"
1932 break
1933 elif test -f "$ac_dir/install.sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install.sh -c"
1936 break
1937 elif test -f "$ac_dir/shtool"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/shtool install -c"
1940 break
1941 fi
John Criswell7a73b802003-06-30 21:59:07 +00001942done
1943if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001944 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1945echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1946 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001947fi
Reid Spencera773bd52006-08-04 18:18:08 +00001948
1949# These three variables are undocumented and unsupported,
1950# and are intended to be withdrawn in a future Autoconf release.
1951# They can cause serious problems if a builder's source tree is in a directory
1952# whose full name contains unusual characters.
1953ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1954ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1955ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1956
John Criswell7a73b802003-06-30 21:59:07 +00001957
John Criswell392aaa32003-07-22 19:18:09 +00001958
Reid Spencer2706f8c2004-09-19 23:53:36 +00001959if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001960 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001961 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1962echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1963 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001964 fi
John Criswell93e1c722003-09-15 17:04:06 +00001965fi
1966
John Criswell0157f502010-03-19 21:31:39 +00001967
1968
1969if test -d ${srcdir}/projects/llvm-gcc ; then
1970 subdirs="$subdirs projects/llvm-gcc"
1971
1972fi
1973
1974if test -d ${srcdir}/projects/test-suite ; then
1975 subdirs="$subdirs projects/test-suite"
1976
1977fi
1978
1979if test -d ${srcdir}/projects/llvm-test ; then
1980 subdirs="$subdirs projects/llvm-test"
1981
1982fi
1983
1984if test -d ${srcdir}/projects/poolalloc ; then
1985 subdirs="$subdirs projects/poolalloc"
1986
1987fi
1988
1989if test -d ${srcdir}/projects/llvm-poolalloc ; then
1990 subdirs="$subdirs projects/llvm-poolalloc"
1991
1992fi
1993
John Criswell33a911a2003-11-25 20:36:46 +00001994for i in `ls ${srcdir}/projects`
1995do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996 if test -d ${srcdir}/projects/${i} ; then
1997 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001998 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001999 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002001 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002002 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002003 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002004 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002005;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002006 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002007 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002008 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002009 ;;
John Criswell7def2932010-02-25 22:57:19 +00002010 safecode) subdirs="$subdirs projects/safecode"
2011 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002012 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002013 ;;
John Criswell52c02862010-03-25 13:59:09 +00002014 llvm-gcc) ;;
2015 test-suite) ;;
2016 llvm-test) ;;
2017 poolalloc) ;;
2018 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002019 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002020 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2021echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002022 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002023 esac
John Criswell33a911a2003-11-25 20:36:46 +00002024 fi
2025done
John Criswell559a6c12003-09-30 16:31:48 +00002026
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002027# Check whether --enable-polly was given.
2028if test "${enable_polly+set}" = set; then
2029 enableval=$enable_polly;
2030else
2031 enableval=default
2032fi
2033
2034case "$enableval" in
2035 yes) ENABLE_POLLY=1
2036 ;;
2037 no) ENABLE_POLLY=0
2038 ;;
2039 default) ENABLE_POLLY=1
2040 ;;
2041 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2042echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2043 { (exit 1); exit 1; }; } ;;
2044esac
2045
2046
2047if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2048 LLVM_HAS_POLLY=1
2049
2050 subdirs="$subdirs tools/polly"
2051
2052fi
2053
John Criswell7a73b802003-06-30 21:59:07 +00002054
2055# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002056$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2058echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2059 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061{ echo "$as_me:$LINENO: checking build system type" >&5
2062echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2063if test "${ac_cv_build+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002065else
Reid Spencera773bd52006-08-04 18:18:08 +00002066 ac_build_alias=$build_alias
2067test "x$ac_build_alias" = x &&
2068 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002073ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2075echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002077
2078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002081case $ac_cv_build in
2082*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2084echo "$as_me: error: invalid value of canonical build" >&2;}
2085 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002086esac
John Criswell7a73b802003-06-30 21:59:07 +00002087build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002088ac_save_IFS=$IFS; IFS='-'
2089set x $ac_cv_build
2090shift
2091build_cpu=$1
2092build_vendor=$2
2093shift; shift
2094# Remember, the first character of IFS is used to create $*,
2095# except with old shells:
2096build_os=$*
2097IFS=$ac_save_IFS
2098case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002099
2100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002101{ echo "$as_me:$LINENO: checking host system type" >&5
2102echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2103if test "${ac_cv_host+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002105else
Reid Spencera773bd52006-08-04 18:18:08 +00002106 if test "x$host_alias" = x; then
2107 ac_cv_host=$ac_cv_build
2108else
2109 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002110 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2111echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2112 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002113fi
John Criswell7a73b802003-06-30 21:59:07 +00002114
2115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002116{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2117echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002118case $ac_cv_host in
2119*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2121echo "$as_me: error: invalid value of canonical host" >&2;}
2122 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002123esac
John Criswell7a73b802003-06-30 21:59:07 +00002124host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002125ac_save_IFS=$IFS; IFS='-'
2126set x $ac_cv_host
2127shift
2128host_cpu=$1
2129host_vendor=$2
2130shift; shift
2131# Remember, the first character of IFS is used to create $*,
2132# except with old shells:
2133host_os=$*
2134IFS=$ac_save_IFS
2135case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002136
2137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002138{ echo "$as_me:$LINENO: checking target system type" >&5
2139echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2140if test "${ac_cv_target+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002142else
Reid Spencera773bd52006-08-04 18:18:08 +00002143 if test "x$target_alias" = x; then
2144 ac_cv_target=$ac_cv_host
2145else
2146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2148echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2149 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002150fi
John Criswell7a73b802003-06-30 21:59:07 +00002151
2152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002153{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2154echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002155case $ac_cv_target in
2156*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2158echo "$as_me: error: invalid value of canonical target" >&2;}
2159 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002160esac
John Criswell7a73b802003-06-30 21:59:07 +00002161target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_target
2164shift
2165target_cpu=$1
2166target_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170target_os=$*
2171IFS=$ac_save_IFS
2172case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002173
2174
2175# The aliases save the names the user supplied, while $host etc.
2176# will get canonicalized.
2177test -n "$target_alias" &&
2178 test "$program_prefix$program_suffix$program_transform_name" = \
2179 NONENONEs,x,x, &&
2180 program_prefix=${target_alias}-
2181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002182{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2183echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2184if test "${llvm_cv_os_type+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002186else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002187 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002188 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002191 llvm_cv_os_type="AIX"
2192 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002193 *-*-irix*)
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="IRIX"
2197 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002201 llvm_cv_os_type="Cygwin"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002204 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002205 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002206 llvm_cv_os_type="Darwin"
2207 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002208 *-*-minix*)
2209 llvm_cv_link_all_option="-Wl,-all_load"
2210 llvm_cv_no_link_all_option="-Wl,-noall_load"
2211 llvm_cv_os_type="Minix"
2212 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002214 llvm_cv_link_all_option="-Wl,--whole-archive"
2215 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002216 llvm_cv_os_type="FreeBSD"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002218 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002221 llvm_cv_os_type="OpenBSD"
2222 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002223 *-*-netbsd*)
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="NetBSD"
2227 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002228 *-*-dragonfly*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="DragonFly"
2232 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002233 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002236 llvm_cv_os_type="HP-UX"
2237 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002238 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002241 llvm_cv_os_type="Interix"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Linux"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,-z,allextract"
2250 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="SunOS"
2252 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002253 *-*-auroraux*)
2254 llvm_cv_link_all_option="-Wl,-z,allextract"
2255 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2256 llvm_cv_os_type="AuroraUX"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 llvm_cv_os_type="Win32"
2262 llvm_cv_platform_type="Win32" ;;
2263 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="MingW"
2267 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002268 *-*-haiku*)
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="Haiku"
2272 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002273 *-unknown-eabi*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="Freestanding"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-unknown-elf*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Freestanding"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option=""
2285 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="Unknown"
2287 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002288esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002290{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2291echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2294echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2295if test "${llvm_cv_target_os_type+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002297else
2298 case $target in
2299 *-*-aix*)
2300 llvm_cv_target_os_type="AIX" ;;
2301 *-*-irix*)
2302 llvm_cv_target_os_type="IRIX" ;;
2303 *-*-cygwin*)
2304 llvm_cv_target_os_type="Cygwin" ;;
2305 *-*-darwin*)
2306 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002307 *-*-minix*)
2308 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002309 *-*-freebsd*)
2310 llvm_cv_target_os_type="FreeBSD" ;;
2311 *-*-openbsd*)
2312 llvm_cv_target_os_type="OpenBSD" ;;
2313 *-*-netbsd*)
2314 llvm_cv_target_os_type="NetBSD" ;;
2315 *-*-dragonfly*)
2316 llvm_cv_target_os_type="DragonFly" ;;
2317 *-*-hpux*)
2318 llvm_cv_target_os_type="HP-UX" ;;
2319 *-*-interix*)
2320 llvm_cv_target_os_type="Interix" ;;
2321 *-*-linux*)
2322 llvm_cv_target_os_type="Linux" ;;
2323 *-*-solaris*)
2324 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002325 *-*-auroraux*)
2326 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002327 *-*-win32*)
2328 llvm_cv_target_os_type="Win32" ;;
2329 *-*-mingw*)
2330 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002331 *-*-haiku*)
2332 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002333 *-unknown-eabi*)
2334 llvm_cv_target_os_type="Freestanding" ;;
2335 *)
2336 llvm_cv_target_os_type="Unknown" ;;
2337esac
2338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2340echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2344echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2345 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002346fi
2347
Reid Spencer7b3e8512004-12-24 06:29:05 +00002348OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002350HOST_OS=$llvm_cv_os_type
2351
2352TARGET_OS=$llvm_cv_target_os_type
2353
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354
Reid Spencera773bd52006-08-04 18:18:08 +00002355LINKALL=$llvm_cv_link_all_option
2356
2357NOLINKALL=$llvm_cv_no_link_all_option
2358
2359
Reid Spencer7b3e8512004-12-24 06:29:05 +00002360case $llvm_cv_platform_type in
2361 Unix)
2362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363cat >>confdefs.h <<\_ACEOF
2364#define LLVM_ON_UNIX 1
2365_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002367 LLVM_ON_UNIX=1
2368
2369 LLVM_ON_WIN32=0
2370
Reid Spencer7b3e8512004-12-24 06:29:05 +00002371 ;;
2372 Win32)
2373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374cat >>confdefs.h <<\_ACEOF
2375#define LLVM_ON_WIN32 1
2376_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002378 LLVM_ON_UNIX=0
2379
2380 LLVM_ON_WIN32=1
2381
Reid Spencer7b3e8512004-12-24 06:29:05 +00002382 ;;
2383esac
2384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002385{ echo "$as_me:$LINENO: checking target architecture" >&5
2386echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2387if test "${llvm_cv_target_arch+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389else
2390 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002391 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002392 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002393 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2394 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002395 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002396 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002397 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002398 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002399 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002400 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002401 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002402 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002403 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002404 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002405esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2408echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002409
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002411 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2412echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413fi
John Criswell76595452003-07-01 22:07:39 +00002414
Nick Lewycky83fc4472009-09-29 05:48:51 +00002415# Determine the LLVM native architecture for the target
2416case "$llvm_cv_target_arch" in
2417 x86) LLVM_NATIVE_ARCH="X86" ;;
2418 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2419 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2420esac
2421
2422ARCH=$llvm_cv_target_arch
2423
2424
2425ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426ac_cpp='$CPP $CPPFLAGS'
2427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002430if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2432set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437else
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 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 +00002448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450 break 2
2451 fi
2452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453done
Reid Spencera773bd52006-08-04 18:18:08 +00002454IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455
2456fi
2457fi
2458CC=$ac_cv_prog_CC
2459if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460 { echo "$as_me:$LINENO: result: $CC" >&5
2461echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002463 { echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465fi
2466
Reid Spencera773bd52006-08-04 18:18:08 +00002467
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468fi
2469if test -z "$ac_cv_prog_CC"; then
2470 ac_ct_CC=$CC
2471 # Extract the first word of "gcc", so it can be a program name with args.
2472set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477else
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 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 +00002488 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490 break 2
2491 fi
2492done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002493done
Reid Spencera773bd52006-08-04 18:18:08 +00002494IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495
2496fi
2497fi
2498ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503 { echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505fi
2506
Reid Spencera773bd52006-08-04 18:18:08 +00002507 if test "x$ac_ct_CC" = x; then
2508 CC=""
2509 else
2510 case $cross_compiling:$ac_tool_warned in
2511yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2513whose name does not start with the host triplet. If you think this
2514configuration is useful to you, please write to autoconf@gnu.org." >&5
2515echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2516whose name does not start with the host triplet. If you think this
2517configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002518ac_tool_warned=yes ;;
2519esac
2520 CC=$ac_ct_CC
2521 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522else
2523 CC="$ac_cv_prog_CC"
2524fi
2525
2526if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002527 if test -n "$ac_tool_prefix"; then
2528 # 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 +00002529set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 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 +00002545 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547 break 2
2548 fi
2549done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002550done
Reid Spencera773bd52006-08-04 18:18:08 +00002551IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552
2553fi
2554fi
2555CC=$ac_cv_prog_CC
2556if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 { echo "$as_me:$LINENO: result: $CC" >&5
2558echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002560 { echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002562fi
2563
Reid Spencera773bd52006-08-04 18:18:08 +00002564
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566fi
2567if test -z "$CC"; then
2568 # Extract the first word of "cc", so it can be a program name with args.
2569set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578 ac_prog_rejected=no
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 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 +00002586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2587 ac_prog_rejected=yes
2588 continue
2589 fi
2590 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592 break 2
2593 fi
2594done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595done
Reid Spencera773bd52006-08-04 18:18:08 +00002596IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597
2598if test $ac_prog_rejected = yes; then
2599 # We found a bogon in the path, so make sure we never use it.
2600 set dummy $ac_cv_prog_CC
2601 shift
2602 if test $# != 0; then
2603 # We chose a different compiler from the bogus one.
2604 # However, it has the same basename, so the bogon will be chosen
2605 # first if we set CC to just the basename; use the full file name.
2606 shift
2607 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2608 fi
2609fi
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002614 { echo "$as_me:$LINENO: result: $CC" >&5
2615echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617 { echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619fi
2620
Reid Spencera773bd52006-08-04 18:18:08 +00002621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622fi
2623if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002625 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002626 do
2627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2628set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002633else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 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 +00002644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002646 break 2
2647 fi
2648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649done
Reid Spencera773bd52006-08-04 18:18:08 +00002650IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002651
2652fi
2653fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654CC=$ac_cv_prog_CC
2655if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002656 { echo "$as_me:$LINENO: result: $CC" >&5
2657echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002658else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002659 { echo "$as_me:$LINENO: result: no" >&5
2660echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002661fi
2662
Reid Spencera773bd52006-08-04 18:18:08 +00002663
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002665 done
2666fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667if test -z "$CC"; then
2668 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002669 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002670do
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002677else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 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 +00002688 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002690 break 2
2691 fi
2692done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693done
Reid Spencera773bd52006-08-04 18:18:08 +00002694IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002695
2696fi
2697fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2701echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002703 { echo "$as_me:$LINENO: result: no" >&5
2704echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002705fi
2706
Reid Spencera773bd52006-08-04 18:18:08 +00002707
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002708 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002709done
John Criswell7a73b802003-06-30 21:59:07 +00002710
Reid Spencera773bd52006-08-04 18:18:08 +00002711 if test "x$ac_ct_CC" = x; then
2712 CC=""
2713 else
2714 case $cross_compiling:$ac_tool_warned in
2715yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002716{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2717whose name does not start with the host triplet. If you think this
2718configuration is useful to you, please write to autoconf@gnu.org." >&5
2719echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2720whose name does not start with the host triplet. If you think this
2721configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002722ac_tool_warned=yes ;;
2723esac
2724 CC=$ac_ct_CC
2725 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002726fi
2727
John Criswell7a73b802003-06-30 21:59:07 +00002728fi
2729
2730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2732See \`config.log' for more details." >&5
2733echo "$as_me: error: no acceptable C compiler found in \$PATH
2734See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002736
John Criswell7a73b802003-06-30 21:59:07 +00002737# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738echo "$as_me:$LINENO: checking for C compiler version" >&5
2739ac_compiler=`set X $ac_compile; echo $2`
2740{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002747 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750{ (ac_try="$ac_compiler -v >&5"
2751case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler -v >&5") 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760{ (ac_try="$ac_compiler -V >&5"
2761case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764esac
2765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler -V >&5") 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002771cat >conftest.$ac_ext <<_ACEOF
2772/* confdefs.h. */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002777
John Criswell7a73b802003-06-30 21:59:07 +00002778int
2779main ()
2780{
2781
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002787ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002788# Try to create an executable without -o first, disregard a.out.
2789# It will help us diagnose broken compilers, and finding out an intuition
2790# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002791{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2792echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2793ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794#
2795# List of possible output files, starting from the most likely.
2796# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2797# only as a last resort. b.out is created by i960 compilers.
2798ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2799#
2800# The IRIX 6 linker writes into existing files which may not be
2801# executable, retaining their permissions. Remove them first so a
2802# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002803ac_rmfiles=
2804for ac_file in $ac_files
2805do
2806 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2809 esac
2810done
2811rm -f $ac_rmfiles
2812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002813if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002814case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002819 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002820 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2824# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2825# in a Makefile. We should not override ac_cv_exeext if it was cached,
2826# so that the user can short-circuit this test for compilers unknown to
2827# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002828for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002829do
2830 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002831 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002833 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002834 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002835 # We found the default executable, but exeext='' is most
2836 # certainly right.
2837 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002838 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002840 then :; else
2841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 fi
2843 # We set ac_cv_exeext here because the later test for it is not
2844 # safe: cross compilers may not add the suffix if given an `-o'
2845 # argument, so we may need to know it at that point already.
2846 # Even if this section looks crufty: it has the advantage of
2847 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002848 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002849 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002850 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002851 esac
2852done
Reid Spencera773bd52006-08-04 18:18:08 +00002853test "$ac_cv_exeext" = no && ac_cv_exeext=
2854
John Criswell7a73b802003-06-30 21:59:07 +00002855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002857sed 's/^/| /' conftest.$ac_ext >&5
2858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002859{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2860See \`config.log' for more details." >&5
2861echo "$as_me: error: C compiler cannot create executables
2862See \`config.log' for more details." >&2;}
2863 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002864fi
John Criswell7a73b802003-06-30 21:59:07 +00002865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002866ac_exeext=$ac_cv_exeext
2867{ echo "$as_me:$LINENO: result: $ac_file" >&5
2868echo "${ECHO_T}$ac_file" >&6; }
2869
2870# Check that the compiler produces executables we can run. If not, either
2871# the compiler is broken, or we cross compile.
2872{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2873echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2874# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2875# If not cross compiling, check that we can run a simple program.
2876if test "$cross_compiling" != yes; then
2877 if { ac_try='./$ac_file'
2878 { (case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_try") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 cross_compiling=no
2888 else
2889 if test "$cross_compiling" = maybe; then
2890 cross_compiling=yes
2891 else
2892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2893If you meant to cross compile, use \`--host'.
2894See \`config.log' for more details." >&5
2895echo "$as_me: error: cannot run C compiled programs.
2896If you meant to cross compile, use \`--host'.
2897See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900 fi
2901fi
2902{ echo "$as_me:$LINENO: result: yes" >&5
2903echo "${ECHO_T}yes" >&6; }
2904
2905rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002906ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002907# Check that the compiler produces executables we can run. If not, either
2908# the compiler is broken, or we cross compile.
2909{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2910echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2911{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2912echo "${ECHO_T}$cross_compiling" >&6; }
2913
2914{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2915echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2916if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002922 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002923 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928# work properly (i.e., refer to `conftest.exe'), while it won't with
2929# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002930for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002932 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002935 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002936 * ) break;;
2937 esac
2938done
2939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2941See \`config.log' for more details." >&5
2942echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2943See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002946
2947rm -f conftest$ac_cv_exeext
2948{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2949echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002950
2951rm -f conftest.$ac_ext
2952EXEEXT=$ac_cv_exeext
2953ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002954{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2955echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2956if test "${ac_cv_objext+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959 cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002964/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002965
John Criswell7a73b802003-06-30 21:59:07 +00002966int
2967main ()
2968{
2969
2970 ;
2971 return 0;
2972}
2973_ACEOF
2974rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002975if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002976case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002981 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002982 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002985 for ac_file in conftest.o conftest.obj conftest.*; do
2986 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002987 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990 break;;
2991 esac
2992done
2993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002994 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002995sed 's/^/| /' conftest.$ac_ext >&5
2996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002997{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2998See \`config.log' for more details." >&5
2999echo "$as_me: error: cannot compute suffix of object files: cannot compile
3000See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003003
John Criswell7a73b802003-06-30 21:59:07 +00003004rm -f conftest.$ac_cv_objext conftest.$ac_ext
3005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003006{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003008OBJEXT=$ac_cv_objext
3009ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003010{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3012if test "${ac_cv_c_compiler_gnu+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003021
John Criswell7a73b802003-06-30 21:59:07 +00003022int
3023main ()
3024{
3025#ifndef __GNUC__
3026 choke me
3027#endif
3028
3029 ;
3030 return 0;
3031}
3032_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003033rm -f conftest.$ac_objext
3034if { (ac_try="$ac_compile"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003067 ac_compiler_gnu=yes
3068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003069 echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003074
Reid Spencera773bd52006-08-04 18:18:08 +00003075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003076ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003077
3078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003079{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3080echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3081GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003082ac_test_CFLAGS=${CFLAGS+set}
3083ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003084{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3086if test "${ac_cv_prog_cc_g+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003088else
Reid Spencera773bd52006-08-04 18:18:08 +00003089 ac_save_c_werror_flag=$ac_c_werror_flag
3090 ac_c_werror_flag=yes
3091 ac_cv_prog_cc_g=no
3092 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003093 cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h. */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003099
John Criswell7a73b802003-06-30 21:59:07 +00003100int
3101main ()
3102{
3103
3104 ;
3105 return 0;
3106}
3107_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003108rm -f conftest.$ac_objext
3109if { (ac_try="$ac_compile"
3110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003142 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003143else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 CFLAGS=""
3148 cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003163rm -f conftest.$ac_objext
3164if { (ac_try="$ac_compile"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 :
Torok Edwin871384f2010-01-26 08:50:50 +00003198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003199 echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003203 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003204 cat >conftest.$ac_ext <<_ACEOF
3205/* confdefs.h. */
3206_ACEOF
3207cat confdefs.h >>conftest.$ac_ext
3208cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003209/* end confdefs.h. */
3210
3211int
3212main ()
3213{
3214
3215 ;
3216 return 0;
3217}
3218_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003219rm -f conftest.$ac_objext
3220if { (ac_try="$ac_compile"
3221case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224esac
3225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3234 { (case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
3238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_try") 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003253 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003254else
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258
John Criswell7a73b802003-06-30 21:59:07 +00003259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003260
Reid Spencera773bd52006-08-04 18:18:08 +00003261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263
Reid Spencera773bd52006-08-04 18:18:08 +00003264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266
Reid Spencera773bd52006-08-04 18:18:08 +00003267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_c_werror_flag=$ac_save_c_werror_flag
3269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3271echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272if test "$ac_test_CFLAGS" = set; then
3273 CFLAGS=$ac_save_CFLAGS
3274elif test $ac_cv_prog_cc_g = yes; then
3275 if test "$GCC" = yes; then
3276 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003277 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003279 fi
3280else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281 if test "$GCC" = yes; then
3282 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003283 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003285 fi
3286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003287{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3288echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3289if test "${ac_cv_prog_cc_c89+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291else
Reid Spencera773bd52006-08-04 18:18:08 +00003292 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003294cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299/* end confdefs.h. */
3300#include <stdarg.h>
3301#include <stdio.h>
3302#include <sys/types.h>
3303#include <sys/stat.h>
3304/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3305struct buf { int x; };
3306FILE * (*rcsopen) (struct buf *, struct stat *, int);
3307static char *e (p, i)
3308 char **p;
3309 int i;
3310{
3311 return p[i];
3312}
3313static char *f (char * (*g) (char **, int), char **p, ...)
3314{
3315 char *s;
3316 va_list v;
3317 va_start (v,p);
3318 s = g (p, va_arg (v,int));
3319 va_end (v);
3320 return s;
3321}
3322
3323/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3324 function prototypes and stuff, but not '\xHH' hex character constants.
3325 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003326 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3328 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003329 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3331
Reid Spencera773bd52006-08-04 18:18:08 +00003332/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333 inside strings and character constants. */
3334#define FOO(x) 'x'
3335int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3336
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337int test (int i, double x);
3338struct s1 {int (*f) (int a);};
3339struct s2 {int (*f) (double a);};
3340int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3341int argc;
3342char **argv;
3343int
3344main ()
3345{
3346return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3347 ;
3348 return 0;
3349}
3350_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003351for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353do
3354 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003355 rm -f conftest.$ac_objext
3356if { (ac_try="$ac_compile"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_compile") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3370 { (case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003389 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003396
Reid Spencera773bd52006-08-04 18:18:08 +00003397rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399done
Reid Spencera773bd52006-08-04 18:18:08 +00003400rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401CC=$ac_save_CC
3402
3403fi
Reid Spencera773bd52006-08-04 18:18:08 +00003404# AC_CACHE_VAL
3405case "x$ac_cv_prog_cc_c89" in
3406 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407 { echo "$as_me:$LINENO: result: none needed" >&5
3408echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003409 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003410 { echo "$as_me:$LINENO: result: unsupported" >&5
3411echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003413 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3415echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416esac
3417
John Criswell0c38eaf2003-09-10 15:17:25 +00003418
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419ac_ext=c
3420ac_cpp='$CPP $CPPFLAGS'
3421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424
3425
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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3432echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433# On Suns, sometimes $CPP names a directory.
3434if test -n "$CPP" && test -d "$CPP"; then
3435 CPP=
3436fi
3437if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003438 if test "${ac_cv_prog_CPP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440else
3441 # Double quotes because CPP needs to be expanded
3442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3443 do
3444 ac_preproc_ok=false
3445for ac_c_preproc_warn_flag in '' yes
3446do
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
3449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
3451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003453 cat >conftest.$ac_ext <<_ACEOF
3454/* confdefs.h. */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458/* end confdefs.h. */
3459#ifdef __STDC__
3460# include <limits.h>
3461#else
3462# include <assert.h>
3463#endif
3464 Syntax error
3465_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003466if { (ac_try="$ac_cpp conftest.$ac_ext"
3467case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
3471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null; then
3479 if test -s conftest.err; then
3480 ac_cpp_err=$ac_c_preproc_warn_flag
3481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3482 else
3483 ac_cpp_err=
3484 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003486 ac_cpp_err=yes
3487fi
3488if test -z "$ac_cpp_err"; then
3489 :
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494 # Broken: fails on valid input.
3495continue
3496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498rm -f conftest.err conftest.$ac_ext
3499
Reid Spencera773bd52006-08-04 18:18:08 +00003500 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003502 cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507/* end confdefs.h. */
3508#include <ac_nonexistent.h>
3509_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003510if { (ac_try="$ac_cpp conftest.$ac_ext"
3511case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514esac
3515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } >/dev/null; then
3523 if test -s conftest.err; then
3524 ac_cpp_err=$ac_c_preproc_warn_flag
3525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3526 else
3527 ac_cpp_err=
3528 fi
3529else
3530 ac_cpp_err=yes
3531fi
3532if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003533 # Broken: success on invalid input.
3534continue
3535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003536 echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539 # Passes both tests.
3540ac_preproc_ok=:
3541break
3542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544rm -f conftest.err conftest.$ac_ext
3545
3546done
3547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003549if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003550 break
3551fi
3552
3553 done
3554 ac_cv_prog_CPP=$CPP
3555
3556fi
3557 CPP=$ac_cv_prog_CPP
3558else
3559 ac_cv_prog_CPP=$CPP
3560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003561{ echo "$as_me:$LINENO: result: $CPP" >&5
3562echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003563ac_preproc_ok=false
3564for ac_c_preproc_warn_flag in '' yes
3565do
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003572 cat >conftest.$ac_ext <<_ACEOF
3573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577/* end confdefs.h. */
3578#ifdef __STDC__
3579# include <limits.h>
3580#else
3581# include <assert.h>
3582#endif
3583 Syntax error
3584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003585if { (ac_try="$ac_cpp conftest.$ac_ext"
3586case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589esac
3590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev/null; then
3598 if test -s conftest.err; then
3599 ac_cpp_err=$ac_c_preproc_warn_flag
3600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601 else
3602 ac_cpp_err=
3603 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003605 ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608 :
3609else
3610 echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003613 # Broken: fails on valid input.
3614continue
3615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003617rm -f conftest.err conftest.$ac_ext
3618
Reid Spencera773bd52006-08-04 18:18:08 +00003619 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003621 cat >conftest.$ac_ext <<_ACEOF
3622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626/* end confdefs.h. */
3627#include <ac_nonexistent.h>
3628_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003629if { (ac_try="$ac_cpp conftest.$ac_ext"
3630case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633esac
3634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } >/dev/null; then
3642 if test -s conftest.err; then
3643 ac_cpp_err=$ac_c_preproc_warn_flag
3644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3645 else
3646 ac_cpp_err=
3647 fi
3648else
3649 ac_cpp_err=yes
3650fi
3651if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003652 # Broken: success on invalid input.
3653continue
3654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003655 echo "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
3657
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003658 # Passes both tests.
3659ac_preproc_ok=:
3660break
3661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003662
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003663rm -f conftest.err conftest.$ac_ext
3664
3665done
3666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003668if $ac_preproc_ok; then
3669 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003671 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3672See \`config.log' for more details." >&5
3673echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3674See \`config.log' for more details." >&2;}
3675 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003676fi
3677
John Criswell7a73b802003-06-30 21:59:07 +00003678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683
John Criswell7a73b802003-06-30 21:59:07 +00003684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003685{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3686echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3687if test "${ac_cv_path_GREP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003690 # Extract the first word of "grep ggrep" to use in msg output
3691if test -z "$GREP"; then
3692set dummy grep ggrep; ac_prog_name=$2
3693if test "${ac_cv_path_GREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
Reid Spencera773bd52006-08-04 18:18:08 +00003696 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003697# Loop through the user's path and test for each of PROGNAME-LIST
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003703 for ac_prog in grep ggrep; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3706 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3707 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003708 # Check for GNU $ac_path_GREP
3709case `"$ac_path_GREP" --version 2>&1` in
3710*GNU*)
3711 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3712*)
3713 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003714 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003715 while :
3716 do
3717 cat "conftest.in" "conftest.in" >"conftest.tmp"
3718 mv "conftest.tmp" "conftest.in"
3719 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003720 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003721 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003724 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3725 # Best one so far, save it but keep looking for a better one
3726 ac_cv_path_GREP="$ac_path_GREP"
3727 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003728 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003729 # 10*(2^10) chars as input seems more than enough
3730 test $ac_count -gt 10 && break
3731 done
3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3733esac
3734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003735
3736 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003737 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003738done
3739
3740done
Reid Spencera773bd52006-08-04 18:18:08 +00003741IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003742
3743
3744fi
3745
3746GREP="$ac_cv_path_GREP"
3747if test -z "$GREP"; then
3748 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3749echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3750 { (exit 1); exit 1; }; }
3751fi
3752
Reid Spencera773bd52006-08-04 18:18:08 +00003753else
3754 ac_cv_path_GREP=$GREP
3755fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003757
Reid Spencera773bd52006-08-04 18:18:08 +00003758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003759{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003761 GREP="$ac_cv_path_GREP"
3762
3763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764{ echo "$as_me:$LINENO: checking for egrep" >&5
3765echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3766if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003768else
3769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3770 then ac_cv_path_EGREP="$GREP -E"
3771 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003772 # Extract the first word of "egrep" to use in msg output
3773if test -z "$EGREP"; then
3774set dummy egrep; ac_prog_name=$2
3775if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
Reid Spencera773bd52006-08-04 18:18:08 +00003778 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003779# Loop through the user's path and test for each of PROGNAME-LIST
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003781for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003785 for ac_prog in egrep; do
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3788 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3789 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003790 # Check for GNU $ac_path_EGREP
3791case `"$ac_path_EGREP" --version 2>&1` in
3792*GNU*)
3793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3794*)
3795 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003796 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003797 while :
3798 do
3799 cat "conftest.in" "conftest.in" >"conftest.tmp"
3800 mv "conftest.tmp" "conftest.in"
3801 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003802 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003805 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3807 # Best one so far, save it but keep looking for a better one
3808 ac_cv_path_EGREP="$ac_path_EGREP"
3809 ac_path_EGREP_max=$ac_count
3810 fi
3811 # 10*(2^10) chars as input seems more than enough
3812 test $ac_count -gt 10 && break
3813 done
3814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3815esac
3816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003817
3818 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003819 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003820done
3821
3822done
Reid Spencera773bd52006-08-04 18:18:08 +00003823IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003824
3825
3826fi
3827
3828EGREP="$ac_cv_path_EGREP"
3829if test -z "$EGREP"; then
3830 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3831echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3832 { (exit 1); exit 1; }; }
3833fi
3834
Reid Spencera773bd52006-08-04 18:18:08 +00003835else
3836 ac_cv_path_EGREP=$EGREP
3837fi
3838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003839
Reid Spencera773bd52006-08-04 18:18:08 +00003840 fi
3841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003842{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3843echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003844 EGREP="$ac_cv_path_EGREP"
3845
3846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003847{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3848echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3849if test "${ac_cv_header_stdc+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003852 cat >conftest.$ac_ext <<_ACEOF
3853/* confdefs.h. */
3854_ACEOF
3855cat confdefs.h >>conftest.$ac_ext
3856cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003858#include <stdlib.h>
3859#include <stdarg.h>
3860#include <string.h>
3861#include <float.h>
3862
John Criswell0c38eaf2003-09-10 15:17:25 +00003863int
3864main ()
3865{
3866
3867 ;
3868 return 0;
3869}
John Criswell7a73b802003-06-30 21:59:07 +00003870_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003871rm -f conftest.$ac_objext
3872if { (ac_try="$ac_compile"
3873case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876esac
3877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_compile") 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3886 { (case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889esac
3890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_try") 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; } &&
3895 { ac_try='test -s conftest.$ac_objext'
3896 { (case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899esac
3900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_try") 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003905 ac_cv_header_stdc=yes
3906else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003907 echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912
Reid Spencera773bd52006-08-04 18:18:08 +00003913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003914
3915if test $ac_cv_header_stdc = yes; then
3916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003917 cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h. */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003923#include <string.h>
3924
3925_ACEOF
3926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003927 $EGREP "memchr" >/dev/null 2>&1; then
3928 :
John Criswell7a73b802003-06-30 21:59:07 +00003929else
3930 ac_cv_header_stdc=no
3931fi
3932rm -f conftest*
3933
3934fi
3935
3936if test $ac_cv_header_stdc = yes; then
3937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003938 cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h. */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003944#include <stdlib.h>
3945
3946_ACEOF
3947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003948 $EGREP "free" >/dev/null 2>&1; then
3949 :
John Criswell7a73b802003-06-30 21:59:07 +00003950else
3951 ac_cv_header_stdc=no
3952fi
3953rm -f conftest*
3954
3955fi
3956
3957if test $ac_cv_header_stdc = yes; then
3958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003960 :
3961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962 cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h. */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003967/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003968#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003969#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003970#if ((' ' & 0x0FF) == 0x020)
3971# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3972# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3973#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003974# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003975 (('a' <= (c) && (c) <= 'i') \
3976 || ('j' <= (c) && (c) <= 'r') \
3977 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003978# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3979#endif
3980
3981#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3982int
3983main ()
3984{
3985 int i;
3986 for (i = 0; i < 256; i++)
3987 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003988 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003989 return 2;
3990 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003991}
3992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993rm -f conftest$ac_exeext
3994if { (ac_try="$ac_link"
3995case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
3999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_link") 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4004 { (case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_try") 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 :
John Criswell7a73b802003-06-30 21:59:07 +00004014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004015 echo "$as_me: program exited with status $ac_status" >&5
4016echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
4019( exit $ac_status )
4020ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022rm -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 +00004023fi
4024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004025
John Criswell7a73b802003-06-30 21:59:07 +00004026fi
4027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4029echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004030if test $ac_cv_header_stdc = yes; then
4031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004032cat >>confdefs.h <<\_ACEOF
4033#define STDC_HEADERS 1
4034_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004035
4036fi
4037
Reid Spencera773bd52006-08-04 18:18:08 +00004038# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039
4040
4041
4042
4043
4044
4045
4046
4047
Reid Spencera773bd52006-08-04 18:18:08 +00004048for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4049 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050do
4051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4052{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057 cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
4063$ac_includes_default
4064
4065#include <$ac_header>
4066_ACEOF
4067rm -f conftest.$ac_objext
4068if { (ac_try="$ac_compile"
4069case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072esac
4073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
4096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 eval "$as_ac_Header=yes"
4102else
4103 echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 eval "$as_ac_Header=no"
4107fi
4108
4109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110fi
4111ac_res=`eval echo '${'$as_ac_Header'}'`
4112 { echo "$as_me:$LINENO: result: $ac_res" >&5
4113echo "${ECHO_T}$ac_res" >&6; }
4114if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004115 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004117_ACEOF
4118
4119fi
4120
4121done
4122
4123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4125echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4126if test "${ac_cv_c_bigendian+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129 # See if sys/param.h defines the BYTE_ORDER macro.
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004132_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004135/* end confdefs.h. */
4136#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004137#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004138
4139int
4140main ()
4141{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4143 bogus endian macros
4144#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004145
4146 ;
4147 return 0;
4148}
4149_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150rm -f conftest.$ac_objext
4151if { (ac_try="$ac_compile"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004184 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004190/* end confdefs.h. */
4191#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004192#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004193
4194int
4195main ()
4196{
4197#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198 not big endian
4199#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004200
4201 ;
4202 return 0;
4203}
4204_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205rm -f conftest.$ac_objext
4206if { (ac_try="$ac_compile"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004239 ac_cv_c_bigendian=yes
4240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004241 echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004244 ac_cv_c_bigendian=no
4245fi
4246
4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248else
4249 echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 # It does not; compile a test program.
4253if test "$cross_compiling" = yes; then
4254 # try to guess the endianness by grepping values into an object file
4255 ac_cv_c_bigendian=unknown
4256 cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
4262short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4263short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4264void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4265short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4266short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4267void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004268int
4269main ()
4270{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004272 ;
4273 return 0;
4274}
4275_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276rm -f conftest.$ac_objext
4277if { (ac_try="$ac_compile"
4278case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004311 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004312fi
4313if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4314 if test "$ac_cv_c_bigendian" = unknown; then
4315 ac_cv_c_bigendian=no
4316 else
4317 # finding both strings is unlikely to happen, but who knows?
4318 ac_cv_c_bigendian=unknown
4319 fi
4320fi
Reid Spencera773bd52006-08-04 18:18:08 +00004321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004322 echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004325
Torok Edwin871384f2010-01-26 08:50:50 +00004326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004327
Reid Spencera773bd52006-08-04 18:18:08 +00004328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004330 cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004335/* end confdefs.h. */
4336$ac_includes_default
4337int
4338main ()
4339{
4340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004341 /* Are we little or big endian? From Harbison&Steele. */
4342 union
4343 {
4344 long int l;
4345 char c[sizeof (long int)];
4346 } u;
4347 u.l = 1;
4348 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004349
4350 ;
4351 return 0;
4352}
4353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004354rm -f conftest$ac_exeext
4355if { (ac_try="$ac_link"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_link") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4365 { (case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_try") 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004374 ac_cv_c_bigendian=no
4375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004376 echo "$as_me: program exited with status $ac_status" >&5
4377echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380( exit $ac_status )
4381ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004382fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383rm -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 +00004384fi
4385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386
Reid Spencera773bd52006-08-04 18:18:08 +00004387fi
4388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390fi
4391{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4392echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4393case $ac_cv_c_bigendian in
4394 yes)
4395 ENDIAN=big
4396 ;;
4397 no)
4398 ENDIAN=little
4399 ;;
4400 *)
4401 { { echo "$as_me:$LINENO: error: unknown endianness
4402presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4403echo "$as_me: error: unknown endianness
4404presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4405 { (exit 1); exit 1; }; } ;;
4406esac
Reid Spencera773bd52006-08-04 18:18:08 +00004407
4408
4409if test "$cross_compiling" = yes; then
4410 LLVM_CROSS_COMPILING=1
4411
4412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4414echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4415if test "${ac_cv_build_exeext+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004417else
4418 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4419 ac_cv_build_exeext=.exe
4420else
4421 ac_build_prefix=${build_alias}-
4422
4423 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4424set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004429else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 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 +00004440 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004442 break 2
4443 fi
4444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445done
Reid Spencera773bd52006-08-04 18:18:08 +00004446IFS=$as_save_IFS
4447
4448fi
4449fi
4450BUILD_CC=$ac_cv_prog_BUILD_CC
4451if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455 { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004457fi
4458
4459
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "gcc", so it can be a program name with args.
4462set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004467else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470else
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 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 +00004478 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004480 break 2
4481 fi
4482done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004483done
Reid Spencera773bd52006-08-04 18:18:08 +00004484IFS=$as_save_IFS
4485
4486fi
4487fi
4488BUILD_CC=$ac_cv_prog_BUILD_CC
4489if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004493 { echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004495fi
4496
4497
4498 if test -z "$BUILD_CC"; then
4499 # Extract the first word of "cc", so it can be a program name with args.
4500set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004505else
4506 if test -n "$BUILD_CC"; then
4507 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4508else
4509 ac_prog_rejected=no
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 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 +00004517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4518 ac_prog_rejected=yes
4519 continue
4520 fi
4521 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004523 break 2
4524 fi
4525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526done
Reid Spencera773bd52006-08-04 18:18:08 +00004527IFS=$as_save_IFS
4528
4529if test $ac_prog_rejected = yes; then
4530 # We found a bogon in the path, so make sure we never use it.
4531 set dummy $ac_cv_prog_BUILD_CC
4532 shift
4533 if test $# != 0; then
4534 # We chose a different compiler from the bogus one.
4535 # However, it has the same basename, so the bogon will be chosen
4536 # first if we set BUILD_CC to just the basename; use the full file name.
4537 shift
4538 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4539 fi
4540fi
4541fi
4542fi
4543BUILD_CC=$ac_cv_prog_BUILD_CC
4544if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4546echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548 { echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004550fi
4551
4552
4553 fi
4554 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004555 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4556echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4557 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004558 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4559 rm -f conftest*
4560 echo 'int main () { return 0; }' > conftest.$ac_ext
4561 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004563 (eval $ac_build_link) 2>&5
4564 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004567 for file in conftest.*; do
4568 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004569 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004570 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4571 esac
4572 done
4573 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4575echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4576 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004577 fi
4578 rm -f conftest*
4579 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4580fi
4581fi
4582
4583BUILD_EXEEXT=""
4584test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004585{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4586echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004587ac_build_exeext=$BUILD_EXEEXT
4588
Jim Grosbach673612e2008-10-02 22:56:44 +00004589 ac_build_prefix=${build_alias}-
4590 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4591set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004596else
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 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 +00004607 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004609 break 2
4610 fi
4611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612done
Jim Grosbach673612e2008-10-02 22:56:44 +00004613IFS=$as_save_IFS
4614
4615fi
4616fi
4617BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622 { echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004624fi
4625
4626
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "g++", so it can be a program name with args.
4629set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004634else
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 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 +00004645 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004647 break 2
4648 fi
4649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650done
Jim Grosbach673612e2008-10-02 22:56:44 +00004651IFS=$as_save_IFS
4652
4653fi
4654fi
4655BUILD_CXX=$ac_cv_prog_BUILD_CXX
4656if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4658echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660 { echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004662fi
4663
4664
4665 if test -z "$BUILD_CXX"; then
4666 # Extract the first word of "c++", so it can be a program name with args.
4667set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004672else
4673 if test -n "$BUILD_CXX"; then
4674 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4675else
4676 ac_prog_rejected=no
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 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 +00004684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4685 ac_prog_rejected=yes
4686 continue
4687 fi
4688 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004690 break 2
4691 fi
4692done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004693done
Jim Grosbach673612e2008-10-02 22:56:44 +00004694IFS=$as_save_IFS
4695
4696if test $ac_prog_rejected = yes; then
4697 # We found a bogon in the path, so make sure we never use it.
4698 set dummy $ac_cv_prog_BUILD_CXX
4699 shift
4700 if test $# != 0; then
4701 # We chose a different compiler from the bogus one.
4702 # However, it has the same basename, so the bogon will be chosen
4703 # first if we set BUILD_CXX to just the basename; use the full file name.
4704 shift
4705 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4706 fi
4707fi
4708fi
4709fi
4710BUILD_CXX=$ac_cv_prog_BUILD_CXX
4711if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4713echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 { echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004717fi
4718
4719
4720 fi
4721 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004722else
4723 LLVM_CROSS_COMPILING=0
4724
4725fi
4726
Dan Gohman56fb5f92010-08-04 16:25:01 +00004727if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004728 cvsbuild="yes"
4729 optimize="no"
4730 CVSBUILD=CVSBUILD=1
4731
4732else
4733 cvsbuild="no"
4734 optimize="yes"
4735fi
4736
4737
4738# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004739if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004740 enableval=$enable_optimized;
4741else
4742 enableval=$optimize
4743fi
4744
4745if test ${enableval} = "no" ; then
4746 ENABLE_OPTIMIZED=
4747
4748else
4749 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4750
4751fi
4752
David Greene2a5a12c2009-04-17 14:50:39 +00004753# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004754if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004755 enableval=$enable_profiling;
4756else
4757 enableval="no"
4758fi
4759
4760if test ${enableval} = "no" ; then
4761 ENABLE_PROFILING=
4762
4763else
4764 ENABLE_PROFILING=ENABLE_PROFILING=1
4765
4766fi
4767
Reid Spencera773bd52006-08-04 18:18:08 +00004768# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004769if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004770 enableval=$enable_assertions;
4771else
4772 enableval="yes"
4773fi
4774
4775if test ${enableval} = "yes" ; then
4776 DISABLE_ASSERTIONS=
4777
4778else
4779 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4780
4781fi
4782
David Greenea696d242007-06-28 19:36:08 +00004783# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004784if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004785 enableval=$enable_expensive_checks;
4786else
4787 enableval="no"
4788fi
4789
4790if test ${enableval} = "yes" ; then
4791 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4792
4793 EXPENSIVE_CHECKS=yes
4794
4795else
4796 ENABLE_EXPENSIVE_CHECKS=
4797
4798 EXPENSIVE_CHECKS=no
4799
4800fi
4801
Reid Spencer8b2e1412006-11-17 03:32:33 +00004802# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004803if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004804 enableval=$enable_debug_runtime;
4805else
4806 enableval=no
4807fi
4808
4809if test ${enableval} = "no" ; then
4810 DEBUG_RUNTIME=
4811
4812else
4813 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4814
4815fi
4816
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004817# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004818if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004819 enableval=$enable_debug_symbols;
4820else
4821 enableval=no
4822fi
4823
4824if test ${enableval} = "no" ; then
4825 DEBUG_SYMBOLS=
4826
4827else
4828 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4829
4830fi
4831
Reid Spencera773bd52006-08-04 18:18:08 +00004832# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004833if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004834 enableval=$enable_jit;
4835else
4836 enableval=default
4837fi
4838
4839if test ${enableval} = "no"
4840then
4841 JIT=
4842
4843else
4844 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004845 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004846 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004847 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004848 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004849 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004850 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004851 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004852 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004853 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004854 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004855 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004856 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004857 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004858 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004859 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004860 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004861 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004862 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004863 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004864 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004865 Blackfin) TARGET_HAS_JIT=0
4866 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004867 MBlaze) TARGET_HAS_JIT=0
4868 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004869 PTX) TARGET_HAS_JIT=0
4870 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004871 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004872 ;;
4873 esac
4874fi
4875
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004876# Check whether --enable-docs was given.
4877if test "${enable_docs+set}" = set; then
4878 enableval=$enable_docs;
4879else
4880 enableval=default
4881fi
4882
4883case "$enableval" in
4884 yes) ENABLE_DOCS=1
4885 ;;
4886 no) ENABLE_DOCS=0
4887 ;;
4888 default) ENABLE_DOCS=1
4889 ;;
4890 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4891echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4893esac
4894
Reid Spencera773bd52006-08-04 18:18:08 +00004895# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004897 enableval=$enable_doxygen;
4898else
4899 enableval=default
4900fi
4901
4902case "$enableval" in
4903 yes) ENABLE_DOXYGEN=1
4904 ;;
4905 no) ENABLE_DOXYGEN=0
4906 ;;
4907 default) ENABLE_DOXYGEN=0
4908 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004909 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4910echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4911 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004912esac
4913
4914# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004916 enableval=$enable_threads;
4917else
Reid Spencer65c5d752006-11-05 17:08:18 +00004918 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004919fi
4920
4921case "$enableval" in
4922 yes) ENABLE_THREADS=1
4923 ;;
4924 no) ENABLE_THREADS=0
4925 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004926 default) ENABLE_THREADS=1
4927 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004928 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4929echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4930 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004931esac
4932
Owen Andersona8603702009-05-19 22:18:56 +00004933cat >>confdefs.h <<_ACEOF
4934#define ENABLE_THREADS $ENABLE_THREADS
4935_ACEOF
4936
4937
Reid Spencer89b0d992006-12-16 22:07:52 +00004938# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004940 enableval=$enable_pic;
4941else
4942 enableval=default
4943fi
4944
4945case "$enableval" in
4946 yes) ENABLE_PIC=1
4947 ;;
4948 no) ENABLE_PIC=0
4949 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004950 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004951 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4953echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004955esac
4956
4957cat >>confdefs.h <<_ACEOF
4958#define ENABLE_PIC $ENABLE_PIC
4959_ACEOF
4960
4961
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004962# Check whether --enable-shared was given.
4963if test "${enable_shared+set}" = set; then
4964 enableval=$enable_shared;
4965else
4966 enableval=default
4967fi
4968
4969case "$enableval" in
4970 yes) ENABLE_SHARED=1
4971 ;;
4972 no) ENABLE_SHARED=0
4973 ;;
4974 default) ENABLE_SHARED=0
4975 ;;
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4977echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4979esac
4980
Daniel Dunbardd464df2010-05-10 20:11:56 +00004981# Check whether --enable-timestamps was given.
4982if test "${enable_timestamps+set}" = set; then
4983 enableval=$enable_timestamps;
4984else
4985 enableval=default
4986fi
4987
4988case "$enableval" in
4989 yes) ENABLE_TIMESTAMPS=1
4990 ;;
4991 no) ENABLE_TIMESTAMPS=0
4992 ;;
4993 default) ENABLE_TIMESTAMPS=1
4994 ;;
4995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4996echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4997 { (exit 1); exit 1; }; } ;;
4998esac
4999
5000cat >>confdefs.h <<_ACEOF
5001#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5002_ACEOF
5003
5004
Reid Spencera773bd52006-08-04 18:18:08 +00005005TARGETS_TO_BUILD=""
5006# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005007if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005008 enableval=$enable_targets;
5009else
5010 enableval=all
5011fi
5012
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005013if test "$enableval" = host-only ; then
5014 enableval=host
5015fi
Reid Spencera773bd52006-08-04 18:18:08 +00005016case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005017 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 +00005018 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5019 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005020 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5021 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5022 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5023 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5024 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5025 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5026 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5027 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005028 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5029 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5030 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5031 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5032 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005033 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005034 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005035 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005036 host) case "$llvm_cv_target_arch" in
5037 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5038 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5039 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5040 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5041 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5042 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5043 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005044 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005045 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005046 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5047 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005048 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005049 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005050 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005051 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5052echo "$as_me: error: Can not set target to build" >&2;}
5053 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005054 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5056echo "$as_me: error: Unrecognized target $a_target" >&2;}
5057 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005058 esac
5059 done
5060 ;;
5061esac
Reid Spencera773bd52006-08-04 18:18:08 +00005062TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5063
5064
Douglas Gregor0711c302009-06-17 00:43:20 +00005065# Determine whether we are building LLVM support for the native architecture.
5066# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5067for a_target in $TARGETS_TO_BUILD; do
5068 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5069
5070cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005071#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5072_ACEOF
5073
5074 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5075 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5076 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5077
5078cat >>confdefs.h <<_ACEOF
5079#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005080_ACEOF
5081
5082
5083cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005084#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5085_ACEOF
5086
5087
5088cat >>confdefs.h <<_ACEOF
5089#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005090_ACEOF
5091
5092 fi
5093done
5094
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005095# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5096# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005097LLVM_ENUM_TARGETS=""
5098LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005099LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005100LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005101for target_to_build in $TARGETS_TO_BUILD; do
5102 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005103 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005104 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5105 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005106 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5107 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5108 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005109 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5110 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5111 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005112done
5113
5114
5115
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005116
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005117
Reid Spencer65c5d752006-11-05 17:08:18 +00005118# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005119if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005120 enableval=$enable_cbe_printf_a;
5121else
5122 enableval=default
5123fi
5124
5125case "$enableval" in
5126 yes) ENABLE_CBE_PRINTF_A=1
5127 ;;
5128 no) ENABLE_CBE_PRINTF_A=0
5129 ;;
5130 default) ENABLE_CBE_PRINTF_A=1
5131 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5133echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005135esac
5136
5137cat >>confdefs.h <<_ACEOF
5138#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5139_ACEOF
5140
5141
Reid Spencera773bd52006-08-04 18:18:08 +00005142
5143# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005144if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005145 withval=$with_llvmgccdir;
5146else
5147 withval=default
5148fi
5149
5150case "$withval" in
5151 default) WITH_LLVMGCCDIR=default ;;
5152 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005153 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5154echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5155 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005156esac
5157
5158
Devang Patel5d28b882007-12-04 22:54:47 +00005159# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005160if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005161 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5162 WITH_LLVMGCCDIR=""
5163fi
5164
5165
5166
5167# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005168if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005169 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5170 WITH_LLVMGCCDIR=""
5171fi
5172
Douglas Gregor01746742009-05-11 18:05:52 +00005173
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005174if test -n "$LLVMGCC"; then
5175 LLVMGCCCOMMAND="$LLVMGCC"
5176fi
5177
5178if test -n "$LLVMGXX"; then
5179 LLVMGXXCOMMAND="$LLVMGXX"
5180fi
Devang Patel5d28b882007-12-04 22:54:47 +00005181
5182if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005183 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5184echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5185 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005186fi
5187
5188if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5190echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5191 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005192fi
5193
5194
Daniel Dunbar98515672010-02-23 10:00:49 +00005195# Check whether --with-clang was given.
5196if test "${with_clang+set}" = set; then
5197 withval=$with_clang;
5198else
5199 with_clang=default
5200fi
5201
5202
5203
5204# Check whether --with-built-clang was given.
5205if test "${with_built_clang+set}" = set; then
5206 withval=$with_built_clang;
5207else
5208 with_built_clang=check
5209fi
5210
5211
5212{ echo "$as_me:$LINENO: checking clang compiler" >&5
5213echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5214WITH_CLANGPATH=""
5215WITH_BUILT_CLANG=0
5216if test "$with_clang" != "default"; then
5217 WITH_CLANGPATH="$with_clang"
5218 if ! test -x "$WITH_CLANGPATH"; then
5219 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5220echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5221 { (exit 1); exit 1; }; }
5222 fi
5223elif test "$with_built_clang" = "yes"; then
5224 WITH_BUILT_CLANG=1
5225elif test "$with_built_clang" = "no"; then
5226 WITH_BUILT_CLANG=0
5227else
5228 if test "$with_built_clang" != "check"; then
5229 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5230echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5231 { (exit 1); exit 1; }; }
5232 fi
5233
5234 if test -f ${srcdir}/tools/clang/README.txt; then
5235 WITH_BUILT_CLANG=1
5236 fi
5237fi
5238
5239if ! test -z "$WITH_CLANGPATH"; then
5240 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5241echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5242 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5243elif test "$WITH_BUILT_CLANG" = "1"; then
5244 { echo "$as_me:$LINENO: result: built" >&5
5245echo "${ECHO_T}built" >&6; }
5246else
5247 { echo "$as_me:$LINENO: result: none" >&5
5248echo "${ECHO_T}none" >&6; }
5249fi
5250CLANGPATH=$WITH_CLANGPATH
5251
5252CLANGXXPATH=$WITH_CLANGXXPATH
5253
5254ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5255
5256
5257
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005258# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005259if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005260 withval=$with_optimize_option;
5261else
5262 withval=default
5263fi
5264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005265{ echo "$as_me:$LINENO: checking optimization flags" >&5
5266echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005267case "$withval" in
5268 default)
5269 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005270 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005271 MingW) optimize_option=-O2 ;;
5272 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005273 esac ;;
5274 *) optimize_option="$withval" ;;
5275esac
5276OPTIMIZE_OPTION=$optimize_option
5277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005278{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5279echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005280
5281
Reid Spencera773bd52006-08-04 18:18:08 +00005282# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005283if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005284 withval=$with_extra_options;
5285else
5286 withval=default
5287fi
5288
5289case "$withval" in
5290 default) EXTRA_OPTIONS= ;;
5291 *) EXTRA_OPTIONS=$withval ;;
5292esac
5293EXTRA_OPTIONS=$EXTRA_OPTIONS
5294
5295
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005296# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005297if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005298 enableval=$enable_bindings;
5299else
5300 enableval=default
5301fi
5302
5303BINDINGS_TO_BUILD=""
5304case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005305 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005306 all ) BINDINGS_TO_BUILD="ocaml" ;;
5307 none | no) BINDINGS_TO_BUILD="" ;;
5308 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5309 case "$a_binding" in
5310 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005311 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5312echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5313 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005314 esac
5315 done
5316 ;;
5317esac
5318
Reid Spencera773bd52006-08-04 18:18:08 +00005319
Gordon Henriksenf0915682007-10-02 16:42:22 +00005320# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005321if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005322 withval=$with_ocaml_libdir;
5323else
5324 withval=auto
5325fi
5326
5327case "$withval" in
5328 auto) with_ocaml_libdir="$withval" ;;
5329 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005330 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5331echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5332 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005333esac
5334
5335
Chandler Carruth6b241162010-10-19 08:21:25 +00005336# Check whether --with-clang-resource-dir was given.
5337if test "${with_clang_resource_dir+set}" = set; then
5338 withval=$with_clang_resource_dir;
5339else
5340 withval=""
5341fi
5342
5343
5344cat >>confdefs.h <<_ACEOF
5345#define CLANG_RESOURCE_DIR "$withval"
5346_ACEOF
5347
5348
5349
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005350# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005351if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005352 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005353else
5354 withval=""
5355fi
5356
5357
5358cat >>confdefs.h <<_ACEOF
5359#define C_INCLUDE_DIRS "$withval"
5360_ACEOF
5361
5362
5363
Rafael Espindola420d23c2009-11-16 19:46:55 +00005364# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005365if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005366 withval=$with_cxx_include_root;
5367else
5368 withval=""
5369fi
5370
5371
5372cat >>confdefs.h <<_ACEOF
5373#define CXX_INCLUDE_ROOT "$withval"
5374_ACEOF
5375
5376
5377
5378# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005379if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005380 withval=$with_cxx_include_arch;
5381else
5382 withval=""
5383fi
5384
5385
5386cat >>confdefs.h <<_ACEOF
5387#define CXX_INCLUDE_ARCH "$withval"
5388_ACEOF
5389
5390
5391
5392# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005393if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005394 withval=$with_cxx_include_32bit_dir;
5395else
5396 withval=""
5397fi
5398
5399
5400cat >>confdefs.h <<_ACEOF
5401#define CXX_INCLUDE_32BIT_DIR "$withval"
5402_ACEOF
5403
5404
5405
5406# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005407if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005408 withval=$with_cxx_include_64bit_dir;
5409else
5410 withval=""
5411fi
5412
5413
5414cat >>confdefs.h <<_ACEOF
5415#define CXX_INCLUDE_64BIT_DIR "$withval"
5416_ACEOF
5417
5418
5419
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005420# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005421if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005422 withval=$with_binutils_include;
5423else
5424 withval=default
5425fi
5426
5427case "$withval" in
5428 default) WITH_BINUTILS_INCDIR=default ;;
5429 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005430 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5431echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5432 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005433esac
5434if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5435 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5436
5437 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5438 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005439 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5440echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5441 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005442 fi
5443fi
5444
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005445# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005446if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005447 enableval=$enable_libffi; case "$enableval" in
5448 yes) llvm_cv_enable_libffi="yes" ;;
5449 no) llvm_cv_enable_libffi="no" ;;
5450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005451echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005453 esac
5454else
5455 llvm_cv_enable_libffi=no
5456fi
5457
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005458
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005459
Reid Spencera773bd52006-08-04 18:18:08 +00005460ac_ext=c
5461ac_cpp='$CPP $CPPFLAGS'
5462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005465{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5466echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005467# On Suns, sometimes $CPP names a directory.
5468if test -n "$CPP" && test -d "$CPP"; then
5469 CPP=
5470fi
5471if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005472 if test "${ac_cv_prog_CPP+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005474else
5475 # Double quotes because CPP needs to be expanded
5476 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5477 do
5478 ac_preproc_ok=false
5479for ac_c_preproc_warn_flag in '' yes
5480do
5481 # Use a header file that comes with gcc, so configuring glibc
5482 # with a fresh cross-compiler works.
5483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5484 # <limits.h> exists even on freestanding compilers.
5485 # On the NeXT, cc -E runs the code through the compiler's parser,
5486 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005487 cat >conftest.$ac_ext <<_ACEOF
5488/* confdefs.h. */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005492/* end confdefs.h. */
5493#ifdef __STDC__
5494# include <limits.h>
5495#else
5496# include <assert.h>
5497#endif
5498 Syntax error
5499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500if { (ac_try="$ac_cpp conftest.$ac_ext"
5501case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504esac
5505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } >/dev/null; then
5513 if test -s conftest.err; then
5514 ac_cpp_err=$ac_c_preproc_warn_flag
5515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5516 else
5517 ac_cpp_err=
5518 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005520 ac_cpp_err=yes
5521fi
5522if test -z "$ac_cpp_err"; then
5523 :
5524else
5525 echo "$as_me: failed program was:" >&5
5526sed 's/^/| /' conftest.$ac_ext >&5
5527
Reid Spencera773bd52006-08-04 18:18:08 +00005528 # Broken: fails on valid input.
5529continue
5530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005531
Reid Spencera773bd52006-08-04 18:18:08 +00005532rm -f conftest.err conftest.$ac_ext
5533
5534 # OK, works on sane cases. Now check whether nonexistent headers
5535 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005536 cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h. */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005541/* end confdefs.h. */
5542#include <ac_nonexistent.h>
5543_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005544if { (ac_try="$ac_cpp conftest.$ac_ext"
5545case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548esac
5549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null; then
5557 if test -s conftest.err; then
5558 ac_cpp_err=$ac_c_preproc_warn_flag
5559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5560 else
5561 ac_cpp_err=
5562 fi
5563else
5564 ac_cpp_err=yes
5565fi
5566if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005567 # Broken: success on invalid input.
5568continue
5569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005570 echo "$as_me: failed program was:" >&5
5571sed 's/^/| /' conftest.$ac_ext >&5
5572
Reid Spencera773bd52006-08-04 18:18:08 +00005573 # Passes both tests.
5574ac_preproc_ok=:
5575break
5576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005577
Reid Spencera773bd52006-08-04 18:18:08 +00005578rm -f conftest.err conftest.$ac_ext
5579
5580done
5581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5582rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005583if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005584 break
5585fi
5586
5587 done
5588 ac_cv_prog_CPP=$CPP
5589
5590fi
5591 CPP=$ac_cv_prog_CPP
5592else
5593 ac_cv_prog_CPP=$CPP
5594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005595{ echo "$as_me:$LINENO: result: $CPP" >&5
5596echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005597ac_preproc_ok=false
5598for ac_c_preproc_warn_flag in '' yes
5599do
5600 # Use a header file that comes with gcc, so configuring glibc
5601 # with a fresh cross-compiler works.
5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 # <limits.h> exists even on freestanding compilers.
5604 # On the NeXT, cc -E runs the code through the compiler's parser,
5605 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
5613# include <limits.h>
5614#else
5615# include <assert.h>
5616#endif
5617 Syntax error
5618_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005619if { (ac_try="$ac_cpp conftest.$ac_ext"
5620case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623esac
5624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } >/dev/null; then
5632 if test -s conftest.err; then
5633 ac_cpp_err=$ac_c_preproc_warn_flag
5634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5635 else
5636 ac_cpp_err=
5637 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005639 ac_cpp_err=yes
5640fi
5641if test -z "$ac_cpp_err"; then
5642 :
5643else
5644 echo "$as_me: failed program was:" >&5
5645sed 's/^/| /' conftest.$ac_ext >&5
5646
Reid Spencera773bd52006-08-04 18:18:08 +00005647 # Broken: fails on valid input.
5648continue
5649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005650
Reid Spencera773bd52006-08-04 18:18:08 +00005651rm -f conftest.err conftest.$ac_ext
5652
5653 # OK, works on sane cases. Now check whether nonexistent headers
5654 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655 cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h. */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005660/* end confdefs.h. */
5661#include <ac_nonexistent.h>
5662_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005663if { (ac_try="$ac_cpp conftest.$ac_ext"
5664case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } >/dev/null; then
5676 if test -s conftest.err; then
5677 ac_cpp_err=$ac_c_preproc_warn_flag
5678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5679 else
5680 ac_cpp_err=
5681 fi
5682else
5683 ac_cpp_err=yes
5684fi
5685if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005686 # Broken: success on invalid input.
5687continue
5688else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005689 echo "$as_me: failed program was:" >&5
5690sed 's/^/| /' conftest.$ac_ext >&5
5691
Reid Spencera773bd52006-08-04 18:18:08 +00005692 # Passes both tests.
5693ac_preproc_ok=:
5694break
5695fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005696
Reid Spencera773bd52006-08-04 18:18:08 +00005697rm -f conftest.err conftest.$ac_ext
5698
5699done
5700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5701rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005702if $ac_preproc_ok; then
5703 :
Reid Spencera773bd52006-08-04 18:18:08 +00005704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005705 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5706See \`config.log' for more details." >&5
5707echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5708See \`config.log' for more details." >&2;}
5709 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005710fi
5711
5712ac_ext=c
5713ac_cpp='$CPP $CPPFLAGS'
5714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717
5718ac_ext=c
5719ac_cpp='$CPP $CPPFLAGS'
5720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722ac_compiler_gnu=$ac_cv_c_compiler_gnu
5723if test -n "$ac_tool_prefix"; then
5724 for ac_prog in gcc
5725 do
5726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5730if test "${ac_cv_prog_CC+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005732else
5733 if test -n "$CC"; then
5734 ac_cv_prog_CC="$CC" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 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 +00005743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005745 break 2
5746 fi
5747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748done
Reid Spencera773bd52006-08-04 18:18:08 +00005749IFS=$as_save_IFS
5750
5751fi
5752fi
5753CC=$ac_cv_prog_CC
5754if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755 { echo "$as_me:$LINENO: result: $CC" >&5
5756echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758 { echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005760fi
5761
5762
5763 test -n "$CC" && break
5764 done
5765fi
5766if test -z "$CC"; then
5767 ac_ct_CC=$CC
5768 for ac_prog in gcc
5769do
5770 # Extract the first word of "$ac_prog", so it can be a program name with args.
5771set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005776else
5777 if test -n "$ac_ct_CC"; then
5778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 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 +00005787 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005789 break 2
5790 fi
5791done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792done
Reid Spencera773bd52006-08-04 18:18:08 +00005793IFS=$as_save_IFS
5794
5795fi
5796fi
5797ac_ct_CC=$ac_cv_prog_ac_ct_CC
5798if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005799 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5800echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802 { echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005804fi
5805
5806
5807 test -n "$ac_ct_CC" && break
5808done
5809
5810 if test "x$ac_ct_CC" = x; then
5811 CC=""
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5816whose name does not start with the host triplet. If you think this
5817configuration is useful to you, please write to autoconf@gnu.org." >&5
5818echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5819whose name does not start with the host triplet. If you think this
5820configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005821ac_tool_warned=yes ;;
5822esac
5823 CC=$ac_ct_CC
5824 fi
5825fi
5826
5827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5829See \`config.log' for more details." >&5
5830echo "$as_me: error: no acceptable C compiler found in \$PATH
5831See \`config.log' for more details." >&2;}
5832 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005833
5834# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835echo "$as_me:$LINENO: checking for C compiler version" >&5
5836ac_compiler=`set X $ac_compile; echo $2`
5837{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005844 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }
5847{ (ac_try="$ac_compiler -v >&5"
5848case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_compiler -v >&5") 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }
5857{ (ac_try="$ac_compiler -V >&5"
5858case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861esac
5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_compiler -V >&5") 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5869echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5870if test "${ac_cv_c_compiler_gnu+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005872else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005873 cat >conftest.$ac_ext <<_ACEOF
5874/* confdefs.h. */
5875_ACEOF
5876cat confdefs.h >>conftest.$ac_ext
5877cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005878/* end confdefs.h. */
5879
5880int
5881main ()
5882{
5883#ifndef __GNUC__
5884 choke me
5885#endif
5886
5887 ;
5888 return 0;
5889}
5890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891rm -f conftest.$ac_objext
5892if { (ac_try="$ac_compile"
5893case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5906 { (case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_try") 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919esac
5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005925 ac_compiler_gnu=yes
5926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005927 echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005932
Reid Spencera773bd52006-08-04 18:18:08 +00005933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934ac_cv_c_compiler_gnu=$ac_compiler_gnu
5935
5936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5938echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5939GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005940ac_test_CFLAGS=${CFLAGS+set}
5941ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5943echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5944if test "${ac_cv_prog_cc_g+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005946else
5947 ac_save_c_werror_flag=$ac_c_werror_flag
5948 ac_c_werror_flag=yes
5949 ac_cv_prog_cc_g=no
5950 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951 cat >conftest.$ac_ext <<_ACEOF
5952/* confdefs.h. */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005956/* end confdefs.h. */
5957
5958int
5959main ()
5960{
5961
5962 ;
5963 return 0;
5964}
5965_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005966rm -f conftest.$ac_objext
5967if { (ac_try="$ac_compile"
5968case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971esac
5972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_compile") 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5981 { (case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984esac
5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_try") 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994esac
5995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_try") 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006000 ac_cv_prog_cc_g=yes
6001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006002 echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 CFLAGS=""
6006 cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h. */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006011/* end confdefs.h. */
6012
6013int
6014main ()
6015{
6016
6017 ;
6018 return 0;
6019}
6020_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021rm -f conftest.$ac_objext
6022if { (ac_try="$ac_compile"
6023case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compile") 2>conftest.er1
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } &&
6035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6036 { (case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039esac
6040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_try") 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; } &&
6045 { ac_try='test -s conftest.$ac_objext'
6046 { (case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_try") 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 :
Torok Edwin871384f2010-01-26 08:50:50 +00006056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057 echo "$as_me: failed program was:" >&5
6058sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006061 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h. */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006067/* end confdefs.h. */
6068
6069int
6070main ()
6071{
6072
6073 ;
6074 return 0;
6075}
6076_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077rm -f conftest.$ac_objext
6078if { (ac_try="$ac_compile"
6079case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6092 { (case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095esac
6096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_try") 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; } &&
6101 { ac_try='test -s conftest.$ac_objext'
6102 { (case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105esac
6106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_try") 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006111 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112else
6113 echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
6116
Reid Spencera773bd52006-08-04 18:18:08 +00006117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006118
Reid Spencera773bd52006-08-04 18:18:08 +00006119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121
Reid Spencera773bd52006-08-04 18:18:08 +00006122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006124
Reid Spencera773bd52006-08-04 18:18:08 +00006125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 ac_c_werror_flag=$ac_save_c_werror_flag
6127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6129echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006130if test "$ac_test_CFLAGS" = set; then
6131 CFLAGS=$ac_save_CFLAGS
6132elif test $ac_cv_prog_cc_g = yes; then
6133 if test "$GCC" = yes; then
6134 CFLAGS="-g -O2"
6135 else
6136 CFLAGS="-g"
6137 fi
6138else
6139 if test "$GCC" = yes; then
6140 CFLAGS="-O2"
6141 else
6142 CFLAGS=
6143 fi
6144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6146echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6147if test "${ac_cv_prog_cc_c89+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006149else
6150 ac_cv_prog_cc_c89=no
6151ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152cat >conftest.$ac_ext <<_ACEOF
6153/* confdefs.h. */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006157/* end confdefs.h. */
6158#include <stdarg.h>
6159#include <stdio.h>
6160#include <sys/types.h>
6161#include <sys/stat.h>
6162/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6163struct buf { int x; };
6164FILE * (*rcsopen) (struct buf *, struct stat *, int);
6165static char *e (p, i)
6166 char **p;
6167 int i;
6168{
6169 return p[i];
6170}
6171static char *f (char * (*g) (char **, int), char **p, ...)
6172{
6173 char *s;
6174 va_list v;
6175 va_start (v,p);
6176 s = g (p, va_arg (v,int));
6177 va_end (v);
6178 return s;
6179}
6180
6181/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6182 function prototypes and stuff, but not '\xHH' hex character constants.
6183 These don't provoke an error unfortunately, instead are silently treated
6184 as 'x'. The following induces an error, until -std is added to get
6185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6186 array size at least. It's necessary to write '\x00'==0 to get something
6187 that's true only with -std. */
6188int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6189
6190/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6191 inside strings and character constants. */
6192#define FOO(x) 'x'
6193int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6194
6195int test (int i, double x);
6196struct s1 {int (*f) (int a);};
6197struct s2 {int (*f) (double a);};
6198int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6199int argc;
6200char **argv;
6201int
6202main ()
6203{
6204return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6205 ;
6206 return 0;
6207}
6208_ACEOF
6209for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6211do
6212 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213 rm -f conftest.$ac_objext
6214if { (ac_try="$ac_compile"
6215case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218esac
6219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6228 { (case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231esac
6232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_try") 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241esac
6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_try") 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006247 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248else
6249 echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252
Reid Spencera773bd52006-08-04 18:18:08 +00006253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254
Reid Spencera773bd52006-08-04 18:18:08 +00006255rm -f core conftest.err conftest.$ac_objext
6256 test "x$ac_cv_prog_cc_c89" != "xno" && break
6257done
6258rm -f conftest.$ac_ext
6259CC=$ac_save_CC
6260
6261fi
6262# AC_CACHE_VAL
6263case "x$ac_cv_prog_cc_c89" in
6264 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265 { echo "$as_me:$LINENO: result: none needed" >&5
6266echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006267 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268 { echo "$as_me:$LINENO: result: unsupported" >&5
6269echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006270 *)
6271 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6273echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006274esac
6275
6276
6277ac_ext=c
6278ac_cpp='$CPP $CPPFLAGS'
6279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281ac_compiler_gnu=$ac_cv_c_compiler_gnu
6282
6283ac_ext=cpp
6284ac_cpp='$CXXCPP $CPPFLAGS'
6285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6288if test -z "$CXX"; then
6289 if test -n "$CCC"; then
6290 CXX=$CCC
6291 else
6292 if test -n "$ac_tool_prefix"; then
6293 for ac_prog in g++
6294 do
6295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299if test "${ac_cv_prog_CXX+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006301else
6302 if test -n "$CXX"; then
6303 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 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 +00006312 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006314 break 2
6315 fi
6316done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317done
Reid Spencera773bd52006-08-04 18:18:08 +00006318IFS=$as_save_IFS
6319
6320fi
6321fi
6322CXX=$ac_cv_prog_CXX
6323if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324 { echo "$as_me:$LINENO: result: $CXX" >&5
6325echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006327 { echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006329fi
6330
6331
6332 test -n "$CXX" && break
6333 done
6334fi
6335if test -z "$CXX"; then
6336 ac_ct_CXX=$CXX
6337 for ac_prog in g++
6338do
6339 # Extract the first word of "$ac_prog", so it can be a program name with args.
6340set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006345else
6346 if test -n "$ac_ct_CXX"; then
6347 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 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 +00006356 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006358 break 2
6359 fi
6360done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361done
Reid Spencera773bd52006-08-04 18:18:08 +00006362IFS=$as_save_IFS
6363
6364fi
6365fi
6366ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6367if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006368 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6369echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371 { echo "$as_me:$LINENO: result: no" >&5
6372echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006373fi
6374
6375
6376 test -n "$ac_ct_CXX" && break
6377done
6378
6379 if test "x$ac_ct_CXX" = x; then
6380 CXX="g++"
6381 else
6382 case $cross_compiling:$ac_tool_warned in
6383yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6385whose name does not start with the host triplet. If you think this
6386configuration is useful to you, please write to autoconf@gnu.org." >&5
6387echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6388whose name does not start with the host triplet. If you think this
6389configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006390ac_tool_warned=yes ;;
6391esac
6392 CXX=$ac_ct_CXX
6393 fi
6394fi
6395
6396 fi
6397fi
6398# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6400ac_compiler=`set X $ac_compile; echo $2`
6401{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006402case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006408 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }
6411{ (ac_try="$ac_compiler -v >&5"
6412case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415esac
6416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_compiler -v >&5") 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }
6421{ (ac_try="$ac_compiler -V >&5"
6422case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425esac
6426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_compiler -V >&5") 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006432{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6433echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6434if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006437 cat >conftest.$ac_ext <<_ACEOF
6438/* confdefs.h. */
6439_ACEOF
6440cat confdefs.h >>conftest.$ac_ext
6441cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006442/* end confdefs.h. */
6443
6444int
6445main ()
6446{
6447#ifndef __GNUC__
6448 choke me
6449#endif
6450
6451 ;
6452 return 0;
6453}
6454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455rm -f conftest.$ac_objext
6456if { (ac_try="$ac_compile"
6457case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460esac
6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6470 { (case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473esac
6474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483esac
6484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_try") 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006489 ac_compiler_gnu=yes
6490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006491 echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
6494 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006496
Reid Spencera773bd52006-08-04 18:18:08 +00006497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6499
6500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006501{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6502echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6503GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006504ac_test_CXXFLAGS=${CXXFLAGS+set}
6505ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006506{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6507echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6508if test "${ac_cv_prog_cxx_g+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006510else
6511 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6512 ac_cxx_werror_flag=yes
6513 ac_cv_prog_cxx_g=no
6514 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006515 cat >conftest.$ac_ext <<_ACEOF
6516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006520/* end confdefs.h. */
6521
6522int
6523main ()
6524{
6525
6526 ;
6527 return 0;
6528}
6529_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006530rm -f conftest.$ac_objext
6531if { (ac_try="$ac_compile"
6532case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6545 { (case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548esac
6549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_try") 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; } &&
6554 { ac_try='test -s conftest.$ac_objext'
6555 { (case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558esac
6559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560 (eval "$ac_try") 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006564 ac_cv_prog_cxx_g=yes
6565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 CXXFLAGS=""
6570 cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h. */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006575/* end confdefs.h. */
6576
6577int
6578main ()
6579{
6580
6581 ;
6582 return 0;
6583}
6584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585rm -f conftest.$ac_objext
6586if { (ac_try="$ac_compile"
6587case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590esac
6591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6600 { (case "(($ac_try" in
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6603esac
6604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605 (eval "$ac_try") 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613esac
6614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_try") 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 :
Torok Edwin871384f2010-01-26 08:50:50 +00006620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621 echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
6624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006625 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006626 cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h. */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006631/* end confdefs.h. */
6632
6633int
6634main ()
6635{
6636
6637 ;
6638 return 0;
6639}
6640_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006641rm -f conftest.$ac_objext
6642if { (ac_try="$ac_compile"
6643case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646esac
6647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_compile") 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6656 { (case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659esac
6660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_try") 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try='test -s conftest.$ac_objext'
6666 { (case "(($ac_try" in
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6669esac
6670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_try") 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006675 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006676else
6677 echo "$as_me: failed program was:" >&5
6678sed 's/^/| /' conftest.$ac_ext >&5
6679
6680
Reid Spencera773bd52006-08-04 18:18:08 +00006681fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006682
Reid Spencera773bd52006-08-04 18:18:08 +00006683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006685
Reid Spencera773bd52006-08-04 18:18:08 +00006686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688
Reid Spencera773bd52006-08-04 18:18:08 +00006689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6693echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006694if test "$ac_test_CXXFLAGS" = set; then
6695 CXXFLAGS=$ac_save_CXXFLAGS
6696elif test $ac_cv_prog_cxx_g = yes; then
6697 if test "$GXX" = yes; then
6698 CXXFLAGS="-g -O2"
6699 else
6700 CXXFLAGS="-g"
6701 fi
6702else
6703 if test "$GXX" = yes; then
6704 CXXFLAGS="-O2"
6705 else
6706 CXXFLAGS=
6707 fi
6708fi
6709ac_ext=c
6710ac_cpp='$CPP $CPPFLAGS'
6711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714
Reid Spencera773bd52006-08-04 18:18:08 +00006715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006716{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6717echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6718if test "${lt_cv_path_NM+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006720else
6721 if test -n "$NM"; then
6722 # Let the user override the test.
6723 lt_cv_path_NM="$NM"
6724else
6725 lt_nm_to_check="${ac_tool_prefix}nm"
6726 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6727 lt_nm_to_check="$lt_nm_to_check nm"
6728 fi
6729 for lt_tmp_nm in $lt_nm_to_check; do
6730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6731 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6732 IFS="$lt_save_ifs"
6733 test -z "$ac_dir" && ac_dir=.
6734 tmp_nm="$ac_dir/$lt_tmp_nm"
6735 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6736 # Check to see if the nm accepts a BSD-compat flag.
6737 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6738 # nm: unknown option "B" ignored
6739 # Tru64's nm complains that /dev/null is an invalid object file
6740 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6741 */dev/null* | *'Invalid file or object type'*)
6742 lt_cv_path_NM="$tmp_nm -B"
6743 break
6744 ;;
6745 *)
6746 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6747 */dev/null*)
6748 lt_cv_path_NM="$tmp_nm -p"
6749 break
6750 ;;
6751 *)
6752 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6753 continue # so that we can try to find one that supports BSD flags
6754 ;;
6755 esac
6756 ;;
6757 esac
6758 fi
6759 done
6760 IFS="$lt_save_ifs"
6761 done
6762 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6763fi
6764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6766echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006767NM="$lt_cv_path_NM"
6768
6769
6770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771{ echo "$as_me:$LINENO: checking for GNU make" >&5
6772echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6773if test "${llvm_cv_gnu_make_command+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006775else
6776 llvm_cv_gnu_make_command=''
6777 for a in "$MAKE" make gmake gnumake ; do
6778 if test -z "$a" ; then continue ; fi ;
6779 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6780 then
6781 llvm_cv_gnu_make_command=$a ;
6782 break;
6783 fi
6784 done
6785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006786{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6787echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006788 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6789 ifGNUmake='' ;
6790 else
6791 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6793echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006794 fi
6795
6796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6798echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006799LN_S=$as_ln_s
6800if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: yes" >&5
6802echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006803else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6805echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006806fi
6807
6808# Extract the first word of "cmp", so it can be a program name with args.
6809set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812if test "${ac_cv_path_CMP+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006814else
6815 case $CMP in
6816 [\\/]* | ?:[\\/]*)
6817 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6818 ;;
6819 *)
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 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 +00006827 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006829 break 2
6830 fi
6831done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006832done
Reid Spencera773bd52006-08-04 18:18:08 +00006833IFS=$as_save_IFS
6834
6835 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6836 ;;
6837esac
6838fi
6839CMP=$ac_cv_path_CMP
6840if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 { echo "$as_me:$LINENO: result: $CMP" >&5
6842echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 { echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006846fi
6847
6848
6849# Extract the first word of "cp", so it can be a program name with args.
6850set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853if test "${ac_cv_path_CP+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006855else
6856 case $CP in
6857 [\\/]* | ?:[\\/]*)
6858 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6859 ;;
6860 *)
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 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 +00006868 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006870 break 2
6871 fi
6872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006873done
Reid Spencera773bd52006-08-04 18:18:08 +00006874IFS=$as_save_IFS
6875
6876 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6877 ;;
6878esac
6879fi
6880CP=$ac_cv_path_CP
6881if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882 { echo "$as_me:$LINENO: result: $CP" >&5
6883echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885 { echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006887fi
6888
6889
6890# Extract the first word of "date", so it can be a program name with args.
6891set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6894if test "${ac_cv_path_DATE+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006896else
6897 case $DATE in
6898 [\\/]* | ?:[\\/]*)
6899 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6900 ;;
6901 *)
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 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 +00006909 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006911 break 2
6912 fi
6913done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006914done
Reid Spencera773bd52006-08-04 18:18:08 +00006915IFS=$as_save_IFS
6916
6917 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6918 ;;
6919esac
6920fi
6921DATE=$ac_cv_path_DATE
6922if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923 { echo "$as_me:$LINENO: result: $DATE" >&5
6924echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926 { echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006928fi
6929
6930
6931# Extract the first word of "find", so it can be a program name with args.
6932set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6935if test "${ac_cv_path_FIND+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006937else
6938 case $FIND in
6939 [\\/]* | ?:[\\/]*)
6940 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6941 ;;
6942 *)
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 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 +00006950 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006952 break 2
6953 fi
6954done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955done
Reid Spencera773bd52006-08-04 18:18:08 +00006956IFS=$as_save_IFS
6957
6958 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6959 ;;
6960esac
6961fi
6962FIND=$ac_cv_path_FIND
6963if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964 { echo "$as_me:$LINENO: result: $FIND" >&5
6965echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967 { echo "$as_me:$LINENO: result: no" >&5
6968echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006969fi
6970
6971
6972# Extract the first word of "grep", so it can be a program name with args.
6973set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976if test "${ac_cv_path_GREP+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006978else
6979 case $GREP in
6980 [\\/]* | ?:[\\/]*)
6981 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6982 ;;
6983 *)
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 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 +00006991 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006993 break 2
6994 fi
6995done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006996done
Reid Spencera773bd52006-08-04 18:18:08 +00006997IFS=$as_save_IFS
6998
6999 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7000 ;;
7001esac
7002fi
7003GREP=$ac_cv_path_GREP
7004if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005 { echo "$as_me:$LINENO: result: $GREP" >&5
7006echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007007else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007008 { echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007010fi
7011
7012
7013# Extract the first word of "mkdir", so it can be a program name with args.
7014set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017if test "${ac_cv_path_MKDIR+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007019else
7020 case $MKDIR in
7021 [\\/]* | ?:[\\/]*)
7022 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7023 ;;
7024 *)
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 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 +00007032 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007034 break 2
7035 fi
7036done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037done
Reid Spencera773bd52006-08-04 18:18:08 +00007038IFS=$as_save_IFS
7039
7040 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7041 ;;
7042esac
7043fi
7044MKDIR=$ac_cv_path_MKDIR
7045if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7047echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049 { echo "$as_me:$LINENO: result: no" >&5
7050echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007051fi
7052
7053
7054# Extract the first word of "mv", so it can be a program name with args.
7055set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058if test "${ac_cv_path_MV+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007060else
7061 case $MV in
7062 [\\/]* | ?:[\\/]*)
7063 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7064 ;;
7065 *)
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 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 +00007073 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007075 break 2
7076 fi
7077done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007078done
Reid Spencera773bd52006-08-04 18:18:08 +00007079IFS=$as_save_IFS
7080
7081 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7082 ;;
7083esac
7084fi
7085MV=$ac_cv_path_MV
7086if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007087 { echo "$as_me:$LINENO: result: $MV" >&5
7088echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090 { echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007092fi
7093
7094
7095if test -n "$ac_tool_prefix"; then
7096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7097set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_prog_RANLIB+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007102else
7103 if test -n "$RANLIB"; then
7104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 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 +00007113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007115 break 2
7116 fi
7117done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118done
Reid Spencera773bd52006-08-04 18:18:08 +00007119IFS=$as_save_IFS
7120
7121fi
7122fi
7123RANLIB=$ac_cv_prog_RANLIB
7124if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007125 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7126echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007128 { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007130fi
7131
7132
7133fi
7134if test -z "$ac_cv_prog_RANLIB"; then
7135 ac_ct_RANLIB=$RANLIB
7136 # Extract the first word of "ranlib", so it can be a program name with args.
7137set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007142else
7143 if test -n "$ac_ct_RANLIB"; then
7144 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 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 +00007153 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007155 break 2
7156 fi
7157done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007158done
Reid Spencera773bd52006-08-04 18:18:08 +00007159IFS=$as_save_IFS
7160
7161fi
7162fi
7163ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7164if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007165 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7166echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007168 { echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007170fi
7171
7172 if test "x$ac_ct_RANLIB" = x; then
7173 RANLIB=":"
7174 else
7175 case $cross_compiling:$ac_tool_warned in
7176yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7178whose name does not start with the host triplet. If you think this
7179configuration is useful to you, please write to autoconf@gnu.org." >&5
7180echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7181whose name does not start with the host triplet. If you think this
7182configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007183ac_tool_warned=yes ;;
7184esac
7185 RANLIB=$ac_ct_RANLIB
7186 fi
7187else
7188 RANLIB="$ac_cv_prog_RANLIB"
7189fi
7190
Torok Edwin871384f2010-01-26 08:50:50 +00007191if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7193set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196if test "${ac_cv_prog_AR+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007198else
7199 if test -n "$AR"; then
7200 ac_cv_prog_AR="$AR" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 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 +00007209 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007211 break 2
7212 fi
7213done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214done
Torok Edwin871384f2010-01-26 08:50:50 +00007215IFS=$as_save_IFS
7216
7217fi
7218fi
7219AR=$ac_cv_prog_AR
7220if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221 { echo "$as_me:$LINENO: result: $AR" >&5
7222echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007223else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224 { echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007226fi
7227
7228
7229fi
7230if test -z "$ac_cv_prog_AR"; then
7231 ac_ct_AR=$AR
7232 # Extract the first word of "ar", so it can be a program name with args.
7233set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007238else
7239 if test -n "$ac_ct_AR"; then
7240 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7241else
7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 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 +00007249 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007251 break 2
7252 fi
7253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254done
Torok Edwin871384f2010-01-26 08:50:50 +00007255IFS=$as_save_IFS
7256
7257fi
7258fi
7259ac_ct_AR=$ac_cv_prog_ac_ct_AR
7260if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7262echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 { echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007266fi
7267
7268 if test "x$ac_ct_AR" = x; then
7269 AR="false"
7270 else
7271 case $cross_compiling:$ac_tool_warned in
7272yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7274whose name does not start with the host triplet. If you think this
7275configuration is useful to you, please write to autoconf@gnu.org." >&5
7276echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7277whose name does not start with the host triplet. If you think this
7278configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007279ac_tool_warned=yes ;;
7280esac
7281 AR=$ac_ct_AR
7282 fi
7283else
7284 AR="$ac_cv_prog_AR"
7285fi
7286
Reid Spencera773bd52006-08-04 18:18:08 +00007287# Extract the first word of "rm", so it can be a program name with args.
7288set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007289{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7291if test "${ac_cv_path_RM+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007293else
7294 case $RM in
7295 [\\/]* | ?:[\\/]*)
7296 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7297 ;;
7298 *)
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 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 +00007306 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007308 break 2
7309 fi
7310done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311done
Reid Spencera773bd52006-08-04 18:18:08 +00007312IFS=$as_save_IFS
7313
7314 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7315 ;;
7316esac
7317fi
7318RM=$ac_cv_path_RM
7319if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 { echo "$as_me:$LINENO: result: $RM" >&5
7321echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007322else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323 { echo "$as_me:$LINENO: result: no" >&5
7324echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007325fi
7326
7327
7328# Extract the first word of "sed", so it can be a program name with args.
7329set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7332if test "${ac_cv_path_SED+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007334else
7335 case $SED in
7336 [\\/]* | ?:[\\/]*)
7337 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7338 ;;
7339 *)
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341for as_dir in $PATH
7342do
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 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 +00007347 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007349 break 2
7350 fi
7351done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007352done
Reid Spencera773bd52006-08-04 18:18:08 +00007353IFS=$as_save_IFS
7354
7355 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7356 ;;
7357esac
7358fi
7359SED=$ac_cv_path_SED
7360if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361 { echo "$as_me:$LINENO: result: $SED" >&5
7362echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364 { echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007366fi
7367
7368
7369# Extract the first word of "tar", so it can be a program name with args.
7370set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7373if test "${ac_cv_path_TAR+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007375else
7376 case $TAR in
7377 [\\/]* | ?:[\\/]*)
7378 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7379 ;;
7380 *)
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 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 +00007388 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007390 break 2
7391 fi
7392done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393done
Reid Spencera773bd52006-08-04 18:18:08 +00007394IFS=$as_save_IFS
7395
7396 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7397 ;;
7398esac
7399fi
7400TAR=$ac_cv_path_TAR
7401if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402 { echo "$as_me:$LINENO: result: $TAR" >&5
7403echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405 { echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007407fi
7408
7409
7410# Extract the first word of "pwd", so it can be a program name with args.
7411set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414if test "${ac_cv_path_BINPWD+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007416else
7417 case $BINPWD in
7418 [\\/]* | ?:[\\/]*)
7419 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7420 ;;
7421 *)
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 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 +00007429 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007431 break 2
7432 fi
7433done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434done
Reid Spencera773bd52006-08-04 18:18:08 +00007435IFS=$as_save_IFS
7436
7437 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7438 ;;
7439esac
7440fi
7441BINPWD=$ac_cv_path_BINPWD
7442if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7444echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007448fi
7449
7450
7451
7452# Extract the first word of "Graphviz", so it can be a program name with args.
7453set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007458else
7459 case $GRAPHVIZ in
7460 [\\/]* | ?:[\\/]*)
7461 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7462 ;;
7463 *)
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 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 +00007471 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007473 break 2
7474 fi
7475done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476done
Reid Spencera773bd52006-08-04 18:18:08 +00007477IFS=$as_save_IFS
7478
7479 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7480 ;;
7481esac
7482fi
7483GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7484if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007485 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7486echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007488 { echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007490fi
7491
7492
7493if test "$GRAPHVIZ" != "echo Graphviz" ; then
7494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495cat >>confdefs.h <<\_ACEOF
7496#define HAVE_GRAPHVIZ 1
7497_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007498
Jeff Cohen28783c32007-01-12 18:22:38 +00007499 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007500 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7501 fi
7502
7503cat >>confdefs.h <<_ACEOF
7504#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7505_ACEOF
7506
7507fi
7508# Extract the first word of "dot", so it can be a program name with args.
7509set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512if test "${ac_cv_path_DOT+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007514else
7515 case $DOT in
7516 [\\/]* | ?:[\\/]*)
7517 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7518 ;;
7519 *)
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 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 +00007527 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007529 break 2
7530 fi
7531done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532done
Reid Spencera773bd52006-08-04 18:18:08 +00007533IFS=$as_save_IFS
7534
7535 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7536 ;;
7537esac
7538fi
7539DOT=$ac_cv_path_DOT
7540if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541 { echo "$as_me:$LINENO: result: $DOT" >&5
7542echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 { echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007546fi
7547
7548
7549if test "$DOT" != "echo dot" ; then
7550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551cat >>confdefs.h <<\_ACEOF
7552#define HAVE_DOT 1
7553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007554
Jeff Cohen28783c32007-01-12 18:22:38 +00007555 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007556 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7557 fi
7558
7559cat >>confdefs.h <<_ACEOF
7560#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7561_ACEOF
7562
7563fi
David Greenef0b9eff2009-07-09 17:16:26 +00007564# Extract the first word of "fdp", so it can be a program name with args.
7565set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568if test "${ac_cv_path_FDP+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007570else
7571 case $FDP in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7574 ;;
7575 *)
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 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 +00007583 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007585 break 2
7586 fi
7587done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588done
David Greenef0b9eff2009-07-09 17:16:26 +00007589IFS=$as_save_IFS
7590
7591 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7592 ;;
7593esac
7594fi
7595FDP=$ac_cv_path_FDP
7596if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007597 { echo "$as_me:$LINENO: result: $FDP" >&5
7598echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007599else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007600 { echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007602fi
7603
7604
7605if test "$FDP" != "echo fdp" ; then
7606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607cat >>confdefs.h <<\_ACEOF
7608#define HAVE_FDP 1
7609_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007610
7611 if test "$llvm_cv_os_type" = "MingW" ; then
7612 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7613 fi
7614
7615cat >>confdefs.h <<_ACEOF
7616#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7617_ACEOF
7618
7619fi
7620# Extract the first word of "neato", so it can be a program name with args.
7621set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624if test "${ac_cv_path_NEATO+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007626else
7627 case $NEATO in
7628 [\\/]* | ?:[\\/]*)
7629 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7630 ;;
7631 *)
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 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 +00007639 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007641 break 2
7642 fi
7643done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644done
David Greenef0b9eff2009-07-09 17:16:26 +00007645IFS=$as_save_IFS
7646
7647 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7648 ;;
7649esac
7650fi
7651NEATO=$ac_cv_path_NEATO
7652if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653 { echo "$as_me:$LINENO: result: $NEATO" >&5
7654echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007655else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007656 { echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007658fi
7659
7660
7661if test "$NEATO" != "echo neato" ; then
7662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007663cat >>confdefs.h <<\_ACEOF
7664#define HAVE_NEATO 1
7665_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007666
7667 if test "$llvm_cv_os_type" = "MingW" ; then
7668 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7669 fi
7670
7671cat >>confdefs.h <<_ACEOF
7672#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7673_ACEOF
7674
7675fi
7676# Extract the first word of "twopi", so it can be a program name with args.
7677set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680if test "${ac_cv_path_TWOPI+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007682else
7683 case $TWOPI in
7684 [\\/]* | ?:[\\/]*)
7685 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7686 ;;
7687 *)
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 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 +00007695 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007697 break 2
7698 fi
7699done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700done
David Greenef0b9eff2009-07-09 17:16:26 +00007701IFS=$as_save_IFS
7702
7703 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7704 ;;
7705esac
7706fi
7707TWOPI=$ac_cv_path_TWOPI
7708if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007709 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7710echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007712 { echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007714fi
7715
7716
7717if test "$TWOPI" != "echo twopi" ; then
7718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719cat >>confdefs.h <<\_ACEOF
7720#define HAVE_TWOPI 1
7721_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007722
7723 if test "$llvm_cv_os_type" = "MingW" ; then
7724 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7725 fi
7726
7727cat >>confdefs.h <<_ACEOF
7728#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7729_ACEOF
7730
7731fi
7732# Extract the first word of "circo", so it can be a program name with args.
7733set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736if test "${ac_cv_path_CIRCO+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007738else
7739 case $CIRCO in
7740 [\\/]* | ?:[\\/]*)
7741 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7742 ;;
7743 *)
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 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 +00007751 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007753 break 2
7754 fi
7755done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756done
David Greenef0b9eff2009-07-09 17:16:26 +00007757IFS=$as_save_IFS
7758
7759 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7760 ;;
7761esac
7762fi
7763CIRCO=$ac_cv_path_CIRCO
7764if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7766echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007768 { echo "$as_me:$LINENO: result: no" >&5
7769echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007770fi
7771
7772
7773if test "$CIRCO" != "echo circo" ; then
7774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007775cat >>confdefs.h <<\_ACEOF
7776#define HAVE_CIRCO 1
7777_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007778
7779 if test "$llvm_cv_os_type" = "MingW" ; then
7780 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7781 fi
7782
7783cat >>confdefs.h <<_ACEOF
7784#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7785_ACEOF
7786
7787fi
Reid Spencera773bd52006-08-04 18:18:08 +00007788for ac_prog in gv gsview32
7789do
7790 # Extract the first word of "$ac_prog", so it can be a program name with args.
7791set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794if test "${ac_cv_path_GV+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007796else
7797 case $GV in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7800 ;;
7801 *)
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 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 +00007809 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007811 break 2
7812 fi
7813done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814done
Reid Spencera773bd52006-08-04 18:18:08 +00007815IFS=$as_save_IFS
7816
7817 ;;
7818esac
7819fi
7820GV=$ac_cv_path_GV
7821if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822 { echo "$as_me:$LINENO: result: $GV" >&5
7823echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007825 { echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007827fi
7828
7829
7830 test -n "$GV" && break
7831done
7832test -n "$GV" || GV="echo gv"
7833
7834if test "$GV" != "echo gv" ; then
7835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836cat >>confdefs.h <<\_ACEOF
7837#define HAVE_GV 1
7838_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007839
Jeff Cohen28783c32007-01-12 18:22:38 +00007840 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007841 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7842 fi
7843
7844cat >>confdefs.h <<_ACEOF
7845#define LLVM_PATH_GV "$GV${EXEEXT}"
7846_ACEOF
7847
7848fi
7849# Extract the first word of "dotty", so it can be a program name with args.
7850set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7853if test "${ac_cv_path_DOTTY+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007855else
7856 case $DOTTY in
7857 [\\/]* | ?:[\\/]*)
7858 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7859 ;;
7860 *)
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 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 +00007868 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007870 break 2
7871 fi
7872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007873done
Reid Spencera773bd52006-08-04 18:18:08 +00007874IFS=$as_save_IFS
7875
7876 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7877 ;;
7878esac
7879fi
7880DOTTY=$ac_cv_path_DOTTY
7881if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7883echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007885 { echo "$as_me:$LINENO: result: no" >&5
7886echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007887fi
7888
7889
7890if test "$DOTTY" != "echo dotty" ; then
7891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007892cat >>confdefs.h <<\_ACEOF
7893#define HAVE_DOTTY 1
7894_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007895
Jeff Cohen28783c32007-01-12 18:22:38 +00007896 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007897 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7898 fi
7899
7900cat >>confdefs.h <<_ACEOF
7901#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7902_ACEOF
7903
7904fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007905# Extract the first word of "xdot.py", so it can be a program name with args.
7906set dummy xdot.py; ac_word=$2
7907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909if test "${ac_cv_path_XDOT_PY+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 case $XDOT_PY in
7913 [\\/]* | ?:[\\/]*)
7914 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7915 ;;
7916 *)
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7924 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7927 fi
7928done
7929done
7930IFS=$as_save_IFS
7931
7932 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7933 ;;
7934esac
7935fi
7936XDOT_PY=$ac_cv_path_XDOT_PY
7937if test -n "$XDOT_PY"; then
7938 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7939echo "${ECHO_T}$XDOT_PY" >&6; }
7940else
7941 { echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6; }
7943fi
7944
7945
7946if test "$XDOT_PY" != "echo xdot.py" ; then
7947
7948cat >>confdefs.h <<\_ACEOF
7949#define HAVE_XDOT_PY 1
7950_ACEOF
7951
7952 if test "$llvm_cv_os_type" = "MingW" ; then
7953 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7954 fi
7955
7956cat >>confdefs.h <<_ACEOF
7957#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7958_ACEOF
7959
7960fi
Reid Spencera773bd52006-08-04 18:18:08 +00007961
7962
7963# Extract the first word of "perl", so it can be a program name with args.
7964set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7967if test "${ac_cv_path_PERL+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007969else
7970 case $PERL in
7971 [\\/]* | ?:[\\/]*)
7972 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7973 ;;
7974 *)
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976for as_dir in $PATH
7977do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 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 +00007982 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007984 break 2
7985 fi
7986done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007987done
Reid Spencera773bd52006-08-04 18:18:08 +00007988IFS=$as_save_IFS
7989
7990 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7991 ;;
7992esac
7993fi
7994PERL=$ac_cv_path_PERL
7995if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007996 { echo "$as_me:$LINENO: result: $PERL" >&5
7997echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007999 { echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008001fi
8002
8003
8004if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008005 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8006echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008007 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008 { echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008010 else
8011 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008012 { echo "$as_me:$LINENO: result: not found" >&5
8013echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008014 fi
8015fi
8016
8017
8018if test x"$PERL" = xnone; then
8019 HAVE_PERL=0
8020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8022echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8023 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008024else
8025 HAVE_PERL=1
8026
8027fi
8028
8029# Find a good install program. We prefer a C program (faster),
8030# so one script is as good as another. But avoid the broken or
8031# incompatible versions:
8032# SysV /etc/install, /usr/sbin/install
8033# SunOS /usr/etc/install
8034# IRIX /sbin/install
8035# AIX /bin/install
8036# AmigaOS /C/install, which installs bootblocks on floppy discs
8037# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8038# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8039# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8040# OS/2's system install, which has a completely different semantic
8041# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008042{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8043echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008044if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008045if test "${ac_cv_path_install+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008047else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049for as_dir in $PATH
8050do
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008053 # Account for people who put trailing slashes in PATH elements.
8054case $as_dir/ in
8055 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008058 /usr/ucb/* ) ;;
8059 *)
8060 # OSF1 and SCO ODT 3.0 have their own names for install.
8061 # Don't use installbsd from OSF since it installs stuff as root
8062 # by default.
8063 for ac_prog in ginstall scoinst install; do
8064 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065 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 +00008066 if test $ac_prog = install &&
8067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8068 # AIX install. It has an incompatible calling convention.
8069 :
8070 elif test $ac_prog = install &&
8071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8072 # program-specific install script used by HP pwplus--don't use.
8073 :
8074 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8076 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008077 fi
8078 fi
8079 done
8080 done
8081 ;;
8082esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083done
Reid Spencera773bd52006-08-04 18:18:08 +00008084IFS=$as_save_IFS
8085
8086
8087fi
8088 if test "${ac_cv_path_install+set}" = set; then
8089 INSTALL=$ac_cv_path_install
8090 else
8091 # As a last resort, use the slow shell script. Don't cache a
8092 # value for INSTALL within a source directory, because that will
8093 # break other packages using the cache if that directory is
8094 # removed, or if the value is a relative name.
8095 INSTALL=$ac_install_sh
8096 fi
8097fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008098{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8099echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008100
8101# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8102# It thinks the first close brace ends the variable substitution.
8103test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8104
8105test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8106
8107test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8108
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008109case "$INSTALL" in
8110 [\\/$]* | ?:[\\/]* ) ;;
8111 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8112esac
Reid Spencera773bd52006-08-04 18:18:08 +00008113
8114# Extract the first word of "bzip2", so it can be a program name with args.
8115set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8118if test "${ac_cv_path_BZIP2+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008120else
8121 case $BZIP2 in
8122 [\\/]* | ?:[\\/]*)
8123 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8124 ;;
8125 *)
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 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 +00008133 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008135 break 2
8136 fi
8137done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138done
Reid Spencera773bd52006-08-04 18:18:08 +00008139IFS=$as_save_IFS
8140
Reid Spencera773bd52006-08-04 18:18:08 +00008141 ;;
8142esac
8143fi
8144BZIP2=$ac_cv_path_BZIP2
8145if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8147echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149 { echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008151fi
8152
8153
mike-m68cb3192010-05-06 23:45:43 +00008154# Extract the first word of "cat", so it can be a program name with args.
8155set dummy cat; ac_word=$2
8156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8158if test "${ac_cv_path_CAT+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161 case $CAT in
8162 [\\/]* | ?:[\\/]*)
8163 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8164 ;;
8165 *)
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8173 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 break 2
8176 fi
8177done
8178done
8179IFS=$as_save_IFS
8180
8181 ;;
8182esac
8183fi
8184CAT=$ac_cv_path_CAT
8185if test -n "$CAT"; then
8186 { echo "$as_me:$LINENO: result: $CAT" >&5
8187echo "${ECHO_T}$CAT" >&6; }
8188else
8189 { echo "$as_me:$LINENO: result: no" >&5
8190echo "${ECHO_T}no" >&6; }
8191fi
8192
8193
Reid Spencera773bd52006-08-04 18:18:08 +00008194# Extract the first word of "doxygen", so it can be a program name with args.
8195set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8198if test "${ac_cv_path_DOXYGEN+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008200else
8201 case $DOXYGEN in
8202 [\\/]* | ?:[\\/]*)
8203 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8204 ;;
8205 *)
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207for as_dir in $PATH
8208do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 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 +00008213 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008215 break 2
8216 fi
8217done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218done
Reid Spencera773bd52006-08-04 18:18:08 +00008219IFS=$as_save_IFS
8220
Reid Spencera773bd52006-08-04 18:18:08 +00008221 ;;
8222esac
8223fi
8224DOXYGEN=$ac_cv_path_DOXYGEN
8225if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8227echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229 { echo "$as_me:$LINENO: result: no" >&5
8230echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008231fi
8232
8233
Reid Spencera773bd52006-08-04 18:18:08 +00008234# Extract the first word of "groff", so it can be a program name with args.
8235set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238if test "${ac_cv_path_GROFF+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008240else
8241 case $GROFF in
8242 [\\/]* | ?:[\\/]*)
8243 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8244 ;;
8245 *)
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 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 +00008253 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008255 break 2
8256 fi
8257done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008258done
Reid Spencera773bd52006-08-04 18:18:08 +00008259IFS=$as_save_IFS
8260
Reid Spencera773bd52006-08-04 18:18:08 +00008261 ;;
8262esac
8263fi
8264GROFF=$ac_cv_path_GROFF
8265if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008266 { echo "$as_me:$LINENO: result: $GROFF" >&5
8267echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269 { echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008271fi
8272
8273
8274# Extract the first word of "gzip", so it can be a program name with args.
8275set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8278if test "${ac_cv_path_GZIP+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008280else
8281 case $GZIP in
8282 [\\/]* | ?:[\\/]*)
8283 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8284 ;;
8285 *)
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 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 +00008293 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008295 break 2
8296 fi
8297done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298done
Reid Spencera773bd52006-08-04 18:18:08 +00008299IFS=$as_save_IFS
8300
Reid Spencera773bd52006-08-04 18:18:08 +00008301 ;;
8302esac
8303fi
8304GZIP=$ac_cv_path_GZIP
8305if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008306 { echo "$as_me:$LINENO: result: $GZIP" >&5
8307echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008309 { echo "$as_me:$LINENO: result: no" >&5
8310echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008311fi
8312
8313
8314# Extract the first word of "pod2html", so it can be a program name with args.
8315set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318if test "${ac_cv_path_POD2HTML+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008320else
8321 case $POD2HTML in
8322 [\\/]* | ?:[\\/]*)
8323 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8324 ;;
8325 *)
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 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 +00008333 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008335 break 2
8336 fi
8337done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338done
Reid Spencera773bd52006-08-04 18:18:08 +00008339IFS=$as_save_IFS
8340
Reid Spencera773bd52006-08-04 18:18:08 +00008341 ;;
8342esac
8343fi
8344POD2HTML=$ac_cv_path_POD2HTML
8345if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008346 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8347echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008348else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349 { echo "$as_me:$LINENO: result: no" >&5
8350echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008351fi
8352
8353
8354# Extract the first word of "pod2man", so it can be a program name with args.
8355set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358if test "${ac_cv_path_POD2MAN+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008360else
8361 case $POD2MAN in
8362 [\\/]* | ?:[\\/]*)
8363 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8364 ;;
8365 *)
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 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 +00008373 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008375 break 2
8376 fi
8377done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378done
Reid Spencera773bd52006-08-04 18:18:08 +00008379IFS=$as_save_IFS
8380
Reid Spencera773bd52006-08-04 18:18:08 +00008381 ;;
8382esac
8383fi
8384POD2MAN=$ac_cv_path_POD2MAN
8385if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8387echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389 { echo "$as_me:$LINENO: result: no" >&5
8390echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008391fi
8392
8393
mike-m68cb3192010-05-06 23:45:43 +00008394# Extract the first word of "pdfroff", so it can be a program name with args.
8395set dummy pdfroff; ac_word=$2
8396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398if test "${ac_cv_path_PDFROFF+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400else
8401 case $PDFROFF in
8402 [\\/]* | ?:[\\/]*)
8403 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8404 ;;
8405 *)
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417done
8418done
8419IFS=$as_save_IFS
8420
8421 ;;
8422esac
8423fi
8424PDFROFF=$ac_cv_path_PDFROFF
8425if test -n "$PDFROFF"; then
8426 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8427echo "${ECHO_T}$PDFROFF" >&6; }
8428else
8429 { echo "$as_me:$LINENO: result: no" >&5
8430echo "${ECHO_T}no" >&6; }
8431fi
8432
8433
Reid Spencera773bd52006-08-04 18:18:08 +00008434# Extract the first word of "runtest", so it can be a program name with args.
8435set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8438if test "${ac_cv_path_RUNTEST+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008440else
8441 case $RUNTEST in
8442 [\\/]* | ?:[\\/]*)
8443 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8444 ;;
8445 *)
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 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 +00008453 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008455 break 2
8456 fi
8457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458done
Reid Spencera773bd52006-08-04 18:18:08 +00008459IFS=$as_save_IFS
8460
Reid Spencera773bd52006-08-04 18:18:08 +00008461 ;;
8462esac
8463fi
8464RUNTEST=$ac_cv_path_RUNTEST
8465if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008466 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8467echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008468else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008469 { echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008471fi
8472
8473
8474
8475no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008476{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8477echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008478
8479# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008480if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008481 withval=$with_tclinclude; with_tclinclude=${withval}
8482else
8483 with_tclinclude=''
8484fi
8485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008486if test "${ac_cv_path_tclsh+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008488else
8489
8490if test x"${with_tclinclude}" != x ; then
8491 if test -f ${with_tclinclude}/tclsh ; then
8492 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8493 elif test -f ${with_tclinclude}/src/tclsh ; then
8494 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8495 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008496 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8497echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8498 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008499 fi
8500fi
Torok Edwin871384f2010-01-26 08:50:50 +00008501fi
8502
Reid Spencera773bd52006-08-04 18:18:08 +00008503
8504if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008505 { echo "$as_me:$LINENO: result: none" >&5
8506echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008507 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
8508do
8509 # Extract the first word of "$ac_prog", so it can be a program name with args.
8510set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8513if test "${ac_cv_path_TCLSH+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008515else
8516 case $TCLSH in
8517 [\\/]* | ?:[\\/]*)
8518 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8519 ;;
8520 *)
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522for as_dir in $PATH
8523do
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 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 +00008528 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008530 break 2
8531 fi
8532done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008533done
Reid Spencera773bd52006-08-04 18:18:08 +00008534IFS=$as_save_IFS
8535
8536 ;;
8537esac
8538fi
8539TCLSH=$ac_cv_path_TCLSH
8540if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8542echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544 { echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008546fi
8547
8548
8549 test -n "$TCLSH" && break
8550done
8551
8552 if test x"${TCLSH}" = x ; then
8553 ac_cv_path_tclsh='';
8554 else
8555 ac_cv_path_tclsh="${TCLSH}";
8556 fi
8557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8559echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008560 TCLSH="${ac_cv_path_tclsh}"
8561
8562fi
8563
Reid Spencera773bd52006-08-04 18:18:08 +00008564# Extract the first word of "zip", so it can be a program name with args.
8565set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8568if test "${ac_cv_path_ZIP+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008570else
8571 case $ZIP in
8572 [\\/]* | ?:[\\/]*)
8573 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8574 ;;
8575 *)
8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577for as_dir in $PATH
8578do
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 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 +00008583 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008585 break 2
8586 fi
8587done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588done
Reid Spencera773bd52006-08-04 18:18:08 +00008589IFS=$as_save_IFS
8590
Reid Spencera773bd52006-08-04 18:18:08 +00008591 ;;
8592esac
8593fi
8594ZIP=$ac_cv_path_ZIP
8595if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008596 { echo "$as_me:$LINENO: result: $ZIP" >&5
8597echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008599 { echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008601fi
8602
8603
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008604for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008605do
8606 # Extract the first word of "$ac_prog", so it can be a program name with args.
8607set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8610if test "${ac_cv_path_OCAMLC+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008612else
8613 case $OCAMLC in
8614 [\\/]* | ?:[\\/]*)
8615 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8616 ;;
8617 *)
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619for as_dir in $PATH
8620do
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 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 +00008625 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008627 break 2
8628 fi
8629done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008630done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008631IFS=$as_save_IFS
8632
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008633 ;;
8634esac
8635fi
8636OCAMLC=$ac_cv_path_OCAMLC
8637if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008638 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8639echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008640else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008641 { echo "$as_me:$LINENO: result: no" >&5
8642echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008643fi
8644
8645
Gordon Henriksene7072162008-03-07 18:20:01 +00008646 test -n "$OCAMLC" && break
8647done
8648
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008649for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008650do
8651 # Extract the first word of "$ac_prog", so it can be a program name with args.
8652set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8655if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008657else
8658 case $OCAMLOPT in
8659 [\\/]* | ?:[\\/]*)
8660 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8661 ;;
8662 *)
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 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 +00008670 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008672 break 2
8673 fi
8674done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008676IFS=$as_save_IFS
8677
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008678 ;;
8679esac
8680fi
8681OCAMLOPT=$ac_cv_path_OCAMLOPT
8682if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008683 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8684echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008685else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008686 { echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008688fi
8689
8690
Gordon Henriksene7072162008-03-07 18:20:01 +00008691 test -n "$OCAMLOPT" && break
8692done
8693
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008694for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008695do
8696 # Extract the first word of "$ac_prog", so it can be a program name with args.
8697set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8700if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008702else
8703 case $OCAMLDEP in
8704 [\\/]* | ?:[\\/]*)
8705 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8706 ;;
8707 *)
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709for as_dir in $PATH
8710do
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 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 +00008715 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008717 break 2
8718 fi
8719done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008720done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008721IFS=$as_save_IFS
8722
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008723 ;;
8724esac
8725fi
8726OCAMLDEP=$ac_cv_path_OCAMLDEP
8727if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008728 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8729echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008731 { echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008733fi
8734
8735
Gordon Henriksene7072162008-03-07 18:20:01 +00008736 test -n "$OCAMLDEP" && break
8737done
8738
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008739for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008740do
8741 # Extract the first word of "$ac_prog", so it can be a program name with args.
8742set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8745if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008747else
8748 case $OCAMLDOC in
8749 [\\/]* | ?:[\\/]*)
8750 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8751 ;;
8752 *)
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754for as_dir in $PATH
8755do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 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 +00008760 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008762 break 2
8763 fi
8764done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008765done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008766IFS=$as_save_IFS
8767
8768 ;;
8769esac
8770fi
8771OCAMLDOC=$ac_cv_path_OCAMLDOC
8772if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008773 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8774echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008776 { echo "$as_me:$LINENO: result: no" >&5
8777echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008778fi
8779
8780
8781 test -n "$OCAMLDOC" && break
8782done
8783
Torok Edwincc499a42008-10-22 09:56:27 +00008784for ac_prog in gas as
8785do
8786 # Extract the first word of "$ac_prog", so it can be a program name with args.
8787set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8790if test "${ac_cv_path_GAS+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008792else
8793 case $GAS in
8794 [\\/]* | ?:[\\/]*)
8795 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8796 ;;
8797 *)
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799for as_dir in $PATH
8800do
8801 IFS=$as_save_IFS
8802 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 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 +00008805 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008807 break 2
8808 fi
8809done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008810done
Torok Edwincc499a42008-10-22 09:56:27 +00008811IFS=$as_save_IFS
8812
8813 ;;
8814esac
8815fi
8816GAS=$ac_cv_path_GAS
8817if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008818 { echo "$as_me:$LINENO: result: $GAS" >&5
8819echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008821 { echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008823fi
8824
8825
8826 test -n "$GAS" && break
8827done
8828
Reid Spencera773bd52006-08-04 18:18:08 +00008829
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008830{ echo "$as_me:$LINENO: checking for linker version" >&5
8831echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8832if test "${llvm_cv_link_version+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834else
8835
8836 version_string="$(ld -v 2>&1 | head -1)"
8837
8838 # Check for ld64.
8839 if (echo "$version_string" | grep -q "ld64"); then
8840 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8841 else
8842 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8843 fi
8844
8845fi
8846{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8847echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8848
8849cat >>confdefs.h <<_ACEOF
8850#define HOST_LINK_VERSION "$llvm_cv_link_version"
8851_ACEOF
8852
8853
8854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008855{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8856echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8857if test "${llvm_cv_link_use_r+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008859else
8860 ac_ext=c
8861ac_cpp='$CPP $CPPFLAGS'
8862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8864ac_compiler_gnu=$ac_cv_c_compiler_gnu
8865
8866 oldcflags="$CFLAGS"
8867 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008868 cat >conftest.$ac_ext <<_ACEOF
8869/* confdefs.h. */
8870_ACEOF
8871cat confdefs.h >>conftest.$ac_ext
8872cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008873/* end confdefs.h. */
8874
8875int
8876main ()
8877{
Dan Gohman39ed6782010-04-25 00:12:20 +00008878
Reid Spencera773bd52006-08-04 18:18:08 +00008879 ;
8880 return 0;
8881}
8882_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008883rm -f conftest.$ac_objext conftest$ac_exeext
8884if { (ac_try="$ac_link"
8885case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888esac
8889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890 (eval "$ac_link") 2>conftest.er1
8891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
8897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8898 { (case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901esac
8902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_try") 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911esac
8912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008917 llvm_cv_link_use_r=yes
8918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008919 echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008923fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008924
Bill Wendlingebcceee2009-04-18 11:20:33 +00008925rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008926 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008927 CFLAGS="$oldcflags"
8928 ac_ext=c
8929ac_cpp='$CPP $CPPFLAGS'
8930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932ac_compiler_gnu=$ac_cv_c_compiler_gnu
8933
8934
8935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008936{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8937echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008938if test "$llvm_cv_link_use_r" = yes ; then
8939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008940cat >>confdefs.h <<\_ACEOF
8941#define HAVE_LINK_R 1
8942_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008943
8944 fi
8945
8946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008947{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8948echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8949if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008951else
8952 ac_ext=c
8953ac_cpp='$CPP $CPPFLAGS'
8954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957
8958 oldcflags="$CFLAGS"
8959 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008960 cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h. */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008965/* end confdefs.h. */
8966
8967int
8968main ()
8969{
Dan Gohman39ed6782010-04-25 00:12:20 +00008970
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008971 ;
8972 return 0;
8973}
8974_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008975rm -f conftest.$ac_objext conftest$ac_exeext
8976if { (ac_try="$ac_link"
8977case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980esac
8981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_link") 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8990 { (case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993esac
8994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_try") 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; } &&
8999 { ac_try='test -s conftest$ac_exeext'
9000 { (case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003esac
9004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_try") 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009009 llvm_cv_link_use_export_dynamic=yes
9010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009011 echo "$as_me: failed program was:" >&5
9012sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009016
Bill Wendlingebcceee2009-04-18 11:20:33 +00009017rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009018 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009019 CFLAGS="$oldcflags"
9020 ac_ext=c
9021ac_cpp='$CPP $CPPFLAGS'
9022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9024ac_compiler_gnu=$ac_cv_c_compiler_gnu
9025
9026
9027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009028{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9029echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009030if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009032cat >>confdefs.h <<\_ACEOF
9033#define HAVE_LINK_EXPORT_DYNAMIC 1
9034_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009035
9036 fi
9037
9038
Dan Gohmanda612d62010-06-01 14:56:56 +00009039{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9040echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9041if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043else
9044 ac_ext=c
9045ac_cpp='$CPP $CPPFLAGS'
9046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9048ac_compiler_gnu=$ac_cv_c_compiler_gnu
9049
9050 oldcflags="$CFLAGS"
9051
9052 # The following code is from the autoconf manual,
9053 # "11.13: Limitations of Usual Tools".
9054 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9055 # Use mktemp if possible; otherwise fall back on mkdir,
9056 # with $RANDOM to make collisions less likely.
9057 : ${TMPDIR=/tmp}
9058 {
9059 tmp=`
9060 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9061 ` &&
9062 test -n "$tmp" && test -d "$tmp"
9063 } || {
9064 tmp=$TMPDIR/foo$$-$RANDOM
9065 (umask 077 && mkdir "$tmp")
9066 } || exit $?
9067
Dan Gohmanda612d62010-06-01 14:56:56 +00009068 echo "{" > "$tmp/export.map"
9069 echo " global: main;" >> "$tmp/export.map"
9070 echo " local: *;" >> "$tmp/export.map"
9071 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009072
Dan Gohmanda612d62010-06-01 14:56:56 +00009073 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009074 cat >conftest.$ac_ext <<_ACEOF
9075/* confdefs.h. */
9076_ACEOF
9077cat confdefs.h >>conftest.$ac_ext
9078cat >>conftest.$ac_ext <<_ACEOF
9079/* end confdefs.h. */
9080
9081int
9082main ()
9083{
Dan Gohman39ed6782010-04-25 00:12:20 +00009084
Dan Gohman391569c2010-04-16 22:59:06 +00009085 ;
9086 return 0;
9087}
9088_ACEOF
9089rm -f conftest.$ac_objext conftest$ac_exeext
9090if { (ac_try="$ac_link"
9091case "(($ac_try" in
9092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093 *) ac_try_echo=$ac_try;;
9094esac
9095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096 (eval "$ac_link") 2>conftest.er1
9097 ac_status=$?
9098 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -f conftest.er1
9100 cat conftest.err >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9104 { (case "(($ac_try" in
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9107esac
9108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_try") 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest$ac_exeext'
9114 { (case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9117esac
9118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_try") 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009123 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009124else
9125 echo "$as_me: failed program was:" >&5
9126sed 's/^/| /' conftest.$ac_ext >&5
9127
Dan Gohman943005e2010-06-01 16:22:27 +00009128 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009129fi
9130
9131rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009133 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009134 rmdir "$tmp"
9135 CFLAGS="$oldcflags"
9136 ac_ext=c
9137ac_cpp='$CPP $CPPFLAGS'
9138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9140ac_compiler_gnu=$ac_cv_c_compiler_gnu
9141
9142
9143fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009144{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9145echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9146if test "$llvm_cv_link_use_version_script" = yes ; then
9147 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009148
9149 fi
9150
9151
Reid Spencera773bd52006-08-04 18:18:08 +00009152
9153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009154{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9155echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9156if test "${ac_cv_c_const+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009159 cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h. */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009164/* end confdefs.h. */
9165
9166int
9167main ()
9168{
9169/* FIXME: Include the comments suggested by Paul. */
9170#ifndef __cplusplus
9171 /* Ultrix mips cc rejects this. */
9172 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009173 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009174 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009175 char const *const *ccp;
9176 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009177 /* NEC SVR4.0.2 mips cc rejects this. */
9178 struct point {int x, y;};
9179 static struct point const zero = {0,0};
9180 /* AIX XL C 1.02.0.0 rejects this.
9181 It does not let you subtract one const X* pointer from another in
9182 an arm of an if-expression whose if-part is not a constant
9183 expression */
9184 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009185 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009186 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009187 ++ccp;
9188 p = (char**) ccp;
9189 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009190 { /* SCO 3.2v4 cc rejects this. */
9191 char *t;
9192 char const *s = 0 ? (char *) 0 : (char const *) 0;
9193
9194 *t++ = 0;
9195 if (s) return 0;
9196 }
9197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9198 int x[] = {25, 17};
9199 const int *foo = &x[0];
9200 ++foo;
9201 }
9202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9203 typedef const int *iptr;
9204 iptr p = 0;
9205 ++p;
9206 }
9207 { /* AIX XL C 1.02.0.0 rejects this saying
9208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9209 struct s { int j; const int *ap[3]; };
9210 struct s *b; b->j = 5;
9211 }
9212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9213 const int foo = 10;
9214 if (!foo) return 0;
9215 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009216 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009217#endif
9218
9219 ;
9220 return 0;
9221}
9222_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009223rm -f conftest.$ac_objext
9224if { (ac_try="$ac_compile"
9225case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228esac
9229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9238 { (case "(($ac_try" in
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9241esac
9242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_try") 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; } &&
9247 { ac_try='test -s conftest.$ac_objext'
9248 { (case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9251esac
9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_try") 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009257 ac_cv_c_const=yes
9258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259 echo "$as_me: failed program was:" >&5
9260sed 's/^/| /' conftest.$ac_ext >&5
9261
9262 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009264
Reid Spencera773bd52006-08-04 18:18:08 +00009265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009267{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9268echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009269if test $ac_cv_c_const = no; then
9270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009271cat >>confdefs.h <<\_ACEOF
9272#define const
9273_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009274
9275fi
9276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009277
9278
9279
9280
9281
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282ac_header_dirent=no
9283for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009284 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9285{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9286echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009290 cat >conftest.$ac_ext <<_ACEOF
9291/* confdefs.h. */
9292_ACEOF
9293cat confdefs.h >>conftest.$ac_ext
9294cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009295/* end confdefs.h. */
9296#include <sys/types.h>
9297#include <$ac_hdr>
9298
9299int
9300main ()
9301{
9302if ((DIR *) 0)
9303return 0;
9304 ;
9305 return 0;
9306}
9307_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009308rm -f conftest.$ac_objext
9309if { (ac_try="$ac_compile"
9310case "(($ac_try" in
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9313esac
9314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_compile") 2>conftest.er1
9316 ac_status=$?
9317 grep -v '^ *+' conftest.er1 >conftest.err
9318 rm -f conftest.er1
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } &&
9322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9323 { (case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326esac
9327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_try") 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; } &&
9332 { ac_try='test -s conftest.$ac_objext'
9333 { (case "(($ac_try" in
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9336esac
9337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_try") 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342 eval "$as_ac_Header=yes"
9343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009344 echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009349
Reid Spencera773bd52006-08-04 18:18:08 +00009350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009352ac_res=`eval echo '${'$as_ac_Header'}'`
9353 { echo "$as_me:$LINENO: result: $ac_res" >&5
9354echo "${ECHO_T}$ac_res" >&6; }
9355if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009356 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009357#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009358_ACEOF
9359
9360ac_header_dirent=$ac_hdr; break
9361fi
9362
9363done
9364# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9365if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009366 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9367echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9368if test "${ac_cv_search_opendir+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370else
9371 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009372cat >conftest.$ac_ext <<_ACEOF
9373/* confdefs.h. */
9374_ACEOF
9375cat confdefs.h >>conftest.$ac_ext
9376cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009377/* end confdefs.h. */
9378
Reid Spencera773bd52006-08-04 18:18:08 +00009379/* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382#ifdef __cplusplus
9383extern "C"
9384#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385char opendir ();
9386int
9387main ()
9388{
Reid Spencera773bd52006-08-04 18:18:08 +00009389return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009390 ;
9391 return 0;
9392}
9393_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009394for ac_lib in '' dir; do
9395 if test -z "$ac_lib"; then
9396 ac_res="none required"
9397 else
9398 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009400 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009401 rm -f conftest.$ac_objext conftest$ac_exeext
9402if { (ac_try="$ac_link"
9403case "(($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_link") 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9416 { (case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419esac
9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_try") 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (case "(($ac_try" in
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9429esac
9430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_try") 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009435 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009436else
9437 echo "$as_me: failed program was:" >&5
9438sed 's/^/| /' conftest.$ac_ext >&5
9439
9440
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009442
Bill Wendlingebcceee2009-04-18 11:20:33 +00009443rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009444 conftest$ac_exeext
9445 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009446 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009447fi
John Criswell7a73b802003-06-30 21:59:07 +00009448done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009449if test "${ac_cv_search_opendir+set}" = set; then
9450 :
Reid Spencera773bd52006-08-04 18:18:08 +00009451else
9452 ac_cv_search_opendir=no
9453fi
9454rm conftest.$ac_ext
9455LIBS=$ac_func_search_save_LIBS
9456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009457{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9458echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009459ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009460if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009462
Reid Spencera773bd52006-08-04 18:18:08 +00009463fi
9464
9465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009466 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9467echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9468if test "${ac_cv_search_opendir+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009470else
9471 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009472cat >conftest.$ac_ext <<_ACEOF
9473/* confdefs.h. */
9474_ACEOF
9475cat confdefs.h >>conftest.$ac_ext
9476cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009477/* end confdefs.h. */
9478
9479/* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9482#ifdef __cplusplus
9483extern "C"
9484#endif
9485char opendir ();
9486int
9487main ()
9488{
9489return opendir ();
9490 ;
9491 return 0;
9492}
9493_ACEOF
9494for ac_lib in '' x; do
9495 if test -z "$ac_lib"; then
9496 ac_res="none required"
9497 else
9498 ac_res=-l$ac_lib
9499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9500 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009501 rm -f conftest.$ac_objext conftest$ac_exeext
9502if { (ac_try="$ac_link"
9503case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_link") 2>conftest.er1
9509 ac_status=$?
9510 grep -v '^ *+' conftest.er1 >conftest.err
9511 rm -f conftest.er1
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9516 { (case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519esac
9520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521 (eval "$ac_try") 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (case "(($ac_try" in
9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9528 *) ac_try_echo=$ac_try;;
9529esac
9530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9531 (eval "$ac_try") 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009535 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009536else
9537 echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
9539
9540
Reid Spencera773bd52006-08-04 18:18:08 +00009541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009542
Bill Wendlingebcceee2009-04-18 11:20:33 +00009543rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009544 conftest$ac_exeext
9545 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009546 break
9547fi
9548done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009549if test "${ac_cv_search_opendir+set}" = set; then
9550 :
Reid Spencera773bd52006-08-04 18:18:08 +00009551else
9552 ac_cv_search_opendir=no
9553fi
9554rm conftest.$ac_ext
9555LIBS=$ac_func_search_save_LIBS
9556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009557{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9558echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009559ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009560if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9562
9563fi
9564
9565fi
John Criswell7a73b802003-06-30 21:59:07 +00009566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009567
John Criswell7a73b802003-06-30 21:59:07 +00009568for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009569do
9570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576fi
9577ac_res=`eval echo '${'$as_ac_Header'}'`
9578 { echo "$as_me:$LINENO: result: $ac_res" >&5
9579echo "${ECHO_T}$ac_res" >&6; }
9580else
9581 # Is the header compilable?
9582{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9584cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h. */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h. */
9590$ac_includes_default
9591#include <$ac_header>
9592_ACEOF
9593rm -f conftest.$ac_objext
9594if { (ac_try="$ac_compile"
9595case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598esac
9599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_compile") 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9608 { (case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611esac
9612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_try") 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest.$ac_objext'
9618 { (case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621esac
9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_try") 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 ac_header_compiler=yes
9628else
9629 echo "$as_me: failed program was:" >&5
9630sed 's/^/| /' conftest.$ac_ext >&5
9631
9632 ac_header_compiler=no
9633fi
9634
9635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9636{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9637echo "${ECHO_T}$ac_header_compiler" >&6; }
9638
9639# Is the header present?
9640{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9641echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9642cat >conftest.$ac_ext <<_ACEOF
9643/* confdefs.h. */
9644_ACEOF
9645cat confdefs.h >>conftest.$ac_ext
9646cat >>conftest.$ac_ext <<_ACEOF
9647/* end confdefs.h. */
9648#include <$ac_header>
9649_ACEOF
9650if { (ac_try="$ac_cpp conftest.$ac_ext"
9651case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654esac
9655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } >/dev/null; then
9663 if test -s conftest.err; then
9664 ac_cpp_err=$ac_c_preproc_warn_flag
9665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9666 else
9667 ac_cpp_err=
9668 fi
9669else
9670 ac_cpp_err=yes
9671fi
9672if test -z "$ac_cpp_err"; then
9673 ac_header_preproc=yes
9674else
9675 echo "$as_me: failed program was:" >&5
9676sed 's/^/| /' conftest.$ac_ext >&5
9677
9678 ac_header_preproc=no
9679fi
9680
9681rm -f conftest.err conftest.$ac_ext
9682{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9683echo "${ECHO_T}$ac_header_preproc" >&6; }
9684
9685# So? What about this header?
9686case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9687 yes:no: )
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9689echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9691echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9692 ac_header_preproc=yes
9693 ;;
9694 no:yes:* )
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9696echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9698echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9700echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9702echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9704echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9706echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9707 ( cat <<\_ASBOX
9708## ----------------------------------- ##
9709## Report this to llvmbugs@cs.uiuc.edu ##
9710## ----------------------------------- ##
9711_ASBOX
9712 ) | sed "s/^/$as_me: WARNING: /" >&2
9713 ;;
9714esac
9715{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9719else
9720 eval "$as_ac_Header=\$ac_header_preproc"
9721fi
9722ac_res=`eval echo '${'$as_ac_Header'}'`
9723 { echo "$as_me:$LINENO: result: $ac_res" >&5
9724echo "${ECHO_T}$ac_res" >&6; }
9725
9726fi
9727if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009728 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009730_ACEOF
9731
9732fi
9733
9734done
9735
Reid Spencera773bd52006-08-04 18:18:08 +00009736# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009737if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009738 enableval=$enable_ltdl_install;
9739fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009742
9743
9744if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745 INSTALL_LTDL_TRUE=
9746 INSTALL_LTDL_FALSE='#'
9747else
9748 INSTALL_LTDL_TRUE='#'
9749 INSTALL_LTDL_FALSE=
9750fi
9751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009752
9753
9754if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755 CONVENIENCE_LTDL_TRUE=
9756 CONVENIENCE_LTDL_FALSE='#'
9757else
9758 CONVENIENCE_LTDL_TRUE='#'
9759 CONVENIENCE_LTDL_FALSE=
9760fi
9761
9762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009763{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9764echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765library_names_spec=
9766libname_spec='lib$name'
9767soname_spec=
9768shrext_cmds=".so"
9769postinstall_cmds=
9770postuninstall_cmds=
9771finish_cmds=
9772finish_eval=
9773shlibpath_var=
9774shlibpath_overrides_runpath=unknown
9775version_type=none
9776dynamic_linker="$host_os ld.so"
9777sys_lib_dlsearch_path_spec="/lib /usr/lib"
9778if test "$GCC" = yes; then
9779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9780 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9781 # if the path contains ";" then we assume it to be the separator
9782 # otherwise default to the standard path separator (i.e. ":") - it is
9783 # assumed that no part of a normal pathname contains ";" but that should
9784 # okay in the real world where ";" in dirpaths is itself problematic.
9785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9786 else
9787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9788 fi
9789else
9790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9791fi
9792need_lib_prefix=unknown
9793hardcode_into_libs=no
9794
9795# when you set need_version to no, make sure it does not cause -set_version
9796# flags to be left without arguments
9797need_version=unknown
9798
9799case $host_os in
9800aix3*)
9801 version_type=linux
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9803 shlibpath_var=LIBPATH
9804
9805 # AIX 3 has no versioning support, so we append a major version to the name.
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 ;;
9808
9809aix4* | aix5*)
9810 version_type=linux
9811 need_lib_prefix=no
9812 need_version=no
9813 hardcode_into_libs=yes
9814 if test "$host_cpu" = ia64; then
9815 # AIX 5 supports IA64
9816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 else
9819 # With GCC up to 2.95.x, collect2 would create an import file
9820 # for dependence libraries. The import file would start with
9821 # the line `#! .'. This would cause the generated library to
9822 # depend on `.', always an invalid library. This was fixed in
9823 # development snapshots of GCC prior to 3.0.
9824 case $host_os in
9825 aix4 | aix4.[01] | aix4.[01].*)
9826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9827 echo ' yes '
9828 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9829 :
9830 else
9831 can_build_shared=no
9832 fi
9833 ;;
9834 esac
9835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9836 # soname into executable. Probably we can add versioning support to
9837 # collect2, so additional links can be useful in future.
9838 if test "$aix_use_runtimelinking" = yes; then
9839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9840 # instead of lib<name>.a to let people know that these are not
9841 # typical AIX shared libraries.
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843 else
9844 # We preserve .a as extension for shared libraries through AIX4.2
9845 # and later when we are not doing run time linking.
9846 library_names_spec='${libname}${release}.a $libname.a'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9848 fi
9849 shlibpath_var=LIBPATH
9850 fi
9851 ;;
9852
9853amigaos*)
9854 library_names_spec='$libname.ixlibrary $libname.a'
9855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9856 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'
9857 ;;
9858
9859beos*)
9860 library_names_spec='${libname}${shared_ext}'
9861 dynamic_linker="$host_os ld.so"
9862 shlibpath_var=LIBRARY_PATH
9863 ;;
9864
9865bsdi[45]*)
9866 version_type=linux
9867 need_version=no
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9874 # the default ld.so.conf also contains /usr/contrib/lib and
9875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9876 # libtool to hard-code these into programs
9877 ;;
9878
9879cygwin* | mingw* | pw32*)
9880 version_type=windows
9881 shrext_cmds=".dll"
9882 need_version=no
9883 need_lib_prefix=no
9884
9885 case $GCC,$host_os in
9886 yes,cygwin* | yes,mingw* | yes,pw32*)
9887 library_names_spec='$libname.dll.a'
9888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9889 postinstall_cmds='base_file=`basename \${file}`~
9890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9891 dldir=$destdir/`dirname \$dlpath`~
9892 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009893 $install_prog $dir/$dlname \$dldir/$dlname~
9894 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9896 dlpath=$dir/\$dldll~
9897 $rm \$dlpath'
9898 shlibpath_overrides_runpath=yes
9899
9900 case $host_os in
9901 cygwin*)
9902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9904 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9905 ;;
9906 mingw*)
9907 # MinGW DLLs use traditional 'lib' prefix
9908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9909 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9910 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9911 # It is most probably a Windows format PATH printed by
9912 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9913 # path with ; separators, and with drive letters. We can handle the
9914 # drive letters (cygwin fileutils understands them), so leave them,
9915 # especially as we might pass files found there to a mingw objdump,
9916 # which wouldn't understand a cygwinified path. Ahh.
9917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9918 else
9919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9920 fi
9921 ;;
9922 pw32*)
9923 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009924 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 +00009925 ;;
9926 esac
9927 ;;
9928
9929 *)
9930 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9931 ;;
9932 esac
9933 dynamic_linker='Win32 ld.exe'
9934 # FIXME: first we should search . and the directory the executable is in
9935 shlibpath_var=PATH
9936 ;;
9937
9938darwin* | rhapsody*)
9939 dynamic_linker="$host_os dyld"
9940 version_type=darwin
9941 need_lib_prefix=no
9942 need_version=no
9943 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9944 soname_spec='${libname}${release}${major}$shared_ext'
9945 shlibpath_overrides_runpath=yes
9946 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009947 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9949 if test "$GCC" = yes; then
9950 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"`
9951 else
9952 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9953 fi
9954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9955 ;;
9956
9957dgux*)
9958 version_type=linux
9959 need_lib_prefix=no
9960 need_version=no
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 ;;
9965
9966freebsd1*)
9967 dynamic_linker=no
9968 ;;
9969
9970kfreebsd*-gnu)
9971 version_type=linux
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=no
9978 hardcode_into_libs=yes
9979 dynamic_linker='GNU ld.so'
9980 ;;
9981
Reid Spencera773bd52006-08-04 18:18:08 +00009982freebsd* | dragonfly*)
9983 # DragonFly does not have aout. When/if they implement a new
9984 # versioning mechanism, adjust this.
9985 if test -x /usr/bin/objformat; then
9986 objformat=`/usr/bin/objformat`
9987 else
9988 case $host_os in
9989 freebsd[123]*) objformat=aout ;;
9990 *) objformat=elf ;;
9991 esac
9992 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009993 version_type=freebsd-$objformat
9994 case $version_type in
9995 freebsd-elf*)
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9997 need_version=no
9998 need_lib_prefix=no
9999 ;;
10000 freebsd-*)
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10002 need_version=yes
10003 ;;
10004 esac
10005 shlibpath_var=LD_LIBRARY_PATH
10006 case $host_os in
10007 freebsd2*)
10008 shlibpath_overrides_runpath=yes
10009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010010 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011 shlibpath_overrides_runpath=yes
10012 hardcode_into_libs=yes
10013 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010014 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10015 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016 shlibpath_overrides_runpath=no
10017 hardcode_into_libs=yes
10018 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010019 freebsd*) # from 4.6 on
10020 shlibpath_overrides_runpath=yes
10021 hardcode_into_libs=yes
10022 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023 esac
10024 ;;
10025
10026gnu*)
10027 version_type=linux
10028 need_lib_prefix=no
10029 need_version=no
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 hardcode_into_libs=yes
10034 ;;
10035
10036hpux9* | hpux10* | hpux11*)
10037 # Give a soname corresponding to the major version so that dld.sl refuses to
10038 # link against other versions.
10039 version_type=sunos
10040 need_lib_prefix=no
10041 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010042 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043 ia64*)
10044 shrext_cmds='.so'
10045 hardcode_into_libs=yes
10046 dynamic_linker="$host_os dld.so"
10047 shlibpath_var=LD_LIBRARY_PATH
10048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 if test "X$HPUX_IA64_MODE" = X32; then
10052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10053 else
10054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10055 fi
10056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10057 ;;
10058 hppa*64*)
10059 shrext_cmds='.sl'
10060 hardcode_into_libs=yes
10061 dynamic_linker="$host_os dld.sl"
10062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10068 ;;
10069 *)
10070 shrext_cmds='.sl'
10071 dynamic_linker="$host_os dld.sl"
10072 shlibpath_var=SHLIB_PATH
10073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 ;;
10077 esac
10078 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10079 postinstall_cmds='chmod 555 $lib'
10080 ;;
10081
Reid Spencera773bd52006-08-04 18:18:08 +000010082interix3*)
10083 version_type=linux
10084 need_lib_prefix=no
10085 need_version=no
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=no
10091 hardcode_into_libs=yes
10092 ;;
10093
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094irix5* | irix6* | nonstopux*)
10095 case $host_os in
10096 nonstopux*) version_type=nonstopux ;;
10097 *)
10098 if test "$lt_cv_prog_gnu_ld" = yes; then
10099 version_type=linux
10100 else
10101 version_type=irix
10102 fi ;;
10103 esac
10104 need_lib_prefix=no
10105 need_version=no
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10108 case $host_os in
10109 irix5* | nonstopux*)
10110 libsuff= shlibsuff=
10111 ;;
10112 *)
10113 case $LD in # libtool.m4 will add one of these switches to LD
10114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10115 libsuff= shlibsuff= libmagic=32-bit;;
10116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10117 libsuff=32 shlibsuff=N32 libmagic=N32;;
10118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10120 *) libsuff= shlibsuff= libmagic=never-match;;
10121 esac
10122 ;;
10123 esac
10124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10125 shlibpath_overrides_runpath=no
10126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10128 hardcode_into_libs=yes
10129 ;;
10130
10131# No shared lib support for Linux oldld, aout, or coff.
10132linux*oldld* | linux*aout* | linux*coff*)
10133 dynamic_linker=no
10134 ;;
10135
10136# This must be Linux ELF.
10137linux*)
10138 version_type=linux
10139 need_lib_prefix=no
10140 need_version=no
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=no
10146 # This implies no fast_install, which is unacceptable.
10147 # Some rework will be needed to allow for fast_install
10148 # before this can be enabled.
10149 hardcode_into_libs=yes
10150
10151 # Append ld.so.conf contents to the search path
10152 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010153 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 +000010154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10155 fi
10156
10157 # We used to test for /lib/ld.so.1 and disable shared libraries on
10158 # powerpc, because MkLinux only supported shared libraries with the
10159 # GNU dynamic linker. Since this was broken with cross compilers,
10160 # most powerpc-linux boxes support dynamic linking these days and
10161 # people can always --disable-shared, the test was removed, and we
10162 # assume the GNU/Linux dynamic linker is in use.
10163 dynamic_linker='GNU/Linux ld.so'
10164 ;;
10165
10166knetbsd*-gnu)
10167 version_type=linux
10168 need_lib_prefix=no
10169 need_version=no
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=no
10174 hardcode_into_libs=yes
10175 dynamic_linker='GNU ld.so'
10176 ;;
10177
10178netbsd*)
10179 version_type=sunos
10180 need_lib_prefix=no
10181 need_version=no
10182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10185 dynamic_linker='NetBSD (a.out) ld.so'
10186 else
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 dynamic_linker='NetBSD ld.elf_so'
10190 fi
10191 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes
10193 hardcode_into_libs=yes
10194 ;;
10195
10196newsos6)
10197 version_type=linux
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 shlibpath_overrides_runpath=yes
10201 ;;
10202
10203nto-qnx*)
10204 version_type=linux
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10211 ;;
10212
10213openbsd*)
10214 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010215 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010217 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10218 case $host_os in
10219 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10220 *) need_version=no ;;
10221 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10224 shlibpath_var=LD_LIBRARY_PATH
10225 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10226 case $host_os in
10227 openbsd2.[89] | openbsd2.[89].*)
10228 shlibpath_overrides_runpath=no
10229 ;;
10230 *)
10231 shlibpath_overrides_runpath=yes
10232 ;;
10233 esac
10234 else
10235 shlibpath_overrides_runpath=yes
10236 fi
10237 ;;
10238
10239os2*)
10240 libname_spec='$name'
10241 shrext_cmds=".dll"
10242 need_lib_prefix=no
10243 library_names_spec='$libname${shared_ext} $libname.a'
10244 dynamic_linker='OS/2 ld.exe'
10245 shlibpath_var=LIBPATH
10246 ;;
10247
10248osf3* | osf4* | osf5*)
10249 version_type=osf
10250 need_lib_prefix=no
10251 need_version=no
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10256 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10257 ;;
10258
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010259solaris*)
10260 version_type=linux
10261 need_lib_prefix=no
10262 need_version=no
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10264 soname_spec='${libname}${release}${shared_ext}$major'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 shlibpath_overrides_runpath=yes
10267 hardcode_into_libs=yes
10268 # ldd complains unless libraries are executable
10269 postinstall_cmds='chmod +x $lib'
10270 ;;
10271
10272sunos4*)
10273 version_type=sunos
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=yes
10278 if test "$with_gnu_ld" = yes; then
10279 need_lib_prefix=no
10280 fi
10281 need_version=yes
10282 ;;
10283
Reid Spencera773bd52006-08-04 18:18:08 +000010284sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285 version_type=linux
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 case $host_vendor in
10290 sni)
10291 shlibpath_overrides_runpath=no
10292 need_lib_prefix=no
10293 export_dynamic_flag_spec='${wl}-Blargedynsym'
10294 runpath_var=LD_RUN_PATH
10295 ;;
10296 siemens)
10297 need_lib_prefix=no
10298 ;;
10299 motorola)
10300 need_lib_prefix=no
10301 need_version=no
10302 shlibpath_overrides_runpath=no
10303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10304 ;;
10305 esac
10306 ;;
10307
10308sysv4*MP*)
10309 if test -d /usr/nec ;then
10310 version_type=linux
10311 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10312 soname_spec='$libname${shared_ext}.$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 fi
10315 ;;
10316
Reid Spencera773bd52006-08-04 18:18:08 +000010317sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10318 version_type=freebsd-elf
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 hardcode_into_libs=yes
10325 if test "$with_gnu_ld" = yes; then
10326 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10327 shlibpath_overrides_runpath=no
10328 else
10329 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10330 shlibpath_overrides_runpath=yes
10331 case $host_os in
10332 sco3.2v5*)
10333 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10334 ;;
10335 esac
10336 fi
10337 sys_lib_dlsearch_path_spec='/usr/lib'
10338 ;;
10339
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010340uts4*)
10341 version_type=linux
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 ;;
10346
10347*)
10348 dynamic_linker=no
10349 ;;
10350esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010351{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10352echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353test "$dynamic_linker" = no && can_build_shared=no
10354
Reid Spencera773bd52006-08-04 18:18:08 +000010355variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10356if test "$GCC" = yes; then
10357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10358fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359
Reid Spencera773bd52006-08-04 18:18:08 +000010360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010361{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10362echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10363if test "${libltdl_cv_shlibext+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010365else
10366
10367module=yes
10368eval libltdl_cv_shlibext=$shrext_cmds
10369
10370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010371{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10372echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010373if test -n "$libltdl_cv_shlibext"; then
10374
10375cat >>confdefs.h <<_ACEOF
10376#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10377_ACEOF
10378
10379fi
10380
10381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010382{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10383echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10384if test "${libltdl_cv_shlibpath_var+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386else
10387 libltdl_cv_shlibpath_var="$shlibpath_var"
10388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010389{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10390echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010391if test -n "$libltdl_cv_shlibpath_var"; then
10392
10393cat >>confdefs.h <<_ACEOF
10394#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10395_ACEOF
10396
10397fi
10398
10399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010400{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10401echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10402if test "${libltdl_cv_sys_search_path+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404else
10405 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010407{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10408echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010409if test -n "$libltdl_cv_sys_search_path"; then
10410 sys_search_path=
10411 for dir in $libltdl_cv_sys_search_path; do
10412 if test -z "$sys_search_path"; then
10413 sys_search_path="$dir"
10414 else
10415 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10416 fi
10417 done
10418
10419cat >>confdefs.h <<_ACEOF
10420#define LTDL_SYSSEARCHPATH "$sys_search_path"
10421_ACEOF
10422
10423fi
10424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010425{ echo "$as_me:$LINENO: checking for objdir" >&5
10426echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10427if test "${libltdl_cv_objdir+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429else
10430 libltdl_cv_objdir="$objdir"
10431 if test -n "$objdir"; then
10432 :
10433 else
10434 rm -f .libs 2>/dev/null
10435 mkdir .libs 2>/dev/null
10436 if test -d .libs; then
10437 libltdl_cv_objdir=.libs
10438 else
10439 # MS-DOS does not allow filenames that begin with a dot.
10440 libltdl_cv_objdir=_libs
10441 fi
10442 rmdir .libs 2>/dev/null
10443 fi
10444
10445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010446{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10447echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448
10449cat >>confdefs.h <<_ACEOF
10450#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10451_ACEOF
10452
10453
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454
10455
10456
10457
10458# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010459{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10460echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10461if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010463else
10464
10465# These are sane defaults that work on at least a few old systems.
10466# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10467
10468# Character class describing NM global symbol codes.
10469symcode='[BCDEGRST]'
10470
10471# Regexp to match symbols that can be accessed directly from C.
10472sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10473
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474# Transform an extracted symbol line into a proper C declaration
10475lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10476
10477# Transform an extracted symbol line into symbol name and symbol address
10478lt_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'"
10479
10480# Define system-specific variables.
10481case $host_os in
10482aix*)
10483 symcode='[BCDT]'
10484 ;;
10485cygwin* | mingw* | pw32*)
10486 symcode='[ABCDGISTW]'
10487 ;;
10488hpux*) # Its linker distinguishes data from code symbols
10489 if test "$host_cpu" = ia64; then
10490 symcode='[ABCDEGRST]'
10491 fi
10492 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10493 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'"
10494 ;;
10495linux*)
10496 if test "$host_cpu" = ia64; then
10497 symcode='[ABCDGIRSTW]'
10498 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10499 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'"
10500 fi
10501 ;;
10502irix* | nonstopux*)
10503 symcode='[BCDEGRST]'
10504 ;;
10505osf*)
10506 symcode='[BCDEGQRST]'
10507 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010508solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509 symcode='[BDRT]'
10510 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010511sco3.2v5*)
10512 symcode='[DT]'
10513 ;;
10514sysv4.2uw2*)
10515 symcode='[DT]'
10516 ;;
10517sysv5* | sco5v6* | unixware* | OpenUNIX*)
10518 symcode='[ABDT]'
10519 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010520sysv4)
10521 symcode='[DFNSTU]'
10522 ;;
10523esac
10524
10525# Handle CRLF in mingw tool chain
10526opt_cr=
10527case $build_os in
10528mingw*)
10529 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10530 ;;
10531esac
10532
10533# If we're using GNU nm, then use its standard symbol codes.
10534case `$NM -V 2>&1` in
10535*GNU* | *'with BFD'*)
10536 symcode='[ABCDGIRSTW]' ;;
10537esac
10538
10539# Try without a prefix undercore, then with it.
10540for ac_symprfx in "" "_"; do
10541
Reid Spencera773bd52006-08-04 18:18:08 +000010542 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10543 symxfrm="\\1 $ac_symprfx\\2 \\2"
10544
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010546 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 +000010547
10548 # Check to see that the pipe works correctly.
10549 pipe_works=no
10550
10551 rm -f conftest*
10552 cat > conftest.$ac_ext <<EOF
10553#ifdef __cplusplus
10554extern "C" {
10555#endif
10556char nm_test_var;
10557void nm_test_func(){}
10558#ifdef __cplusplus
10559}
10560#endif
10561int main(){nm_test_var='a';nm_test_func();return(0);}
10562EOF
10563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010565 (eval $ac_compile) 2>&5
10566 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569 # Now try to grab the symbols.
10570 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010571 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 +000010572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10573 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576 # Try sorting and uniquifying the output.
10577 if sort "$nlist" | uniq > "$nlist"T; then
10578 mv -f "$nlist"T "$nlist"
10579 else
10580 rm -f "$nlist"T
10581 fi
10582
10583 # Make sure that we snagged all the symbols we need.
10584 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10585 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10586 cat <<EOF > conftest.$ac_ext
10587#ifdef __cplusplus
10588extern "C" {
10589#endif
10590
10591EOF
10592 # Now generate the symbol file.
10593 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10594
10595 cat <<EOF >> conftest.$ac_ext
10596#if defined (__STDC__) && __STDC__
10597# define lt_ptr_t void *
10598#else
10599# define lt_ptr_t char *
10600# define const
10601#endif
10602
10603/* The mapping between symbol names and symbols. */
10604const struct {
10605 const char *name;
10606 lt_ptr_t address;
10607}
10608lt_preloaded_symbols[] =
10609{
10610EOF
10611 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10612 cat <<\EOF >> conftest.$ac_ext
10613 {0, (lt_ptr_t) 0}
10614};
10615
10616#ifdef __cplusplus
10617}
10618#endif
10619EOF
10620 # Now try linking the two files.
10621 mv conftest.$ac_objext conftstm.$ac_objext
10622 lt_save_LIBS="$LIBS"
10623 lt_save_CFLAGS="$CFLAGS"
10624 LIBS="conftstm.$ac_objext"
10625 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010627 (eval $ac_link) 2>&5
10628 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631 pipe_works=yes
10632 fi
10633 LIBS="$lt_save_LIBS"
10634 CFLAGS="$lt_save_CFLAGS"
10635 else
10636 echo "cannot find nm_test_func in $nlist" >&5
10637 fi
10638 else
10639 echo "cannot find nm_test_var in $nlist" >&5
10640 fi
10641 else
10642 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10643 fi
10644 else
10645 echo "$progname: failed program was:" >&5
10646 cat conftest.$ac_ext >&5
10647 fi
10648 rm -f conftest* conftst*
10649
10650 # Do not use the global_symbol_pipe unless it works.
10651 if test "$pipe_works" = yes; then
10652 break
10653 else
10654 lt_cv_sys_global_symbol_pipe=
10655 fi
10656done
10657
10658fi
10659
10660if test -z "$lt_cv_sys_global_symbol_pipe"; then
10661 lt_cv_sys_global_symbol_to_cdecl=
10662fi
10663if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010664 { echo "$as_me:$LINENO: result: failed" >&5
10665echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010667 { echo "$as_me:$LINENO: result: ok" >&5
10668echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010669fi
10670
10671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010672{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10673echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10674if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676else
10677 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10678 libltdl_cv_preloaded_symbols=yes
10679 else
10680 libltdl_cv_preloaded_symbols=no
10681 fi
10682
10683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010684{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10685echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010686if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010688cat >>confdefs.h <<\_ACEOF
10689#define HAVE_PRELOADED_SYMBOLS 1
10690_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691
10692fi
10693
10694LIBADD_DL=
10695
10696ac_ext=c
10697ac_cpp='$CPP $CPPFLAGS'
10698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10700ac_compiler_gnu=$ac_cv_c_compiler_gnu
10701
10702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010703{ echo "$as_me:$LINENO: checking for shl_load" >&5
10704echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10705if test "${ac_cv_func_shl_load+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707else
10708 cat >conftest.$ac_ext <<_ACEOF
10709/* confdefs.h. */
10710_ACEOF
10711cat confdefs.h >>conftest.$ac_ext
10712cat >>conftest.$ac_ext <<_ACEOF
10713/* end confdefs.h. */
10714/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10716#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010718/* System header to define __stub macros and hopefully few prototypes,
10719 which can conflict with char shl_load (); below.
10720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10721 <limits.h> exists even on freestanding compilers. */
10722
10723#ifdef __STDC__
10724# include <limits.h>
10725#else
10726# include <assert.h>
10727#endif
10728
10729#undef shl_load
10730
10731/* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10734#ifdef __cplusplus
10735extern "C"
10736#endif
10737char shl_load ();
10738/* The GNU C library defines this for functions which it implements
10739 to always fail with ENOSYS. Some functions are actually named
10740 something starting with __ and the normal name is an alias. */
10741#if defined __stub_shl_load || defined __stub___shl_load
10742choke me
10743#endif
10744
10745int
10746main ()
10747{
10748return shl_load ();
10749 ;
10750 return 0;
10751}
10752_ACEOF
10753rm -f conftest.$ac_objext conftest$ac_exeext
10754if { (ac_try="$ac_link"
10755case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758esac
10759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_link") 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
10767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10768 { (case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10771esac
10772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_try") 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest$ac_exeext'
10778 { (case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_try") 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; }; then
10787 ac_cv_func_shl_load=yes
10788else
10789 echo "$as_me: failed program was:" >&5
10790sed 's/^/| /' conftest.$ac_ext >&5
10791
10792 ac_cv_func_shl_load=no
10793fi
10794
10795rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797fi
10798{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10799echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10800if test $ac_cv_func_shl_load = yes; then
10801
10802cat >>confdefs.h <<\_ACEOF
10803#define HAVE_SHL_LOAD 1
10804_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010805
10806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010807 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10808echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10809if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811else
10812 ac_check_lib_save_LIBS=$LIBS
10813LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010814cat >conftest.$ac_ext <<_ACEOF
10815/* confdefs.h. */
10816_ACEOF
10817cat confdefs.h >>conftest.$ac_ext
10818cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819/* end confdefs.h. */
10820
Reid Spencera773bd52006-08-04 18:18:08 +000010821/* Override any GCC internal prototype to avoid an error.
10822 Use char because int might match the return type of a GCC
10823 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824#ifdef __cplusplus
10825extern "C"
10826#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827char shl_load ();
10828int
10829main ()
10830{
Reid Spencera773bd52006-08-04 18:18:08 +000010831return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832 ;
10833 return 0;
10834}
10835_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010836rm -f conftest.$ac_objext conftest$ac_exeext
10837if { (ac_try="$ac_link"
10838case "(($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_link") 2>conftest.er1
10844 ac_status=$?
10845 grep -v '^ *+' conftest.er1 >conftest.err
10846 rm -f conftest.er1
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
10850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10851 { (case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_try") 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_try") 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870 ac_cv_lib_dld_shl_load=yes
10871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010872 echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010877
Bill Wendlingebcceee2009-04-18 11:20:33 +000010878rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010879 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880LIBS=$ac_check_lib_save_LIBS
10881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010882{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10883echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10884if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010886cat >>confdefs.h <<\_ACEOF
10887#define HAVE_SHL_LOAD 1
10888_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889
10890 LIBADD_DL="$LIBADD_DL -ldld"
10891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010892 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10893echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10894if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010896else
10897 ac_check_lib_save_LIBS=$LIBS
10898LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010899cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h. */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904/* end confdefs.h. */
10905
Reid Spencera773bd52006-08-04 18:18:08 +000010906/* Override any GCC internal prototype to avoid an error.
10907 Use char because int might match the return type of a GCC
10908 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909#ifdef __cplusplus
10910extern "C"
10911#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010912char dlopen ();
10913int
10914main ()
10915{
Reid Spencera773bd52006-08-04 18:18:08 +000010916return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010917 ;
10918 return 0;
10919}
10920_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010921rm -f conftest.$ac_objext conftest$ac_exeext
10922if { (ac_try="$ac_link"
10923case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926esac
10927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_link") 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } &&
10935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10936 { (case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939esac
10940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_try") 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try='test -s conftest$ac_exeext'
10946 { (case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_try") 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010955 ac_cv_lib_dl_dlopen=yes
10956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
10960 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010962
Bill Wendlingebcceee2009-04-18 11:20:33 +000010963rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010964 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965LIBS=$ac_check_lib_save_LIBS
10966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010967{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10968echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10969if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010970
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010971cat >>confdefs.h <<\_ACEOF
10972#define HAVE_LIBDL 1
10973_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974
10975 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010977 cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982/* end confdefs.h. */
10983#if HAVE_DLFCN_H
10984# include <dlfcn.h>
10985#endif
10986
10987int
10988main ()
10989{
10990dlopen(0, 0);
10991 ;
10992 return 0;
10993}
10994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010995rm -f conftest.$ac_objext conftest$ac_exeext
10996if { (ac_try="$ac_link"
10997case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11000esac
11001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_link") 2>conftest.er1
11003 ac_status=$?
11004 grep -v '^ *+' conftest.er1 >conftest.err
11005 rm -f conftest.er1
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013esac
11014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest$ac_exeext'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023esac
11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011030cat >>confdefs.h <<\_ACEOF
11031#define HAVE_LIBDL 1
11032_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033 libltdl_cv_func_dlopen="yes"
11034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11039echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11040if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042else
11043 ac_check_lib_save_LIBS=$LIBS
11044LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011045cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050/* end confdefs.h. */
11051
Reid Spencera773bd52006-08-04 18:18:08 +000011052/* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011055#ifdef __cplusplus
11056extern "C"
11057#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011058char dlopen ();
11059int
11060main ()
11061{
Reid Spencera773bd52006-08-04 18:18:08 +000011062return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063 ;
11064 return 0;
11065}
11066_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067rm -f conftest.$ac_objext conftest$ac_exeext
11068if { (ac_try="$ac_link"
11069case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072esac
11073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082 { (case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_try") 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest$ac_exeext'
11092 { (case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095esac
11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_try") 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011101 ac_cv_lib_svld_dlopen=yes
11102else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011103 echo "$as_me: failed program was:" >&5
11104sed 's/^/| /' conftest.$ac_ext >&5
11105
11106 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011108
Bill Wendlingebcceee2009-04-18 11:20:33 +000011109rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011110 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111LIBS=$ac_check_lib_save_LIBS
11112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011113{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11114echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11115if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011117cat >>confdefs.h <<\_ACEOF
11118#define HAVE_LIBDL 1
11119_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120
11121 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011123 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11124echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11125if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127else
11128 ac_check_lib_save_LIBS=$LIBS
11129LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011130cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h. */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135/* end confdefs.h. */
11136
Reid Spencera773bd52006-08-04 18:18:08 +000011137/* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140#ifdef __cplusplus
11141extern "C"
11142#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011143char dld_link ();
11144int
11145main ()
11146{
Reid Spencera773bd52006-08-04 18:18:08 +000011147return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011148 ;
11149 return 0;
11150}
11151_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011152rm -f conftest.$ac_objext conftest$ac_exeext
11153if { (ac_try="$ac_link"
11154case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_link") 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11167 { (case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170esac
11171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172 (eval "$ac_try") 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest$ac_exeext'
11177 { (case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180esac
11181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_try") 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186 ac_cv_lib_dld_dld_link=yes
11187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011188 echo "$as_me: failed program was:" >&5
11189sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011193
Bill Wendlingebcceee2009-04-18 11:20:33 +000011194rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011195 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196LIBS=$ac_check_lib_save_LIBS
11197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011198{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11199echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11200if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011202cat >>confdefs.h <<\_ACEOF
11203#define HAVE_DLD 1
11204_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205
11206 LIBADD_DL="$LIBADD_DL -ldld"
11207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011208 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11209echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11210if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11221#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011223/* System header to define __stub macros and hopefully few prototypes,
11224 which can conflict with char _dyld_func_lookup (); below.
11225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011228#ifdef __STDC__
11229# include <limits.h>
11230#else
11231# include <assert.h>
11232#endif
11233
11234#undef _dyld_func_lookup
11235
11236/* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239#ifdef __cplusplus
11240extern "C"
11241#endif
11242char _dyld_func_lookup ();
11243/* The GNU C library defines this for functions which it implements
11244 to always fail with ENOSYS. Some functions are actually named
11245 something starting with __ and the normal name is an alias. */
11246#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11247choke me
11248#endif
11249
11250int
11251main ()
11252{
11253return _dyld_func_lookup ();
11254 ;
11255 return 0;
11256}
11257_ACEOF
11258rm -f conftest.$ac_objext conftest$ac_exeext
11259if { (ac_try="$ac_link"
11260case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263esac
11264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_link") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest$ac_exeext'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286esac
11287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_cv_func__dyld_func_lookup=yes
11293else
11294 echo "$as_me: failed program was:" >&5
11295sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011298fi
Reid Spencera773bd52006-08-04 18:18:08 +000011299
Bill Wendlingebcceee2009-04-18 11:20:33 +000011300rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011301 conftest$ac_exeext conftest.$ac_ext
11302fi
11303{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11304echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11305if test $ac_cv_func__dyld_func_lookup = yes; then
11306
11307cat >>confdefs.h <<\_ACEOF
11308#define HAVE_DYLD 1
11309_ACEOF
11310
11311fi
11312
11313
11314fi
11315
11316
11317fi
11318
11319
11320fi
11321
11322rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011324
11325fi
11326
11327
11328fi
11329
11330
11331fi
11332
11333
11334if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11335then
11336 lt_save_LIBS="$LIBS"
11337 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011338
11339for ac_func in dlerror
11340do
11341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11342{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346else
11347 cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
11353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11355#define $ac_func innocuous_$ac_func
11356
11357/* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char $ac_func (); below.
11359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11360 <limits.h> exists even on freestanding compilers. */
11361
11362#ifdef __STDC__
11363# include <limits.h>
11364#else
11365# include <assert.h>
11366#endif
11367
11368#undef $ac_func
11369
11370/* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373#ifdef __cplusplus
11374extern "C"
11375#endif
11376char $ac_func ();
11377/* The GNU C library defines this for functions which it implements
11378 to always fail with ENOSYS. Some functions are actually named
11379 something starting with __ and the normal name is an alias. */
11380#if defined __stub_$ac_func || defined __stub___$ac_func
11381choke me
11382#endif
11383
11384int
11385main ()
11386{
11387return $ac_func ();
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext conftest$ac_exeext
11393if { (ac_try="$ac_link"
11394case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397esac
11398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_link") 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11407 { (case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410esac
11411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_try") 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest$ac_exeext'
11417 { (case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420esac
11421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_try") 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 eval "$as_ac_var=yes"
11427else
11428 echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
11431 eval "$as_ac_var=no"
11432fi
11433
11434rm -f core conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436fi
11437ac_res=`eval echo '${'$as_ac_var'}'`
11438 { echo "$as_me:$LINENO: result: $ac_res" >&5
11439echo "${ECHO_T}$ac_res" >&6; }
11440if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011441 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011443_ACEOF
11444
11445fi
11446done
11447
11448 LIBS="$lt_save_LIBS"
11449fi
11450ac_ext=c
11451ac_cpp='$CPP $CPPFLAGS'
11452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11454ac_compiler_gnu=$ac_cv_c_compiler_gnu
11455
11456
11457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011458{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11459echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11460if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462else
11463 ac_cv_sys_symbol_underscore=no
11464 cat > conftest.$ac_ext <<EOF
11465void nm_test_func(){}
11466int main(){nm_test_func;return 0;}
11467EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469 (eval $ac_compile) 2>&5
11470 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473 # Now try to grab the symbols.
11474 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011475 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 +000011476 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11477 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480 # See whether the symbols have a leading underscore.
11481 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11482 ac_cv_sys_symbol_underscore=yes
11483 else
11484 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11485 :
11486 else
11487 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11488 fi
11489 fi
11490 else
11491 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11492 fi
11493 else
11494 echo "configure: failed program was:" >&5
11495 cat conftest.c >&5
11496 fi
11497 rm -rf conftest*
11498
11499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011500{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11501echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502
11503
11504if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11505 if test x"$libltdl_cv_func_dlopen" = xyes ||
11506 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011507 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11508echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11509if test "${libltdl_cv_need_uscore+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511else
11512 libltdl_cv_need_uscore=unknown
11513 save_LIBS="$LIBS"
11514 LIBS="$LIBS $LIBADD_DL"
11515 if test "$cross_compiling" = yes; then :
11516 libltdl_cv_need_uscore=cross
11517else
11518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11519 lt_status=$lt_dlunknown
11520 cat > conftest.$ac_ext <<EOF
Eric Christopher481d4022010-12-03 07:45:22 +000011521#line 11521 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522#include "confdefs.h"
11523
11524#if HAVE_DLFCN_H
11525#include <dlfcn.h>
11526#endif
11527
11528#include <stdio.h>
11529
11530#ifdef RTLD_GLOBAL
11531# define LT_DLGLOBAL RTLD_GLOBAL
11532#else
11533# ifdef DL_GLOBAL
11534# define LT_DLGLOBAL DL_GLOBAL
11535# else
11536# define LT_DLGLOBAL 0
11537# endif
11538#endif
11539
11540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11541 find out it does not work in some platform. */
11542#ifndef LT_DLLAZY_OR_NOW
11543# ifdef RTLD_LAZY
11544# define LT_DLLAZY_OR_NOW RTLD_LAZY
11545# else
11546# ifdef DL_LAZY
11547# define LT_DLLAZY_OR_NOW DL_LAZY
11548# else
11549# ifdef RTLD_NOW
11550# define LT_DLLAZY_OR_NOW RTLD_NOW
11551# else
11552# ifdef DL_NOW
11553# define LT_DLLAZY_OR_NOW DL_NOW
11554# else
11555# define LT_DLLAZY_OR_NOW 0
11556# endif
11557# endif
11558# endif
11559# endif
11560#endif
11561
11562#ifdef __cplusplus
11563extern "C" void exit (int);
11564#endif
11565
11566void fnord() { int i=42;}
11567int main ()
11568{
11569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11570 int status = $lt_dlunknown;
11571
11572 if (self)
11573 {
11574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11576 /* dlclose (self); */
11577 }
Reid Spencera773bd52006-08-04 18:18:08 +000011578 else
11579 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580
11581 exit (status);
11582}
11583EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585 (eval $ac_link) 2>&5
11586 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011589 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590 lt_status=$?
11591 case x$lt_status in
11592 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11593 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011594 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595 esac
11596 else :
11597 # compilation failed
11598
11599 fi
11600fi
11601rm -fr conftest*
11602
11603 LIBS="$save_LIBS"
11604
11605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011606{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11607echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011608 fi
11609fi
11610
11611if test x"$libltdl_cv_need_uscore" = xyes; then
11612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011613cat >>confdefs.h <<\_ACEOF
11614#define NEED_USCORE 1
11615_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616
11617fi
11618
11619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011620{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11621echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11622if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011624else
11625 # PORTME does your system automatically load deplibs for dlopen?
11626 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11627 # For now, we just catch OSes we know something about -- in the
11628 # future, we'll try test this programmatically.
11629 libltdl_cv_sys_dlopen_deplibs=unknown
11630 case "$host_os" in
11631 aix3*|aix4.1.*|aix4.2.*)
11632 # Unknown whether this is true for these versions of AIX, but
11633 # we want this `case' here to explicitly catch those versions.
11634 libltdl_cv_sys_dlopen_deplibs=unknown
11635 ;;
11636 aix[45]*)
11637 libltdl_cv_sys_dlopen_deplibs=yes
11638 ;;
11639 darwin*)
11640 # Assuming the user has installed a libdl from somewhere, this is true
11641 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11642 libltdl_cv_sys_dlopen_deplibs=yes
11643 ;;
11644 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11645 # GNU and its variants, using gnu ld.so (Glibc)
11646 libltdl_cv_sys_dlopen_deplibs=yes
11647 ;;
11648 hpux10*|hpux11*)
11649 libltdl_cv_sys_dlopen_deplibs=yes
11650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011651 interix*)
11652 libltdl_cv_sys_dlopen_deplibs=yes
11653 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011654 irix[12345]*|irix6.[01]*)
11655 # Catch all versions of IRIX before 6.2, and indicate that we don't
11656 # know how it worked for any of those versions.
11657 libltdl_cv_sys_dlopen_deplibs=unknown
11658 ;;
11659 irix*)
11660 # The case above catches anything before 6.2, and it's known that
11661 # at 6.2 and later dlopen does load deplibs.
11662 libltdl_cv_sys_dlopen_deplibs=yes
11663 ;;
11664 netbsd*)
11665 libltdl_cv_sys_dlopen_deplibs=yes
11666 ;;
11667 openbsd*)
11668 libltdl_cv_sys_dlopen_deplibs=yes
11669 ;;
11670 osf[1234]*)
11671 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11672 # it did *not* use an RPATH in a shared library to find objects the
11673 # library depends on, so we explictly say `no'.
11674 libltdl_cv_sys_dlopen_deplibs=no
11675 ;;
11676 osf5.0|osf5.0a|osf5.1)
11677 # dlopen *does* load deplibs and with the right loader patch applied
11678 # it even uses RPATH in a shared library to search for shared objects
11679 # that the library depends on, but there's no easy way to know if that
11680 # patch is installed. Since this is the case, all we can really
11681 # say is unknown -- it depends on the patch being installed. If
11682 # it is, this changes to `yes'. Without it, it would be `no'.
11683 libltdl_cv_sys_dlopen_deplibs=unknown
11684 ;;
11685 osf*)
11686 # the two cases above should catch all versions of osf <= 5.1. Read
11687 # the comments above for what we know about them.
11688 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11689 # is used to find them so we can finally say `yes'.
11690 libltdl_cv_sys_dlopen_deplibs=yes
11691 ;;
11692 solaris*)
11693 libltdl_cv_sys_dlopen_deplibs=yes
11694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11696 libltdl_cv_sys_dlopen_deplibs=yes
11697 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698 esac
11699
11700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011701{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11702echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011705cat >>confdefs.h <<\_ACEOF
11706#define LTDL_DLOPEN_DEPLIBS 1
11707_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011708
11709fi
11710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011711
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011713do
11714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720fi
11721ac_res=`eval echo '${'$as_ac_Header'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723echo "${ECHO_T}$ac_res" >&6; }
11724else
11725 # Is the header compilable?
11726{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11728cat >conftest.$ac_ext <<_ACEOF
11729/* confdefs.h. */
11730_ACEOF
11731cat confdefs.h >>conftest.$ac_ext
11732cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h. */
11734$ac_includes_default
11735#include <$ac_header>
11736_ACEOF
11737rm -f conftest.$ac_objext
11738if { (ac_try="$ac_compile"
11739case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742esac
11743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_compile") 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11755esac
11756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_try") 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest.$ac_objext'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_header_compiler=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776 ac_header_compiler=no
11777fi
11778
11779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781echo "${ECHO_T}$ac_header_compiler" >&6; }
11782
11783# Is the header present?
11784{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11786cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792#include <$ac_header>
11793_ACEOF
11794if { (ac_try="$ac_cpp conftest.$ac_ext"
11795case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } >/dev/null; then
11807 if test -s conftest.err; then
11808 ac_cpp_err=$ac_c_preproc_warn_flag
11809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11810 else
11811 ac_cpp_err=
11812 fi
11813else
11814 ac_cpp_err=yes
11815fi
11816if test -z "$ac_cpp_err"; then
11817 ac_header_preproc=yes
11818else
11819 echo "$as_me: failed program was:" >&5
11820sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 ac_header_preproc=no
11823fi
11824
11825rm -f conftest.err conftest.$ac_ext
11826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11827echo "${ECHO_T}$ac_header_preproc" >&6; }
11828
11829# So? What about this header?
11830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11831 yes:no: )
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11836 ac_header_preproc=yes
11837 ;;
11838 no:yes:* )
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11851 ( cat <<\_ASBOX
11852## ----------------------------------- ##
11853## Report this to llvmbugs@cs.uiuc.edu ##
11854## ----------------------------------- ##
11855_ASBOX
11856 ) | sed "s/^/$as_me: WARNING: /" >&2
11857 ;;
11858esac
11859{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864 eval "$as_ac_Header=\$ac_header_preproc"
11865fi
11866ac_res=`eval echo '${'$as_ac_Header'}'`
11867 { echo "$as_me:$LINENO: result: $ac_res" >&5
11868echo "${ECHO_T}$ac_res" >&6; }
11869
11870fi
11871if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011872 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011874_ACEOF
11875
11876fi
11877
11878done
11879
11880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011881{ echo "$as_me:$LINENO: checking for error_t" >&5
11882echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11883if test "${ac_cv_type_error_t+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885else
11886 cat >conftest.$ac_ext <<_ACEOF
11887/* confdefs.h. */
11888_ACEOF
11889cat confdefs.h >>conftest.$ac_ext
11890cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h. */
11892#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893# include <argz.h>
11894#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011895
11896typedef error_t ac__type_new_;
11897int
11898main ()
11899{
11900if ((ac__type_new_ *) 0)
11901 return 0;
11902if (sizeof (ac__type_new_))
11903 return 0;
11904 ;
11905 return 0;
11906}
11907_ACEOF
11908rm -f conftest.$ac_objext
11909if { (ac_try="$ac_compile"
11910case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926esac
11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest.$ac_objext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_type_error_t=yes
11943else
11944 echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_cv_type_error_t=no
11948fi
11949
11950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951fi
11952{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11953echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11954if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955
11956cat >>confdefs.h <<_ACEOF
11957#define HAVE_ERROR_T 1
11958_ACEOF
11959
11960
11961else
11962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011963cat >>confdefs.h <<\_ACEOF
11964#define error_t int
11965_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011966
11967fi
11968
11969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011970
11971
11972
11973
11974
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011976do
11977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11978{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11980if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983 cat >conftest.$ac_ext <<_ACEOF
11984/* confdefs.h. */
11985_ACEOF
11986cat confdefs.h >>conftest.$ac_ext
11987cat >>conftest.$ac_ext <<_ACEOF
11988/* end confdefs.h. */
11989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11991#define $ac_func innocuous_$ac_func
11992
11993/* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func (); below.
11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 <limits.h> exists even on freestanding compilers. */
11997
11998#ifdef __STDC__
11999# include <limits.h>
12000#else
12001# include <assert.h>
12002#endif
12003
12004#undef $ac_func
12005
12006/* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
12009#ifdef __cplusplus
12010extern "C"
12011#endif
12012char $ac_func ();
12013/* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016#if defined __stub_$ac_func || defined __stub___$ac_func
12017choke me
12018#endif
12019
12020int
12021main ()
12022{
12023return $ac_func ();
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext conftest$ac_exeext
12029if { (ac_try="$ac_link"
12030case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12043 { (case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046esac
12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_try") 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest$ac_exeext'
12053 { (case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056esac
12057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_try") 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 eval "$as_ac_var=yes"
12063else
12064 echo "$as_me: failed program was:" >&5
12065sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 eval "$as_ac_var=no"
12068fi
12069
12070rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12072fi
12073ac_res=`eval echo '${'$as_ac_var'}'`
12074 { echo "$as_me:$LINENO: result: $ac_res" >&5
12075echo "${ECHO_T}$ac_res" >&6; }
12076if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012079_ACEOF
12080
12081fi
12082done
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012103
12104
12105
12106
12107
12108
12109
12110
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12112 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012113do
12114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12120fi
12121ac_res=`eval echo '${'$as_ac_Header'}'`
12122 { echo "$as_me:$LINENO: result: $ac_res" >&5
12123echo "${ECHO_T}$ac_res" >&6; }
12124else
12125 # Is the header compilable?
12126{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12128cat >conftest.$ac_ext <<_ACEOF
12129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
12134$ac_includes_default
12135#include <$ac_header>
12136_ACEOF
12137rm -f conftest.$ac_objext
12138if { (ac_try="$ac_compile"
12139case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_compile") 2>conftest.er1
12145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12152 { (case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155esac
12156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_try") 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; } &&
12161 { ac_try='test -s conftest.$ac_objext'
12162 { (case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165esac
12166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_try") 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_header_compiler=yes
12172else
12173 echo "$as_me: failed program was:" >&5
12174sed 's/^/| /' conftest.$ac_ext >&5
12175
12176 ac_header_compiler=no
12177fi
12178
12179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12181echo "${ECHO_T}$ac_header_compiler" >&6; }
12182
12183# Is the header present?
12184{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12185echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12186cat >conftest.$ac_ext <<_ACEOF
12187/* confdefs.h. */
12188_ACEOF
12189cat confdefs.h >>conftest.$ac_ext
12190cat >>conftest.$ac_ext <<_ACEOF
12191/* end confdefs.h. */
12192#include <$ac_header>
12193_ACEOF
12194if { (ac_try="$ac_cpp conftest.$ac_ext"
12195case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } >/dev/null; then
12207 if test -s conftest.err; then
12208 ac_cpp_err=$ac_c_preproc_warn_flag
12209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12210 else
12211 ac_cpp_err=
12212 fi
12213else
12214 ac_cpp_err=yes
12215fi
12216if test -z "$ac_cpp_err"; then
12217 ac_header_preproc=yes
12218else
12219 echo "$as_me: failed program was:" >&5
12220sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 ac_header_preproc=no
12223fi
12224
12225rm -f conftest.err conftest.$ac_ext
12226{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12227echo "${ECHO_T}$ac_header_preproc" >&6; }
12228
12229# So? What about this header?
12230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12231 yes:no: )
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12236 ac_header_preproc=yes
12237 ;;
12238 no:yes:* )
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12251 ( cat <<\_ASBOX
12252## ----------------------------------- ##
12253## Report this to llvmbugs@cs.uiuc.edu ##
12254## ----------------------------------- ##
12255_ASBOX
12256 ) | sed "s/^/$as_me: WARNING: /" >&2
12257 ;;
12258esac
12259{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 eval "$as_ac_Header=\$ac_header_preproc"
12265fi
12266ac_res=`eval echo '${'$as_ac_Header'}'`
12267 { echo "$as_me:$LINENO: result: $ac_res" >&5
12268echo "${ECHO_T}$ac_res" >&6; }
12269
12270fi
12271if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012272 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012274_ACEOF
12275
12276fi
12277
12278done
12279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012280
12281
12282
12283
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012284for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012285do
12286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292fi
12293ac_res=`eval echo '${'$as_ac_Header'}'`
12294 { echo "$as_me:$LINENO: result: $ac_res" >&5
12295echo "${ECHO_T}$ac_res" >&6; }
12296else
12297 # Is the header compilable?
12298{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12300cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306$ac_includes_default
12307#include <$ac_header>
12308_ACEOF
12309rm -f conftest.$ac_objext
12310if { (ac_try="$ac_compile"
12311case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_compile") 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12324 { (case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327esac
12328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_try") 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest.$ac_objext'
12334 { (case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12337esac
12338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_try") 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12343 ac_header_compiler=yes
12344else
12345 echo "$as_me: failed program was:" >&5
12346sed 's/^/| /' conftest.$ac_ext >&5
12347
12348 ac_header_compiler=no
12349fi
12350
12351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12353echo "${ECHO_T}$ac_header_compiler" >&6; }
12354
12355# Is the header present?
12356{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12358cat >conftest.$ac_ext <<_ACEOF
12359/* confdefs.h. */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h. */
12364#include <$ac_header>
12365_ACEOF
12366if { (ac_try="$ac_cpp conftest.$ac_ext"
12367case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370esac
12371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } >/dev/null; then
12379 if test -s conftest.err; then
12380 ac_cpp_err=$ac_c_preproc_warn_flag
12381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12382 else
12383 ac_cpp_err=
12384 fi
12385else
12386 ac_cpp_err=yes
12387fi
12388if test -z "$ac_cpp_err"; then
12389 ac_header_preproc=yes
12390else
12391 echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
12394 ac_header_preproc=no
12395fi
12396
12397rm -f conftest.err conftest.$ac_ext
12398{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12399echo "${ECHO_T}$ac_header_preproc" >&6; }
12400
12401# So? What about this header?
12402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12403 yes:no: )
12404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12408 ac_header_preproc=yes
12409 ;;
12410 no:yes:* )
12411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12414echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12418echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12423 ( cat <<\_ASBOX
12424## ----------------------------------- ##
12425## Report this to llvmbugs@cs.uiuc.edu ##
12426## ----------------------------------- ##
12427_ASBOX
12428 ) | sed "s/^/$as_me: WARNING: /" >&2
12429 ;;
12430esac
12431{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12435else
12436 eval "$as_ac_Header=\$ac_header_preproc"
12437fi
12438ac_res=`eval echo '${'$as_ac_Header'}'`
12439 { echo "$as_me:$LINENO: result: $ac_res" >&5
12440echo "${ECHO_T}$ac_res" >&6; }
12441
12442fi
12443if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446_ACEOF
12447
12448fi
12449
12450done
12451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012452
12453
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012454for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012455do
12456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462fi
12463ac_res=`eval echo '${'$as_ac_Header'}'`
12464 { echo "$as_me:$LINENO: result: $ac_res" >&5
12465echo "${ECHO_T}$ac_res" >&6; }
12466else
12467 # Is the header compilable?
12468{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12470cat >conftest.$ac_ext <<_ACEOF
12471/* confdefs.h. */
12472_ACEOF
12473cat confdefs.h >>conftest.$ac_ext
12474cat >>conftest.$ac_ext <<_ACEOF
12475/* end confdefs.h. */
12476$ac_includes_default
12477#include <$ac_header>
12478_ACEOF
12479rm -f conftest.$ac_objext
12480if { (ac_try="$ac_compile"
12481case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484esac
12485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_compile") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12494 { (case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497esac
12498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_try") 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest.$ac_objext'
12504 { (case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_try") 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_header_compiler=yes
12514else
12515 echo "$as_me: failed program was:" >&5
12516sed 's/^/| /' conftest.$ac_ext >&5
12517
12518 ac_header_compiler=no
12519fi
12520
12521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523echo "${ECHO_T}$ac_header_compiler" >&6; }
12524
12525# Is the header present?
12526{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12528cat >conftest.$ac_ext <<_ACEOF
12529/* confdefs.h. */
12530_ACEOF
12531cat confdefs.h >>conftest.$ac_ext
12532cat >>conftest.$ac_ext <<_ACEOF
12533/* end confdefs.h. */
12534#include <$ac_header>
12535_ACEOF
12536if { (ac_try="$ac_cpp conftest.$ac_ext"
12537case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540esac
12541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } >/dev/null; then
12549 if test -s conftest.err; then
12550 ac_cpp_err=$ac_c_preproc_warn_flag
12551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12552 else
12553 ac_cpp_err=
12554 fi
12555else
12556 ac_cpp_err=yes
12557fi
12558if test -z "$ac_cpp_err"; then
12559 ac_header_preproc=yes
12560else
12561 echo "$as_me: failed program was:" >&5
12562sed 's/^/| /' conftest.$ac_ext >&5
12563
12564 ac_header_preproc=no
12565fi
12566
12567rm -f conftest.err conftest.$ac_ext
12568{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12569echo "${ECHO_T}$ac_header_preproc" >&6; }
12570
12571# So? What about this header?
12572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12573 yes:no: )
12574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12578 ac_header_preproc=yes
12579 ;;
12580 no:yes:* )
12581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12584echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12588echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12593 ( cat <<\_ASBOX
12594## ----------------------------------- ##
12595## Report this to llvmbugs@cs.uiuc.edu ##
12596## ----------------------------------- ##
12597_ASBOX
12598 ) | sed "s/^/$as_me: WARNING: /" >&2
12599 ;;
12600esac
12601{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12605else
12606 eval "$as_ac_Header=\$ac_header_preproc"
12607fi
12608ac_res=`eval echo '${'$as_ac_Header'}'`
12609 { echo "$as_me:$LINENO: result: $ac_res" >&5
12610echo "${ECHO_T}$ac_res" >&6; }
12611
12612fi
12613if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012614 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012616_ACEOF
12617 break
12618fi
12619
12620done
12621
12622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012623
12624
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012625for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012626do
12627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12628{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12630if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632else
12633 cat >conftest.$ac_ext <<_ACEOF
12634/* confdefs.h. */
12635_ACEOF
12636cat confdefs.h >>conftest.$ac_ext
12637cat >>conftest.$ac_ext <<_ACEOF
12638/* end confdefs.h. */
12639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12641#define $ac_func innocuous_$ac_func
12642
12643/* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char $ac_func (); below.
12645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12646 <limits.h> exists even on freestanding compilers. */
12647
12648#ifdef __STDC__
12649# include <limits.h>
12650#else
12651# include <assert.h>
12652#endif
12653
12654#undef $ac_func
12655
12656/* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12659#ifdef __cplusplus
12660extern "C"
12661#endif
12662char $ac_func ();
12663/* The GNU C library defines this for functions which it implements
12664 to always fail with ENOSYS. Some functions are actually named
12665 something starting with __ and the normal name is an alias. */
12666#if defined __stub_$ac_func || defined __stub___$ac_func
12667choke me
12668#endif
12669
12670int
12671main ()
12672{
12673return $ac_func ();
12674 ;
12675 return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext conftest$ac_exeext
12679if { (ac_try="$ac_link"
12680case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683esac
12684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696esac
12697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706esac
12707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 eval "$as_ac_var=yes"
12713else
12714 echo "$as_me: failed program was:" >&5
12715sed 's/^/| /' conftest.$ac_ext >&5
12716
12717 eval "$as_ac_var=no"
12718fi
12719
12720rm -f core conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722fi
12723ac_res=`eval echo '${'$as_ac_var'}'`
12724 { echo "$as_me:$LINENO: result: $ac_res" >&5
12725echo "${ECHO_T}$ac_res" >&6; }
12726if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012727 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012729_ACEOF
12730 break
12731fi
12732done
12733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012734
12735
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012736for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012737do
12738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12743else
12744 cat >conftest.$ac_ext <<_ACEOF
12745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
12750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12752#define $ac_func innocuous_$ac_func
12753
12754/* System header to define __stub macros and hopefully few prototypes,
12755 which can conflict with char $ac_func (); below.
12756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12757 <limits.h> exists even on freestanding compilers. */
12758
12759#ifdef __STDC__
12760# include <limits.h>
12761#else
12762# include <assert.h>
12763#endif
12764
12765#undef $ac_func
12766
12767/* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
12770#ifdef __cplusplus
12771extern "C"
12772#endif
12773char $ac_func ();
12774/* The GNU C library defines this for functions which it implements
12775 to always fail with ENOSYS. Some functions are actually named
12776 something starting with __ and the normal name is an alias. */
12777#if defined __stub_$ac_func || defined __stub___$ac_func
12778choke me
12779#endif
12780
12781int
12782main ()
12783{
12784return $ac_func ();
12785 ;
12786 return 0;
12787}
12788_ACEOF
12789rm -f conftest.$ac_objext conftest$ac_exeext
12790if { (ac_try="$ac_link"
12791case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794esac
12795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_link") 2>conftest.er1
12797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807esac
12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } &&
12813 { ac_try='test -s conftest$ac_exeext'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817esac
12818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 eval "$as_ac_var=yes"
12824else
12825 echo "$as_me: failed program was:" >&5
12826sed 's/^/| /' conftest.$ac_ext >&5
12827
12828 eval "$as_ac_var=no"
12829fi
12830
12831rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
12833fi
12834ac_res=`eval echo '${'$as_ac_var'}'`
12835 { echo "$as_me:$LINENO: result: $ac_res" >&5
12836echo "${ECHO_T}$ac_res" >&6; }
12837if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012838 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012840_ACEOF
12841 break
12842fi
12843done
12844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012845
12846
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012847for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012848do
12849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12850{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12852if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855 cat >conftest.$ac_ext <<_ACEOF
12856/* confdefs.h. */
12857_ACEOF
12858cat confdefs.h >>conftest.$ac_ext
12859cat >>conftest.$ac_ext <<_ACEOF
12860/* end confdefs.h. */
12861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12863#define $ac_func innocuous_$ac_func
12864
12865/* System header to define __stub macros and hopefully few prototypes,
12866 which can conflict with char $ac_func (); below.
12867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12868 <limits.h> exists even on freestanding compilers. */
12869
12870#ifdef __STDC__
12871# include <limits.h>
12872#else
12873# include <assert.h>
12874#endif
12875
12876#undef $ac_func
12877
12878/* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12881#ifdef __cplusplus
12882extern "C"
12883#endif
12884char $ac_func ();
12885/* The GNU C library defines this for functions which it implements
12886 to always fail with ENOSYS. Some functions are actually named
12887 something starting with __ and the normal name is an alias. */
12888#if defined __stub_$ac_func || defined __stub___$ac_func
12889choke me
12890#endif
12891
12892int
12893main ()
12894{
12895return $ac_func ();
12896 ;
12897 return 0;
12898}
12899_ACEOF
12900rm -f conftest.$ac_objext conftest$ac_exeext
12901if { (ac_try="$ac_link"
12902case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905esac
12906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_link") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
12914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12915 { (case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918esac
12919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_try") 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; } &&
12924 { ac_try='test -s conftest$ac_exeext'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928esac
12929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 eval "$as_ac_var=yes"
12935else
12936 echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939 eval "$as_ac_var=no"
12940fi
12941
12942rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944fi
12945ac_res=`eval echo '${'$as_ac_var'}'`
12946 { echo "$as_me:$LINENO: result: $ac_res" >&5
12947echo "${ECHO_T}$ac_res" >&6; }
12948if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012949 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012951_ACEOF
12952 break
12953fi
12954done
12955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012956
12957
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012958for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959do
12960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965else
12966 cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12974#define $ac_func innocuous_$ac_func
12975
12976/* System header to define __stub macros and hopefully few prototypes,
12977 which can conflict with char $ac_func (); below.
12978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12979 <limits.h> exists even on freestanding compilers. */
12980
12981#ifdef __STDC__
12982# include <limits.h>
12983#else
12984# include <assert.h>
12985#endif
12986
12987#undef $ac_func
12988
12989/* Override any GCC internal prototype to avoid an error.
12990 Use char because int might match the return type of a GCC
12991 builtin and then its argument prototype would still apply. */
12992#ifdef __cplusplus
12993extern "C"
12994#endif
12995char $ac_func ();
12996/* The GNU C library defines this for functions which it implements
12997 to always fail with ENOSYS. Some functions are actually named
12998 something starting with __ and the normal name is an alias. */
12999#if defined __stub_$ac_func || defined __stub___$ac_func
13000choke me
13001#endif
13002
13003int
13004main ()
13005{
13006return $ac_func ();
13007 ;
13008 return 0;
13009}
13010_ACEOF
13011rm -f conftest.$ac_objext conftest$ac_exeext
13012if { (ac_try="$ac_link"
13013case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016esac
13017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_link") 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13026 { (case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13029esac
13030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_try") 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest$ac_exeext'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039esac
13040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 eval "$as_ac_var=yes"
13046else
13047 echo "$as_me: failed program was:" >&5
13048sed 's/^/| /' conftest.$ac_ext >&5
13049
13050 eval "$as_ac_var=no"
13051fi
13052
13053rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055fi
13056ac_res=`eval echo '${'$as_ac_var'}'`
13057 { echo "$as_me:$LINENO: result: $ac_res" >&5
13058echo "${ECHO_T}$ac_res" >&6; }
13059if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013060 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013062_ACEOF
13063
13064fi
13065done
13066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067
13068
13069
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013070for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013071do
13072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13075if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077else
13078 cat >conftest.$ac_ext <<_ACEOF
13079/* confdefs.h. */
13080_ACEOF
13081cat confdefs.h >>conftest.$ac_ext
13082cat >>conftest.$ac_ext <<_ACEOF
13083/* end confdefs.h. */
13084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13086#define $ac_func innocuous_$ac_func
13087
13088/* System header to define __stub macros and hopefully few prototypes,
13089 which can conflict with char $ac_func (); below.
13090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13091 <limits.h> exists even on freestanding compilers. */
13092
13093#ifdef __STDC__
13094# include <limits.h>
13095#else
13096# include <assert.h>
13097#endif
13098
13099#undef $ac_func
13100
13101/* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13104#ifdef __cplusplus
13105extern "C"
13106#endif
13107char $ac_func ();
13108/* The GNU C library defines this for functions which it implements
13109 to always fail with ENOSYS. Some functions are actually named
13110 something starting with __ and the normal name is an alias. */
13111#if defined __stub_$ac_func || defined __stub___$ac_func
13112choke me
13113#endif
13114
13115int
13116main ()
13117{
13118return $ac_func ();
13119 ;
13120 return 0;
13121}
13122_ACEOF
13123rm -f conftest.$ac_objext conftest$ac_exeext
13124if { (ac_try="$ac_link"
13125case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13128esac
13129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141esac
13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 eval "$as_ac_var=yes"
13158else
13159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 eval "$as_ac_var=no"
13163fi
13164
13165rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167fi
13168ac_res=`eval echo '${'$as_ac_var'}'`
13169 { echo "$as_me:$LINENO: result: $ac_res" >&5
13170echo "${ECHO_T}$ac_res" >&6; }
13171if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013172 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013174_ACEOF
13175
13176fi
13177done
13178
13179
Douglas Gregor01746742009-05-11 18:05:52 +000013180
Reid Spencer7931a782004-12-27 06:15:02 +000013181if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013182 LLVMGCC="llvm-gcc${EXEEXT}"
13183 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013184 LLVMGCCCOMMAND="$LLVMGCC"
13185 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013186 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13187
13188 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13189
Reid Spencerc84492c2005-06-02 22:34:49 +000013190 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13191set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13194if test "${ac_cv_path_LLVMGCC+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013196else
13197 case $LLVMGCC in
13198 [\\/]* | ?:[\\/]*)
13199 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13200 ;;
13201 *)
13202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203for as_dir in $PATH
13204do
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013207 for ac_exec_ext in '' $ac_executable_extensions; do
13208 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 +000013209 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013211 break 2
13212 fi
13213done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013214done
Reid Spencera773bd52006-08-04 18:18:08 +000013215IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013216
Reid Spencer59473af2004-12-25 07:31:29 +000013217 ;;
13218esac
13219fi
13220LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013221if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13223echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013225 { echo "$as_me:$LINENO: result: no" >&5
13226echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013227fi
13228
Reid Spencera773bd52006-08-04 18:18:08 +000013229
Reid Spencerc84492c2005-06-02 22:34:49 +000013230 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13231set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13234if test "${ac_cv_path_LLVMGXX+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013236else
13237 case $LLVMGXX in
13238 [\\/]* | ?:[\\/]*)
13239 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13240 ;;
13241 *)
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243for as_dir in $PATH
13244do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 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 +000013249 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013251 break 2
13252 fi
13253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254done
Reid Spencera773bd52006-08-04 18:18:08 +000013255IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013256
Reid Spencer59473af2004-12-25 07:31:29 +000013257 ;;
13258esac
13259fi
13260LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013261if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013262 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13263echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265 { echo "$as_me:$LINENO: result: no" >&5
13266echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013267fi
13268
Reid Spencera773bd52006-08-04 18:18:08 +000013269
Reid Spencer59473af2004-12-25 07:31:29 +000013270else
Devang Patel5d28b882007-12-04 22:54:47 +000013271 if test -z "$LLVMGCC"; then
13272 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013273 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013274 fi
13275 if test -z "$LLVMGXX"; then
13276 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013277 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013278 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013279
Reid Spencer59473af2004-12-25 07:31:29 +000013280 LLVMGCC=$LLVMGCC
13281
13282 LLVMGXX=$LLVMGXX
13283
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013284 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13285
13286 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13287
Reid Spencer59473af2004-12-25 07:31:29 +000013288fi
13289
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013290
Daniel Dunbar98515672010-02-23 10:00:49 +000013291# Check whether --with-llvmcc was given.
13292if test "${with_llvmcc+set}" = set; then
13293 withval=$with_llvmcc;
13294else
13295 with_llvmcc=check
13296fi
13297
13298{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13299echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13300if test "$with_llvmcc" != "check"; then
13301 if (test "$with_llvmcc" != "llvm-gcc" &&
13302 test "$with_llvmcc" != "clang" &&
13303 test "$with_llvmcc" != "none"); then
13304 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13305echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13306 { (exit 1); exit 1; }; }
13307 fi
13308 WITH_LLVMCC="$with_llvmcc"
13309elif test -n "$LLVMGCC"; then
13310 WITH_LLVMCC=llvm-gcc
13311elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13312 WITH_LLVMCC=clang
13313else
13314 WITH_LLVMCC=none
13315fi
13316{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13317echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13318LLVMCC_OPTION=$WITH_LLVMCC
13319
13320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13322echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013323
Reid Spencer86901802004-12-08 23:07:27 +000013324ICC=no
13325IXX=no
13326case $CC in
13327 icc*|icpc*)
13328 ICC=yes
13329 IXX=yes
13330 ;;
13331 *)
13332 ;;
13333esac
13334
Duraid Madina937c60a2006-02-15 07:57:42 +000013335if test "$GCC" != "yes" && test "$ICC" != "yes"
13336then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013337 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13338echo "$as_me: error: gcc|icc required but not found" >&2;}
13339 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013340fi
13341
13342if test "$GXX" != "yes" && test "$IXX" != "yes"
13343then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13345echo "$as_me: error: g++|icc required but not found" >&2;}
13346 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013347fi
13348
Reid Spencer86901802004-12-08 23:07:27 +000013349if test "$GCC" = "yes"
13350then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013351 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013352#if !defined(__GNUC__) || __GNUC__ < 3
13353#error Unsupported GCC version
13354#endif
13355
13356_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357rm -f conftest.$ac_objext
13358if { (ac_try="$ac_compile"
13359case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362esac
13363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_compile") 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375esac
13376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385esac
13386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13397echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13398 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013400
Chris Lattner399c7c72008-02-05 19:43:53 +000013401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013402fi
13403
13404if test -z "$llvm_cv_gnu_make_command"
13405then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013406 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13407echo "$as_me: error: GNU Make required but not found" >&2;}
13408 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013409fi
13410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411{ echo "$as_me:$LINENO: result: ok" >&5
13412echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013414{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13415echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013416NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13417
13418NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013420{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13421echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013422
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013424
13425{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13426echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13427if test "${ac_cv_lib_m_sin+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013429else
13430 ac_check_lib_save_LIBS=$LIBS
13431LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013432cat >conftest.$ac_ext <<_ACEOF
13433/* confdefs.h. */
13434_ACEOF
13435cat confdefs.h >>conftest.$ac_ext
13436cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013437/* end confdefs.h. */
13438
Reid Spencera773bd52006-08-04 18:18:08 +000013439/* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013442#ifdef __cplusplus
13443extern "C"
13444#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013445char sin ();
13446int
13447main ()
13448{
Reid Spencera773bd52006-08-04 18:18:08 +000013449return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013450 ;
13451 return 0;
13452}
13453_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013454rm -f conftest.$ac_objext conftest$ac_exeext
13455if { (ac_try="$ac_link"
13456case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459esac
13460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13469 { (case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472esac
13473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_try") 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest$ac_exeext'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482esac
13483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013488 ac_cv_lib_m_sin=yes
13489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013490 echo "$as_me: failed program was:" >&5
13491sed 's/^/| /' conftest.$ac_ext >&5
13492
13493 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013495
Bill Wendlingebcceee2009-04-18 11:20:33 +000013496rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013497 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013498LIBS=$ac_check_lib_save_LIBS
13499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013500{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13501echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13502if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013503 cat >>confdefs.h <<_ACEOF
13504#define HAVE_LIBM 1
13505_ACEOF
13506
13507 LIBS="-lm $LIBS"
13508
13509fi
13510
Jeff Cohen28783c32007-01-12 18:22:38 +000013511if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013512
13513{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13514echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13515if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013517else
13518 ac_check_lib_save_LIBS=$LIBS
13519LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013520cat >conftest.$ac_ext <<_ACEOF
13521/* confdefs.h. */
13522_ACEOF
13523cat confdefs.h >>conftest.$ac_ext
13524cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013525/* end confdefs.h. */
13526
Reid Spencer48fdf912006-06-01 19:03:21 +000013527
Reid Spencer484fc8e2006-06-01 16:55:59 +000013528int
13529main ()
13530{
Reid Spencera773bd52006-08-04 18:18:08 +000013531return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013532 ;
13533 return 0;
13534}
13535_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013536rm -f conftest.$ac_objext conftest$ac_exeext
13537if { (ac_try="$ac_link"
13538case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13541esac
13542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_link") 2>conftest.er1
13544 ac_status=$?
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13551 { (case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13554esac
13555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_try") 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; } &&
13560 { ac_try='test -s conftest$ac_exeext'
13561 { (case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13564esac
13565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_try") 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013570 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013572 echo "$as_me: failed program was:" >&5
13573sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013577
Bill Wendlingebcceee2009-04-18 11:20:33 +000013578rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013579 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013580LIBS=$ac_check_lib_save_LIBS
13581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013582{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13583echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13584if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013585 cat >>confdefs.h <<_ACEOF
13586#define HAVE_LIBIMAGEHLP 1
13587_ACEOF
13588
13589 LIBS="-limagehlp $LIBS"
13590
13591fi
13592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013593
13594{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13595echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13596if test "${ac_cv_lib_psapi_main+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013598else
13599 ac_check_lib_save_LIBS=$LIBS
13600LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013601cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013606/* end confdefs.h. */
13607
Reid Spencer48fdf912006-06-01 19:03:21 +000013608
Reid Spencer484fc8e2006-06-01 16:55:59 +000013609int
13610main ()
13611{
Reid Spencera773bd52006-08-04 18:18:08 +000013612return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013613 ;
13614 return 0;
13615}
13616_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013617rm -f conftest.$ac_objext conftest$ac_exeext
13618if { (ac_try="$ac_link"
13619case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622esac
13623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_link") 2>conftest.er1
13625 ac_status=$?
13626 grep -v '^ *+' conftest.er1 >conftest.err
13627 rm -f conftest.er1
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13632 { (case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635esac
13636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_try") 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest$ac_exeext'
13642 { (case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645esac
13646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_try") 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013651 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013653 echo "$as_me: failed program was:" >&5
13654sed 's/^/| /' conftest.$ac_ext >&5
13655
13656 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013657fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013658
Bill Wendlingebcceee2009-04-18 11:20:33 +000013659rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013660 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013661LIBS=$ac_check_lib_save_LIBS
13662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013663{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13664echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13665if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013666 cat >>confdefs.h <<_ACEOF
13667#define HAVE_LIBPSAPI 1
13668_ACEOF
13669
13670 LIBS="-lpsapi $LIBS"
13671
13672fi
13673
13674fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013676{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13677echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13678if test "${ac_cv_search_dlopen+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013680else
13681 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013682cat >conftest.$ac_ext <<_ACEOF
13683/* confdefs.h. */
13684_ACEOF
13685cat confdefs.h >>conftest.$ac_ext
13686cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013687/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013688
Reid Spencera773bd52006-08-04 18:18:08 +000013689/* Override any GCC internal prototype to avoid an error.
13690 Use char because int might match the return type of a GCC
13691 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013692#ifdef __cplusplus
13693extern "C"
13694#endif
John Criswell7a73b802003-06-30 21:59:07 +000013695char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013696int
13697main ()
13698{
Reid Spencera773bd52006-08-04 18:18:08 +000013699return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013700 ;
13701 return 0;
13702}
13703_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013704for ac_lib in '' dl; do
13705 if test -z "$ac_lib"; then
13706 ac_res="none required"
13707 else
13708 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013710 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013711 rm -f conftest.$ac_objext conftest$ac_exeext
13712if { (ac_try="$ac_link"
13713case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716esac
13717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_link") 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729esac
13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest$ac_exeext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739esac
13740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013745 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013746else
13747 echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
13749
13750
John Criswell7a73b802003-06-30 21:59:07 +000013751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013752
Bill Wendlingebcceee2009-04-18 11:20:33 +000013753rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754 conftest$ac_exeext
13755 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013756 break
John Criswell7a73b802003-06-30 21:59:07 +000013757fi
Reid Spencera773bd52006-08-04 18:18:08 +000013758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013759if test "${ac_cv_search_dlopen+set}" = set; then
13760 :
Reid Spencera773bd52006-08-04 18:18:08 +000013761else
13762 ac_cv_search_dlopen=no
13763fi
13764rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013765LIBS=$ac_func_search_save_LIBS
13766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013767{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13768echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013769ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013770if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013773cat >>confdefs.h <<\_ACEOF
13774#define HAVE_DLOPEN 1
13775_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013776
13777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013778 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13779echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013780fi
13781
13782
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013783if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013784 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13785echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13786if test "${ac_cv_search_ffi_call+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013788else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013789 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013790cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013795/* end confdefs.h. */
13796
13797/* Override any GCC internal prototype to avoid an error.
13798 Use char because int might match the return type of a GCC
13799 builtin and then its argument prototype would still apply. */
13800#ifdef __cplusplus
13801extern "C"
13802#endif
13803char ffi_call ();
13804int
13805main ()
13806{
13807return ffi_call ();
13808 ;
13809 return 0;
13810}
13811_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013812for ac_lib in '' ffi; do
13813 if test -z "$ac_lib"; then
13814 ac_res="none required"
13815 else
13816 ac_res=-l$ac_lib
13817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13818 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013819 rm -f conftest.$ac_objext conftest$ac_exeext
13820if { (ac_try="$ac_link"
13821case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824esac
13825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_link") 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
13833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13834 { (case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13837esac
13838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_try") 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest$ac_exeext'
13844 { (case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13847esac
13848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_try") 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013853 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013854else
13855 echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013860
Bill Wendlingebcceee2009-04-18 11:20:33 +000013861rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013862 conftest$ac_exeext
13863 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013864 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013865fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013866done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013867if test "${ac_cv_search_ffi_call+set}" = set; then
13868 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013869else
13870 ac_cv_search_ffi_call=no
13871fi
13872rm conftest.$ac_ext
13873LIBS=$ac_func_search_save_LIBS
13874fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013875{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13876echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013877ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013878if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013881cat >>confdefs.h <<\_ACEOF
13882#define HAVE_FFI_CALL 1
13883_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013884
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013885else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013886 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13887echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13888 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013889fi
13890
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013891fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013893{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13894echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13895if test "${ac_cv_search_mallinfo+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013897else
13898 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013905
Reid Spencera773bd52006-08-04 18:18:08 +000013906/* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013909#ifdef __cplusplus
13910extern "C"
13911#endif
John Criswell7a73b802003-06-30 21:59:07 +000013912char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013913int
13914main ()
13915{
Reid Spencera773bd52006-08-04 18:18:08 +000013916return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013917 ;
13918 return 0;
13919}
13920_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013921for ac_lib in '' malloc; do
13922 if test -z "$ac_lib"; then
13923 ac_res="none required"
13924 else
13925 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013927 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013928 rm -f conftest.$ac_objext conftest$ac_exeext
13929if { (ac_try="$ac_link"
13930case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13933esac
13934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_link") 2>conftest.er1
13936 ac_status=$?
13937 grep -v '^ *+' conftest.er1 >conftest.err
13938 rm -f conftest.er1
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13956esac
13957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_try") 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013962 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013963else
13964 echo "$as_me: failed program was:" >&5
13965sed 's/^/| /' conftest.$ac_ext >&5
13966
13967
John Criswell7a73b802003-06-30 21:59:07 +000013968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013969
Bill Wendlingebcceee2009-04-18 11:20:33 +000013970rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971 conftest$ac_exeext
13972 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013973 break
John Criswell7a73b802003-06-30 21:59:07 +000013974fi
Reid Spencera773bd52006-08-04 18:18:08 +000013975done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013976if test "${ac_cv_search_mallinfo+set}" = set; then
13977 :
Reid Spencera773bd52006-08-04 18:18:08 +000013978else
13979 ac_cv_search_mallinfo=no
13980fi
13981rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013982LIBS=$ac_func_search_save_LIBS
13983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013984{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13985echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013986ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013990cat >>confdefs.h <<\_ACEOF
13991#define HAVE_MALLINFO 1
13992_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013993
13994fi
13995
13996
Reid Spencer0a262ba2005-08-24 10:07:20 +000013997if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013998
13999{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14000echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14001if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014003else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014004 ac_check_lib_save_LIBS=$LIBS
14005LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006cat >conftest.$ac_ext <<_ACEOF
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014011/* end confdefs.h. */
14012
Reid Spencera773bd52006-08-04 18:18:08 +000014013/* Override any GCC internal prototype to avoid an error.
14014 Use char because int might match the return type of a GCC
14015 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014016#ifdef __cplusplus
14017extern "C"
14018#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014019char pthread_mutex_init ();
14020int
14021main ()
14022{
Reid Spencera773bd52006-08-04 18:18:08 +000014023return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014024 ;
14025 return 0;
14026}
14027_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028rm -f conftest.$ac_objext conftest$ac_exeext
14029if { (ac_try="$ac_link"
14030case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033esac
14034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_link") 2>conftest.er1
14036 ac_status=$?
14037 grep -v '^ *+' conftest.er1 >conftest.err
14038 rm -f conftest.er1
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; } &&
14052 { ac_try='test -s conftest$ac_exeext'
14053 { (case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056esac
14057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_try") 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014062 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014064 echo "$as_me: failed program was:" >&5
14065sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069
Bill Wendlingebcceee2009-04-18 11:20:33 +000014070rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014072LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014074{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14075echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14076if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014077 cat >>confdefs.h <<_ACEOF
14078#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014079_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014080
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014081 LIBS="-lpthread $LIBS"
14082
Reid Spencer22177fe2005-07-12 15:24:20 +000014083fi
14084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014085 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14086echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14087if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014089else
14090 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014091cat >conftest.$ac_ext <<_ACEOF
14092/* confdefs.h. */
14093_ACEOF
14094cat confdefs.h >>conftest.$ac_ext
14095cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014096/* end confdefs.h. */
14097
Reid Spencera773bd52006-08-04 18:18:08 +000014098/* Override any GCC internal prototype to avoid an error.
14099 Use char because int might match the return type of a GCC
14100 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014101#ifdef __cplusplus
14102extern "C"
14103#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014104char pthread_mutex_lock ();
14105int
14106main ()
14107{
Reid Spencera773bd52006-08-04 18:18:08 +000014108return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014109 ;
14110 return 0;
14111}
14112_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014113for ac_lib in '' pthread; do
14114 if test -z "$ac_lib"; then
14115 ac_res="none required"
14116 else
14117 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014119 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120 rm -f conftest.$ac_objext conftest$ac_exeext
14121if { (ac_try="$ac_link"
14122case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14125esac
14126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_link") 2>conftest.er1
14128 ac_status=$?
14129 grep -v '^ *+' conftest.er1 >conftest.err
14130 rm -f conftest.er1
14131 cat conftest.err >&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } &&
14134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14135 { (case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138esac
14139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_try") 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (case "(($ac_try" in
14146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147 *) ac_try_echo=$ac_try;;
14148esac
14149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_try") 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014154 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014155else
14156 echo "$as_me: failed program was:" >&5
14157sed 's/^/| /' conftest.$ac_ext >&5
14158
14159
Brian Gaeke5f268f72003-12-05 19:29:01 +000014160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014161
Bill Wendlingebcceee2009-04-18 11:20:33 +000014162rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163 conftest$ac_exeext
14164 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014165 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014166fi
Reid Spencera773bd52006-08-04 18:18:08 +000014167done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14169 :
Reid Spencera773bd52006-08-04 18:18:08 +000014170else
14171 ac_cv_search_pthread_mutex_lock=no
14172fi
14173rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014174LIBS=$ac_func_search_save_LIBS
14175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014176{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14177echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014178ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182cat >>confdefs.h <<\_ACEOF
14183#define HAVE_PTHREAD_MUTEX_LOCK 1
14184_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014185
14186fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014188 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14189echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14190if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014192else
14193 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014199/* end confdefs.h. */
14200
14201/* Override any GCC internal prototype to avoid an error.
14202 Use char because int might match the return type of a GCC
14203 builtin and then its argument prototype would still apply. */
14204#ifdef __cplusplus
14205extern "C"
14206#endif
14207char pthread_rwlock_init ();
14208int
14209main ()
14210{
14211return pthread_rwlock_init ();
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216for ac_lib in '' pthread; do
14217 if test -z "$ac_lib"; then
14218 ac_res="none required"
14219 else
14220 ac_res=-l$ac_lib
14221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14222 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223 rm -f conftest.$ac_objext conftest$ac_exeext
14224if { (ac_try="$ac_link"
14225case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14228esac
14229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_link") 2>conftest.er1
14231 ac_status=$?
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14238 { (case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14241esac
14242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_try") 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest$ac_exeext'
14248 { (case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14251esac
14252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_try") 2>&5
14254 ac_status=$?
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014257 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258else
14259 echo "$as_me: failed program was:" >&5
14260sed 's/^/| /' conftest.$ac_ext >&5
14261
14262
Owen Andersonde8aed22009-06-16 18:20:20 +000014263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014264
Owen Andersonde8aed22009-06-16 18:20:20 +000014265rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266 conftest$ac_exeext
14267 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014268 break
14269fi
14270done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014271if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14272 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014273else
14274 ac_cv_search_pthread_rwlock_init=no
14275fi
14276rm conftest.$ac_ext
14277LIBS=$ac_func_search_save_LIBS
14278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014279{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14280echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014281ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014285cat >>confdefs.h <<\_ACEOF
14286#define HAVE_PTHREAD_RWLOCK_INIT 1
14287_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014288
14289fi
14290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014291 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14292echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14293if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014295else
14296 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014297cat >conftest.$ac_ext <<_ACEOF
14298/* confdefs.h. */
14299_ACEOF
14300cat confdefs.h >>conftest.$ac_ext
14301cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014302/* end confdefs.h. */
14303
14304/* Override any GCC internal prototype to avoid an error.
14305 Use char because int might match the return type of a GCC
14306 builtin and then its argument prototype would still apply. */
14307#ifdef __cplusplus
14308extern "C"
14309#endif
14310char pthread_getspecific ();
14311int
14312main ()
14313{
14314return pthread_getspecific ();
14315 ;
14316 return 0;
14317}
14318_ACEOF
14319for ac_lib in '' pthread; do
14320 if test -z "$ac_lib"; then
14321 ac_res="none required"
14322 else
14323 ac_res=-l$ac_lib
14324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14325 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014326 rm -f conftest.$ac_objext conftest$ac_exeext
14327if { (ac_try="$ac_link"
14328case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331esac
14332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_link") 2>conftest.er1
14334 ac_status=$?
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14341 { (case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14344esac
14345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_try") 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; } &&
14350 { ac_try='test -s conftest$ac_exeext'
14351 { (case "(($ac_try" in
14352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353 *) ac_try_echo=$ac_try;;
14354esac
14355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14356 (eval "$ac_try") 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014360 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014361else
14362 echo "$as_me: failed program was:" >&5
14363sed 's/^/| /' conftest.$ac_ext >&5
14364
14365
Owen Anderson27fcfe12009-06-25 23:10:26 +000014366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014367
Owen Anderson27fcfe12009-06-25 23:10:26 +000014368rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369 conftest$ac_exeext
14370 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014371 break
14372fi
14373done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014374if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14375 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014376else
14377 ac_cv_search_pthread_getspecific=no
14378fi
14379rm conftest.$ac_ext
14380LIBS=$ac_func_search_save_LIBS
14381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14383echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014384ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014385if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014388cat >>confdefs.h <<\_ACEOF
14389#define HAVE_PTHREAD_GETSPECIFIC 1
14390_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014391
14392fi
14393
Reid Spencer0a262ba2005-08-24 10:07:20 +000014394fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014395
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014396
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014397# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014398if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014399 withval=$with_udis86;
14400 USE_UDIS86=1
14401
14402 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014403 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014404 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14405 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014406
14407{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14408echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14409if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014411else
14412 ac_check_lib_save_LIBS=$LIBS
14413LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014414cat >conftest.$ac_ext <<_ACEOF
14415/* confdefs.h. */
14416_ACEOF
14417cat confdefs.h >>conftest.$ac_ext
14418cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014419/* end confdefs.h. */
14420
14421/* Override any GCC internal prototype to avoid an error.
14422 Use char because int might match the return type of a GCC
14423 builtin and then its argument prototype would still apply. */
14424#ifdef __cplusplus
14425extern "C"
14426#endif
14427char ud_init ();
14428int
14429main ()
14430{
14431return ud_init ();
14432 ;
14433 return 0;
14434}
14435_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014436rm -f conftest.$ac_objext conftest$ac_exeext
14437if { (ac_try="$ac_link"
14438case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14441esac
14442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_link") 2>conftest.er1
14444 ac_status=$?
14445 grep -v '^ *+' conftest.er1 >conftest.err
14446 rm -f conftest.er1
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14451 { (case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454esac
14455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_try") 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } &&
14460 { ac_try='test -s conftest$ac_exeext'
14461 { (case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14464esac
14465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_try") 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014470 ac_cv_lib_udis86_ud_init=yes
14471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014472 echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014477
Bill Wendlingebcceee2009-04-18 11:20:33 +000014478rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014480LIBS=$ac_check_lib_save_LIBS
14481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014482{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14483echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14484if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014485 cat >>confdefs.h <<_ACEOF
14486#define HAVE_LIBUDIS86 1
14487_ACEOF
14488
14489 LIBS="-ludis86 $LIBS"
14490
14491else
14492
14493 echo "Error! You need to have libudis86 around."
14494 exit -1
14495
14496fi
14497
14498
14499else
14500 USE_UDIS86=0
14501
14502fi
14503
14504
14505cat >>confdefs.h <<_ACEOF
14506#define USE_UDIS86 $USE_UDIS86
14507_ACEOF
14508
14509
14510
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014511# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014512if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014513 withval=$with_oprofile;
14514 USE_OPROFILE=1
14515
14516 case "$withval" in
14517 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014518 no) llvm_cv_oppath=
14519 USE_OPROFILE=0
14520 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014521 *) llvm_cv_oppath="${withval}/lib/oprofile"
14522 CPPFLAGS="-I${withval}/include";;
14523 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014524 if test -n "$llvm_cv_oppath" ; then
14525 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014526 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14527echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14528if test "${ac_cv_search_bfd_init+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014530else
14531 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014532cat >conftest.$ac_ext <<_ACEOF
14533/* confdefs.h. */
14534_ACEOF
14535cat confdefs.h >>conftest.$ac_ext
14536cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014537/* end confdefs.h. */
14538
14539/* Override any GCC internal prototype to avoid an error.
14540 Use char because int might match the return type of a GCC
14541 builtin and then its argument prototype would still apply. */
14542#ifdef __cplusplus
14543extern "C"
14544#endif
14545char bfd_init ();
14546int
14547main ()
14548{
14549return bfd_init ();
14550 ;
14551 return 0;
14552}
14553_ACEOF
14554for ac_lib in '' bfd; do
14555 if test -z "$ac_lib"; then
14556 ac_res="none required"
14557 else
14558 ac_res=-l$ac_lib
14559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14560 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014561 rm -f conftest.$ac_objext conftest$ac_exeext
14562if { (ac_try="$ac_link"
14563case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_link") 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14576 { (case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14579esac
14580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_try") 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; } &&
14585 { ac_try='test -s conftest$ac_exeext'
14586 { (case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589esac
14590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_try") 2>&5
14592 ac_status=$?
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014595 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014596else
14597 echo "$as_me: failed program was:" >&5
14598sed 's/^/| /' conftest.$ac_ext >&5
14599
14600
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014602
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014603rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014604 conftest$ac_exeext
14605 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014606 break
14607fi
14608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014609if test "${ac_cv_search_bfd_init+set}" = set; then
14610 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014611else
14612 ac_cv_search_bfd_init=no
14613fi
14614rm conftest.$ac_ext
14615LIBS=$ac_func_search_save_LIBS
14616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014617{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14618echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014619ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014620if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14622
14623fi
14624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014625 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14626echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14627if test "${ac_cv_search_op_open_agent+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014629else
14630 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014631cat >conftest.$ac_ext <<_ACEOF
14632/* confdefs.h. */
14633_ACEOF
14634cat confdefs.h >>conftest.$ac_ext
14635cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014636/* end confdefs.h. */
14637
14638/* Override any GCC internal prototype to avoid an error.
14639 Use char because int might match the return type of a GCC
14640 builtin and then its argument prototype would still apply. */
14641#ifdef __cplusplus
14642extern "C"
14643#endif
14644char op_open_agent ();
14645int
14646main ()
14647{
14648return op_open_agent ();
14649 ;
14650 return 0;
14651}
14652_ACEOF
14653for ac_lib in '' opagent; do
14654 if test -z "$ac_lib"; then
14655 ac_res="none required"
14656 else
14657 ac_res=-l$ac_lib
14658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14659 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014660 rm -f conftest.$ac_objext conftest$ac_exeext
14661if { (ac_try="$ac_link"
14662case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14665esac
14666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_link") 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14675 { (case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14678esac
14679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_try") 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; } &&
14684 { ac_try='test -s conftest$ac_exeext'
14685 { (case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688esac
14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_try") 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014694 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014695else
14696 echo "$as_me: failed program was:" >&5
14697sed 's/^/| /' conftest.$ac_ext >&5
14698
14699
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014701
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014702rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703 conftest$ac_exeext
14704 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014705 break
14706fi
14707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014708if test "${ac_cv_search_op_open_agent+set}" = set; then
14709 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014710else
14711 ac_cv_search_op_open_agent=no
14712fi
14713rm conftest.$ac_ext
14714LIBS=$ac_func_search_save_LIBS
14715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014716{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14717echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014718ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014719if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14721
14722else
14723
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014724 echo "Error! You need to have libopagent around."
14725 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014726
14727fi
14728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014729 if test "${ac_cv_header_opagent_h+set}" = set; then
14730 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14731echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14732if test "${ac_cv_header_opagent_h+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734fi
14735{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14736echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14737else
14738 # Is the header compilable?
14739{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14740echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14741cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747$ac_includes_default
14748#include <opagent.h>
14749_ACEOF
14750rm -f conftest.$ac_objext
14751if { (ac_try="$ac_compile"
14752case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755esac
14756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14765 { (case "(($ac_try" in
14766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14768esac
14769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_try") 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; } &&
14774 { ac_try='test -s conftest.$ac_objext'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778esac
14779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_header_compiler=yes
14785else
14786 echo "$as_me: failed program was:" >&5
14787sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014789 ac_header_compiler=no
14790fi
14791
14792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14794echo "${ECHO_T}$ac_header_compiler" >&6; }
14795
14796# Is the header present?
14797{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14798echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14799cat >conftest.$ac_ext <<_ACEOF
14800/* confdefs.h. */
14801_ACEOF
14802cat confdefs.h >>conftest.$ac_ext
14803cat >>conftest.$ac_ext <<_ACEOF
14804/* end confdefs.h. */
14805#include <opagent.h>
14806_ACEOF
14807if { (ac_try="$ac_cpp conftest.$ac_ext"
14808case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811esac
14812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14814 ac_status=$?
14815 grep -v '^ *+' conftest.er1 >conftest.err
14816 rm -f conftest.er1
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } >/dev/null; then
14820 if test -s conftest.err; then
14821 ac_cpp_err=$ac_c_preproc_warn_flag
14822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14823 else
14824 ac_cpp_err=
14825 fi
14826else
14827 ac_cpp_err=yes
14828fi
14829if test -z "$ac_cpp_err"; then
14830 ac_header_preproc=yes
14831else
14832 echo "$as_me: failed program was:" >&5
14833sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_header_preproc=no
14836fi
14837
14838rm -f conftest.err conftest.$ac_ext
14839{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14840echo "${ECHO_T}$ac_header_preproc" >&6; }
14841
14842# So? What about this header?
14843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14844 yes:no: )
14845 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14846echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14848echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14849 ac_header_preproc=yes
14850 ;;
14851 no:yes:* )
14852 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14853echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14855echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14857echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14859echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14861echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14863echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14864 ( cat <<\_ASBOX
14865## ----------------------------------- ##
14866## Report this to llvmbugs@cs.uiuc.edu ##
14867## ----------------------------------- ##
14868_ASBOX
14869 ) | sed "s/^/$as_me: WARNING: /" >&2
14870 ;;
14871esac
14872{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14873echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14874if test "${ac_cv_header_opagent_h+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876else
14877 ac_cv_header_opagent_h=$ac_header_preproc
14878fi
14879{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14880echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14881
14882fi
14883if test $ac_cv_header_opagent_h = yes; then
14884 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014885else
14886
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014887 echo "Error! You need to have opagent.h around."
14888 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014889
14890fi
14891
14892
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014893 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014894
14895else
14896
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014897 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014898
14899
14900fi
14901
14902
14903cat >>confdefs.h <<_ACEOF
14904#define USE_OPROFILE $USE_OPROFILE
14905_ACEOF
14906
14907
14908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014909
14910
14911
14912
14913
Reid Spencer59473af2004-12-25 07:31:29 +000014914ac_header_dirent=no
14915for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014916 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14917{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14918echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014922 cat >conftest.$ac_ext <<_ACEOF
14923/* confdefs.h. */
14924_ACEOF
14925cat confdefs.h >>conftest.$ac_ext
14926cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014927/* end confdefs.h. */
14928#include <sys/types.h>
14929#include <$ac_hdr>
14930
14931int
14932main ()
14933{
14934if ((DIR *) 0)
14935return 0;
14936 ;
14937 return 0;
14938}
14939_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014940rm -f conftest.$ac_objext
14941if { (ac_try="$ac_compile"
14942case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14945esac
14946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_compile") 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
14954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14955 { (case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_try") 2>&5
14961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14968esac
14969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970 (eval "$ac_try") 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014974 eval "$as_ac_Header=yes"
14975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014976 echo "$as_me: failed program was:" >&5
14977sed 's/^/| /' conftest.$ac_ext >&5
14978
14979 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014981
Reid Spencera773bd52006-08-04 18:18:08 +000014982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014984ac_res=`eval echo '${'$as_ac_Header'}'`
14985 { echo "$as_me:$LINENO: result: $ac_res" >&5
14986echo "${ECHO_T}$ac_res" >&6; }
14987if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014988 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014989#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014990_ACEOF
14991
14992ac_header_dirent=$ac_hdr; break
14993fi
14994
14995done
14996# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14997if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014998 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14999echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15000if test "${ac_cv_search_opendir+set}" = set; then
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015002else
15003 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015004cat >conftest.$ac_ext <<_ACEOF
15005/* confdefs.h. */
15006_ACEOF
15007cat confdefs.h >>conftest.$ac_ext
15008cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015009/* end confdefs.h. */
15010
Reid Spencera773bd52006-08-04 18:18:08 +000015011/* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015014#ifdef __cplusplus
15015extern "C"
15016#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015017char opendir ();
15018int
15019main ()
15020{
Reid Spencera773bd52006-08-04 18:18:08 +000015021return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015022 ;
15023 return 0;
15024}
15025_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015026for ac_lib in '' dir; do
15027 if test -z "$ac_lib"; then
15028 ac_res="none required"
15029 else
15030 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015032 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015033 rm -f conftest.$ac_objext conftest$ac_exeext
15034if { (ac_try="$ac_link"
15035case "(($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_link") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051esac
15052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest$ac_exeext'
15058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15061esac
15062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
15064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015067 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015068else
15069 echo "$as_me: failed program was:" >&5
15070sed 's/^/| /' conftest.$ac_ext >&5
15071
15072
Reid Spencer59473af2004-12-25 07:31:29 +000015073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015074
Bill Wendlingebcceee2009-04-18 11:20:33 +000015075rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076 conftest$ac_exeext
15077 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015078 break
Reid Spencer59473af2004-12-25 07:31:29 +000015079fi
Reid Spencera773bd52006-08-04 18:18:08 +000015080done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015081if test "${ac_cv_search_opendir+set}" = set; then
15082 :
Reid Spencera773bd52006-08-04 18:18:08 +000015083else
15084 ac_cv_search_opendir=no
15085fi
15086rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015087LIBS=$ac_func_search_save_LIBS
15088fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015089{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15090echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015091ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015092if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015094
15095fi
15096
15097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015098 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15099echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15100if test "${ac_cv_search_opendir+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015102else
15103 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015104cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h. */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015109/* end confdefs.h. */
15110
Reid Spencera773bd52006-08-04 18:18:08 +000015111/* Override any GCC internal prototype to avoid an error.
15112 Use char because int might match the return type of a GCC
15113 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015114#ifdef __cplusplus
15115extern "C"
15116#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015117char opendir ();
15118int
15119main ()
15120{
Reid Spencera773bd52006-08-04 18:18:08 +000015121return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015122 ;
15123 return 0;
15124}
15125_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015126for ac_lib in '' x; do
15127 if test -z "$ac_lib"; then
15128 ac_res="none required"
15129 else
15130 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015132 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015133 rm -f conftest.$ac_objext conftest$ac_exeext
15134if { (ac_try="$ac_link"
15135case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15138esac
15139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_link") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151esac
15152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15161esac
15162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015167 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015168else
15169 echo "$as_me: failed program was:" >&5
15170sed 's/^/| /' conftest.$ac_ext >&5
15171
15172
Reid Spencer59473af2004-12-25 07:31:29 +000015173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015174
Bill Wendlingebcceee2009-04-18 11:20:33 +000015175rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176 conftest$ac_exeext
15177 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015178 break
Reid Spencer59473af2004-12-25 07:31:29 +000015179fi
Reid Spencera773bd52006-08-04 18:18:08 +000015180done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015181if test "${ac_cv_search_opendir+set}" = set; then
15182 :
Reid Spencera773bd52006-08-04 18:18:08 +000015183else
15184 ac_cv_search_opendir=no
15185fi
15186rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015187LIBS=$ac_func_search_save_LIBS
15188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015189{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15190echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015191ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015192if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015194
15195fi
15196
15197fi
15198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015199{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15200echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15201if test "${ac_cv_header_mmap_anon+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015203else
15204 ac_ext=c
15205ac_cpp='$CPP $CPPFLAGS'
15206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15208ac_compiler_gnu=$ac_cv_c_compiler_gnu
15209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015210 cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015215/* end confdefs.h. */
15216#include <sys/mman.h>
15217#include <unistd.h>
15218#include <fcntl.h>
15219int
15220main ()
15221{
15222mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15223 ;
15224 return 0;
15225}
15226_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015227rm -f conftest.$ac_objext
15228if { (ac_try="$ac_compile"
15229case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232esac
15233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_compile") 2>conftest.er1
15235 ac_status=$?
15236 grep -v '^ *+' conftest.er1 >conftest.err
15237 rm -f conftest.er1
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245esac
15246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; } &&
15251 { ac_try='test -s conftest.$ac_objext'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255esac
15256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015261 ac_cv_header_mmap_anon=yes
15262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015263 echo "$as_me: failed program was:" >&5
15264sed 's/^/| /' conftest.$ac_ext >&5
15265
15266 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015268
Reid Spencera773bd52006-08-04 18:18:08 +000015269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015270 ac_ext=c
15271ac_cpp='$CPP $CPPFLAGS'
15272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15274ac_compiler_gnu=$ac_cv_c_compiler_gnu
15275
15276
15277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015278{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15279echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015280if test "$ac_cv_header_mmap_anon" = yes; then
15281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015282cat >>confdefs.h <<\_ACEOF
15283#define HAVE_MMAP_ANONYMOUS 1
15284_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015285
15286fi
15287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015288{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15289echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15290if test "${ac_cv_header_stat_broken+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015293 cat >conftest.$ac_ext <<_ACEOF
15294/* confdefs.h. */
15295_ACEOF
15296cat confdefs.h >>conftest.$ac_ext
15297cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015298/* end confdefs.h. */
15299#include <sys/types.h>
15300#include <sys/stat.h>
15301
Reid Spencera773bd52006-08-04 18:18:08 +000015302#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015303# if S_ISBLK (S_IFDIR)
15304You lose.
15305# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015306#endif
15307
Reid Spencera773bd52006-08-04 18:18:08 +000015308#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015309# if S_ISBLK (S_IFCHR)
15310You lose.
15311# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015312#endif
15313
Reid Spencera773bd52006-08-04 18:18:08 +000015314#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015315# if S_ISLNK (S_IFREG)
15316You lose.
15317# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015318#endif
15319
Reid Spencera773bd52006-08-04 18:18:08 +000015320#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321# if S_ISSOCK (S_IFREG)
15322You lose.
15323# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015324#endif
15325
15326_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15328 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015329 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015330else
15331 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015333rm -f conftest*
15334
Reid Spencer59473af2004-12-25 07:31:29 +000015335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015336{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15337echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015338if test $ac_cv_header_stat_broken = yes; then
15339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015340cat >>confdefs.h <<\_ACEOF
15341#define STAT_MACROS_BROKEN 1
15342_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015343
15344fi
15345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015346{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15347echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15348if test "${ac_cv_header_stdc+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015350else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015351 cat >conftest.$ac_ext <<_ACEOF
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015357#include <stdlib.h>
15358#include <stdarg.h>
15359#include <string.h>
15360#include <float.h>
15361
John Criswell0c38eaf2003-09-10 15:17:25 +000015362int
15363main ()
15364{
15365
15366 ;
15367 return 0;
15368}
John Criswell7a73b802003-06-30 21:59:07 +000015369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015370rm -f conftest.$ac_objext
15371if { (ac_try="$ac_compile"
15372case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375esac
15376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_compile") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15385 { (case "(($ac_try" in
15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387 *) ac_try_echo=$ac_try;;
15388esac
15389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15390 (eval "$ac_try") 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15398esac
15399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015404 ac_cv_header_stdc=yes
15405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015406 echo "$as_me: failed program was:" >&5
15407sed 's/^/| /' conftest.$ac_ext >&5
15408
15409 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015411
Reid Spencera773bd52006-08-04 18:18:08 +000015412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015413
15414if test $ac_cv_header_stdc = yes; then
15415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015416 cat >conftest.$ac_ext <<_ACEOF
15417/* confdefs.h. */
15418_ACEOF
15419cat confdefs.h >>conftest.$ac_ext
15420cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015422#include <string.h>
15423
15424_ACEOF
15425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015426 $EGREP "memchr" >/dev/null 2>&1; then
15427 :
John Criswell7a73b802003-06-30 21:59:07 +000015428else
15429 ac_cv_header_stdc=no
15430fi
15431rm -f conftest*
15432
15433fi
15434
15435if test $ac_cv_header_stdc = yes; then
15436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015437 cat >conftest.$ac_ext <<_ACEOF
15438/* confdefs.h. */
15439_ACEOF
15440cat confdefs.h >>conftest.$ac_ext
15441cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015443#include <stdlib.h>
15444
15445_ACEOF
15446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015447 $EGREP "free" >/dev/null 2>&1; then
15448 :
John Criswell7a73b802003-06-30 21:59:07 +000015449else
15450 ac_cv_header_stdc=no
15451fi
15452rm -f conftest*
15453
15454fi
15455
15456if test $ac_cv_header_stdc = yes; then
15457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015458 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015459 :
15460else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015461 cat >conftest.$ac_ext <<_ACEOF
15462/* confdefs.h. */
15463_ACEOF
15464cat confdefs.h >>conftest.$ac_ext
15465cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015467#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015468#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015469#if ((' ' & 0x0FF) == 0x020)
15470# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15471# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15472#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015473# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015474 (('a' <= (c) && (c) <= 'i') \
15475 || ('j' <= (c) && (c) <= 'r') \
15476 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015477# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15478#endif
15479
15480#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15481int
15482main ()
15483{
15484 int i;
15485 for (i = 0; i < 256; i++)
15486 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015487 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015488 return 2;
15489 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015490}
15491_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015492rm -f conftest$ac_exeext
15493if { (ac_try="$ac_link"
15494case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_link") 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15503 { (case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15506esac
15507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_try") 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 :
John Criswell7a73b802003-06-30 21:59:07 +000015513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015514 echo "$as_me: program exited with status $ac_status" >&5
15515echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518( exit $ac_status )
15519ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015521rm -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 +000015522fi
15523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015524
John Criswell7a73b802003-06-30 21:59:07 +000015525fi
15526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015527{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15528echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015529if test $ac_cv_header_stdc = yes; then
15530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015531cat >>confdefs.h <<\_ACEOF
15532#define STDC_HEADERS 1
15533_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015534
15535fi
15536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015537{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15538echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15539if test "${ac_cv_header_sys_wait_h+set}" = set; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015542 cat >conftest.$ac_ext <<_ACEOF
15543/* confdefs.h. */
15544_ACEOF
15545cat confdefs.h >>conftest.$ac_ext
15546cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015548#include <sys/types.h>
15549#include <sys/wait.h>
15550#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015551# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015552#endif
15553#ifndef WIFEXITED
15554# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15555#endif
15556
John Criswell7a73b802003-06-30 21:59:07 +000015557int
15558main ()
15559{
15560 int s;
15561 wait (&s);
15562 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15563 ;
15564 return 0;
15565}
15566_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015567rm -f conftest.$ac_objext
15568if { (ac_try="$ac_compile"
15569case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15572esac
15573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_compile") 2>conftest.er1
15575 ac_status=$?
15576 grep -v '^ *+' conftest.er1 >conftest.err
15577 rm -f conftest.er1
15578 cat conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); } &&
15581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15582 { (case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15585esac
15586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_try") 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595esac
15596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_try") 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015601 ac_cv_header_sys_wait_h=yes
15602else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015603 echo "$as_me: failed program was:" >&5
15604sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015608
Reid Spencera773bd52006-08-04 18:18:08 +000015609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015611{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15612echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015613if test $ac_cv_header_sys_wait_h = yes; then
15614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015615cat >>confdefs.h <<\_ACEOF
15616#define HAVE_SYS_WAIT_H 1
15617_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015618
15619fi
15620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015621{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15622echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15623if test "${ac_cv_header_time+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015625else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015626 cat >conftest.$ac_ext <<_ACEOF
15627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015631/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015632#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015633#include <sys/time.h>
15634#include <time.h>
15635
15636int
15637main ()
15638{
15639if ((struct tm *) 0)
15640return 0;
15641 ;
15642 return 0;
15643}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015644_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015645rm -f conftest.$ac_objext
15646if { (ac_try="$ac_compile"
15647case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15650esac
15651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_compile") 2>conftest.er1
15653 ac_status=$?
15654 grep -v '^ *+' conftest.er1 >conftest.err
15655 rm -f conftest.er1
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660 { (case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663esac
15664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_try") 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015679 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015681 echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015686
Reid Spencera773bd52006-08-04 18:18:08 +000015687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015689{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15690echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015691if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015693cat >>confdefs.h <<\_ACEOF
15694#define TIME_WITH_SYS_TIME 1
15695_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015696
15697fi
15698
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015700
15701
15702
15703
15704
15705
Reid Spencer59473af2004-12-25 07:31:29 +000015706for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015707do
15708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714fi
15715ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717echo "${ECHO_T}$ac_res" >&6; }
15718else
15719 # Is the header compilable?
15720{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15722cat >conftest.$ac_ext <<_ACEOF
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
15728$ac_includes_default
15729#include <$ac_header>
15730_ACEOF
15731rm -f conftest.$ac_objext
15732if { (ac_try="$ac_compile"
15733case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736esac
15737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746 { (case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15749esac
15750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_try") 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } &&
15755 { ac_try='test -s conftest.$ac_objext'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759esac
15760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_header_compiler=yes
15766else
15767 echo "$as_me: failed program was:" >&5
15768sed 's/^/| /' conftest.$ac_ext >&5
15769
15770 ac_header_compiler=no
15771fi
15772
15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775echo "${ECHO_T}$ac_header_compiler" >&6; }
15776
15777# Is the header present?
15778{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15780cat >conftest.$ac_ext <<_ACEOF
15781/* confdefs.h. */
15782_ACEOF
15783cat confdefs.h >>conftest.$ac_ext
15784cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h. */
15786#include <$ac_header>
15787_ACEOF
15788if { (ac_try="$ac_cpp conftest.$ac_ext"
15789case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } >/dev/null; then
15801 if test -s conftest.err; then
15802 ac_cpp_err=$ac_c_preproc_warn_flag
15803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15804 else
15805 ac_cpp_err=
15806 fi
15807else
15808 ac_cpp_err=yes
15809fi
15810if test -z "$ac_cpp_err"; then
15811 ac_header_preproc=yes
15812else
15813 echo "$as_me: failed program was:" >&5
15814sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 ac_header_preproc=no
15817fi
15818
15819rm -f conftest.err conftest.$ac_ext
15820{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821echo "${ECHO_T}$ac_header_preproc" >&6; }
15822
15823# So? What about this header?
15824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15825 yes:no: )
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15830 ac_header_preproc=yes
15831 ;;
15832 no:yes:* )
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15845 ( cat <<\_ASBOX
15846## ----------------------------------- ##
15847## Report this to llvmbugs@cs.uiuc.edu ##
15848## ----------------------------------- ##
15849_ASBOX
15850 ) | sed "s/^/$as_me: WARNING: /" >&2
15851 ;;
15852esac
15853{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857else
15858 eval "$as_ac_Header=\$ac_header_preproc"
15859fi
15860ac_res=`eval echo '${'$as_ac_Header'}'`
15861 { echo "$as_me:$LINENO: result: $ac_res" >&5
15862echo "${ECHO_T}$ac_res" >&6; }
15863
15864fi
15865if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015866 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015868_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015869
15870fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015871
Reid Spencer59473af2004-12-25 07:31:29 +000015872done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015874
15875
15876
15877
15878
15879
Douglas Gregor071d73d2009-05-18 17:21:34 +000015880for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015881do
15882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888fi
15889ac_res=`eval echo '${'$as_ac_Header'}'`
15890 { echo "$as_me:$LINENO: result: $ac_res" >&5
15891echo "${ECHO_T}$ac_res" >&6; }
15892else
15893 # Is the header compilable?
15894{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15896cat >conftest.$ac_ext <<_ACEOF
15897/* confdefs.h. */
15898_ACEOF
15899cat confdefs.h >>conftest.$ac_ext
15900cat >>conftest.$ac_ext <<_ACEOF
15901/* end confdefs.h. */
15902$ac_includes_default
15903#include <$ac_header>
15904_ACEOF
15905rm -f conftest.$ac_objext
15906if { (ac_try="$ac_compile"
15907case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15910esac
15911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_compile") 2>conftest.er1
15913 ac_status=$?
15914 grep -v '^ *+' conftest.er1 >conftest.err
15915 rm -f conftest.er1
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15920 { (case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923esac
15924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_try") 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15933esac
15934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_try") 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_header_compiler=yes
15940else
15941 echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
15944 ac_header_compiler=no
15945fi
15946
15947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15949echo "${ECHO_T}$ac_header_compiler" >&6; }
15950
15951# Is the header present?
15952{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15953echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15954cat >conftest.$ac_ext <<_ACEOF
15955/* confdefs.h. */
15956_ACEOF
15957cat confdefs.h >>conftest.$ac_ext
15958cat >>conftest.$ac_ext <<_ACEOF
15959/* end confdefs.h. */
15960#include <$ac_header>
15961_ACEOF
15962if { (ac_try="$ac_cpp conftest.$ac_ext"
15963case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } >/dev/null; then
15975 if test -s conftest.err; then
15976 ac_cpp_err=$ac_c_preproc_warn_flag
15977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15978 else
15979 ac_cpp_err=
15980 fi
15981else
15982 ac_cpp_err=yes
15983fi
15984if test -z "$ac_cpp_err"; then
15985 ac_header_preproc=yes
15986else
15987 echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
15989
15990 ac_header_preproc=no
15991fi
15992
15993rm -f conftest.err conftest.$ac_ext
15994{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15995echo "${ECHO_T}$ac_header_preproc" >&6; }
15996
15997# So? What about this header?
15998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15999 yes:no: )
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16004 ac_header_preproc=yes
16005 ;;
16006 no:yes:* )
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16019 ( cat <<\_ASBOX
16020## ----------------------------------- ##
16021## Report this to llvmbugs@cs.uiuc.edu ##
16022## ----------------------------------- ##
16023_ASBOX
16024 ) | sed "s/^/$as_me: WARNING: /" >&2
16025 ;;
16026esac
16027{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16031else
16032 eval "$as_ac_Header=\$ac_header_preproc"
16033fi
16034ac_res=`eval echo '${'$as_ac_Header'}'`
16035 { echo "$as_me:$LINENO: result: $ac_res" >&5
16036echo "${ECHO_T}$ac_res" >&6; }
16037
16038fi
16039if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016042_ACEOF
16043
16044fi
16045
16046done
16047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016048
16049
Douglas Gregor071d73d2009-05-18 17:21:34 +000016050for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016051do
16052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058fi
16059ac_res=`eval echo '${'$as_ac_Header'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061echo "${ECHO_T}$ac_res" >&6; }
16062else
16063 # Is the header compilable?
16064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16066cat >conftest.$ac_ext <<_ACEOF
16067/* confdefs.h. */
16068_ACEOF
16069cat confdefs.h >>conftest.$ac_ext
16070cat >>conftest.$ac_ext <<_ACEOF
16071/* end confdefs.h. */
16072$ac_includes_default
16073#include <$ac_header>
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (ac_try="$ac_compile"
16077case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16080esac
16081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_compile") 2>conftest.er1
16083 ac_status=$?
16084 grep -v '^ *+' conftest.er1 >conftest.err
16085 rm -f conftest.er1
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16090 { (case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16093esac
16094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_try") 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
16100 { (case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16103esac
16104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_try") 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler=yes
16110else
16111 echo "$as_me: failed program was:" >&5
16112sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 ac_header_compiler=no
16115fi
16116
16117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16119echo "${ECHO_T}$ac_header_compiler" >&6; }
16120
16121# Is the header present?
16122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16124cat >conftest.$ac_ext <<_ACEOF
16125/* confdefs.h. */
16126_ACEOF
16127cat confdefs.h >>conftest.$ac_ext
16128cat >>conftest.$ac_ext <<_ACEOF
16129/* end confdefs.h. */
16130#include <$ac_header>
16131_ACEOF
16132if { (ac_try="$ac_cpp conftest.$ac_ext"
16133case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136esac
16137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16139 ac_status=$?
16140 grep -v '^ *+' conftest.er1 >conftest.err
16141 rm -f conftest.er1
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } >/dev/null; then
16145 if test -s conftest.err; then
16146 ac_cpp_err=$ac_c_preproc_warn_flag
16147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16148 else
16149 ac_cpp_err=
16150 fi
16151else
16152 ac_cpp_err=yes
16153fi
16154if test -z "$ac_cpp_err"; then
16155 ac_header_preproc=yes
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
16160 ac_header_preproc=no
16161fi
16162
16163rm -f conftest.err conftest.$ac_ext
16164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16165echo "${ECHO_T}$ac_header_preproc" >&6; }
16166
16167# So? What about this header?
16168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16169 yes:no: )
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16174 ac_header_preproc=yes
16175 ;;
16176 no:yes:* )
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16189 ( cat <<\_ASBOX
16190## ----------------------------------- ##
16191## Report this to llvmbugs@cs.uiuc.edu ##
16192## ----------------------------------- ##
16193_ASBOX
16194 ) | sed "s/^/$as_me: WARNING: /" >&2
16195 ;;
16196esac
16197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201else
16202 eval "$as_ac_Header=\$ac_header_preproc"
16203fi
16204ac_res=`eval echo '${'$as_ac_Header'}'`
16205 { echo "$as_me:$LINENO: result: $ac_res" >&5
16206echo "${ECHO_T}$ac_res" >&6; }
16207
16208fi
16209if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016210 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016212_ACEOF
16213
16214fi
16215
16216done
Reid Spencer59473af2004-12-25 07:31:29 +000016217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016218
16219
16220
16221
Reid Spencerbe3e4192007-08-17 05:45:26 +000016222for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016223do
16224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16229 echo $ECHO_N "(cached) $ECHO_C" >&6
16230fi
16231ac_res=`eval echo '${'$as_ac_Header'}'`
16232 { echo "$as_me:$LINENO: result: $ac_res" >&5
16233echo "${ECHO_T}$ac_res" >&6; }
16234else
16235 # Is the header compilable?
16236{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16238cat >conftest.$ac_ext <<_ACEOF
16239/* confdefs.h. */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h. */
16244$ac_includes_default
16245#include <$ac_header>
16246_ACEOF
16247rm -f conftest.$ac_objext
16248if { (ac_try="$ac_compile"
16249case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16252esac
16253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_compile") 2>conftest.er1
16255 ac_status=$?
16256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16275esac
16276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_header_compiler=yes
16282else
16283 echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 ac_header_compiler=no
16287fi
16288
16289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16291echo "${ECHO_T}$ac_header_compiler" >&6; }
16292
16293# Is the header present?
16294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16296cat >conftest.$ac_ext <<_ACEOF
16297/* confdefs.h. */
16298_ACEOF
16299cat confdefs.h >>conftest.$ac_ext
16300cat >>conftest.$ac_ext <<_ACEOF
16301/* end confdefs.h. */
16302#include <$ac_header>
16303_ACEOF
16304if { (ac_try="$ac_cpp conftest.$ac_ext"
16305case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } >/dev/null; then
16317 if test -s conftest.err; then
16318 ac_cpp_err=$ac_c_preproc_warn_flag
16319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16320 else
16321 ac_cpp_err=
16322 fi
16323else
16324 ac_cpp_err=yes
16325fi
16326if test -z "$ac_cpp_err"; then
16327 ac_header_preproc=yes
16328else
16329 echo "$as_me: failed program was:" >&5
16330sed 's/^/| /' conftest.$ac_ext >&5
16331
16332 ac_header_preproc=no
16333fi
16334
16335rm -f conftest.err conftest.$ac_ext
16336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16337echo "${ECHO_T}$ac_header_preproc" >&6; }
16338
16339# So? What about this header?
16340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16341 yes:no: )
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16346 ac_header_preproc=yes
16347 ;;
16348 no:yes:* )
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16361 ( cat <<\_ASBOX
16362## ----------------------------------- ##
16363## Report this to llvmbugs@cs.uiuc.edu ##
16364## ----------------------------------- ##
16365_ASBOX
16366 ) | sed "s/^/$as_me: WARNING: /" >&2
16367 ;;
16368esac
16369{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16373else
16374 eval "$as_ac_Header=\$ac_header_preproc"
16375fi
16376ac_res=`eval echo '${'$as_ac_Header'}'`
16377 { echo "$as_me:$LINENO: result: $ac_res" >&5
16378echo "${ECHO_T}$ac_res" >&6; }
16379
16380fi
16381if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016382 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016384_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016385
16386fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016387
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016388done
16389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016390
16391
16392
16393
Douglas Gregor01746742009-05-11 18:05:52 +000016394for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016395do
16396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402fi
16403ac_res=`eval echo '${'$as_ac_Header'}'`
16404 { echo "$as_me:$LINENO: result: $ac_res" >&5
16405echo "${ECHO_T}$ac_res" >&6; }
16406else
16407 # Is the header compilable?
16408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16410cat >conftest.$ac_ext <<_ACEOF
16411/* confdefs.h. */
16412_ACEOF
16413cat confdefs.h >>conftest.$ac_ext
16414cat >>conftest.$ac_ext <<_ACEOF
16415/* end confdefs.h. */
16416$ac_includes_default
16417#include <$ac_header>
16418_ACEOF
16419rm -f conftest.$ac_objext
16420if { (ac_try="$ac_compile"
16421case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424esac
16425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_compile") 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16434 { (case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437esac
16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_try") 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest.$ac_objext'
16444 { (case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16447esac
16448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_try") 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_header_compiler=yes
16454else
16455 echo "$as_me: failed program was:" >&5
16456sed 's/^/| /' conftest.$ac_ext >&5
16457
16458 ac_header_compiler=no
16459fi
16460
16461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16463echo "${ECHO_T}$ac_header_compiler" >&6; }
16464
16465# Is the header present?
16466{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16468cat >conftest.$ac_ext <<_ACEOF
16469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
16474#include <$ac_header>
16475_ACEOF
16476if { (ac_try="$ac_cpp conftest.$ac_ext"
16477case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16480esac
16481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16483 ac_status=$?
16484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } >/dev/null; then
16489 if test -s conftest.err; then
16490 ac_cpp_err=$ac_c_preproc_warn_flag
16491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16492 else
16493 ac_cpp_err=
16494 fi
16495else
16496 ac_cpp_err=yes
16497fi
16498if test -z "$ac_cpp_err"; then
16499 ac_header_preproc=yes
16500else
16501 echo "$as_me: failed program was:" >&5
16502sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 ac_header_preproc=no
16505fi
16506
16507rm -f conftest.err conftest.$ac_ext
16508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16509echo "${ECHO_T}$ac_header_preproc" >&6; }
16510
16511# So? What about this header?
16512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16513 yes:no: )
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16518 ac_header_preproc=yes
16519 ;;
16520 no:yes:* )
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16533 ( cat <<\_ASBOX
16534## ----------------------------------- ##
16535## Report this to llvmbugs@cs.uiuc.edu ##
16536## ----------------------------------- ##
16537_ASBOX
16538 ) | sed "s/^/$as_me: WARNING: /" >&2
16539 ;;
16540esac
16541{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545else
16546 eval "$as_ac_Header=\$ac_header_preproc"
16547fi
16548ac_res=`eval echo '${'$as_ac_Header'}'`
16549 { echo "$as_me:$LINENO: result: $ac_res" >&5
16550echo "${ECHO_T}$ac_res" >&6; }
16551
16552fi
16553if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016554 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016556_ACEOF
16557
16558fi
16559
16560done
16561
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016562
16563for ac_header in valgrind/valgrind.h
16564do
16565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571fi
16572ac_res=`eval echo '${'$as_ac_Header'}'`
16573 { echo "$as_me:$LINENO: result: $ac_res" >&5
16574echo "${ECHO_T}$ac_res" >&6; }
16575else
16576 # Is the header compilable?
16577{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16579cat >conftest.$ac_ext <<_ACEOF
16580/* confdefs.h. */
16581_ACEOF
16582cat confdefs.h >>conftest.$ac_ext
16583cat >>conftest.$ac_ext <<_ACEOF
16584/* end confdefs.h. */
16585$ac_includes_default
16586#include <$ac_header>
16587_ACEOF
16588rm -f conftest.$ac_objext
16589if { (ac_try="$ac_compile"
16590case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16593esac
16594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_compile") 2>conftest.er1
16596 ac_status=$?
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } &&
16602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606esac
16607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try='test -s conftest.$ac_objext'
16613 { (case "(($ac_try" in
16614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615 *) ac_try_echo=$ac_try;;
16616esac
16617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618 (eval "$ac_try") 2>&5
16619 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 ac_header_compiler=yes
16623else
16624 echo "$as_me: failed program was:" >&5
16625sed 's/^/| /' conftest.$ac_ext >&5
16626
16627 ac_header_compiler=no
16628fi
16629
16630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16631{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16632echo "${ECHO_T}$ac_header_compiler" >&6; }
16633
16634# Is the header present?
16635{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16637cat >conftest.$ac_ext <<_ACEOF
16638/* confdefs.h. */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h. */
16643#include <$ac_header>
16644_ACEOF
16645if { (ac_try="$ac_cpp conftest.$ac_ext"
16646case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } >/dev/null; then
16658 if test -s conftest.err; then
16659 ac_cpp_err=$ac_c_preproc_warn_flag
16660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16661 else
16662 ac_cpp_err=
16663 fi
16664else
16665 ac_cpp_err=yes
16666fi
16667if test -z "$ac_cpp_err"; then
16668 ac_header_preproc=yes
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673 ac_header_preproc=no
16674fi
16675
16676rm -f conftest.err conftest.$ac_ext
16677{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16678echo "${ECHO_T}$ac_header_preproc" >&6; }
16679
16680# So? What about this header?
16681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16682 yes:no: )
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16684echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16686echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16687 ac_header_preproc=yes
16688 ;;
16689 no:yes:* )
16690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16695echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16697echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16699echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16701echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16702 ( cat <<\_ASBOX
16703## ----------------------------------- ##
16704## Report this to llvmbugs@cs.uiuc.edu ##
16705## ----------------------------------- ##
16706_ASBOX
16707 ) | sed "s/^/$as_me: WARNING: /" >&2
16708 ;;
16709esac
16710{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714else
16715 eval "$as_ac_Header=\$ac_header_preproc"
16716fi
16717ac_res=`eval echo '${'$as_ac_Header'}'`
16718 { echo "$as_me:$LINENO: result: $ac_res" >&5
16719echo "${ECHO_T}$ac_res" >&6; }
16720
16721fi
16722if test `eval echo '${'$as_ac_Header'}'` = yes; then
16723 cat >>confdefs.h <<_ACEOF
16724#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16725_ACEOF
16726
16727fi
16728
16729done
16730
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016731
16732for ac_header in fenv.h
16733do
16734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740fi
16741ac_res=`eval echo '${'$as_ac_Header'}'`
16742 { echo "$as_me:$LINENO: result: $ac_res" >&5
16743echo "${ECHO_T}$ac_res" >&6; }
16744else
16745 # Is the header compilable?
16746{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16748cat >conftest.$ac_ext <<_ACEOF
16749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h. */
16754$ac_includes_default
16755#include <$ac_header>
16756_ACEOF
16757rm -f conftest.$ac_objext
16758if { (ac_try="$ac_compile"
16759case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16762esac
16763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_compile") 2>conftest.er1
16765 ac_status=$?
16766 grep -v '^ *+' conftest.er1 >conftest.err
16767 rm -f conftest.er1
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } &&
16771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16772 { (case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16775esac
16776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_try") 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; } &&
16781 { ac_try='test -s conftest.$ac_objext'
16782 { (case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785esac
16786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_try") 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_header_compiler=yes
16792else
16793 echo "$as_me: failed program was:" >&5
16794sed 's/^/| /' conftest.$ac_ext >&5
16795
16796 ac_header_compiler=no
16797fi
16798
16799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16800{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16801echo "${ECHO_T}$ac_header_compiler" >&6; }
16802
16803# Is the header present?
16804{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16805echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16806cat >conftest.$ac_ext <<_ACEOF
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812#include <$ac_header>
16813_ACEOF
16814if { (ac_try="$ac_cpp conftest.$ac_ext"
16815case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16821 ac_status=$?
16822 grep -v '^ *+' conftest.er1 >conftest.err
16823 rm -f conftest.er1
16824 cat conftest.err >&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } >/dev/null; then
16827 if test -s conftest.err; then
16828 ac_cpp_err=$ac_c_preproc_warn_flag
16829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16830 else
16831 ac_cpp_err=
16832 fi
16833else
16834 ac_cpp_err=yes
16835fi
16836if test -z "$ac_cpp_err"; then
16837 ac_header_preproc=yes
16838else
16839 echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842 ac_header_preproc=no
16843fi
16844
16845rm -f conftest.err conftest.$ac_ext
16846{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16847echo "${ECHO_T}$ac_header_preproc" >&6; }
16848
16849# So? What about this header?
16850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16851 yes:no: )
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16856 ac_header_preproc=yes
16857 ;;
16858 no:yes:* )
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16866echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16871 ( cat <<\_ASBOX
16872## ----------------------------------- ##
16873## Report this to llvmbugs@cs.uiuc.edu ##
16874## ----------------------------------- ##
16875_ASBOX
16876 ) | sed "s/^/$as_me: WARNING: /" >&2
16877 ;;
16878esac
16879{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883else
16884 eval "$as_ac_Header=\$ac_header_preproc"
16885fi
16886ac_res=`eval echo '${'$as_ac_Header'}'`
16887 { echo "$as_me:$LINENO: result: $ac_res" >&5
16888echo "${ECHO_T}$ac_res" >&6; }
16889
16890fi
16891if test `eval echo '${'$as_ac_Header'}'` = yes; then
16892 cat >>confdefs.h <<_ACEOF
16893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16894_ACEOF
16895
16896fi
16897
16898done
16899
Reid Spencer0a262ba2005-08-24 10:07:20 +000016900if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016901
16902for ac_header in pthread.h
16903do
16904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16910fi
16911ac_res=`eval echo '${'$as_ac_Header'}'`
16912 { echo "$as_me:$LINENO: result: $ac_res" >&5
16913echo "${ECHO_T}$ac_res" >&6; }
16914else
16915 # Is the header compilable?
16916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16918cat >conftest.$ac_ext <<_ACEOF
16919/* confdefs.h. */
16920_ACEOF
16921cat confdefs.h >>conftest.$ac_ext
16922cat >>conftest.$ac_ext <<_ACEOF
16923/* end confdefs.h. */
16924$ac_includes_default
16925#include <$ac_header>
16926_ACEOF
16927rm -f conftest.$ac_objext
16928if { (ac_try="$ac_compile"
16929case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932esac
16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_compile") 2>conftest.er1
16935 ac_status=$?
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16942 { (case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16945esac
16946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_try") 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955esac
16956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_try") 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_header_compiler=yes
16962else
16963 echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
16966 ac_header_compiler=no
16967fi
16968
16969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16971echo "${ECHO_T}$ac_header_compiler" >&6; }
16972
16973# Is the header present?
16974{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16976cat >conftest.$ac_ext <<_ACEOF
16977/* confdefs.h. */
16978_ACEOF
16979cat confdefs.h >>conftest.$ac_ext
16980cat >>conftest.$ac_ext <<_ACEOF
16981/* end confdefs.h. */
16982#include <$ac_header>
16983_ACEOF
16984if { (ac_try="$ac_cpp conftest.$ac_ext"
16985case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } >/dev/null; then
16997 if test -s conftest.err; then
16998 ac_cpp_err=$ac_c_preproc_warn_flag
16999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17000 else
17001 ac_cpp_err=
17002 fi
17003else
17004 ac_cpp_err=yes
17005fi
17006if test -z "$ac_cpp_err"; then
17007 ac_header_preproc=yes
17008else
17009 echo "$as_me: failed program was:" >&5
17010sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 ac_header_preproc=no
17013fi
17014
17015rm -f conftest.err conftest.$ac_ext
17016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017echo "${ECHO_T}$ac_header_preproc" >&6; }
17018
17019# So? What about this header?
17020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021 yes:no: )
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17026 ac_header_preproc=yes
17027 ;;
17028 no:yes:* )
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17032echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17036echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17041 ( cat <<\_ASBOX
17042## ----------------------------------- ##
17043## Report this to llvmbugs@cs.uiuc.edu ##
17044## ----------------------------------- ##
17045_ASBOX
17046 ) | sed "s/^/$as_me: WARNING: /" >&2
17047 ;;
17048esac
17049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053else
17054 eval "$as_ac_Header=\$ac_header_preproc"
17055fi
17056ac_res=`eval echo '${'$as_ac_Header'}'`
17057 { echo "$as_me:$LINENO: result: $ac_res" >&5
17058echo "${ECHO_T}$ac_res" >&6; }
17059
17060fi
17061if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017062 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017064_ACEOF
17065 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017066
17067else
17068 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017069
17070fi
17071
Reid Spencerbe3e4192007-08-17 05:45:26 +000017072done
Reid Spencer1000b732006-12-01 00:37:14 +000017073
17074else
17075 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017076
17077fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017078
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017079if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017080
17081
17082for ac_header in ffi.h ffi/ffi.h
17083do
17084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090fi
17091ac_res=`eval echo '${'$as_ac_Header'}'`
17092 { echo "$as_me:$LINENO: result: $ac_res" >&5
17093echo "${ECHO_T}$ac_res" >&6; }
17094else
17095 # Is the header compilable?
17096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17098cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
17104$ac_includes_default
17105#include <$ac_header>
17106_ACEOF
17107rm -f conftest.$ac_objext
17108if { (ac_try="$ac_compile"
17109case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112esac
17113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_compile") 2>conftest.er1
17115 ac_status=$?
17116 grep -v '^ *+' conftest.er1 >conftest.err
17117 rm -f conftest.er1
17118 cat conftest.err >&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); } &&
17121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17122 { (case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17125esac
17126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_try") 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; } &&
17131 { ac_try='test -s conftest.$ac_objext'
17132 { (case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17135esac
17136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_try") 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 ac_header_compiler=yes
17142else
17143 echo "$as_me: failed program was:" >&5
17144sed 's/^/| /' conftest.$ac_ext >&5
17145
17146 ac_header_compiler=no
17147fi
17148
17149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17151echo "${ECHO_T}$ac_header_compiler" >&6; }
17152
17153# Is the header present?
17154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17156cat >conftest.$ac_ext <<_ACEOF
17157/* confdefs.h. */
17158_ACEOF
17159cat confdefs.h >>conftest.$ac_ext
17160cat >>conftest.$ac_ext <<_ACEOF
17161/* end confdefs.h. */
17162#include <$ac_header>
17163_ACEOF
17164if { (ac_try="$ac_cpp conftest.$ac_ext"
17165case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } >/dev/null; then
17177 if test -s conftest.err; then
17178 ac_cpp_err=$ac_c_preproc_warn_flag
17179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17180 else
17181 ac_cpp_err=
17182 fi
17183else
17184 ac_cpp_err=yes
17185fi
17186if test -z "$ac_cpp_err"; then
17187 ac_header_preproc=yes
17188else
17189 echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192 ac_header_preproc=no
17193fi
17194
17195rm -f conftest.err conftest.$ac_ext
17196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17197echo "${ECHO_T}$ac_header_preproc" >&6; }
17198
17199# So? What about this header?
17200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17201 yes:no: )
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17206 ac_header_preproc=yes
17207 ;;
17208 no:yes:* )
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17221 ( cat <<\_ASBOX
17222## ----------------------------------- ##
17223## Report this to llvmbugs@cs.uiuc.edu ##
17224## ----------------------------------- ##
17225_ASBOX
17226 ) | sed "s/^/$as_me: WARNING: /" >&2
17227 ;;
17228esac
17229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233else
17234 eval "$as_ac_Header=\$ac_header_preproc"
17235fi
17236ac_res=`eval echo '${'$as_ac_Header'}'`
17237 { echo "$as_me:$LINENO: result: $ac_res" >&5
17238echo "${ECHO_T}$ac_res" >&6; }
17239
17240fi
17241if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017242 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017244_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017245
17246fi
17247
17248done
17249
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017250fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017251
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017252
Eric Christopher654dee42010-06-22 21:01:04 +000017253for ac_header in CrashReporterClient.h
17254do
17255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261fi
17262ac_res=`eval echo '${'$as_ac_Header'}'`
17263 { echo "$as_me:$LINENO: result: $ac_res" >&5
17264echo "${ECHO_T}$ac_res" >&6; }
17265else
17266 # Is the header compilable?
17267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17269cat >conftest.$ac_ext <<_ACEOF
17270/* confdefs.h. */
17271_ACEOF
17272cat confdefs.h >>conftest.$ac_ext
17273cat >>conftest.$ac_ext <<_ACEOF
17274/* end confdefs.h. */
17275$ac_includes_default
17276#include <$ac_header>
17277_ACEOF
17278rm -f conftest.$ac_objext
17279if { (ac_try="$ac_compile"
17280case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_compile") 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
17292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_try") 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; } &&
17302 { ac_try='test -s conftest.$ac_objext'
17303 { (case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17306esac
17307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_try") 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_header_compiler=yes
17313else
17314 echo "$as_me: failed program was:" >&5
17315sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 ac_header_compiler=no
17318fi
17319
17320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17322echo "${ECHO_T}$ac_header_compiler" >&6; }
17323
17324# Is the header present?
17325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17327cat >conftest.$ac_ext <<_ACEOF
17328/* confdefs.h. */
17329_ACEOF
17330cat confdefs.h >>conftest.$ac_ext
17331cat >>conftest.$ac_ext <<_ACEOF
17332/* end confdefs.h. */
17333#include <$ac_header>
17334_ACEOF
17335if { (ac_try="$ac_cpp conftest.$ac_ext"
17336case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17339esac
17340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17342 ac_status=$?
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } >/dev/null; then
17348 if test -s conftest.err; then
17349 ac_cpp_err=$ac_c_preproc_warn_flag
17350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17351 else
17352 ac_cpp_err=
17353 fi
17354else
17355 ac_cpp_err=yes
17356fi
17357if test -z "$ac_cpp_err"; then
17358 ac_header_preproc=yes
17359else
17360 echo "$as_me: failed program was:" >&5
17361sed 's/^/| /' conftest.$ac_ext >&5
17362
17363 ac_header_preproc=no
17364fi
17365
17366rm -f conftest.err conftest.$ac_ext
17367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17368echo "${ECHO_T}$ac_header_preproc" >&6; }
17369
17370# So? What about this header?
17371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17372 yes:no: )
17373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17377 ac_header_preproc=yes
17378 ;;
17379 no:yes:* )
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17392 ( cat <<\_ASBOX
17393## ----------------------------------- ##
17394## Report this to llvmbugs@cs.uiuc.edu ##
17395## ----------------------------------- ##
17396_ASBOX
17397 ) | sed "s/^/$as_me: WARNING: /" >&2
17398 ;;
17399esac
17400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17404else
17405 eval "$as_ac_Header=\$ac_header_preproc"
17406fi
17407ac_res=`eval echo '${'$as_ac_Header'}'`
17408 { echo "$as_me:$LINENO: result: $ac_res" >&5
17409echo "${ECHO_T}$ac_res" >&6; }
17410
17411fi
17412if test `eval echo '${'$as_ac_Header'}'` = yes; then
17413 cat >>confdefs.h <<_ACEOF
17414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17415_ACEOF
17416
17417fi
17418
17419done
17420
17421
Eric Christopher51e57132010-12-07 02:05:42 +000017422{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17423echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017424cat >conftest.$ac_ext <<_ACEOF
17425/* confdefs.h. */
17426_ACEOF
17427cat confdefs.h >>conftest.$ac_ext
17428cat >>conftest.$ac_ext <<_ACEOF
17429/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000017430extern const char *__crashreporter_info__;
17431 int main() {
17432 __crashreporter_info__ = "test";
17433 return 0;
17434 }
Eric Christopher481d4022010-12-03 07:45:22 +000017435
Eric Christopher481d4022010-12-03 07:45:22 +000017436_ACEOF
17437rm -f conftest.$ac_objext conftest$ac_exeext
17438if { (ac_try="$ac_link"
17439case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17442esac
17443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_link") 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17452 { (case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17455esac
17456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_try") 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest$ac_exeext'
17462 { (case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465esac
17466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_try") 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000017471 { echo "$as_me:$LINENO: result: yes" >&5
17472echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000017473
17474cat >>confdefs.h <<\_ACEOF
17475#define HAVE_CRASHREPORTER_INFO 1
17476_ACEOF
17477
Eric Christopher51e57132010-12-07 02:05:42 +000017478else
17479 echo "$as_me: failed program was:" >&5
17480sed 's/^/| /' conftest.$ac_ext >&5
17481
17482 { echo "$as_me:$LINENO: result: no" >&5
17483echo "${ECHO_T}no" >&6; }
17484
17485cat >>confdefs.h <<\_ACEOF
17486#define HAVE_CRASHREPORTER_INFO 0
17487_ACEOF
17488
Eric Christopher481d4022010-12-03 07:45:22 +000017489fi
Eric Christopher654dee42010-06-22 21:01:04 +000017490
Eric Christopher51e57132010-12-07 02:05:42 +000017491rm -f core conftest.err conftest.$ac_objext \
17492 conftest$ac_exeext conftest.$ac_ext
17493
17494
Reid Spencer8085cff2005-01-16 02:58:39 +000017495
Torok Edwin871384f2010-01-26 08:50:50 +000017496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017497 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17498echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17499if test "${ac_cv_huge_val_sanity+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017501else
17502
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017503 ac_ext=cpp
17504ac_cpp='$CXXCPP $CPPFLAGS'
17505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017508
Eric Christopherc7718502010-03-02 05:06:54 +000017509 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017510 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017511 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017512 ac_cv_huge_val_sanity=yes
17513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017514 cat >conftest.$ac_ext <<_ACEOF
17515/* confdefs.h. */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017519/* end confdefs.h. */
17520#include <math.h>
17521int
17522main ()
17523{
17524double x = HUGE_VAL; return x != x;
17525 ;
17526 return 0;
17527}
17528_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017529rm -f conftest$ac_exeext
17530if { (ac_try="$ac_link"
17531case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534esac
17535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17540 { (case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17543esac
17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_try") 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017549 ac_cv_huge_val_sanity=yes
17550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017551 echo "$as_me: program exited with status $ac_status" >&5
17552echo "$as_me: failed program was:" >&5
17553sed 's/^/| /' conftest.$ac_ext >&5
17554
17555( exit $ac_status )
17556ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017557fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017558rm -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 +000017559fi
17560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017561
Eric Christopherc7718502010-03-02 05:06:54 +000017562 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017563 ac_ext=c
17564ac_cpp='$CPP $CPPFLAGS'
17565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567ac_compiler_gnu=$ac_cv_c_compiler_gnu
17568
17569
17570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017571{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17572echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017573 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17574
17575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017576{ echo "$as_me:$LINENO: checking for pid_t" >&5
17577echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17578if test "${ac_cv_type_pid_t+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17580else
17581 cat >conftest.$ac_ext <<_ACEOF
17582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
17587$ac_includes_default
17588typedef pid_t ac__type_new_;
17589int
17590main ()
17591{
17592if ((ac__type_new_ *) 0)
17593 return 0;
17594if (sizeof (ac__type_new_))
17595 return 0;
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600rm -f conftest.$ac_objext
17601if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17608 ac_status=$?
17609 grep -v '^ *+' conftest.er1 >conftest.err
17610 rm -f conftest.er1
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17615 { (case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17618esac
17619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_try") 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; } &&
17624 { ac_try='test -s conftest.$ac_objext'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_cv_type_pid_t=yes
17635else
17636 echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017639 ac_cv_type_pid_t=no
17640fi
17641
17642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17643fi
17644{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17645echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17646if test $ac_cv_type_pid_t = yes; then
17647 :
John Criswell7a73b802003-06-30 21:59:07 +000017648else
17649
17650cat >>confdefs.h <<_ACEOF
17651#define pid_t int
17652_ACEOF
17653
17654fi
17655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017656{ echo "$as_me:$LINENO: checking for size_t" >&5
17657echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17658if test "${ac_cv_type_size_t+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17660else
17661 cat >conftest.$ac_ext <<_ACEOF
17662/* confdefs.h. */
17663_ACEOF
17664cat confdefs.h >>conftest.$ac_ext
17665cat >>conftest.$ac_ext <<_ACEOF
17666/* end confdefs.h. */
17667$ac_includes_default
17668typedef size_t ac__type_new_;
17669int
17670main ()
17671{
17672if ((ac__type_new_ *) 0)
17673 return 0;
17674if (sizeof (ac__type_new_))
17675 return 0;
17676 ;
17677 return 0;
17678}
17679_ACEOF
17680rm -f conftest.$ac_objext
17681if { (ac_try="$ac_compile"
17682case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17685esac
17686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_compile") 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17695 { (case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17698esac
17699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_try") 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try='test -s conftest.$ac_objext'
17705 { (case "(($ac_try" in
17706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17707 *) ac_try_echo=$ac_try;;
17708esac
17709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17710 (eval "$ac_try") 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714 ac_cv_type_size_t=yes
17715else
17716 echo "$as_me: failed program was:" >&5
17717sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017719 ac_cv_type_size_t=no
17720fi
17721
17722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17723fi
17724{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17725echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17726if test $ac_cv_type_size_t = yes; then
17727 :
John Criswell7a73b802003-06-30 21:59:07 +000017728else
17729
17730cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017731#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017732_ACEOF
17733
17734fi
17735
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017736
17737cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017738#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017739_ACEOF
17740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017741{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17742echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17743if test "${ac_cv_struct_tm+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017745else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017746 cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h. */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017751/* end confdefs.h. */
17752#include <sys/types.h>
17753#include <time.h>
17754
17755int
17756main ()
17757{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017758struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017759 ;
17760 return 0;
17761}
17762_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017763rm -f conftest.$ac_objext
17764if { (ac_try="$ac_compile"
17765case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17768esac
17769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_compile") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781esac
17782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest.$ac_objext'
17788 { (case "(($ac_try" in
17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17791esac
17792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_try") 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017797 ac_cv_struct_tm=time.h
17798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017799 echo "$as_me: failed program was:" >&5
17800sed 's/^/| /' conftest.$ac_ext >&5
17801
17802 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017804
Reid Spencera773bd52006-08-04 18:18:08 +000017805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017807{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17808echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017809if test $ac_cv_struct_tm = sys/time.h; then
17810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017811cat >>confdefs.h <<\_ACEOF
17812#define TM_IN_SYS_TIME 1
17813_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017814
17815fi
17816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017817{ echo "$as_me:$LINENO: checking for int64_t" >&5
17818echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17819if test "${ac_cv_type_int64_t+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17821else
17822 cat >conftest.$ac_ext <<_ACEOF
17823/* confdefs.h. */
17824_ACEOF
17825cat confdefs.h >>conftest.$ac_ext
17826cat >>conftest.$ac_ext <<_ACEOF
17827/* end confdefs.h. */
17828$ac_includes_default
17829typedef int64_t ac__type_new_;
17830int
17831main ()
17832{
17833if ((ac__type_new_ *) 0)
17834 return 0;
17835if (sizeof (ac__type_new_))
17836 return 0;
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (ac_try="$ac_compile"
17843case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846esac
17847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_compile") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest.$ac_objext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17869esac
17870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_type_int64_t=yes
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ac_cv_type_int64_t=no
17881fi
17882
17883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884fi
17885{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17886echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17887if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017888
17889cat >>confdefs.h <<_ACEOF
17890#define HAVE_INT64_T 1
17891_ACEOF
17892
17893
17894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017895 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17896echo "$as_me: error: Type int64_t required but not found" >&2;}
17897 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017898fi
17899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017900{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17901echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17902if test "${ac_cv_type_uint64_t+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17904else
17905 cat >conftest.$ac_ext <<_ACEOF
17906/* confdefs.h. */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h. */
17911$ac_includes_default
17912typedef uint64_t ac__type_new_;
17913int
17914main ()
17915{
17916if ((ac__type_new_ *) 0)
17917 return 0;
17918if (sizeof (ac__type_new_))
17919 return 0;
17920 ;
17921 return 0;
17922}
17923_ACEOF
17924rm -f conftest.$ac_objext
17925if { (ac_try="$ac_compile"
17926case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929esac
17930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_compile") 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17939 { (case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17942esac
17943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_try") 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest.$ac_objext'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952esac
17953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_type_uint64_t=yes
17959else
17960 echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 ac_cv_type_uint64_t=no
17964fi
17965
17966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17967fi
17968{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17969echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17970if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017971
17972cat >>confdefs.h <<_ACEOF
17973#define HAVE_UINT64_T 1
17974_ACEOF
17975
17976
17977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017978 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17979echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17980if test "${ac_cv_type_u_int64_t+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982else
17983 cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h. */
17989$ac_includes_default
17990typedef u_int64_t ac__type_new_;
17991int
17992main ()
17993{
17994if ((ac__type_new_ *) 0)
17995 return 0;
17996if (sizeof (ac__type_new_))
17997 return 0;
17998 ;
17999 return 0;
18000}
18001_ACEOF
18002rm -f conftest.$ac_objext
18003if { (ac_try="$ac_compile"
18004case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007esac
18008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_compile") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18017 { (case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18020esac
18021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_try") 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest.$ac_objext'
18027 { (case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_type_u_int64_t=yes
18037else
18038 echo "$as_me: failed program was:" >&5
18039sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ac_cv_type_u_int64_t=no
18042fi
18043
18044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18045fi
18046{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18047echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18048if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000018049
18050cat >>confdefs.h <<_ACEOF
18051#define HAVE_U_INT64_T 1
18052_ACEOF
18053
18054
Misha Brukmanceca9042004-09-02 23:02:30 +000018055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018056 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18057echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18058 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000018059fi
18060
John Criswell679ff312004-09-02 18:44:44 +000018061fi
18062
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018063
18064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018065
18066
18067
18068
18069
18070
18071
Reid Spencerdf3be822006-01-23 08:15:53 +000018072for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018073do
18074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18075{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18077if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079else
18080 cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
18086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18088#define $ac_func innocuous_$ac_func
18089
18090/* System header to define __stub macros and hopefully few prototypes,
18091 which can conflict with char $ac_func (); below.
18092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18093 <limits.h> exists even on freestanding compilers. */
18094
18095#ifdef __STDC__
18096# include <limits.h>
18097#else
18098# include <assert.h>
18099#endif
18100
18101#undef $ac_func
18102
18103/* Override any GCC internal prototype to avoid an error.
18104 Use char because int might match the return type of a GCC
18105 builtin and then its argument prototype would still apply. */
18106#ifdef __cplusplus
18107extern "C"
18108#endif
18109char $ac_func ();
18110/* The GNU C library defines this for functions which it implements
18111 to always fail with ENOSYS. Some functions are actually named
18112 something starting with __ and the normal name is an alias. */
18113#if defined __stub_$ac_func || defined __stub___$ac_func
18114choke me
18115#endif
18116
18117int
18118main ()
18119{
18120return $ac_func ();
18121 ;
18122 return 0;
18123}
18124_ACEOF
18125rm -f conftest.$ac_objext conftest$ac_exeext
18126if { (ac_try="$ac_link"
18127case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18130esac
18131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_link") 2>conftest.er1
18133 ac_status=$?
18134 grep -v '^ *+' conftest.er1 >conftest.err
18135 rm -f conftest.er1
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18140 { (case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18143esac
18144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_try") 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; } &&
18149 { ac_try='test -s conftest$ac_exeext'
18150 { (case "(($ac_try" in
18151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152 *) ac_try_echo=$ac_try;;
18153esac
18154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155 (eval "$ac_try") 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 eval "$as_ac_var=yes"
18160else
18161 echo "$as_me: failed program was:" >&5
18162sed 's/^/| /' conftest.$ac_ext >&5
18163
18164 eval "$as_ac_var=no"
18165fi
18166
18167rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18169fi
18170ac_res=`eval echo '${'$as_ac_var'}'`
18171 { echo "$as_me:$LINENO: result: $ac_res" >&5
18172echo "${ECHO_T}$ac_res" >&6; }
18173if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018174 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018176_ACEOF
18177
18178fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018179done
John Criswell7a73b802003-06-30 21:59:07 +000018180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018181
18182
18183
18184
Reid Spencer96cf5872007-07-13 10:05:30 +000018185for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018186do
18187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18188{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18190if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18192else
18193 cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201#define $ac_func innocuous_$ac_func
18202
18203/* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char $ac_func (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18207
18208#ifdef __STDC__
18209# include <limits.h>
18210#else
18211# include <assert.h>
18212#endif
18213
18214#undef $ac_func
18215
18216/* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219#ifdef __cplusplus
18220extern "C"
18221#endif
18222char $ac_func ();
18223/* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226#if defined __stub_$ac_func || defined __stub___$ac_func
18227choke me
18228#endif
18229
18230int
18231main ()
18232{
18233return $ac_func ();
18234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext conftest$ac_exeext
18239if { (ac_try="$ac_link"
18240case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243esac
18244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18246 ac_status=$?
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256esac
18257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 eval "$as_ac_var=yes"
18273else
18274 echo "$as_me: failed program was:" >&5
18275sed 's/^/| /' conftest.$ac_ext >&5
18276
18277 eval "$as_ac_var=no"
18278fi
18279
18280rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282fi
18283ac_res=`eval echo '${'$as_ac_var'}'`
18284 { echo "$as_me:$LINENO: result: $ac_res" >&5
18285echo "${ECHO_T}$ac_res" >&6; }
18286if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018287 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018289_ACEOF
18290
18291fi
18292done
18293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018294
18295
18296
18297
18298
Reid Spencerb90645c2007-02-16 19:17:20 +000018299for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018300do
18301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18302{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306else
18307 cat >conftest.$ac_ext <<_ACEOF
18308/* confdefs.h. */
18309_ACEOF
18310cat confdefs.h >>conftest.$ac_ext
18311cat >>conftest.$ac_ext <<_ACEOF
18312/* end confdefs.h. */
18313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18315#define $ac_func innocuous_$ac_func
18316
18317/* System header to define __stub macros and hopefully few prototypes,
18318 which can conflict with char $ac_func (); below.
18319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18320 <limits.h> exists even on freestanding compilers. */
18321
18322#ifdef __STDC__
18323# include <limits.h>
18324#else
18325# include <assert.h>
18326#endif
18327
18328#undef $ac_func
18329
18330/* Override any GCC internal prototype to avoid an error.
18331 Use char because int might match the return type of a GCC
18332 builtin and then its argument prototype would still apply. */
18333#ifdef __cplusplus
18334extern "C"
18335#endif
18336char $ac_func ();
18337/* The GNU C library defines this for functions which it implements
18338 to always fail with ENOSYS. Some functions are actually named
18339 something starting with __ and the normal name is an alias. */
18340#if defined __stub_$ac_func || defined __stub___$ac_func
18341choke me
18342#endif
18343
18344int
18345main ()
18346{
18347return $ac_func ();
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext conftest$ac_exeext
18353if { (ac_try="$ac_link"
18354case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357esac
18358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_link") 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370esac
18371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380esac
18381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 eval "$as_ac_var=yes"
18387else
18388 echo "$as_me: failed program was:" >&5
18389sed 's/^/| /' conftest.$ac_ext >&5
18390
18391 eval "$as_ac_var=no"
18392fi
18393
18394rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396fi
18397ac_res=`eval echo '${'$as_ac_var'}'`
18398 { echo "$as_me:$LINENO: result: $ac_res" >&5
18399echo "${ECHO_T}$ac_res" >&6; }
18400if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018401 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018402#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018403_ACEOF
18404
18405fi
18406done
18407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018408
18409
18410
Reid Spencerb90645c2007-02-16 19:17:20 +000018411for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018412do
18413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18414{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18418else
18419 cat >conftest.$ac_ext <<_ACEOF
18420/* confdefs.h. */
18421_ACEOF
18422cat confdefs.h >>conftest.$ac_ext
18423cat >>conftest.$ac_ext <<_ACEOF
18424/* end confdefs.h. */
18425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18427#define $ac_func innocuous_$ac_func
18428
18429/* System header to define __stub macros and hopefully few prototypes,
18430 which can conflict with char $ac_func (); below.
18431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18432 <limits.h> exists even on freestanding compilers. */
18433
18434#ifdef __STDC__
18435# include <limits.h>
18436#else
18437# include <assert.h>
18438#endif
18439
18440#undef $ac_func
18441
18442/* Override any GCC internal prototype to avoid an error.
18443 Use char because int might match the return type of a GCC
18444 builtin and then its argument prototype would still apply. */
18445#ifdef __cplusplus
18446extern "C"
18447#endif
18448char $ac_func ();
18449/* The GNU C library defines this for functions which it implements
18450 to always fail with ENOSYS. Some functions are actually named
18451 something starting with __ and the normal name is an alias. */
18452#if defined __stub_$ac_func || defined __stub___$ac_func
18453choke me
18454#endif
18455
18456int
18457main ()
18458{
18459return $ac_func ();
18460 ;
18461 return 0;
18462}
18463_ACEOF
18464rm -f conftest.$ac_objext conftest$ac_exeext
18465if { (ac_try="$ac_link"
18466case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18469esac
18470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18471 (eval "$ac_link") 2>conftest.er1
18472 ac_status=$?
18473 grep -v '^ *+' conftest.er1 >conftest.err
18474 rm -f conftest.er1
18475 cat conftest.err >&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } &&
18478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18479 { (case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482esac
18483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_try") 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; } &&
18488 { ac_try='test -s conftest$ac_exeext'
18489 { (case "(($ac_try" in
18490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18492esac
18493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494 (eval "$ac_try") 2>&5
18495 ac_status=$?
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498 eval "$as_ac_var=yes"
18499else
18500 echo "$as_me: failed program was:" >&5
18501sed 's/^/| /' conftest.$ac_ext >&5
18502
18503 eval "$as_ac_var=no"
18504fi
18505
18506rm -f core conftest.err conftest.$ac_objext \
18507 conftest$ac_exeext conftest.$ac_ext
18508fi
18509ac_res=`eval echo '${'$as_ac_var'}'`
18510 { echo "$as_me:$LINENO: result: $ac_res" >&5
18511echo "${ECHO_T}$ac_res" >&6; }
18512if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018513 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018515_ACEOF
18516
18517fi
18518done
18519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018520
18521
18522
18523
18524
Eric Christophere4291822010-04-16 05:14:21 +000018525
18526for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018527do
18528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18529{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18533else
18534 cat >conftest.$ac_ext <<_ACEOF
18535/* confdefs.h. */
18536_ACEOF
18537cat confdefs.h >>conftest.$ac_ext
18538cat >>conftest.$ac_ext <<_ACEOF
18539/* end confdefs.h. */
18540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18542#define $ac_func innocuous_$ac_func
18543
18544/* System header to define __stub macros and hopefully few prototypes,
18545 which can conflict with char $ac_func (); below.
18546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18547 <limits.h> exists even on freestanding compilers. */
18548
18549#ifdef __STDC__
18550# include <limits.h>
18551#else
18552# include <assert.h>
18553#endif
18554
18555#undef $ac_func
18556
18557/* Override any GCC internal prototype to avoid an error.
18558 Use char because int might match the return type of a GCC
18559 builtin and then its argument prototype would still apply. */
18560#ifdef __cplusplus
18561extern "C"
18562#endif
18563char $ac_func ();
18564/* The GNU C library defines this for functions which it implements
18565 to always fail with ENOSYS. Some functions are actually named
18566 something starting with __ and the normal name is an alias. */
18567#if defined __stub_$ac_func || defined __stub___$ac_func
18568choke me
18569#endif
18570
18571int
18572main ()
18573{
18574return $ac_func ();
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext conftest$ac_exeext
18580if { (ac_try="$ac_link"
18581case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584esac
18585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_link") 2>conftest.er1
18587 ac_status=$?
18588 grep -v '^ *+' conftest.er1 >conftest.err
18589 rm -f conftest.er1
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest$ac_exeext'
18604 { (case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607esac
18608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_try") 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 eval "$as_ac_var=yes"
18614else
18615 echo "$as_me: failed program was:" >&5
18616sed 's/^/| /' conftest.$ac_ext >&5
18617
18618 eval "$as_ac_var=no"
18619fi
18620
18621rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623fi
18624ac_res=`eval echo '${'$as_ac_var'}'`
18625 { echo "$as_me:$LINENO: result: $ac_res" >&5
18626echo "${ECHO_T}$ac_res" >&6; }
18627if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018628 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018630_ACEOF
18631
18632fi
18633done
Reid Spencerdf3be822006-01-23 08:15:53 +000018634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018635
18636
18637
18638
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018639for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018640do
18641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646else
18647 cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h. */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h. */
18653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18655#define $ac_func innocuous_$ac_func
18656
18657/* System header to define __stub macros and hopefully few prototypes,
18658 which can conflict with char $ac_func (); below.
18659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18660 <limits.h> exists even on freestanding compilers. */
18661
18662#ifdef __STDC__
18663# include <limits.h>
18664#else
18665# include <assert.h>
18666#endif
18667
18668#undef $ac_func
18669
18670/* Override any GCC internal prototype to avoid an error.
18671 Use char because int might match the return type of a GCC
18672 builtin and then its argument prototype would still apply. */
18673#ifdef __cplusplus
18674extern "C"
18675#endif
18676char $ac_func ();
18677/* The GNU C library defines this for functions which it implements
18678 to always fail with ENOSYS. Some functions are actually named
18679 something starting with __ and the normal name is an alias. */
18680#if defined __stub_$ac_func || defined __stub___$ac_func
18681choke me
18682#endif
18683
18684int
18685main ()
18686{
18687return $ac_func ();
18688 ;
18689 return 0;
18690}
18691_ACEOF
18692rm -f conftest.$ac_objext conftest$ac_exeext
18693if { (ac_try="$ac_link"
18694case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18697esac
18698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_link") 2>conftest.er1
18700 ac_status=$?
18701 grep -v '^ *+' conftest.er1 >conftest.err
18702 rm -f conftest.er1
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18710esac
18711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; } &&
18716 { ac_try='test -s conftest$ac_exeext'
18717 { (case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18720esac
18721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_try") 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 eval "$as_ac_var=yes"
18727else
18728 echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
18731 eval "$as_ac_var=no"
18732fi
18733
18734rm -f core conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext conftest.$ac_ext
18736fi
18737ac_res=`eval echo '${'$as_ac_var'}'`
18738 { echo "$as_me:$LINENO: result: $ac_res" >&5
18739echo "${ECHO_T}$ac_res" >&6; }
18740if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018741 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018743_ACEOF
18744
18745fi
18746done
18747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018748
18749
18750
18751
Chris Lattner511f11d2005-11-14 07:25:50 +000018752for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018753do
18754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18759else
18760 cat >conftest.$ac_ext <<_ACEOF
18761/* confdefs.h. */
18762_ACEOF
18763cat confdefs.h >>conftest.$ac_ext
18764cat >>conftest.$ac_ext <<_ACEOF
18765/* end confdefs.h. */
18766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18768#define $ac_func innocuous_$ac_func
18769
18770/* System header to define __stub macros and hopefully few prototypes,
18771 which can conflict with char $ac_func (); below.
18772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18773 <limits.h> exists even on freestanding compilers. */
18774
18775#ifdef __STDC__
18776# include <limits.h>
18777#else
18778# include <assert.h>
18779#endif
18780
18781#undef $ac_func
18782
18783/* Override any GCC internal prototype to avoid an error.
18784 Use char because int might match the return type of a GCC
18785 builtin and then its argument prototype would still apply. */
18786#ifdef __cplusplus
18787extern "C"
18788#endif
18789char $ac_func ();
18790/* The GNU C library defines this for functions which it implements
18791 to always fail with ENOSYS. Some functions are actually named
18792 something starting with __ and the normal name is an alias. */
18793#if defined __stub_$ac_func || defined __stub___$ac_func
18794choke me
18795#endif
18796
18797int
18798main ()
18799{
18800return $ac_func ();
18801 ;
18802 return 0;
18803}
18804_ACEOF
18805rm -f conftest.$ac_objext conftest$ac_exeext
18806if { (ac_try="$ac_link"
18807case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18810esac
18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_link") 2>conftest.er1
18813 ac_status=$?
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -f conftest.er1
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18820 { (case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18823esac
18824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_try") 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; } &&
18829 { ac_try='test -s conftest$ac_exeext'
18830 { (case "(($ac_try" in
18831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832 *) ac_try_echo=$ac_try;;
18833esac
18834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835 (eval "$ac_try") 2>&5
18836 ac_status=$?
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18839 eval "$as_ac_var=yes"
18840else
18841 echo "$as_me: failed program was:" >&5
18842sed 's/^/| /' conftest.$ac_ext >&5
18843
18844 eval "$as_ac_var=no"
18845fi
18846
18847rm -f core conftest.err conftest.$ac_objext \
18848 conftest$ac_exeext conftest.$ac_ext
18849fi
18850ac_res=`eval echo '${'$as_ac_var'}'`
18851 { echo "$as_me:$LINENO: result: $ac_res" >&5
18852echo "${ECHO_T}$ac_res" >&6; }
18853if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018854 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018856_ACEOF
18857
18858fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018859done
John Criswell7a73b802003-06-30 21:59:07 +000018860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018861
18862
18863
18864
Reid Spencerafa22e22006-12-10 23:29:19 +000018865for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018866do
18867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18868{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18870if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18872else
18873 cat >conftest.$ac_ext <<_ACEOF
18874/* confdefs.h. */
18875_ACEOF
18876cat confdefs.h >>conftest.$ac_ext
18877cat >>conftest.$ac_ext <<_ACEOF
18878/* end confdefs.h. */
18879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18881#define $ac_func innocuous_$ac_func
18882
18883/* System header to define __stub macros and hopefully few prototypes,
18884 which can conflict with char $ac_func (); below.
18885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18886 <limits.h> exists even on freestanding compilers. */
18887
18888#ifdef __STDC__
18889# include <limits.h>
18890#else
18891# include <assert.h>
18892#endif
18893
18894#undef $ac_func
18895
18896/* Override any GCC internal prototype to avoid an error.
18897 Use char because int might match the return type of a GCC
18898 builtin and then its argument prototype would still apply. */
18899#ifdef __cplusplus
18900extern "C"
18901#endif
18902char $ac_func ();
18903/* The GNU C library defines this for functions which it implements
18904 to always fail with ENOSYS. Some functions are actually named
18905 something starting with __ and the normal name is an alias. */
18906#if defined __stub_$ac_func || defined __stub___$ac_func
18907choke me
18908#endif
18909
18910int
18911main ()
18912{
18913return $ac_func ();
18914 ;
18915 return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext conftest$ac_exeext
18919if { (ac_try="$ac_link"
18920case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923esac
18924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_link") 2>conftest.er1
18926 ac_status=$?
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18933 { (case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936esac
18937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest$ac_exeext'
18943 { (case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946esac
18947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_try") 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18952 eval "$as_ac_var=yes"
18953else
18954 echo "$as_me: failed program was:" >&5
18955sed 's/^/| /' conftest.$ac_ext >&5
18956
18957 eval "$as_ac_var=no"
18958fi
18959
18960rm -f core conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962fi
18963ac_res=`eval echo '${'$as_ac_var'}'`
18964 { echo "$as_me:$LINENO: result: $ac_res" >&5
18965echo "${ECHO_T}$ac_res" >&6; }
18966if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018967 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018969_ACEOF
18970
18971fi
18972done
18973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018974{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18975echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18976if test "${llvm_cv_c_printf_a+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018978else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018979 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018980ac_cpp='$CPP $CPPFLAGS'
18981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18983ac_compiler_gnu=$ac_cv_c_compiler_gnu
18984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018985 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018986 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018988 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018990 /* confdefs.h. */
18991_ACEOF
18992cat confdefs.h >>conftest.$ac_ext
18993cat >>conftest.$ac_ext <<_ACEOF
18994/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018995
John Criswella0137d32003-10-13 16:22:01 +000018996#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018997#include <stdlib.h>
18998
John Criswella0137d32003-10-13 16:22:01 +000018999int
19000main ()
19001{
19002
Reid Spencer2706f8c2004-09-19 23:53:36 +000019003volatile double A, B;
19004char Buffer[100];
19005A = 1;
19006A /= 10.0;
19007sprintf(Buffer, "%a", A);
19008B = atof(Buffer);
19009if (A != B)
19010 return (1);
19011if (A != 0x1.999999999999ap-4)
19012 return (1);
19013return (0);
John Criswella0137d32003-10-13 16:22:01 +000019014 ;
19015 return 0;
19016}
19017_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019018rm -f conftest$ac_exeext
19019if { (ac_try="$ac_link"
19020case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023esac
19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_link") 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19032esac
19033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000019038 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000019039else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019040 echo "$as_me: program exited with status $ac_status" >&5
19041echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044( exit $ac_status )
19045llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000019046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019047rm -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 +000019048fi
Reid Spencera773bd52006-08-04 18:18:08 +000019049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019050
Reid Spencer2706f8c2004-09-19 23:53:36 +000019051 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000019052ac_cpp='$CPP $CPPFLAGS'
19053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19055ac_compiler_gnu=$ac_cv_c_compiler_gnu
19056
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019058{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19059echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000019060 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000019061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019062cat >>confdefs.h <<\_ACEOF
19063#define HAVE_PRINTF_A 1
19064_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000019065
Reid Spencer2706f8c2004-09-19 23:53:36 +000019066 fi
John Criswella0137d32003-10-13 16:22:01 +000019067
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019069{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19070echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19071if test "${ac_cv_func_rand48+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019073else
Reid Spencera773bd52006-08-04 18:18:08 +000019074 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019075ac_cpp='$CXXCPP $CPPFLAGS'
19076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019080 cat >conftest.$ac_ext <<_ACEOF
19081/* confdefs.h. */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019085/* end confdefs.h. */
19086#include <stdlib.h>
19087int
19088main ()
19089{
19090srand48(0);lrand48();drand48();
19091 ;
19092 return 0;
19093}
19094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019095rm -f conftest.$ac_objext
19096if { (ac_try="$ac_compile"
19097case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_compile") 2>conftest.er1
19103 ac_status=$?
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123esac
19124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_try") 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019129 ac_cv_func_rand48=yes
19130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019131 echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019136
Reid Spencera773bd52006-08-04 18:18:08 +000019137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019138 ac_ext=c
19139ac_cpp='$CPP $CPPFLAGS'
19140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19142ac_compiler_gnu=$ac_cv_c_compiler_gnu
19143
19144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019145{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19146echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019147
19148if test "$ac_cv_func_rand48" = "yes" ; then
19149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019150cat >>confdefs.h <<\_ACEOF
19151#define HAVE_RAND48 1
19152_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019153
19154fi
John Criswell0021c312004-02-13 21:57:29 +000019155
19156
Torok Edwin871384f2010-01-26 08:50:50 +000019157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019158{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19159echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19160if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19161 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019162else
Reid Spencera773bd52006-08-04 18:18:08 +000019163 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019164ac_cpp='$CXXCPP $CPPFLAGS'
19165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019169 cat >conftest.$ac_ext <<_ACEOF
19170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019174/* end confdefs.h. */
19175#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019176int
19177main ()
19178{
19179float f; isnan(f);
19180 ;
19181 return 0;
19182}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019183_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019184rm -f conftest.$ac_objext
19185if { (ac_try="$ac_compile"
19186case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189esac
19190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_compile") 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; } &&
19208 { ac_try='test -s conftest.$ac_objext'
19209 { (case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212esac
19213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_try") 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019218 ac_cv_func_isnan_in_math_h=yes
19219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019220 echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
19223 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019225
Reid Spencera773bd52006-08-04 18:18:08 +000019226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019227 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019228ac_cpp='$CPP $CPPFLAGS'
19229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19231ac_compiler_gnu=$ac_cv_c_compiler_gnu
19232
19233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019234{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19235echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019236
19237
19238if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019240cat >>confdefs.h <<\_ACEOF
19241#define HAVE_ISNAN_IN_MATH_H 1
19242_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019243
Reid Spencerabec8f92004-10-27 23:03:44 +000019244fi
19245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019246{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19247echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19248if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019250else
Reid Spencera773bd52006-08-04 18:18:08 +000019251 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019252ac_cpp='$CXXCPP $CPPFLAGS'
19253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019257 cat >conftest.$ac_ext <<_ACEOF
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019262/* end confdefs.h. */
19263#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019264int
19265main ()
19266{
19267float f; isnan(f);
19268 ;
19269 return 0;
19270}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019271_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019272rm -f conftest.$ac_objext
19273if { (ac_try="$ac_compile"
19274case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277esac
19278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_compile") 2>conftest.er1
19280 ac_status=$?
19281 grep -v '^ *+' conftest.er1 >conftest.err
19282 rm -f conftest.er1
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19287 { (case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290esac
19291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_try") 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; } &&
19296 { ac_try='test -s conftest.$ac_objext'
19297 { (case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19300esac
19301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_try") 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019306 ac_cv_func_isnan_in_cmath=yes
19307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019308 echo "$as_me: failed program was:" >&5
19309sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019313
Reid Spencera773bd52006-08-04 18:18:08 +000019314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019315 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019316ac_cpp='$CPP $CPPFLAGS'
19317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19319ac_compiler_gnu=$ac_cv_c_compiler_gnu
19320
19321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019322{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19323echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019324
19325if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019327cat >>confdefs.h <<\_ACEOF
19328#define HAVE_ISNAN_IN_CMATH 1
19329_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019330
Reid Spencerabec8f92004-10-27 23:03:44 +000019331fi
19332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019333{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19334echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19335if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019337else
Reid Spencera773bd52006-08-04 18:18:08 +000019338 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019339ac_cpp='$CXXCPP $CPPFLAGS'
19340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019344 cat >conftest.$ac_ext <<_ACEOF
19345/* confdefs.h. */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019349/* end confdefs.h. */
19350#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019351int
19352main ()
19353{
19354float f; std::isnan(f);
19355 ;
19356 return 0;
19357}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019358_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019359rm -f conftest.$ac_objext
19360if { (ac_try="$ac_compile"
19361case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364esac
19365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_compile") 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19374 { (case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19377esac
19378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_try") 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest.$ac_objext'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387esac
19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019393 ac_cv_func_std_isnan_in_cmath=yes
19394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019395 echo "$as_me: failed program was:" >&5
19396sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019400
Reid Spencera773bd52006-08-04 18:18:08 +000019401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019402 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019403ac_cpp='$CPP $CPPFLAGS'
19404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406ac_compiler_gnu=$ac_cv_c_compiler_gnu
19407
19408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019409{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19410echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019411
19412if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019414cat >>confdefs.h <<\_ACEOF
19415#define HAVE_STD_ISNAN_IN_CMATH 1
19416_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019417
Reid Spencerabec8f92004-10-27 23:03:44 +000019418fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019419
19420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019421{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19422echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19423if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019425else
Reid Spencera773bd52006-08-04 18:18:08 +000019426 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019427ac_cpp='$CXXCPP $CPPFLAGS'
19428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019432 cat >conftest.$ac_ext <<_ACEOF
19433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019437/* end confdefs.h. */
19438#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019439int
19440main ()
19441{
19442float f; isinf(f);
19443 ;
19444 return 0;
19445}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019447rm -f conftest.$ac_objext
19448if { (ac_try="$ac_compile"
19449case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452esac
19453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_compile") 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19462 { (case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19465esac
19466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_try") 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest.$ac_objext'
19472 { (case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19475esac
19476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_try") 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019481 ac_cv_func_isinf_in_math_h=yes
19482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019488
Reid Spencera773bd52006-08-04 18:18:08 +000019489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019490 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019491ac_cpp='$CPP $CPPFLAGS'
19492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19494ac_compiler_gnu=$ac_cv_c_compiler_gnu
19495
19496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019497{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19498echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019499
19500if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019502cat >>confdefs.h <<\_ACEOF
19503#define HAVE_ISINF_IN_MATH_H 1
19504_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019505
Reid Spencerabec8f92004-10-27 23:03:44 +000019506fi
19507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019508{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19509echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19510if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019512else
Reid Spencera773bd52006-08-04 18:18:08 +000019513 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019514ac_cpp='$CXXCPP $CPPFLAGS'
19515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019519 cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019524/* end confdefs.h. */
19525#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019526int
19527main ()
19528{
19529float f; isinf(f);
19530 ;
19531 return 0;
19532}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019534rm -f conftest.$ac_objext
19535if { (ac_try="$ac_compile"
19536case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539esac
19540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_compile") 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552esac
19553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19562esac
19563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019568 ac_cv_func_isinf_in_cmath=yes
19569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570 echo "$as_me: failed program was:" >&5
19571sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019575
Reid Spencera773bd52006-08-04 18:18:08 +000019576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019577 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019578ac_cpp='$CPP $CPPFLAGS'
19579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581ac_compiler_gnu=$ac_cv_c_compiler_gnu
19582
19583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019584{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19585echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019586
19587if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019589cat >>confdefs.h <<\_ACEOF
19590#define HAVE_ISINF_IN_CMATH 1
19591_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019592
Reid Spencerabec8f92004-10-27 23:03:44 +000019593fi
19594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019595{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19596echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19597if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019599else
Reid Spencera773bd52006-08-04 18:18:08 +000019600 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019601ac_cpp='$CXXCPP $CPPFLAGS'
19602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019606 cat >conftest.$ac_ext <<_ACEOF
19607/* confdefs.h. */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019611/* end confdefs.h. */
19612#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019613int
19614main ()
19615{
19616float f; std::isinf(f)}
19617 ;
19618 return 0;
19619}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019621rm -f conftest.$ac_objext
19622if { (ac_try="$ac_compile"
19623case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_compile") 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19636 { (case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639esac
19640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_try") 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19649esac
19650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_try") 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019655 ac_cv_func_std_isinf_in_cmath=yes
19656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019657 echo "$as_me: failed program was:" >&5
19658sed 's/^/| /' conftest.$ac_ext >&5
19659
19660 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019662
Reid Spencera773bd52006-08-04 18:18:08 +000019663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019664 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019665ac_cpp='$CPP $CPPFLAGS'
19666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19668ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669
19670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019671{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19672echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019673
19674if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676cat >>confdefs.h <<\_ACEOF
19677#define HAVE_STD_ISINF_IN_CMATH 1
19678_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019679
Reid Spencerabec8f92004-10-27 23:03:44 +000019680fi
19681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019682{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19683echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19684if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019686else
Reid Spencera773bd52006-08-04 18:18:08 +000019687 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019688ac_cpp='$CXXCPP $CPPFLAGS'
19689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019693 cat >conftest.$ac_ext <<_ACEOF
19694/* confdefs.h. */
19695_ACEOF
19696cat confdefs.h >>conftest.$ac_ext
19697cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019698/* end confdefs.h. */
19699#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019700int
19701main ()
19702{
19703float f; finite(f);
19704 ;
19705 return 0;
19706}
Brian Gaeked59a6472004-07-21 03:33:58 +000019707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019708rm -f conftest.$ac_objext
19709if { (ac_try="$ac_compile"
19710case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713esac
19714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19723 { (case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726esac
19727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_try") 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736esac
19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019742 ac_cv_func_finite_in_ieeefp_h=yes
19743else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019744 echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019748fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019749
Reid Spencera773bd52006-08-04 18:18:08 +000019750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019751 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019752ac_cpp='$CPP $CPPFLAGS'
19753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755ac_compiler_gnu=$ac_cv_c_compiler_gnu
19756
19757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019758{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19759echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019760
Brian Gaeke6802b552004-10-28 05:06:45 +000019761if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019763cat >>confdefs.h <<\_ACEOF
19764#define HAVE_FINITE_IN_IEEEFP_H 1
19765_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019766
Reid Spencerabec8f92004-10-27 23:03:44 +000019767fi
19768
19769
19770
Reid Spencer30fe5262007-01-20 07:48:49 +000019771if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019772
19773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019774for ac_header in stdlib.h unistd.h
19775do
19776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782fi
19783ac_res=`eval echo '${'$as_ac_Header'}'`
19784 { echo "$as_me:$LINENO: result: $ac_res" >&5
19785echo "${ECHO_T}$ac_res" >&6; }
19786else
19787 # Is the header compilable?
19788{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19790cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h. */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h. */
19796$ac_includes_default
19797#include <$ac_header>
19798_ACEOF
19799rm -f conftest.$ac_objext
19800if { (ac_try="$ac_compile"
19801case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19804esac
19805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817esac
19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
19824 { (case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19827esac
19828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_header_compiler=yes
19834else
19835 echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838 ac_header_compiler=no
19839fi
19840
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843echo "${ECHO_T}$ac_header_compiler" >&6; }
19844
19845# Is the header present?
19846{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19848cat >conftest.$ac_ext <<_ACEOF
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
19854#include <$ac_header>
19855_ACEOF
19856if { (ac_try="$ac_cpp conftest.$ac_ext"
19857case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860esac
19861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } >/dev/null; then
19869 if test -s conftest.err; then
19870 ac_cpp_err=$ac_c_preproc_warn_flag
19871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19872 else
19873 ac_cpp_err=
19874 fi
19875else
19876 ac_cpp_err=yes
19877fi
19878if test -z "$ac_cpp_err"; then
19879 ac_header_preproc=yes
19880else
19881 echo "$as_me: failed program was:" >&5
19882sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ac_header_preproc=no
19885fi
19886
19887rm -f conftest.err conftest.$ac_ext
19888{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19889echo "${ECHO_T}$ac_header_preproc" >&6; }
19890
19891# So? What about this header?
19892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19893 yes:no: )
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19898 ac_header_preproc=yes
19899 ;;
19900 no:yes:* )
19901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19913 ( cat <<\_ASBOX
19914## ----------------------------------- ##
19915## Report this to llvmbugs@cs.uiuc.edu ##
19916## ----------------------------------- ##
19917_ASBOX
19918 ) | sed "s/^/$as_me: WARNING: /" >&2
19919 ;;
19920esac
19921{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925else
19926 eval "$as_ac_Header=\$ac_header_preproc"
19927fi
19928ac_res=`eval echo '${'$as_ac_Header'}'`
19929 { echo "$as_me:$LINENO: result: $ac_res" >&5
19930echo "${ECHO_T}$ac_res" >&6; }
19931
19932fi
19933if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019934 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019936_ACEOF
19937
19938fi
19939
19940done
19941
19942
19943for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019944do
19945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19950else
19951 cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
19957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19959#define $ac_func innocuous_$ac_func
19960
19961/* System header to define __stub macros and hopefully few prototypes,
19962 which can conflict with char $ac_func (); below.
19963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19964 <limits.h> exists even on freestanding compilers. */
19965
19966#ifdef __STDC__
19967# include <limits.h>
19968#else
19969# include <assert.h>
19970#endif
19971
19972#undef $ac_func
19973
19974/* Override any GCC internal prototype to avoid an error.
19975 Use char because int might match the return type of a GCC
19976 builtin and then its argument prototype would still apply. */
19977#ifdef __cplusplus
19978extern "C"
19979#endif
19980char $ac_func ();
19981/* The GNU C library defines this for functions which it implements
19982 to always fail with ENOSYS. Some functions are actually named
19983 something starting with __ and the normal name is an alias. */
19984#if defined __stub_$ac_func || defined __stub___$ac_func
19985choke me
19986#endif
19987
19988int
19989main ()
19990{
19991return $ac_func ();
19992 ;
19993 return 0;
19994}
19995_ACEOF
19996rm -f conftest.$ac_objext conftest$ac_exeext
19997if { (ac_try="$ac_link"
19998case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20001esac
20002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_link") 2>conftest.er1
20004 ac_status=$?
20005 grep -v '^ *+' conftest.er1 >conftest.err
20006 rm -f conftest.er1
20007 cat conftest.err >&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } &&
20010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20011 { (case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014esac
20015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_try") 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; } &&
20020 { ac_try='test -s conftest$ac_exeext'
20021 { (case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20024esac
20025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_try") 2>&5
20027 ac_status=$?
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 eval "$as_ac_var=yes"
20031else
20032 echo "$as_me: failed program was:" >&5
20033sed 's/^/| /' conftest.$ac_ext >&5
20034
20035 eval "$as_ac_var=no"
20036fi
20037
20038rm -f core conftest.err conftest.$ac_objext \
20039 conftest$ac_exeext conftest.$ac_ext
20040fi
20041ac_res=`eval echo '${'$as_ac_var'}'`
20042 { echo "$as_me:$LINENO: result: $ac_res" >&5
20043echo "${ECHO_T}$ac_res" >&6; }
20044if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020045 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020047_ACEOF
20048
20049fi
20050done
20051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020052{ echo "$as_me:$LINENO: checking for working mmap" >&5
20053echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20054if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020057 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020058 ac_cv_func_mmap_fixed_mapped=no
20059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020060 cat >conftest.$ac_ext <<_ACEOF
20061/* confdefs.h. */
20062_ACEOF
20063cat confdefs.h >>conftest.$ac_ext
20064cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020066$ac_includes_default
20067/* malloc might have been renamed as rpl_malloc. */
20068#undef malloc
20069
20070/* Thanks to Mike Haertel and Jim Avera for this test.
20071 Here is a matrix of mmap possibilities:
20072 mmap private not fixed
20073 mmap private fixed at somewhere currently unmapped
20074 mmap private fixed at somewhere already mapped
20075 mmap shared not fixed
20076 mmap shared fixed at somewhere currently unmapped
20077 mmap shared fixed at somewhere already mapped
20078 For private mappings, we should verify that changes cannot be read()
20079 back from the file, nor mmap's back from the file at a different
20080 address. (There have been systems where private was not correctly
20081 implemented like the infamous i386 svr4.0, and systems where the
20082 VM page cache was not coherent with the file system buffer cache
20083 like early versions of FreeBSD and possibly contemporary NetBSD.)
20084 For shared mappings, we should conversely verify that changes get
20085 propagated back to all the places they're supposed to be.
20086
20087 Grep wants private fixed already mapped.
20088 The main things grep needs to know about mmap are:
20089 * does it exist and is it safe to write into the mmap'd area
20090 * how to use it (BSD variants) */
20091
20092#include <fcntl.h>
20093#include <sys/mman.h>
20094
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020095#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020096char *malloc ();
20097#endif
20098
20099/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020100#if !HAVE_GETPAGESIZE
20101/* Assume that all systems that can run configure have sys/param.h. */
20102# if !HAVE_SYS_PARAM_H
20103# define HAVE_SYS_PARAM_H 1
20104# endif
20105
John Criswell7a73b802003-06-30 21:59:07 +000020106# ifdef _SC_PAGESIZE
20107# define getpagesize() sysconf(_SC_PAGESIZE)
20108# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020109# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020110# include <sys/param.h>
20111# ifdef EXEC_PAGESIZE
20112# define getpagesize() EXEC_PAGESIZE
20113# else /* no EXEC_PAGESIZE */
20114# ifdef NBPG
20115# define getpagesize() NBPG * CLSIZE
20116# ifndef CLSIZE
20117# define CLSIZE 1
20118# endif /* no CLSIZE */
20119# else /* no NBPG */
20120# ifdef NBPC
20121# define getpagesize() NBPC
20122# else /* no NBPC */
20123# ifdef PAGESIZE
20124# define getpagesize() PAGESIZE
20125# endif /* PAGESIZE */
20126# endif /* no NBPC */
20127# endif /* no NBPG */
20128# endif /* no EXEC_PAGESIZE */
20129# else /* no HAVE_SYS_PARAM_H */
20130# define getpagesize() 8192 /* punt totally */
20131# endif /* no HAVE_SYS_PARAM_H */
20132# endif /* no _SC_PAGESIZE */
20133
20134#endif /* no HAVE_GETPAGESIZE */
20135
20136int
20137main ()
20138{
20139 char *data, *data2, *data3;
20140 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020141 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020142
20143 pagesize = getpagesize ();
20144
20145 /* First, make a file with some known garbage in it. */
20146 data = (char *) malloc (pagesize);
20147 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020148 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020149 for (i = 0; i < pagesize; ++i)
20150 *(data + i) = rand ();
20151 umask (0);
20152 fd = creat ("conftest.mmap", 0600);
20153 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020154 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020155 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020156 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020157 close (fd);
20158
20159 /* Next, try to mmap the file at a fixed address which already has
20160 something else allocated at it. If we can, also make sure that
20161 we see the same garbage. */
20162 fd = open ("conftest.mmap", O_RDWR);
20163 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020164 return 1;
20165 data2 = (char *) malloc (2 * pagesize);
20166 if (!data2)
20167 return 1;
20168 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020169 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020170 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020171 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020172 for (i = 0; i < pagesize; ++i)
20173 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020174 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020175
20176 /* Finally, make sure that changes to the mapped area do not
20177 percolate back to the file as seen by read(). (This is a bug on
20178 some variants of i386 svr4.0.) */
20179 for (i = 0; i < pagesize; ++i)
20180 *(data2 + i) = *(data2 + i) + 1;
20181 data3 = (char *) malloc (pagesize);
20182 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020183 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020184 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020185 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020186 for (i = 0; i < pagesize; ++i)
20187 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020188 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020189 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020190 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020191}
20192_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020193rm -f conftest$ac_exeext
20194if { (ac_try="$ac_link"
20195case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20198esac
20199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_link") 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207esac
20208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020213 ac_cv_func_mmap_fixed_mapped=yes
20214else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020215 echo "$as_me: program exited with status $ac_status" >&5
20216echo "$as_me: failed program was:" >&5
20217sed 's/^/| /' conftest.$ac_ext >&5
20218
20219( exit $ac_status )
20220ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020222rm -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 +000020223fi
Reid Spencera773bd52006-08-04 18:18:08 +000020224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020225
John Criswell7a73b802003-06-30 21:59:07 +000020226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020227{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20228echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020229if test $ac_cv_func_mmap_fixed_mapped = yes; then
20230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020231cat >>confdefs.h <<\_ACEOF
20232#define HAVE_MMAP 1
20233_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020234
20235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020236rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020238 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20239echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20240if test "${ac_cv_func_mmap_file+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020242else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020243 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020244ac_cpp='$CPP $CPPFLAGS'
20245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20247ac_compiler_gnu=$ac_cv_c_compiler_gnu
20248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020249 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020250 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020252 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020254 /* confdefs.h. */
20255_ACEOF
20256cat confdefs.h >>conftest.$ac_ext
20257cat >>conftest.$ac_ext <<_ACEOF
20258/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020259
John Criswell7a73b802003-06-30 21:59:07 +000020260#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020261#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020262#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020263
20264int
20265main ()
20266{
John Criswell7a73b802003-06-30 21:59:07 +000020267
20268 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020269 fd = creat ("foo",0777);
20270 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20271 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020272 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020273 ;
20274 return 0;
20275}
John Criswell7a73b802003-06-30 21:59:07 +000020276_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020277rm -f conftest$ac_exeext
20278if { (ac_try="$ac_link"
20279case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282esac
20283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_link") 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20288 { (case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291esac
20292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_try") 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020297 ac_cv_func_mmap_file=yes
20298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020299 echo "$as_me: program exited with status $ac_status" >&5
20300echo "$as_me: failed program was:" >&5
20301sed 's/^/| /' conftest.$ac_ext >&5
20302
20303( exit $ac_status )
20304ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306rm -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 +000020307fi
Reid Spencera773bd52006-08-04 18:18:08 +000020308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020309
John Criswell7a73b802003-06-30 21:59:07 +000020310 ac_ext=c
20311ac_cpp='$CPP $CPPFLAGS'
20312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314ac_compiler_gnu=$ac_cv_c_compiler_gnu
20315
20316
20317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20319echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020320if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020322cat >>confdefs.h <<\_ACEOF
20323#define HAVE_MMAP_FILE
20324_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020325
20326 MMAP_FILE=yes
20327
20328fi
20329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020330 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20331echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20332if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020334else
Reid Spencer582a23c2004-12-29 07:07:57 +000020335 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020336 ac_cv_need_dev_zero_for_mmap=yes
20337 else
20338 ac_cv_need_dev_zero_for_mmap=no
20339 fi
20340
20341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020342{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20343echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020344if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346cat >>confdefs.h <<\_ACEOF
20347#define NEED_DEV_ZERO_FOR_MMAP 1
20348_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020349
20350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020351
Reid Spencer30fe5262007-01-20 07:48:49 +000020352 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20353 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020354 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20355echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020356 fi
20357 if test "$ac_cv_func_mmap_file" = "no"
20358 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020359 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20360echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020361 fi
John Criswellb13092b2003-07-22 21:00:24 +000020362fi
John Criswell7a73b802003-06-30 21:59:07 +000020363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020364{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20365echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020366ac_ext=cpp
20367ac_cpp='$CXXCPP $CPPFLAGS'
20368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020372cat >conftest.$ac_ext <<_ACEOF
20373/* confdefs.h. */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020377/* end confdefs.h. */
20378int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020379 volatile unsigned long val = 1;
20380 __sync_synchronize();
20381 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020382 __sync_add_and_fetch(&val, 1);
20383 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020384 return 0;
20385 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020386
20387_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020388rm -f conftest.$ac_objext conftest$ac_exeext
20389if { (ac_try="$ac_link"
20390case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393esac
20394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_link") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } &&
20402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20403 { (case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406esac
20407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_try") 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; } &&
20412 { ac_try='test -s conftest$ac_exeext'
20413 { (case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20416esac
20417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_try") 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020422 ac_ext=c
20423ac_cpp='$CPP $CPPFLAGS'
20424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426ac_compiler_gnu=$ac_cv_c_compiler_gnu
20427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020428 { echo "$as_me:$LINENO: result: yes" >&5
20429echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020431cat >>confdefs.h <<\_ACEOF
20432#define LLVM_MULTITHREADED 1
20433_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020434
Owen Andersond4b272b2009-05-18 23:58:51 +000020435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020436 echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020439 { echo "$as_me:$LINENO: result: no" >&5
20440echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020441
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020442cat >>confdefs.h <<\_ACEOF
20443#define LLVM_MULTITHREADED 0
20444_ACEOF
20445
20446 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20447echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449
Owen Andersond4b272b2009-05-18 23:58:51 +000020450rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020451 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020452
John Criswell7a73b802003-06-30 21:59:07 +000020453
Nick Lewycky4372e692009-09-29 06:18:23 +000020454if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020455 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20456echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20457if test "${llvm_cv_linux_mixed+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020459else
20460 ac_ext=c
20461ac_cpp='$CPP $CPPFLAGS'
20462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20464ac_compiler_gnu=$ac_cv_c_compiler_gnu
20465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466 cat >conftest.$ac_ext <<_ACEOF
20467/* confdefs.h. */
20468_ACEOF
20469cat confdefs.h >>conftest.$ac_ext
20470cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020471/* end confdefs.h. */
20472#ifndef __x86_64__
20473 error: Not x86-64 even if uname says so!
20474 #endif
20475
20476int
20477main ()
20478{
20479
20480 ;
20481 return 0;
20482}
20483_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020484rm -f conftest.$ac_objext
20485if { (ac_try="$ac_compile"
20486case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20489esac
20490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_compile") 2>conftest.er1
20492 ac_status=$?
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502esac
20503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } &&
20508 { ac_try='test -s conftest.$ac_objext'
20509 { (case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512esac
20513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_try") 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020518 llvm_cv_linux_mixed=no
20519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520 echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020525
Nick Lewycky4372e692009-09-29 06:18:23 +000020526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527 ac_ext=c
20528ac_cpp='$CPP $CPPFLAGS'
20529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20531ac_compiler_gnu=$ac_cv_c_compiler_gnu
20532
20533
20534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020535{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20536echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020537
20538 if test "$llvm_cv_linux_mixed" = "yes"; then
20539 llvm_cv_target_arch="x86"
20540 ARCH="x86"
20541 fi
20542fi
20543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020544
Reid Spencer9372f152007-07-30 20:13:24 +000020545for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020546do
20547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20548{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20550if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20552else
20553 cat >conftest.$ac_ext <<_ACEOF
20554/* confdefs.h. */
20555_ACEOF
20556cat confdefs.h >>conftest.$ac_ext
20557cat >>conftest.$ac_ext <<_ACEOF
20558/* end confdefs.h. */
20559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20561#define $ac_func innocuous_$ac_func
20562
20563/* System header to define __stub macros and hopefully few prototypes,
20564 which can conflict with char $ac_func (); below.
20565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20566 <limits.h> exists even on freestanding compilers. */
20567
20568#ifdef __STDC__
20569# include <limits.h>
20570#else
20571# include <assert.h>
20572#endif
20573
20574#undef $ac_func
20575
20576/* Override any GCC internal prototype to avoid an error.
20577 Use char because int might match the return type of a GCC
20578 builtin and then its argument prototype would still apply. */
20579#ifdef __cplusplus
20580extern "C"
20581#endif
20582char $ac_func ();
20583/* The GNU C library defines this for functions which it implements
20584 to always fail with ENOSYS. Some functions are actually named
20585 something starting with __ and the normal name is an alias. */
20586#if defined __stub_$ac_func || defined __stub___$ac_func
20587choke me
20588#endif
20589
20590int
20591main ()
20592{
20593return $ac_func ();
20594 ;
20595 return 0;
20596}
20597_ACEOF
20598rm -f conftest.$ac_objext conftest$ac_exeext
20599if { (ac_try="$ac_link"
20600case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20603esac
20604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_link") 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
20612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20613 { (case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616esac
20617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_try") 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest$ac_exeext'
20623 { (case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20626esac
20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_try") 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 eval "$as_ac_var=yes"
20633else
20634 echo "$as_me: failed program was:" >&5
20635sed 's/^/| /' conftest.$ac_ext >&5
20636
20637 eval "$as_ac_var=no"
20638fi
20639
20640rm -f core conftest.err conftest.$ac_objext \
20641 conftest$ac_exeext conftest.$ac_ext
20642fi
20643ac_res=`eval echo '${'$as_ac_var'}'`
20644 { echo "$as_me:$LINENO: result: $ac_res" >&5
20645echo "${ECHO_T}$ac_res" >&6; }
20646if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020647 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020649_ACEOF
20650
20651fi
20652done
20653
20654
Tobias Grossera84b5672010-11-10 16:31:34 +000020655{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20656echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20657if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659else
20660 llvm_cv_llvmgcc_dragonegg="no"
Duncan Sands1526b192010-11-25 17:47:42 +000020661if test -n "$LLVMGCC" ; then
Tobias Grossera84b5672010-11-10 16:31:34 +000020662 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000020663 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
Tobias Grossera84b5672010-11-10 16:31:34 +000020664 if test $? -eq 0 ; then
20665 llvm_cv_llvmgcc_dragonegg="yes"
20666 fi
20667 rm conftest.c
20668fi
20669fi
20670{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20671echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20672
20673if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20674 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
Duncan Sands1ac320e2010-11-25 17:57:43 +000020675 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000020676else
20677 LLVMCC_EMITIR_FLAG="-emit-llvm"
Duncan Sands1ac320e2010-11-25 17:57:43 +000020678 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
Tobias Grossera84b5672010-11-10 16:31:34 +000020679fi
20680
20681
20682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20684echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20685if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020687else
20688 llvm_cv_llvmgcc_sanity="no"
Duncan Sands1526b192010-11-25 17:47:42 +000020689if test -n "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020690 cp /dev/null conftest.c
Duncan Sands1526b192010-11-25 17:47:42 +000020691 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000020692 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020693 if test $? -eq 0 ; then
20694 llvm_cv_llvmgcc_sanity="yes"
20695 fi
20696 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020697fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020699{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20700echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020701
20702if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020703 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20704echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Duncan Sands1526b192010-11-25 17:47:42 +000020705 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020706 LLVMCC1=$llvmcc1path
20707
Duncan Sands1526b192010-11-25 17:47:42 +000020708 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020709 LLVMCC1PLUS=$llvmcc1pluspath
20710
Reid Spencer502935f2004-12-22 05:56:56 +000020711 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20712 LLVMGCCDIR=$llvmgccdir
20713
Duncan Sands1526b192010-11-25 17:47:42 +000020714 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020715 LLVMGCC_LANGS=$llvmgcclangs
20716
Tobias Grossera84b5672010-11-10 16:31:34 +000020717 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20718
20719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020720 { echo "$as_me:$LINENO: result: ok" >&5
20721echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020722fi
20723
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020724SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020725
20726
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020727SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20728
20729
Reid Spencere9de0912004-08-20 09:03:57 +000020730# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020731# information into substitutions that will end up in Makefile.config.in
20732# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020733if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020734 prefix="/usr/local"
20735fi
Reid Spencere9de0912004-08-20 09:03:57 +000020736eval LLVM_PREFIX="${prefix}";
20737eval LLVM_BINDIR="${prefix}/bin";
20738eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020739eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020740eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020741eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020742eval LLVM_INCLUDEDIR="${prefix}/include";
20743eval LLVM_INFODIR="${prefix}/info";
20744eval LLVM_MANDIR="${prefix}/man";
20745LLVM_CONFIGTIME=`date`
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020757# Place the various directores into the config.h file as #defines so that we
20758# can know about the installation paths within LLVM.
20759
Reid Spencere9de0912004-08-20 09:03:57 +000020760cat >>confdefs.h <<_ACEOF
20761#define LLVM_PREFIX "$LLVM_PREFIX"
20762_ACEOF
20763
20764
20765cat >>confdefs.h <<_ACEOF
20766#define LLVM_BINDIR "$LLVM_BINDIR"
20767_ACEOF
20768
20769
20770cat >>confdefs.h <<_ACEOF
20771#define LLVM_LIBDIR "$LLVM_LIBDIR"
20772_ACEOF
20773
20774
20775cat >>confdefs.h <<_ACEOF
20776#define LLVM_DATADIR "$LLVM_DATADIR"
20777_ACEOF
20778
20779
20780cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020781#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020782_ACEOF
20783
20784
20785cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020786#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020787_ACEOF
20788
20789
20790cat >>confdefs.h <<_ACEOF
20791#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20792_ACEOF
20793
20794
20795cat >>confdefs.h <<_ACEOF
20796#define LLVM_INFODIR "$LLVM_INFODIR"
20797_ACEOF
20798
20799
20800cat >>confdefs.h <<_ACEOF
20801#define LLVM_MANDIR "$LLVM_MANDIR"
20802_ACEOF
20803
20804
20805cat >>confdefs.h <<_ACEOF
20806#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20807_ACEOF
20808
20809
Eric Christopher790e11c2007-12-01 00:34:39 +000020810cat >>confdefs.h <<_ACEOF
20811#define LLVM_HOSTTRIPLE "$host"
20812_ACEOF
20813
20814
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020815# Determine which bindings to build.
20816if test "$BINDINGS_TO_BUILD" = auto ; then
20817 BINDINGS_TO_BUILD=""
20818 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20819 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20820 fi
20821fi
20822BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20823
20824
20825# This isn't really configurey, but it avoids having to repeat the list in
20826# other files.
20827ALL_BINDINGS=ocaml
20828
20829
Gordon Henriksenf0915682007-10-02 16:42:22 +000020830# Do any work necessary to ensure that bindings have what they need.
20831binding_prereqs_failed=0
20832for a_binding in $BINDINGS_TO_BUILD ; do
20833 case "$a_binding" in
20834 ocaml)
20835 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020836 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20837echo "$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 +000020838 binding_prereqs_failed=1
20839 fi
20840 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020841 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20842echo "$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 +000020843 binding_prereqs_failed=1
20844 fi
20845 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20847echo "$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 +000020848 fi
20849 if test "x$with_ocaml_libdir" != xauto ; then
20850 OCAML_LIBDIR=$with_ocaml_libdir
20851
20852 else
20853 ocaml_stdlib="`"$OCAMLC" -where`"
20854 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20855 then
20856 # ocaml stdlib is beneath our prefix; use stdlib
20857 OCAML_LIBDIR=$ocaml_stdlib
20858
20859 else
20860 # ocaml stdlib is outside our prefix; use libdir/ocaml
20861 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20862
20863 fi
20864 fi
20865 ;;
20866 esac
20867done
20868if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020869 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20870echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20871 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020872fi
20873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020874{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20875echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20876if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20877 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020878else
20879 ac_ext=cpp
20880ac_cpp='$CXXCPP $CPPFLAGS'
20881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20884
20885 oldcxxflags="$CXXFLAGS"
20886 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887 cat >conftest.$ac_ext <<_ACEOF
20888/* confdefs.h. */
20889_ACEOF
20890cat confdefs.h >>conftest.$ac_ext
20891cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020892/* end confdefs.h. */
20893
20894int
20895main ()
20896{
20897
20898 ;
20899 return 0;
20900}
20901_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020902rm -f conftest.$ac_objext
20903if { (ac_try="$ac_compile"
20904case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20907esac
20908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909 (eval "$ac_compile") 2>conftest.er1
20910 ac_status=$?
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
20916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20917 { (case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20920esac
20921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_try") 2>&5
20923 ac_status=$?
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; } &&
20926 { ac_try='test -s conftest.$ac_objext'
20927 { (case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20930esac
20931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_try") 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020936 llvm_cv_cxx_visibility_inlines_hidden=yes
20937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020938 echo "$as_me: failed program was:" >&5
20939sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020942fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020943
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 CXXFLAGS="$oldcxxflags"
20946 ac_ext=c
20947ac_cpp='$CPP $CPPFLAGS'
20948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20950ac_compiler_gnu=$ac_cv_c_compiler_gnu
20951
20952
20953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020954{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20955echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020956if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20957 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20958
20959else
20960 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20961
20962fi
20963
Gordon Henriksenf0915682007-10-02 16:42:22 +000020964
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020965if test "$llvm_cv_link_use_r" = "yes" ; then
20966 RPATH="-Wl,-R"
20967else
20968 RPATH="-Wl,-rpath"
20969fi
20970
20971
20972if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20973 RDYNAMIC="-Wl,-export-dynamic"
20974else
20975 RDYNAMIC=""
20976fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020977
20978
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020979
Eric Christophera1cba682010-08-08 02:44:25 +000020980ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020981
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020982
20983
20984
20985
20986
Douglas Gregor1555a232009-06-16 20:12:29 +000020987ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20988
20989ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20990
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020991ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20992
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020993ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20994
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000020995ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020996
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020997
Reid Spencera773bd52006-08-04 18:18:08 +000020998ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020999
21000
Reid Spencerea949cf2006-08-16 00:45:38 +000021001ac_config_files="$ac_config_files llvm.spec"
21002
21003
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021004ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000021005
21006
Reid Spencera773bd52006-08-04 18:18:08 +000021007ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021008
21009
Reid Spencera773bd52006-08-04 18:18:08 +000021010ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021011
Reid Spencera773bd52006-08-04 18:18:08 +000021012ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021013
21014
Reid Spencera773bd52006-08-04 18:18:08 +000021015ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021016
21017
Reid Spencera773bd52006-08-04 18:18:08 +000021018ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021019
21020
Reid Spencera773bd52006-08-04 18:18:08 +000021021ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021022
21023
Reid Spencer8b2e1412006-11-17 03:32:33 +000021024ac_config_commands="$ac_config_commands runtime/Makefile"
21025
21026
Reid Spencera773bd52006-08-04 18:18:08 +000021027ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021028
21029
Reid Spencera773bd52006-08-04 18:18:08 +000021030ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021031
21032
Bill Wendlingf24eb392009-01-04 23:12:30 +000021033ac_config_commands="$ac_config_commands unittests/Makefile"
21034
21035
Reid Spencera773bd52006-08-04 18:18:08 +000021036ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021037
21038
Reid Spencera773bd52006-08-04 18:18:08 +000021039ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021040
21041
Reid Spencera773bd52006-08-04 18:18:08 +000021042ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021043
21044
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021045ac_config_commands="$ac_config_commands bindings/Makefile"
21046
21047
21048ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21049
21050
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021051
John Criswell7a73b802003-06-30 21:59:07 +000021052cat >confcache <<\_ACEOF
21053# This file is a shell script that caches the results of configure
21054# tests run on this system so they can be shared between configure
21055# scripts and configure runs, see configure's option --config-cache.
21056# It is not useful on other systems. If it contains results you don't
21057# want to keep, you may remove or edit it.
21058#
21059# config.status only pays attention to the cache file if you give it
21060# the --recheck option to rerun configure.
21061#
John Criswell0c38eaf2003-09-10 15:17:25 +000021062# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021063# loading this file, other *unset* `ac_cv_foo' will be assigned the
21064# following values.
21065
21066_ACEOF
21067
21068# The following way of writing the cache mishandles newlines in values,
21069# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021070# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021071# Ultrix sh set writes to stderr and can't be redirected directly,
21072# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021073(
21074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21075 eval ac_val=\$$ac_var
21076 case $ac_val in #(
21077 *${as_nl}*)
21078 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021079 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21080echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021081 esac
21082 case $ac_var in #(
21083 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021084 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021085 esac ;;
21086 esac
21087 done
21088
John Criswell7a73b802003-06-30 21:59:07 +000021089 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021090 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21091 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092 # `set' does not quote correctly, so add quotes (double-quote
21093 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021094 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021095 "s/'/'\\\\''/g;
21096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021097 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021098 *)
21099 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021101 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021102 esac |
21103 sort
21104) |
John Criswell7a73b802003-06-30 21:59:07 +000021105 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021106 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021107 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021108 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21110 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021111 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21112 :end' >>confcache
21113if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21114 if test -w "$cache_file"; then
21115 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021116 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21117echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021118 cat confcache >$cache_file
21119 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021120 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21121echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021122 fi
21123fi
21124rm -f confcache
21125
21126test "x$prefix" = xNONE && prefix=$ac_default_prefix
21127# Let make expand exec_prefix.
21128test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21129
John Criswell7a73b802003-06-30 21:59:07 +000021130DEFS=-DHAVE_CONFIG_H
21131
John Criswell0c38eaf2003-09-10 15:17:25 +000021132ac_libobjs=
21133ac_ltlibobjs=
21134for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21135 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021137 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21139 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021140 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21141 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021142done
21143LIBOBJS=$ac_libobjs
21144
21145LTLIBOBJS=$ac_ltlibobjs
21146
21147
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021148if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021149 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21150Usually this means the macro was only invoked conditionally." >&5
21151echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21152Usually this means the macro was only invoked conditionally." >&2;}
21153 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021154fi
21155if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021156 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21157Usually this means the macro was only invoked conditionally." >&5
21158echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21159Usually this means the macro was only invoked conditionally." >&2;}
21160 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021161fi
John Criswell7a73b802003-06-30 21:59:07 +000021162
21163: ${CONFIG_STATUS=./config.status}
21164ac_clean_files_save=$ac_clean_files
21165ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021166{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21167echo "$as_me: creating $CONFIG_STATUS" >&6;}
21168cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021169#! $SHELL
21170# Generated by $as_me.
21171# Run this file to recreate the current configuration.
21172# Compiler output produced by configure, useful for debugging
21173# configure, is in config.log if it exists.
21174
21175debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021176ac_cs_recheck=false
21177ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021178SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021181cat >>$CONFIG_STATUS <<\_ACEOF
21182## --------------------- ##
21183## M4sh Initialization. ##
21184## --------------------- ##
21185
21186# Be Bourne compatible
21187if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021188 emulate sh
21189 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021190 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021191 # is contrary to our usage. Disable this feature.
21192 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021193 setopt NO_GLOB_SUBST
21194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021195 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021197BIN_SH=xpg4; export BIN_SH # for Tru64
21198DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021199
John Criswell7a73b802003-06-30 21:59:07 +000021200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021201# PATH needs CR
21202# Avoid depending upon Character Ranges.
21203as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21204as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21205as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21206as_cr_digits='0123456789'
21207as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021208
21209# The user is always right.
21210if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021211 echo "#! /bin/sh" >conf$$.sh
21212 echo "exit 0" >>conf$$.sh
21213 chmod +x conf$$.sh
21214 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21215 PATH_SEPARATOR=';'
21216 else
21217 PATH_SEPARATOR=:
21218 fi
21219 rm -f conf$$.sh
21220fi
21221
21222# Support unset when possible.
21223if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21224 as_unset=unset
21225else
21226 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021227fi
John Criswell7a73b802003-06-30 21:59:07 +000021228
Reid Spencera773bd52006-08-04 18:18:08 +000021229
21230# IFS
21231# We need space, tab and new line, in precisely that order. Quoting is
21232# there to prevent editors from complaining about space-tab.
21233# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21234# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235as_nl='
21236'
Reid Spencera773bd52006-08-04 18:18:08 +000021237IFS=" "" $as_nl"
21238
21239# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021240case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021241 *[\\/]* ) as_myself=$0 ;;
21242 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021243for as_dir in $PATH
21244do
21245 IFS=$as_save_IFS
21246 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21248done
Reid Spencera773bd52006-08-04 18:18:08 +000021249IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021250
Reid Spencera773bd52006-08-04 18:18:08 +000021251 ;;
21252esac
21253# We did not find ourselves, most probably we were run as `sh COMMAND'
21254# in which case we are not to be found in the path.
21255if test "x$as_myself" = x; then
21256 as_myself=$0
21257fi
21258if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21260 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021261fi
21262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021263# Work around bugs in pre-3.0 UWIN ksh.
21264for as_var in ENV MAIL MAILPATH
21265do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021266done
21267PS1='$ '
21268PS2='> '
21269PS4='+ '
21270
21271# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021272for as_var in \
21273 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21274 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21275 LC_TELEPHONE LC_TIME
21276do
21277 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21278 eval $as_var=C; export $as_var
21279 else
21280 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021281 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021282done
Torok Edwin871384f2010-01-26 08:50:50 +000021283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021284# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021285if expr a : '\(a\)' >/dev/null 2>&1 &&
21286 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21287 as_expr=expr
21288else
21289 as_expr=false
21290fi
21291
21292if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21293 as_basename=basename
21294else
21295 as_basename=false
21296fi
21297
21298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021299# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021300as_me=`$as_basename -- "$0" ||
21301$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21302 X"$0" : 'X\(//\)$' \| \
21303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021305 sed '/^.*\/\([^/][^/]*\)\/*$/{
21306 s//\1/
21307 q
21308 }
21309 /^X\/\(\/\/\)$/{
21310 s//\1/
21311 q
21312 }
21313 /^X\/\(\/\).*/{
21314 s//\1/
21315 q
21316 }
21317 s/.*/./; q'`
21318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021319# CDPATH.
21320$as_unset CDPATH
21321
21322
21323
21324 as_lineno_1=$LINENO
21325 as_lineno_2=$LINENO
21326 test "x$as_lineno_1" != "x$as_lineno_2" &&
21327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21328
21329 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21330 # uniformly replaced by the line number. The first 'sed' inserts a
21331 # line-number line after each line using $LINENO; the second 'sed'
21332 # does the real work. The second script uses 'N' to pair each
21333 # line-number line with the line containing $LINENO, and appends
21334 # trailing '-' during substitution so that $LINENO is not a special
21335 # case at line end.
21336 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21337 # scripts with optimization help from Paolo Bonzini. Blame Lee
21338 # E. McMahon (1931-1989) for sed's syntax. :-)
21339 sed -n '
21340 p
21341 /[$]LINENO/=
21342 ' <$as_myself |
21343 sed '
21344 s/[$]LINENO.*/&-/
21345 t lineno
21346 b
21347 :lineno
21348 N
21349 :loop
21350 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21351 t loop
21352 s/-\n.*//
21353 ' >$as_me.lineno &&
21354 chmod +x "$as_me.lineno" ||
21355 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21356 { (exit 1); exit 1; }; }
21357
21358 # Don't try to exec as it changes $[0], causing all sort of problems
21359 # (the dirname of $[0] is not the place where we might find the
21360 # original and so on. Autoconf is especially sensitive to this).
21361 . "./$as_me.lineno"
21362 # Exit status is that of the last command.
21363 exit
21364}
21365
21366
21367if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21368 as_dirname=dirname
21369else
21370 as_dirname=false
21371fi
Reid Spencera773bd52006-08-04 18:18:08 +000021372
21373ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021375-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021376 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021377 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021378 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021379 esac;;
21380*)
21381 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021382esac
21383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021384if expr a : '\(a\)' >/dev/null 2>&1 &&
21385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21386 as_expr=expr
21387else
21388 as_expr=false
21389fi
21390
John Criswell7a73b802003-06-30 21:59:07 +000021391rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021392if test -d conf$$.dir; then
21393 rm -f conf$$.dir/conf$$.file
21394else
21395 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021398echo >conf$$.file
21399if ln -s conf$$.file conf$$ 2>/dev/null; then
21400 as_ln_s='ln -s'
21401 # ... but there are two gotchas:
21402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21404 # In both cases, we have to default to `cp -p'.
21405 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021406 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021407elif ln conf$$.file conf$$ 2>/dev/null; then
21408 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021409else
21410 as_ln_s='cp -p'
21411fi
Reid Spencera773bd52006-08-04 18:18:08 +000021412rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21413rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021414
John Criswell0c38eaf2003-09-10 15:17:25 +000021415if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021417else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021418 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021419 as_mkdir_p=false
21420fi
21421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021422# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21423# systems may use methods other than mode bits to determine executability.
21424cat >conf$$.file <<_ASEOF
21425#! /bin/sh
21426exit 0
21427_ASEOF
21428chmod +x conf$$.file
21429if test -x conf$$.file >/dev/null 2>&1; then
21430 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021432 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021434rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021435
21436# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021437as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021438
21439# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021440as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021441
21442
John Criswell7a73b802003-06-30 21:59:07 +000021443exec 6>&1
21444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021445# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021446# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021447# values after options handling.
21448ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021449This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021450generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021451
21452 CONFIG_FILES = $CONFIG_FILES
21453 CONFIG_HEADERS = $CONFIG_HEADERS
21454 CONFIG_LINKS = $CONFIG_LINKS
21455 CONFIG_COMMANDS = $CONFIG_COMMANDS
21456 $ $0 $@
21457
Reid Spencera773bd52006-08-04 18:18:08 +000021458on `(hostname || uname -n) 2>/dev/null | sed 1q`
21459"
21460
John Criswell7a73b802003-06-30 21:59:07 +000021461_ACEOF
21462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021463cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021464# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021465config_files="$ac_config_files"
21466config_headers="$ac_config_headers"
21467config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021468
Reid Spencera773bd52006-08-04 18:18:08 +000021469_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021471cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021472ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021473\`$as_me' instantiates files from templates according to the
21474current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021476Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021477
21478 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021479 -V, --version print version number, then exit
21480 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021481 -d, --debug don't remove temporary files
21482 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021483 --file=FILE[:TEMPLATE]
21484 instantiate the configuration file FILE
21485 --header=FILE[:TEMPLATE]
21486 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021487
21488Configuration files:
21489$config_files
21490
21491Configuration headers:
21492$config_headers
21493
John Criswellc764fbc2003-09-06 15:17:13 +000021494Configuration commands:
21495$config_commands
21496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021497Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021498
Reid Spencera773bd52006-08-04 18:18:08 +000021499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021500cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021501ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021502llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503configured by $0, generated by GNU Autoconf 2.60,
21504 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021506Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021507This config.status script is free software; the Free Software Foundation
21508gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021509
21510ac_pwd='$ac_pwd'
21511srcdir='$srcdir'
21512INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021513_ACEOF
21514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021515cat >>$CONFIG_STATUS <<\_ACEOF
21516# If no file are specified by the user, then we need to provide default
21517# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021518ac_need_defaults=:
21519while test $# != 0
21520do
21521 case $1 in
21522 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021525 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021526 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021527 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021528 ac_option=$1
21529 ac_optarg=$2
21530 ac_shift=shift
21531 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021532 esac
21533
John Criswell0c38eaf2003-09-10 15:17:25 +000021534 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021535 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21537 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021539 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021540 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021541 debug=: ;;
21542 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021543 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021544 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021545 ac_need_defaults=false;;
21546 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021547 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021549 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021550 --he | --h)
21551 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552 { echo "$as_me: error: ambiguous option: $1
21553Try \`$0 --help' for more information." >&2
21554 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021555 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021556 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21559 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021560
21561 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562 -*) { echo "$as_me: error: unrecognized option: $1
21563Try \`$0 --help' for more information." >&2
21564 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021566 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021567 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021568
21569 esac
21570 shift
21571done
21572
John Criswell0c38eaf2003-09-10 15:17:25 +000021573ac_configure_extra_args=
21574
21575if $ac_cs_silent; then
21576 exec 6>/dev/null
21577 ac_configure_extra_args="$ac_configure_extra_args --silent"
21578fi
21579
21580_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021582if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21584 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021585 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021587fi
21588
John Criswell7a73b802003-06-30 21:59:07 +000021589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021590cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021591exec 5>>config.log
21592{
21593 echo
21594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21595## Running $as_me. ##
21596_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021598} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021599
Reid Spencera773bd52006-08-04 18:18:08 +000021600_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021601cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021602#
Reid Spencera773bd52006-08-04 18:18:08 +000021603# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021604#
Reid Spencerc0682832005-02-24 19:05:19 +000021605llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021606
21607_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021609cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021610
21611# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021612for ac_config_target in $ac_config_targets
21613do
Reid Spencera773bd52006-08-04 18:18:08 +000021614 case $ac_config_target in
21615 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021616 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021617 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21618 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021619 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021620 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021621 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021622 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021623 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021624 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021625 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21626 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21627 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21628 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21629 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21630 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021631 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021632 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21633 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021634 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021635 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21636 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21637 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021638 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21639 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021641 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21642echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21643 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021644 esac
21645done
21646
Reid Spencera773bd52006-08-04 18:18:08 +000021647
John Criswell7a73b802003-06-30 21:59:07 +000021648# If the user did not use the arguments to specify the items to instantiate,
21649# then the envvar interface is used. Set only those that are not.
21650# We use the long form for the default assignment because of an extremely
21651# bizarre bug on SunOS 4.1.3.
21652if $ac_need_defaults; then
21653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021656fi
21657
John Criswell0c38eaf2003-09-10 15:17:25 +000021658# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021659# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021660# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021661# Hook for its removal unless debugging.
21662# Note that there is a small window in which the directory will not be cleaned:
21663# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021664$debug ||
21665{
Reid Spencera773bd52006-08-04 18:18:08 +000021666 tmp=
21667 trap 'exit_status=$?
21668 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21669' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021671}
John Criswell7a73b802003-06-30 21:59:07 +000021672# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021673
John Criswell7a73b802003-06-30 21:59:07 +000021674{
Reid Spencera773bd52006-08-04 18:18:08 +000021675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021676 test -n "$tmp" && test -d "$tmp"
21677} ||
21678{
Reid Spencera773bd52006-08-04 18:18:08 +000021679 tmp=./conf$$-$RANDOM
21680 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021681} ||
21682{
21683 echo "$me: cannot create a temporary directory in ." >&2
21684 { (exit 1); exit 1; }
21685}
John Criswell7a73b802003-06-30 21:59:07 +000021686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021687#
21688# Set up the sed scripts for CONFIG_FILES section.
21689#
21690
21691# No need to generate the scripts if there are no CONFIG_FILES.
21692# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021693if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021694
21695_ACEOF
21696
Reid Spencera773bd52006-08-04 18:18:08 +000021697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021698
Reid Spencera773bd52006-08-04 18:18:08 +000021699ac_delim='%!_!# '
21700for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021701 cat >conf$$subs.sed <<_ACEOF
21702SHELL!$SHELL$ac_delim
21703PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21704PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21705PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21706PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21707PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21708PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21709exec_prefix!$exec_prefix$ac_delim
21710prefix!$prefix$ac_delim
21711program_transform_name!$program_transform_name$ac_delim
21712bindir!$bindir$ac_delim
21713sbindir!$sbindir$ac_delim
21714libexecdir!$libexecdir$ac_delim
21715datarootdir!$datarootdir$ac_delim
21716datadir!$datadir$ac_delim
21717sysconfdir!$sysconfdir$ac_delim
21718sharedstatedir!$sharedstatedir$ac_delim
21719localstatedir!$localstatedir$ac_delim
21720includedir!$includedir$ac_delim
21721oldincludedir!$oldincludedir$ac_delim
21722docdir!$docdir$ac_delim
21723infodir!$infodir$ac_delim
21724htmldir!$htmldir$ac_delim
21725dvidir!$dvidir$ac_delim
21726pdfdir!$pdfdir$ac_delim
21727psdir!$psdir$ac_delim
21728libdir!$libdir$ac_delim
21729localedir!$localedir$ac_delim
21730mandir!$mandir$ac_delim
21731DEFS!$DEFS$ac_delim
21732ECHO_C!$ECHO_C$ac_delim
21733ECHO_N!$ECHO_N$ac_delim
21734ECHO_T!$ECHO_T$ac_delim
21735LIBS!$LIBS$ac_delim
21736build_alias!$build_alias$ac_delim
21737host_alias!$host_alias$ac_delim
21738target_alias!$target_alias$ac_delim
21739LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21740subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021741ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21742LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743build!$build$ac_delim
21744build_cpu!$build_cpu$ac_delim
21745build_vendor!$build_vendor$ac_delim
21746build_os!$build_os$ac_delim
21747host!$host$ac_delim
21748host_cpu!$host_cpu$ac_delim
21749host_vendor!$host_vendor$ac_delim
21750host_os!$host_os$ac_delim
21751target!$target$ac_delim
21752target_cpu!$target_cpu$ac_delim
21753target_vendor!$target_vendor$ac_delim
21754target_os!$target_os$ac_delim
21755OS!$OS$ac_delim
21756HOST_OS!$HOST_OS$ac_delim
21757TARGET_OS!$TARGET_OS$ac_delim
21758LINKALL!$LINKALL$ac_delim
21759NOLINKALL!$NOLINKALL$ac_delim
21760LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21761LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21762ARCH!$ARCH$ac_delim
21763ENDIAN!$ENDIAN$ac_delim
21764CC!$CC$ac_delim
21765CFLAGS!$CFLAGS$ac_delim
21766LDFLAGS!$LDFLAGS$ac_delim
21767CPPFLAGS!$CPPFLAGS$ac_delim
21768ac_ct_CC!$ac_ct_CC$ac_delim
21769EXEEXT!$EXEEXT$ac_delim
21770OBJEXT!$OBJEXT$ac_delim
21771CPP!$CPP$ac_delim
21772GREP!$GREP$ac_delim
21773EGREP!$EGREP$ac_delim
21774LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21775BUILD_CC!$BUILD_CC$ac_delim
21776BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21777BUILD_CXX!$BUILD_CXX$ac_delim
21778CVSBUILD!$CVSBUILD$ac_delim
21779ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21780ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21781DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21782ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21783EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21784DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21785DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21786JIT!$JIT$ac_delim
21787TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021788ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021789ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21790ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21791ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021792ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021793ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021794TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21795LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21796LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21797LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21798LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021799_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021801 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021802 break
21803 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21805echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21806 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021807 else
21808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021809 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021810done
21811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21813if test -n "$ac_eof"; then
21814 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21815 ac_eof=`expr $ac_eof + 1`
21816fi
21817
21818cat >>$CONFIG_STATUS <<_ACEOF
21819cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21820/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021821_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822sed '
21823s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21824s/^/s,@/; s/!/@,|#_!!_#|/
21825:n
21826t n
21827s/'"$ac_delim"'$/,g/; t
21828s/$/\\/; p
21829N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21830' >>$CONFIG_STATUS <conf$$subs.sed
21831rm -f conf$$subs.sed
21832cat >>$CONFIG_STATUS <<_ACEOF
21833CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021834_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835
21836
21837ac_delim='%!_!# '
21838for ac_last_try in false false false false false :; do
21839 cat >conf$$subs.sed <<_ACEOF
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021840ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021841CLANGPATH!$CLANGPATH$ac_delim
21842CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021843ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021844OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021845EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21846BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847CXX!$CXX$ac_delim
21848CXXFLAGS!$CXXFLAGS$ac_delim
21849ac_ct_CXX!$ac_ct_CXX$ac_delim
21850NM!$NM$ac_delim
21851ifGNUmake!$ifGNUmake$ac_delim
21852LN_S!$LN_S$ac_delim
21853CMP!$CMP$ac_delim
21854CP!$CP$ac_delim
21855DATE!$DATE$ac_delim
21856FIND!$FIND$ac_delim
21857MKDIR!$MKDIR$ac_delim
21858MV!$MV$ac_delim
21859RANLIB!$RANLIB$ac_delim
21860AR!$AR$ac_delim
21861RM!$RM$ac_delim
21862SED!$SED$ac_delim
21863TAR!$TAR$ac_delim
21864BINPWD!$BINPWD$ac_delim
21865GRAPHVIZ!$GRAPHVIZ$ac_delim
21866DOT!$DOT$ac_delim
21867FDP!$FDP$ac_delim
21868NEATO!$NEATO$ac_delim
21869TWOPI!$TWOPI$ac_delim
21870CIRCO!$CIRCO$ac_delim
21871GV!$GV$ac_delim
21872DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021873XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874PERL!$PERL$ac_delim
21875HAVE_PERL!$HAVE_PERL$ac_delim
21876INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21877INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21878INSTALL_DATA!$INSTALL_DATA$ac_delim
21879BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021880CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021881DOXYGEN!$DOXYGEN$ac_delim
21882GROFF!$GROFF$ac_delim
21883GZIP!$GZIP$ac_delim
21884POD2HTML!$POD2HTML$ac_delim
21885POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021886PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021887RUNTEST!$RUNTEST$ac_delim
21888TCLSH!$TCLSH$ac_delim
21889ZIP!$ZIP$ac_delim
21890OCAMLC!$OCAMLC$ac_delim
21891OCAMLOPT!$OCAMLOPT$ac_delim
21892OCAMLDEP!$OCAMLDEP$ac_delim
21893OCAMLDOC!$OCAMLDOC$ac_delim
21894GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021895HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021896INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21897INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21898CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21899CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21900LIBADD_DL!$LIBADD_DL$ac_delim
21901LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21902LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21903LLVMGCC!$LLVMGCC$ac_delim
21904LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021905LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21907NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21908USE_UDIS86!$USE_UDIS86$ac_delim
21909USE_OPROFILE!$USE_OPROFILE$ac_delim
21910HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21911HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21912MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021913LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914LLVMCC1!$LLVMCC1$ac_delim
21915LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21916LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021917LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021918LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
Eric Christopher481d4022010-12-03 07:45:22 +000021919LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021921SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21923LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21924LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21925LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21926LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21927LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21928LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21929LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21930LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21931LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21932BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21933ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21934OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21935ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21936RPATH!$RPATH$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021937_ACEOF
21938
Tobias Grossera84b5672010-11-10 16:31:34 +000021939 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021940 break
21941 elif $ac_last_try; then
21942 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21943echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21944 { (exit 1); exit 1; }; }
21945 else
21946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21947 fi
21948done
21949
21950ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21951if test -n "$ac_eof"; then
21952 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21953 ac_eof=`expr $ac_eof + 1`
21954fi
21955
21956cat >>$CONFIG_STATUS <<_ACEOF
21957cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021958/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021959_ACEOF
21960sed '
21961s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21962s/^/s,@/; s/!/@,|#_!!_#|/
21963:n
21964t n
21965s/'"$ac_delim"'$/,g/; t
21966s/$/\\/; p
21967N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21968' >>$CONFIG_STATUS <conf$$subs.sed
21969rm -f conf$$subs.sed
21970cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021971CEOF$ac_eof
21972_ACEOF
21973
21974
Tobias Grossera84b5672010-11-10 16:31:34 +000021975ac_delim='%!_!# '
21976for ac_last_try in false false false false false :; do
21977 cat >conf$$subs.sed <<_ACEOF
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021978RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021979LIBOBJS!$LIBOBJS$ac_delim
21980LTLIBOBJS!$LTLIBOBJS$ac_delim
21981_ACEOF
21982
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021983 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
Tobias Grossera84b5672010-11-10 16:31:34 +000021984 break
21985 elif $ac_last_try; then
21986 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21987echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21988 { (exit 1); exit 1; }; }
21989 else
21990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21991 fi
21992done
21993
21994ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21995if test -n "$ac_eof"; then
21996 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21997 ac_eof=`expr $ac_eof + 1`
21998fi
21999
22000cat >>$CONFIG_STATUS <<_ACEOF
22001cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22003_ACEOF
22004sed '
22005s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22006s/^/s,@/; s/!/@,|#_!!_#|/
22007:n
22008t n
22009s/'"$ac_delim"'$/,g/; t
22010s/$/\\/; p
22011N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22012' >>$CONFIG_STATUS <conf$$subs.sed
22013rm -f conf$$subs.sed
22014cat >>$CONFIG_STATUS <<_ACEOF
22015:end
22016s/|#_!!_#|//g
22017CEOF$ac_eof
22018_ACEOF
22019
22020
Reid Spencera773bd52006-08-04 18:18:08 +000022021# VPATH may cause trouble with some makes, so we remove $(srcdir),
22022# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22023# trailing colons and then remove the whole line if VPATH becomes empty
22024# (actually we leave an empty line to preserve line numbers).
22025if test "x$srcdir" = x.; then
22026 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22027s/:*\$(srcdir):*/:/
22028s/:*\${srcdir}:*/:/
22029s/:*@srcdir@:*/:/
22030s/^\([^=]*=[ ]*\):*/\1/
22031s/:*$//
22032s/^[^=]*=[ ]*$//
22033}'
22034fi
22035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022036cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022037fi # test -n "$CONFIG_FILES"
22038
Reid Spencera773bd52006-08-04 18:18:08 +000022039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022040for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022041do
22042 case $ac_tag in
22043 :[FHLC]) ac_mode=$ac_tag; continue;;
22044 esac
22045 case $ac_mode$ac_tag in
22046 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022047 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22048echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22049 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022050 :[FH]-) ac_tag=-:-;;
22051 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22052 esac
22053 ac_save_IFS=$IFS
22054 IFS=:
22055 set x $ac_tag
22056 IFS=$ac_save_IFS
22057 shift
22058 ac_file=$1
22059 shift
22060
22061 case $ac_mode in
22062 :L) ac_source=$1;;
22063 :[FH])
22064 ac_file_inputs=
22065 for ac_f
22066 do
22067 case $ac_f in
22068 -) ac_f="$tmp/stdin";;
22069 *) # Look for the file first in the build tree, then in the source tree
22070 # (if the path is not absolute). The absolute path cannot be DOS-style,
22071 # because $ac_f cannot contain `:'.
22072 test -f "$ac_f" ||
22073 case $ac_f in
22074 [\\/$]*) false;;
22075 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22076 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022077 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22078echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22079 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022080 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022081 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022082 done
22083
22084 # Let's still pretend it is `configure' which instantiates (i.e., don't
22085 # use $as_me), people would be surprised to read:
22086 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022087 configure_input="Generated from "`IFS=:
22088 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022089 if test x"$ac_file" != x-; then
22090 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022091 { echo "$as_me:$LINENO: creating $ac_file" >&5
22092echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022093 fi
22094
22095 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022096 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022097 esac
22098 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022099 esac
22100
Reid Spencera773bd52006-08-04 18:18:08 +000022101 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022102$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022103 X"$ac_file" : 'X\(//\)[^/]' \| \
22104 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022105 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022106echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22108 s//\1/
22109 q
22110 }
22111 /^X\(\/\/\)[^/].*/{
22112 s//\1/
22113 q
22114 }
22115 /^X\(\/\/\)$/{
22116 s//\1/
22117 q
22118 }
22119 /^X\(\/\).*/{
22120 s//\1/
22121 q
22122 }
22123 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022124 { as_dir="$ac_dir"
22125 case $as_dir in #(
22126 -*) as_dir=./$as_dir;;
22127 esac
22128 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22129 as_dirs=
22130 while :; do
22131 case $as_dir in #(
22132 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22133 *) as_qdir=$as_dir;;
22134 esac
22135 as_dirs="'$as_qdir' $as_dirs"
22136 as_dir=`$as_dirname -- "$as_dir" ||
22137$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22138 X"$as_dir" : 'X\(//\)[^/]' \| \
22139 X"$as_dir" : 'X\(//\)$' \| \
22140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22141echo X"$as_dir" |
22142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22143 s//\1/
22144 q
22145 }
22146 /^X\(\/\/\)[^/].*/{
22147 s//\1/
22148 q
22149 }
22150 /^X\(\/\/\)$/{
22151 s//\1/
22152 q
22153 }
22154 /^X\(\/\).*/{
22155 s//\1/
22156 q
22157 }
22158 s/.*/./; q'`
22159 test -d "$as_dir" && break
22160 done
22161 test -z "$as_dirs" || eval "mkdir $as_dirs"
22162 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22163echo "$as_me: error: cannot create directory $as_dir" >&2;}
22164 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022165 ac_builddir=.
22166
Reid Spencera773bd52006-08-04 18:18:08 +000022167case "$ac_dir" in
22168.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22169*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022170 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022171 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022173 case $ac_top_builddir_sub in
22174 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22175 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22176 esac ;;
22177esac
22178ac_abs_top_builddir=$ac_pwd
22179ac_abs_builddir=$ac_pwd$ac_dir_suffix
22180# for backward compatibility:
22181ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022182
22183case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022184 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022185 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022186 ac_top_srcdir=$ac_top_builddir_sub
22187 ac_abs_top_srcdir=$ac_pwd ;;
22188 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022189 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022190 ac_top_srcdir=$srcdir
22191 ac_abs_top_srcdir=$srcdir ;;
22192 *) # Relative name.
22193 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22194 ac_top_srcdir=$ac_top_build_prefix$srcdir
22195 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022196esac
Reid Spencera773bd52006-08-04 18:18:08 +000022197ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022198
John Criswell7a73b802003-06-30 21:59:07 +000022199
Reid Spencera773bd52006-08-04 18:18:08 +000022200 case $ac_mode in
22201 :F)
22202 #
22203 # CONFIG_FILE
22204 #
John Criswell7a73b802003-06-30 21:59:07 +000022205
22206 case $INSTALL in
22207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022208 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022209 esac
John Criswell7a73b802003-06-30 21:59:07 +000022210_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022212cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022213# If the template does not know about datarootdir, expand it.
22214# FIXME: This hack should be removed a few years after 2.60.
22215ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022216
22217case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022218 p
22219 q
22220}
22221/@datadir@/p
22222/@docdir@/p
22223/@infodir@/p
22224/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022225/@mandir@/p
22226' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022227*datarootdir*) ac_datarootdir_seen=yes;;
22228*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022229 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22230echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022231_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022233 ac_datarootdir_hack='
22234 s&@datadir@&$datadir&g
22235 s&@docdir@&$docdir&g
22236 s&@infodir@&$infodir&g
22237 s&@localedir@&$localedir&g
22238 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022239 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022240esac
22241_ACEOF
22242
22243# Neutralize VPATH when `$srcdir' = `.'.
22244# Shell code in configure.ac might set extrasub.
22245# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246cat >>$CONFIG_STATUS <<_ACEOF
22247 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022248$extrasub
22249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022250cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022251:t
22252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022253s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022254s&@top_builddir@&$ac_top_builddir_sub&;t t
22255s&@srcdir@&$ac_srcdir&;t t
22256s&@abs_srcdir@&$ac_abs_srcdir&;t t
22257s&@top_srcdir@&$ac_top_srcdir&;t t
22258s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22259s&@builddir@&$ac_builddir&;t t
22260s&@abs_builddir@&$ac_abs_builddir&;t t
22261s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22262s&@INSTALL@&$ac_INSTALL&;t t
22263$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000022264" $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 +000022265
Reid Spencera773bd52006-08-04 18:18:08 +000022266test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22267 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22268 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022269 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022270which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022271echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022272which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022273
Reid Spencera773bd52006-08-04 18:18:08 +000022274 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022275 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276 -) cat "$tmp/out"; rm -f "$tmp/out";;
22277 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22278 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022279 ;;
22280 :H)
22281 #
22282 # CONFIG_HEADER
22283 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022284_ACEOF
22285
22286# Transform confdefs.h into a sed script `conftest.defines', that
22287# substitutes the proper values into config.h.in to produce config.h.
22288rm -f conftest.defines conftest.tail
22289# First, append a space to every undef/define line, to ease matching.
22290echo 's/$/ /' >conftest.defines
22291# Then, protect against being on the right side of a sed subst, or in
22292# an unquoted here document, in config.status. If some macros were
22293# called several times there might be several #defines for the same
22294# symbol, which is useless. But do not sort them, since the last
22295# AC_DEFINE must be honored.
22296ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22297# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22298# NAME is the cpp macro being defined, VALUE is the value it is being given.
22299# PARAMS is the parameter list in the macro definition--in most cases, it's
22300# just an empty string.
22301ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22302ac_dB='\\)[ (].*,\\1define\\2'
22303ac_dC=' '
22304ac_dD=' ,'
22305
22306uniq confdefs.h |
22307 sed -n '
22308 t rset
22309 :rset
22310 s/^[ ]*#[ ]*define[ ][ ]*//
22311 t ok
22312 d
22313 :ok
22314 s/[\\&,]/\\&/g
22315 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22316 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22317 ' >>conftest.defines
22318
22319# Remove the space that was appended to ease matching.
22320# Then replace #undef with comments. This is necessary, for
22321# example, in the case of _POSIX_SOURCE, which is predefined and required
22322# on some systems where configure will not decide to define it.
22323# (The regexp can be short, since the line contains either #define or #undef.)
22324echo 's/ $//
22325s,^[ #]*u.*,/* & */,' >>conftest.defines
22326
22327# Break up conftest.defines:
22328ac_max_sed_lines=50
22329
22330# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22331# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22332# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22333# et cetera.
22334ac_in='$ac_file_inputs'
22335ac_out='"$tmp/out1"'
22336ac_nxt='"$tmp/out2"'
22337
22338while :
22339do
22340 # Write a here document:
22341 cat >>$CONFIG_STATUS <<_ACEOF
22342 # First, check the format of the line:
22343 cat >"\$tmp/defines.sed" <<\\CEOF
22344/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22345/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22346b
22347:def
22348_ACEOF
22349 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22350 echo 'CEOF
22351 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22352 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22353 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22354 grep . conftest.tail >/dev/null || break
22355 rm -f conftest.defines
22356 mv conftest.tail conftest.defines
22357done
22358rm -f conftest.defines conftest.tail
22359
22360echo "ac_result=$ac_in" >>$CONFIG_STATUS
22361cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022362 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022363 echo "/* $configure_input */" >"$tmp/config.h"
22364 cat "$ac_result" >>"$tmp/config.h"
22365 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22366 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22367echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022368 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022369 rm -f $ac_file
22370 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022371 fi
22372 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022373 echo "/* $configure_input */"
22374 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022375 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022376 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022377 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022379 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22380echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022381 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022382 esac
John Criswell7a73b802003-06-30 21:59:07 +000022383
Reid Spencera773bd52006-08-04 18:18:08 +000022384
22385 case $ac_file$ac_mode in
22386 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022387 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022388 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022389 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022390 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022391 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022392 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022393 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022394 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022395 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022396 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022397 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022398 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022399 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022400 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022401 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022402 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022403 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022404 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022405 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022406 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022407 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022408 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022410 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022411 ${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 +000022412
22413 esac
22414done # for ac_tag
22415
John Criswell7a73b802003-06-30 21:59:07 +000022416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022417{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022419chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022420ac_clean_files=$ac_clean_files_save
22421
22422
22423# configure is writing to config.log, and then calls config.status.
22424# config.status does its own redirection, appending to config.log.
22425# Unfortunately, on DOS this fails, as config.log is still kept open
22426# by configure, so config.status won't be able to write to it; its
22427# output is simply discarded. So we exec the FD to /dev/null,
22428# effectively closing config.log, so it can be properly (re)opened and
22429# appended to by config.status. When coming back to configure, we
22430# need to make the FD available again.
22431if test "$no_create" != yes; then
22432 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022433 ac_config_status_args=
22434 test "$silent" = yes &&
22435 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022436 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022437 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022438 exec 5>>config.log
22439 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22440 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022441 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022442fi
22443
John Criswell12399a12003-09-30 15:55:44 +000022444#
22445# CONFIG_SUBDIRS section.
22446#
22447if test "$no_recursion" != yes; then
22448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022449 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022450 ac_sub_configure_args=
22451 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022452 eval "set x $ac_configure_args"
22453 shift
22454 for ac_arg
22455 do
John Criswell12399a12003-09-30 15:55:44 +000022456 if test -n "$ac_prev"; then
22457 ac_prev=
22458 continue
22459 fi
22460 case $ac_arg in
22461 -cache-file | --cache-file | --cache-fil | --cache-fi \
22462 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22463 ac_prev=cache_file ;;
22464 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22465 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22466 | --c=*)
22467 ;;
22468 --config-cache | -C)
22469 ;;
22470 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22471 ac_prev=srcdir ;;
22472 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22473 ;;
22474 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22475 ac_prev=prefix ;;
22476 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22477 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022478 *)
22479 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022480 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022481 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022482 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022483 esac
22484 done
22485
22486 # Always prepend --prefix to ensure using the same prefix
22487 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022488 ac_arg="--prefix=$prefix"
22489 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022490 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022491 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022492 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022493
22494 ac_popdir=`pwd`
22495 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22496
22497 # Do not complain, so a configure script can configure whichever
22498 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022499 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022500
Reid Spencera773bd52006-08-04 18:18:08 +000022501 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502 echo "$as_me:$LINENO: $ac_msg" >&5
22503 echo "$ac_msg" >&6
22504 { as_dir="$ac_dir"
22505 case $as_dir in #(
22506 -*) as_dir=./$as_dir;;
22507 esac
22508 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22509 as_dirs=
22510 while :; do
22511 case $as_dir in #(
22512 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22513 *) as_qdir=$as_dir;;
22514 esac
22515 as_dirs="'$as_qdir' $as_dirs"
22516 as_dir=`$as_dirname -- "$as_dir" ||
22517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22518 X"$as_dir" : 'X\(//\)[^/]' \| \
22519 X"$as_dir" : 'X\(//\)$' \| \
22520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22521echo X"$as_dir" |
22522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22523 s//\1/
22524 q
22525 }
22526 /^X\(\/\/\)[^/].*/{
22527 s//\1/
22528 q
22529 }
22530 /^X\(\/\/\)$/{
22531 s//\1/
22532 q
22533 }
22534 /^X\(\/\).*/{
22535 s//\1/
22536 q
22537 }
22538 s/.*/./; q'`
22539 test -d "$as_dir" && break
22540 done
22541 test -z "$as_dirs" || eval "mkdir $as_dirs"
22542 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22543echo "$as_me: error: cannot create directory $as_dir" >&2;}
22544 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022545 ac_builddir=.
22546
Reid Spencera773bd52006-08-04 18:18:08 +000022547case "$ac_dir" in
22548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22549*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022551 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022553 case $ac_top_builddir_sub in
22554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22556 esac ;;
22557esac
22558ac_abs_top_builddir=$ac_pwd
22559ac_abs_builddir=$ac_pwd$ac_dir_suffix
22560# for backward compatibility:
22561ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022562
22563case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022564 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022565 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022566 ac_top_srcdir=$ac_top_builddir_sub
22567 ac_abs_top_srcdir=$ac_pwd ;;
22568 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022569 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022570 ac_top_srcdir=$srcdir
22571 ac_abs_top_srcdir=$srcdir ;;
22572 *) # Relative name.
22573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22574 ac_top_srcdir=$ac_top_build_prefix$srcdir
22575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022576esac
Reid Spencera773bd52006-08-04 18:18:08 +000022577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022578
22579
Reid Spencera773bd52006-08-04 18:18:08 +000022580 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022581
22582 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022583 if test -f "$ac_srcdir/configure.gnu"; then
22584 ac_sub_configure=$ac_srcdir/configure.gnu
22585 elif test -f "$ac_srcdir/configure"; then
22586 ac_sub_configure=$ac_srcdir/configure
22587 elif test -f "$ac_srcdir/configure.in"; then
22588 # This should be Cygnus configure.
22589 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022590 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022591 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22592echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022593 ac_sub_configure=
22594 fi
22595
22596 # The recursion is here.
22597 if test -n "$ac_sub_configure"; then
22598 # Make the cache file name correct relative to the subdirectory.
22599 case $cache_file in
22600 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022601 *) # Relative name.
22602 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022603 esac
22604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022605 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22606echo "$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 +000022607 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022608 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22609 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022610 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22611echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22612 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022613 fi
22614
Reid Spencera773bd52006-08-04 18:18:08 +000022615 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022616 done
22617fi
22618