blob: 34031375dd77a8078e964a0cf4ab181da67dae08 [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
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706CXX
707CXXFLAGS
708ac_ct_CXX
709NM
710ifGNUmake
711LN_S
712CMP
713CP
714DATE
715FIND
716MKDIR
717MV
718RANLIB
719AR
720RM
721SED
722TAR
723BINPWD
724GRAPHVIZ
725DOT
726FDP
727NEATO
728TWOPI
729CIRCO
730GV
731DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000732XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000739CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000740DOXYGEN
741GROFF
742GZIP
743POD2HTML
744POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000745PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746RUNTEST
747TCLSH
748ZIP
749OCAMLC
750OCAMLOPT
751OCAMLDEP
752OCAMLDOC
753GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000754HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755INSTALL_LTDL_TRUE
756INSTALL_LTDL_FALSE
757CONVENIENCE_LTDL_TRUE
758CONVENIENCE_LTDL_FALSE
759LIBADD_DL
760LLVMGCCCOMMAND
761LLVMGXXCOMMAND
762LLVMGCC
763LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000764LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765NO_VARIADIC_MACROS
766NO_MISSING_FIELD_INITIALIZERS
767USE_UDIS86
768USE_OPROFILE
769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
772LLVMCC1
773LLVMCC1PLUS
774LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVMGCC_LANGS
776SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000777SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVM_PREFIX
779LLVM_BINDIR
780LLVM_LIBDIR
781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
789ALL_BINDINGS
790OCAML_LIBDIR
791ENABLE_VISIBILITY_INLINES_HIDDEN
792RPATH
793RDYNAMIC
794LIBOBJS
795LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000796ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803CPPFLAGS
804CPP
805CXX
806CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000807CCC'
John Criswell0157f502010-03-19 21:31:39 +0000808ac_subdirs_all='projects/llvm-gcc
809projects/test-suite
810projects/llvm-test
811projects/poolalloc
812projects/llvm-poolalloc
813projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000815projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-java
818projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000819projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000847# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000856includedir='${prefix}/include'
857oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000867
868ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000869ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000870for ac_option
871do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000874 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000875 ac_prev=
876 continue
877 fi
878
Reid Spencera773bd52006-08-04 18:18:08 +0000879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
John Criswell7a73b802003-06-30 21:59:07 +0000883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000911 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000913 datadir=$ac_optarg ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
John Criswell7a73b802003-06-30 21:59:07 +0000922 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000924 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000940
941 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000943 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
Reid Spencera773bd52006-08-04 18:18:08 +0000975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
John Criswell7a73b802003-06-30 21:59:07 +0000981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
Reid Spencera773bd52006-08-04 18:18:08 +00001005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
John Criswell7a73b802003-06-30 21:59:07 +00001010 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
Reid Spencera773bd52006-08-04 18:18:08 +00001079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
John Criswell7a73b802003-06-30 21:59:07 +00001089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001140 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001146
1147 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001185 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001203fi
1204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001205# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001210do
Reid Spencera773bd52006-08-04 18:18:08 +00001211 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001212 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001215 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
Reid Spencera773bd52006-08-04 18:18:08 +00001244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252
1253
John Criswell7a73b802003-06-30 21:59:07 +00001254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001257 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001258 ac_confdir=`$as_dirname -- "$0" ||
1259$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001282 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
John Criswell7a73b802003-06-30 21:59:07 +00001314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001322\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
John Criswell7a73b802003-06-30 21:59:07 +00001342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001388 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001407 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001408 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001409 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001410 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001411 --enable-shared Build a shared library and link tools against it
1412 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001413 --enable-timestamps Enable embedding timestamp information in build
1414 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001415 --enable-targets Build specific host targets: all or
1416 target1,target2,... Valid targets are: host, x86,
1417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001418 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1419 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001424 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001432 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 searches PATH)
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001436 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang)
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001440 --with-optimize-option Select the compiler options to use for optimized
1441 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001442 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001445 --with-c-include-dirs Colon separated list of directories clang will
1446 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001455 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001458 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001461
1462Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001463 CC C compiler command
1464 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001468 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001469 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
1476Report bugs to <llvmbugs@cs.uiuc.edu>.
1477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001478ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001479fi
1480
1481if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001485 ac_builddir=.
1486
Reid Spencera773bd52006-08-04 18:18:08 +00001487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001491 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001502
1503case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001504 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001509 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001516esac
Reid Spencera773bd52006-08-04 18:18:08 +00001517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001518
Reid Spencera773bd52006-08-04 18:18:08 +00001519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001527 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001531 done
1532fi
1533
Reid Spencera773bd52006-08-04 18:18:08 +00001534test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001535if $ac_init_version; then
1536 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001537llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001540Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001544
John Criswell5a129712010-03-19 21:04:16 +00001545Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001547 exit
John Criswell7a73b802003-06-30 21:59:07 +00001548fi
Reid Spencera773bd52006-08-04 18:18:08 +00001549cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001550This file contains any messages produced by compilers while
1551running configure, to aid debugging if configure makes a mistake.
1552
Eric Christopherb26697c2010-09-06 18:47:10 +00001553It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001555
1556 $ $0 $@
1557
1558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001559exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001560{
1561cat <<_ASUNAME
1562## --------- ##
1563## Platform. ##
1564## --------- ##
1565
1566hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574
1575/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001578/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001579/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582
1583_ASUNAME
1584
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001590 echo "PATH: $as_dir"
1591done
Reid Spencera773bd52006-08-04 18:18:08 +00001592IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001593
1594} >&5
1595
1596cat >&5 <<_ACEOF
1597
1598
1599## ----------- ##
1600## Core tests. ##
1601## ----------- ##
1602
1603_ACEOF
1604
1605
1606# Keep a trace of the command line.
1607# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001608# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001609# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001610# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001611ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001612ac_configure_args0=
1613ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001614ac_must_keep_next=false
1615for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001616do
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 for ac_arg
1618 do
1619 case $ac_arg in
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1623 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001624 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 esac
1627 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001632 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001634 case $ac_arg in
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 esac
1642 ;;
1643 -* ) ac_must_keep_next=true ;;
1644 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ;;
1648 esac
1649 done
John Criswell7a73b802003-06-30 21:59:07 +00001650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652$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 +00001653
1654# When interrupted or exit'd, cleanup temporary files, and complete
1655# config.log. We remove comments because anyway the quotes in there
1656# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001657# WARNING: Use '\'' to represent an apostrophe within the trap.
1658# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001659trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1661 {
1662 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001663
John Criswell7a73b802003-06-30 21:59:07 +00001664 cat <<\_ASBOX
1665## ---------------- ##
1666## Cache variables. ##
1667## ---------------- ##
1668_ASBOX
1669 echo
1670 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001671(
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1674 case $ac_val in #(
1675 *${as_nl}*)
1676 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac
1680 case $ac_var in #(
1681 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001682 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac ;;
1684 esac
1685 done
John Criswell7a73b802003-06-30 21:59:07 +00001686 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001689 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001693 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001695 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001696 esac |
1697 sort
1698)
John Criswell7a73b802003-06-30 21:59:07 +00001699 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001700
1701 cat <<\_ASBOX
1702## ----------------- ##
1703## Output variables. ##
1704## ----------------- ##
1705_ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1708 do
Reid Spencera773bd52006-08-04 18:18:08 +00001709 eval ac_val=\$$ac_var
1710 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001712 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001713 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001714 done | sort
1715 echo
1716
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001719## ------------------- ##
1720## File substitutions. ##
1721## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001722_ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1725 do
Reid Spencera773bd52006-08-04 18:18:08 +00001726 eval ac_val=\$$ac_var
1727 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001729 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 done | sort
1732 echo
1733 fi
1734
John Criswell7a73b802003-06-30 21:59:07 +00001735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737## ----------- ##
1738## confdefs.h. ##
1739## ----------- ##
1740_ASBOX
1741 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001742 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001743 echo
1744 fi
1745 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001748 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001751 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001752' 0
John Criswell7a73b802003-06-30 21:59:07 +00001753for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001755done
1756ac_signal=0
1757
1758# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001759rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001760
1761# Predefined preprocessor variables.
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_NAME "$PACKAGE_NAME"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_VERSION "$PACKAGE_VERSION"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_STRING "$PACKAGE_STRING"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785_ACEOF
1786
1787
1788# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001790if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001792elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798shift
1799for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001800do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001804 sed 's/^/| /' "$ac_site_file" >&5
1805 . "$ac_site_file"
1806 fi
1807done
1808
1809if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001815 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001818 esac
1819 fi
1820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 >$cache_file
1824fi
1825
1826# Check that the precious variables saved in the cache have kept the same
1827# value.
1828ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001829for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $ac_old_set,$ac_new_set in
1835 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 ac_cache_corrupted=: ;;
1843 ,);;
1844 *)
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001853 fi;;
1854 esac
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1857 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 *) ac_arg=$ac_var=$ac_new_val ;;
1860 esac
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001864 esac
1865 fi
1866done
1867if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
Reid Spencera773bd52006-08-04 18:18:08 +00001898
John Criswell7a73b802003-06-30 21:59:07 +00001899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
John Criswell5a129712010-03-19 21:04:16 +00001907LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001908
1909
1910
1911
1912
1913
1914
John Criswell7a73b802003-06-30 21:59:07 +00001915ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001916for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001917 if test -f "$ac_dir/install-sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 break
1921 elif test -f "$ac_dir/install.sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 break
1925 elif test -f "$ac_dir/shtool"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 break
1929 fi
John Criswell7a73b802003-06-30 21:59:07 +00001930done
1931if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001935fi
Reid Spencera773bd52006-08-04 18:18:08 +00001936
1937# These three variables are undocumented and unsupported,
1938# and are intended to be withdrawn in a future Autoconf release.
1939# They can cause serious problems if a builder's source tree is in a directory
1940# whose full name contains unusual characters.
1941ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944
John Criswell7a73b802003-06-30 21:59:07 +00001945
John Criswell392aaa32003-07-22 19:18:09 +00001946
Reid Spencer2706f8c2004-09-19 23:53:36 +00001947if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001948 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952 fi
John Criswell93e1c722003-09-15 17:04:06 +00001953fi
1954
John Criswell0157f502010-03-19 21:31:39 +00001955
1956
1957if test -d ${srcdir}/projects/llvm-gcc ; then
1958 subdirs="$subdirs projects/llvm-gcc"
1959
1960fi
1961
1962if test -d ${srcdir}/projects/test-suite ; then
1963 subdirs="$subdirs projects/test-suite"
1964
1965fi
1966
1967if test -d ${srcdir}/projects/llvm-test ; then
1968 subdirs="$subdirs projects/llvm-test"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/poolalloc ; then
1973 subdirs="$subdirs projects/poolalloc"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978 subdirs="$subdirs projects/llvm-poolalloc"
1979
1980fi
1981
John Criswell33a911a2003-11-25 20:36:46 +00001982for i in `ls ${srcdir}/projects`
1983do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001984 if test -d ${srcdir}/projects/${i} ; then
1985 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001987 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001988 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001989 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001991 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001993;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001994 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001995 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001997 ;;
John Criswell7def2932010-02-25 22:57:19 +00001998 safecode) subdirs="$subdirs projects/safecode"
1999 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002001 ;;
John Criswell52c02862010-03-25 13:59:09 +00002002 llvm-gcc) ;;
2003 test-suite) ;;
2004 llvm-test) ;;
2005 poolalloc) ;;
2006 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002007 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002010 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002011 esac
John Criswell33a911a2003-11-25 20:36:46 +00002012 fi
2013done
John Criswell559a6c12003-09-30 16:31:48 +00002014
John Criswell7a73b802003-06-30 21:59:07 +00002015
2016# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002017$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002022{ echo "$as_me:$LINENO: checking build system type" >&5
2023echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002026else
Reid Spencera773bd52006-08-04 18:18:08 +00002027 ac_build_alias=$build_alias
2028test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002042case $ac_cv_build in
2043*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002047esac
John Criswell7a73b802003-06-30 21:59:07 +00002048build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002049ac_save_IFS=$IFS; IFS='-'
2050set x $ac_cv_build
2051shift
2052build_cpu=$1
2053build_vendor=$2
2054shift; shift
2055# Remember, the first character of IFS is used to create $*,
2056# except with old shells:
2057build_os=$*
2058IFS=$ac_save_IFS
2059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002060
2061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062{ echo "$as_me:$LINENO: checking host system type" >&5
2063echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002066else
Reid Spencera773bd52006-08-04 18:18:08 +00002067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002074fi
John Criswell7a73b802003-06-30 21:59:07 +00002075
2076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002079case $ac_cv_host in
2080*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002084esac
John Criswell7a73b802003-06-30 21:59:07 +00002085host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_host
2088shift
2089host_cpu=$1
2090host_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094host_os=$*
2095IFS=$ac_save_IFS
2096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002097
2098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002099{ echo "$as_me:$LINENO: checking target system type" >&5
2100echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002103else
Reid Spencera773bd52006-08-04 18:18:08 +00002104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2106else
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002111fi
John Criswell7a73b802003-06-30 21:59:07 +00002112
2113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002116case $ac_cv_target in
2117*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002118*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002121esac
John Criswell7a73b802003-06-30 21:59:07 +00002122target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_target
2125shift
2126target_cpu=$1
2127target_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131target_os=$*
2132IFS=$ac_save_IFS
2133case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002134
2135
2136# The aliases save the names the user supplied, while $host etc.
2137# will get canonicalized.
2138test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2140 NONENONEs,x,x, &&
2141 program_prefix=${target_alias}-
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002147else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002148 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002149 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002152 llvm_cv_os_type="AIX"
2153 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002154 *-*-irix*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002159 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002165 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002166 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002169 *-*-minix*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002174 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002177 llvm_cv_os_type="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002179 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002182 llvm_cv_os_type="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002184 *-*-netbsd*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002189 *-*-dragonfly*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002194 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002197 llvm_cv_os_type="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002199 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 llvm_cv_os_type="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002214 *-*-auroraux*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002219 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 llvm_cv_os_type="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2224 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002227 llvm_cv_os_type="MingW"
2228 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002229 *-*-haiku*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002234 *-unknown-eabi*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-unknown-elf*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002244 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002249esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002251{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002258else
2259 case $target in
2260 *-*-aix*)
2261 llvm_cv_target_os_type="AIX" ;;
2262 *-*-irix*)
2263 llvm_cv_target_os_type="IRIX" ;;
2264 *-*-cygwin*)
2265 llvm_cv_target_os_type="Cygwin" ;;
2266 *-*-darwin*)
2267 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002268 *-*-minix*)
2269 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002270 *-*-freebsd*)
2271 llvm_cv_target_os_type="FreeBSD" ;;
2272 *-*-openbsd*)
2273 llvm_cv_target_os_type="OpenBSD" ;;
2274 *-*-netbsd*)
2275 llvm_cv_target_os_type="NetBSD" ;;
2276 *-*-dragonfly*)
2277 llvm_cv_target_os_type="DragonFly" ;;
2278 *-*-hpux*)
2279 llvm_cv_target_os_type="HP-UX" ;;
2280 *-*-interix*)
2281 llvm_cv_target_os_type="Interix" ;;
2282 *-*-linux*)
2283 llvm_cv_target_os_type="Linux" ;;
2284 *-*-solaris*)
2285 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002286 *-*-auroraux*)
2287 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002288 *-*-win32*)
2289 llvm_cv_target_os_type="Win32" ;;
2290 *-*-mingw*)
2291 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002292 *-*-haiku*)
2293 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002294 *-unknown-eabi*)
2295 llvm_cv_target_os_type="Freestanding" ;;
2296 *)
2297 llvm_cv_target_os_type="Unknown" ;;
2298esac
2299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002302
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002307fi
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002310
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002311HOST_OS=$llvm_cv_os_type
2312
2313TARGET_OS=$llvm_cv_target_os_type
2314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002315
Reid Spencera773bd52006-08-04 18:18:08 +00002316LINKALL=$llvm_cv_link_all_option
2317
2318NOLINKALL=$llvm_cv_no_link_all_option
2319
2320
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321case $llvm_cv_platform_type in
2322 Unix)
2323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324cat >>confdefs.h <<\_ACEOF
2325#define LLVM_ON_UNIX 1
2326_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002328 LLVM_ON_UNIX=1
2329
2330 LLVM_ON_WIN32=0
2331
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 ;;
2333 Win32)
2334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335cat >>confdefs.h <<\_ACEOF
2336#define LLVM_ON_WIN32 1
2337_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002339 LLVM_ON_UNIX=0
2340
2341 LLVM_ON_WIN32=1
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343 ;;
2344esac
2345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346{ echo "$as_me:$LINENO: checking target architecture" >&5
2347echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350else
2351 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002352 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002357 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002358 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002359 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002360 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002364 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002365 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002366esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002370
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374fi
John Criswell76595452003-07-01 22:07:39 +00002375
Nick Lewycky83fc4472009-09-29 05:48:51 +00002376# Determine the LLVM native architecture for the target
2377case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381esac
2382
2383ARCH=$llvm_cv_target_arch
2384
2385
2386ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387ac_cpp='$CPP $CPPFLAGS'
2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002391if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 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 +00002409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411 break 2
2412 fi
2413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414done
Reid Spencera773bd52006-08-04 18:18:08 +00002415IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416
2417fi
2418fi
2419CC=$ac_cv_prog_CC
2420if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002421 { echo "$as_me:$LINENO: result: $CC" >&5
2422echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 { echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426fi
2427
Reid Spencera773bd52006-08-04 18:18:08 +00002428
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429fi
2430if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 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 +00002449 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451 break 2
2452 fi
2453done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002454done
Reid Spencera773bd52006-08-04 18:18:08 +00002455IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456
2457fi
2458fi
2459ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002464 { echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466fi
2467
Reid Spencera773bd52006-08-04 18:18:08 +00002468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474whose name does not start with the host triplet. If you think this
2475configuration is useful to you, please write to autoconf@gnu.org." >&5
2476echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477whose name does not start with the host triplet. If you think this
2478configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002479ac_tool_warned=yes ;;
2480esac
2481 CC=$ac_ct_CC
2482 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483else
2484 CC="$ac_cv_prog_CC"
2485fi
2486
2487if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002488 if test -n "$ac_tool_prefix"; then
2489 # 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 +00002490set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498else
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 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 +00002506 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508 break 2
2509 fi
2510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511done
Reid Spencera773bd52006-08-04 18:18:08 +00002512IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513
2514fi
2515fi
2516CC=$ac_cv_prog_CC
2517if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002518 { echo "$as_me:$LINENO: result: $CC" >&5
2519echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521 { echo "$as_me:$LINENO: result: no" >&5
2522echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523fi
2524
Reid Spencera773bd52006-08-04 18:18:08 +00002525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527fi
2528if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538else
2539 ac_prog_rejected=no
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2549 continue
2550 fi
2551 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553 break 2
2554 fi
2555done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002556done
Reid Spencera773bd52006-08-04 18:18:08 +00002557IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558
2559if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2562 shift
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2567 shift
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569 fi
2570fi
2571fi
2572fi
2573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002575 { echo "$as_me:$LINENO: result: $CC" >&5
2576echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578 { echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580fi
2581
Reid Spencera773bd52006-08-04 18:18:08 +00002582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583fi
2584if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002586 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002587 do
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002594else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 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 +00002605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002607 break 2
2608 fi
2609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610done
Reid Spencera773bd52006-08-04 18:18:08 +00002611IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002612
2613fi
2614fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617 { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002622fi
2623
Reid Spencera773bd52006-08-04 18:18:08 +00002624
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002626 done
2627fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628if test -z "$CC"; then
2629 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002630 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002631do
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 break 2
2652 fi
2653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654done
Reid Spencera773bd52006-08-04 18:18:08 +00002655IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002656
2657fi
2658fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002666fi
2667
Reid Spencera773bd52006-08-04 18:18:08 +00002668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002670done
John Criswell7a73b802003-06-30 21:59:07 +00002671
Reid Spencera773bd52006-08-04 18:18:08 +00002672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002677{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678whose name does not start with the host triplet. If you think this
2679configuration is useful to you, please write to autoconf@gnu.org." >&5
2680echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681whose name does not start with the host triplet. If you think this
2682configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002683ac_tool_warned=yes ;;
2684esac
2685 CC=$ac_ct_CC
2686 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687fi
2688
John Criswell7a73b802003-06-30 21:59:07 +00002689fi
2690
2691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693See \`config.log' for more details." >&5
2694echo "$as_me: error: no acceptable C compiler found in \$PATH
2695See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697
John Criswell7a73b802003-06-30 21:59:07 +00002698# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002699echo "$as_me:$LINENO: checking for C compiler version" >&5
2700ac_compiler=`set X $ac_compile; echo $2`
2701{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002708 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711{ (ac_try="$ac_compiler -v >&5"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721{ (ac_try="$ac_compiler -V >&5"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002732cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002738
John Criswell7a73b802003-06-30 21:59:07 +00002739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002749# Try to create an executable without -o first, disregard a.out.
2750# It will help us diagnose broken compilers, and finding out an intuition
2751# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755#
2756# List of possible output files, starting from the most likely.
2757# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758# only as a last resort. b.out is created by i960 compilers.
2759ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760#
2761# The IRIX 6 linker writes into existing files which may not be
2762# executable, retaining their permissions. Remove them first so a
2763# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002764ac_rmfiles=
2765for ac_file in $ac_files
2766do
2767 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770 esac
2771done
2772rm -f $ac_rmfiles
2773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002774if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002780 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002781 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786# in a Makefile. We should not override ac_cv_exeext if it was cached,
2787# so that the user can short-circuit this test for compilers unknown to
2788# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002789for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002790do
2791 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002792 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002794 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002795 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002796 # We found the default executable, but exeext='' is most
2797 # certainly right.
2798 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002799 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002801 then :; else
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 fi
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2808 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002809 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002810 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002811 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002812 esac
2813done
Reid Spencera773bd52006-08-04 18:18:08 +00002814test "$ac_cv_exeext" = no && ac_cv_exeext=
2815
John Criswell7a73b802003-06-30 21:59:07 +00002816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002818sed 's/^/| /' conftest.$ac_ext >&5
2819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821See \`config.log' for more details." >&5
2822echo "$as_me: error: C compiler cannot create executables
2823See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002825fi
John Criswell7a73b802003-06-30 21:59:07 +00002826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002827ac_exeext=$ac_cv_exeext
2828{ echo "$as_me:$LINENO: result: $ac_file" >&5
2829echo "${ECHO_T}$ac_file" >&6; }
2830
2831# Check that the compiler produces executables we can run. If not, either
2832# the compiler is broken, or we cross compile.
2833{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836# If not cross compiling, check that we can run a simple program.
2837if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
2849 else
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854If you meant to cross compile, use \`--host'.
2855See \`config.log' for more details." >&5
2856echo "$as_me: error: cannot run C compiled programs.
2857If you meant to cross compile, use \`--host'.
2858See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2860 fi
2861 fi
2862fi
2863{ echo "$as_me:$LINENO: result: yes" >&5
2864echo "${ECHO_T}yes" >&6; }
2865
2866rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002867ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002868# Check that the compiler produces executables we can run. If not, either
2869# the compiler is broken, or we cross compile.
2870{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002883 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002884 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889# work properly (i.e., refer to `conftest.exe'), while it won't with
2890# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002891for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002893 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002896 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002897 * ) break;;
2898 esac
2899done
2900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902See \`config.log' for more details." >&5
2903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002907
2908rm -f conftest$ac_cv_exeext
2909{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002911
2912rm -f conftest.$ac_ext
2913EXEEXT=$ac_cv_exeext
2914ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002915{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002926
John Criswell7a73b802003-06-30 21:59:07 +00002927int
2928main ()
2929{
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002936if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002942 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002943 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002948 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953done
2954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002956sed 's/^/| /' conftest.$ac_ext >&5
2957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002958{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959See \`config.log' for more details." >&5
2960echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964
John Criswell7a73b802003-06-30 21:59:07 +00002965rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002967{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002969OBJEXT=$ac_cv_objext
2970ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002971{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002976 cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002981/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002982
John Criswell7a73b802003-06-30 21:59:07 +00002983int
2984main ()
2985{
2986#ifndef __GNUC__
2987 choke me
2988#endif
2989
2990 ;
2991 return 0;
2992}
2993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002994rm -f conftest.$ac_objext
2995if { (ac_try="$ac_compile"
2996case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003028 ac_compiler_gnu=yes
3029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003030 echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003035
Reid Spencera773bd52006-08-04 18:18:08 +00003036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003037ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003038
3039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003040{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003043ac_test_CFLAGS=${CFLAGS+set}
3044ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003045{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003049else
Reid Spencera773bd52006-08-04 18:18:08 +00003050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3052 ac_cv_prog_cc_g=no
3053 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003060
John Criswell7a73b802003-06-30 21:59:07 +00003061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003103 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 CFLAGS=""
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 :
Torok Edwin871384f2010-01-26 08:50:50 +00003159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003164 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003180rm -f conftest.$ac_objext
3181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003214 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
John Criswell7a73b802003-06-30 21:59:07 +00003220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221
Reid Spencera773bd52006-08-04 18:18:08 +00003222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224
Reid Spencera773bd52006-08-04 18:18:08 +00003225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227
Reid Spencera773bd52006-08-04 18:18:08 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003231{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003238 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003239 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003240 fi
3241else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003244 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003246 fi
3247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003248{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252else
Reid Spencera773bd52006-08-04 18:18:08 +00003253 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255cat >conftest.$ac_ext <<_ACEOF
3256/* confdefs.h. */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260/* end confdefs.h. */
3261#include <stdarg.h>
3262#include <stdio.h>
3263#include <sys/types.h>
3264#include <sys/stat.h>
3265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266struct buf { int x; };
3267FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268static char *e (p, i)
3269 char **p;
3270 int i;
3271{
3272 return p[i];
3273}
3274static char *f (char * (*g) (char **, int), char **p, ...)
3275{
3276 char *s;
3277 va_list v;
3278 va_start (v,p);
3279 s = g (p, va_arg (v,int));
3280 va_end (v);
3281 return s;
3282}
3283
3284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003287 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003290 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292
Reid Spencera773bd52006-08-04 18:18:08 +00003293/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3295#define FOO(x) 'x'
3296int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298int test (int i, double x);
3299struct s1 {int (*f) (int a);};
3300struct s2 {int (*f) (double a);};
3301int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302int argc;
3303char **argv;
3304int
3305main ()
3306{
3307return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 ;
3309 return 0;
3310}
3311_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003312for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314do
3315 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003316 rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003350 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357
Reid Spencera773bd52006-08-04 18:18:08 +00003358rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360done
Reid Spencera773bd52006-08-04 18:18:08 +00003361rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362CC=$ac_save_CC
3363
3364fi
Reid Spencera773bd52006-08-04 18:18:08 +00003365# AC_CACHE_VAL
3366case "x$ac_cv_prog_cc_c89" in
3367 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003368 { echo "$as_me:$LINENO: result: none needed" >&5
3369echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003370 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003374 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377esac
3378
John Criswell0c38eaf2003-09-10 15:17:25 +00003379
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380ac_ext=c
3381ac_cpp='$CPP $CPPFLAGS'
3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003392{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394# On Suns, sometimes $CPP names a directory.
3395if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3397fi
3398if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401else
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 do
3405 ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419/* end confdefs.h. */
3420#ifdef __STDC__
3421# include <limits.h>
3422#else
3423# include <assert.h>
3424#endif
3425 Syntax error
3426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427if { (ac_try="$ac_cpp conftest.$ac_ext"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3445 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447 ac_cpp_err=yes
3448fi
3449if test -z "$ac_cpp_err"; then
3450 :
3451else
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 # Broken: fails on valid input.
3456continue
3457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003458
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003459rm -f conftest.err conftest.$ac_ext
3460
Reid Spencera773bd52006-08-04 18:18:08 +00003461 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003468/* end confdefs.h. */
3469#include <ac_nonexistent.h>
3470_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494 # Broken: success on invalid input.
3495continue
3496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003500 # Passes both tests.
3501ac_preproc_ok=:
3502break
3503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003504
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505rm -f conftest.err conftest.$ac_ext
3506
3507done
3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003510if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511 break
3512fi
3513
3514 done
3515 ac_cv_prog_CPP=$CPP
3516
3517fi
3518 CPP=$ac_cv_prog_CPP
3519else
3520 ac_cv_prog_CPP=$CPP
3521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003522{ echo "$as_me:$LINENO: result: $CPP" >&5
3523echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524ac_preproc_ok=false
3525for ac_c_preproc_warn_flag in '' yes
3526do
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003533 cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003538/* end confdefs.h. */
3539#ifdef __STDC__
3540# include <limits.h>
3541#else
3542# include <assert.h>
3543#endif
3544 Syntax error
3545_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003546if { (ac_try="$ac_cpp conftest.$ac_ext"
3547case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550esac
3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 :
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 # Broken: fails on valid input.
3575continue
3576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003577
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003578rm -f conftest.err conftest.$ac_ext
3579
Reid Spencera773bd52006-08-04 18:18:08 +00003580 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003582 cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h. */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003587/* end confdefs.h. */
3588#include <ac_nonexistent.h>
3589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003590if { (ac_try="$ac_cpp conftest.$ac_ext"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3608 fi
3609else
3610 ac_cpp_err=yes
3611fi
3612if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003613 # Broken: success on invalid input.
3614continue
3615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619 # Passes both tests.
3620ac_preproc_ok=:
3621break
3622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624rm -f conftest.err conftest.$ac_ext
3625
3626done
3627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003629if $ac_preproc_ok; then
3630 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633See \`config.log' for more details." >&5
3634echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637fi
3638
John Criswell7a73b802003-06-30 21:59:07 +00003639ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
John Criswell7a73b802003-06-30 21:59:07 +00003645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003646{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003651 # Extract the first word of "grep ggrep" to use in msg output
3652if test -z "$GREP"; then
3653set dummy grep ggrep; ac_prog_name=$2
3654if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
Reid Spencera773bd52006-08-04 18:18:08 +00003657 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003658# Loop through the user's path and test for each of PROGNAME-LIST
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003669 # Check for GNU $ac_path_GREP
3670case `"$ac_path_GREP" --version 2>&1` in
3671*GNU*)
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673*)
3674 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003676 while :
3677 do
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003681 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003684 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694esac
3695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003696
3697 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003698 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699done
3700
3701done
Reid Spencera773bd52006-08-04 18:18:08 +00003702IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003703
3704
3705fi
3706
3707GREP="$ac_cv_path_GREP"
3708if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3712fi
3713
Reid Spencera773bd52006-08-04 18:18:08 +00003714else
3715 ac_cv_path_GREP=$GREP
3716fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003718
Reid Spencera773bd52006-08-04 18:18:08 +00003719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003720{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003722 GREP="$ac_cv_path_GREP"
3723
3724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725{ echo "$as_me:$LINENO: checking for egrep" >&5
3726echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003729else
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3732 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733 # Extract the first word of "egrep" to use in msg output
3734if test -z "$EGREP"; then
3735set dummy egrep; ac_prog_name=$2
3736if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
Reid Spencera773bd52006-08-04 18:18:08 +00003739 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003740# Loop through the user's path and test for each of PROGNAME-LIST
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003751 # Check for GNU $ac_path_EGREP
3752case `"$ac_path_EGREP" --version 2>&1` in
3753*GNU*)
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755*)
3756 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003758 while :
3759 do
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003763 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3771 fi
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3774 done
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776esac
3777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003778
3779 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003780 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781done
3782
3783done
Reid Spencera773bd52006-08-04 18:18:08 +00003784IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003785
3786
3787fi
3788
3789EGREP="$ac_cv_path_EGREP"
3790if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
Reid Spencera773bd52006-08-04 18:18:08 +00003796else
3797 ac_cv_path_EGREP=$EGREP
3798fi
3799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003800
Reid Spencera773bd52006-08-04 18:18:08 +00003801 fi
3802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003803{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003805 EGREP="$ac_cv_path_EGREP"
3806
3807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003808{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003819#include <stdlib.h>
3820#include <stdarg.h>
3821#include <string.h>
3822#include <float.h>
3823
John Criswell0c38eaf2003-09-10 15:17:25 +00003824int
3825main ()
3826{
3827
3828 ;
3829 return 0;
3830}
John Criswell7a73b802003-06-30 21:59:07 +00003831_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003832rm -f conftest.$ac_objext
3833if { (ac_try="$ac_compile"
3834case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837esac
3838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003866 ac_cv_header_stdc=yes
3867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003873
Reid Spencera773bd52006-08-04 18:18:08 +00003874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003875
3876if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003884#include <string.h>
3885
3886_ACEOF
3887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003888 $EGREP "memchr" >/dev/null 2>&1; then
3889 :
John Criswell7a73b802003-06-30 21:59:07 +00003890else
3891 ac_cv_header_stdc=no
3892fi
3893rm -f conftest*
3894
3895fi
3896
3897if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003899 cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003905#include <stdlib.h>
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003909 $EGREP "free" >/dev/null 2>&1; then
3910 :
John Criswell7a73b802003-06-30 21:59:07 +00003911else
3912 ac_cv_header_stdc=no
3913fi
3914rm -f conftest*
3915
3916fi
3917
3918if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003921 :
3922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923 cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003929#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003930#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003931#if ((' ' & 0x0FF) == 0x020)
3932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003935# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940#endif
3941
3942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943int
3944main ()
3945{
3946 int i;
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003949 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003950 return 2;
3951 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003952}
3953_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003954rm -f conftest$ac_exeext
3955if { (ac_try="$ac_link"
3956case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959esac
3960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968esac
3969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 :
John Criswell7a73b802003-06-30 21:59:07 +00003975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003976 echo "$as_me: program exited with status $ac_status" >&5
3977echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980( exit $ac_status )
3981ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003983rm -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 +00003984fi
3985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986
John Criswell7a73b802003-06-30 21:59:07 +00003987fi
3988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003991if test $ac_cv_header_stdc = yes; then
3992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993cat >>confdefs.h <<\_ACEOF
3994#define STDC_HEADERS 1
3995_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003996
3997fi
3998
Reid Spencera773bd52006-08-04 18:18:08 +00003999# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000
4001
4002
4003
4004
4005
4006
4007
4008
Reid Spencera773bd52006-08-04 18:18:08 +00004009for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011do
4012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h. */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h. */
4024$ac_includes_default
4025
4026#include <$ac_header>
4027_ACEOF
4028rm -f conftest.$ac_objext
4029if { (ac_try="$ac_compile"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046esac
4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 eval "$as_ac_Header=no"
4068fi
4069
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071fi
4072ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074echo "${ECHO_T}$ac_res" >&6; }
4075if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004078_ACEOF
4079
4080fi
4081
4082done
4083
4084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004085{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004090 # See if sys/param.h defines the BYTE_ORDER macro.
4091cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004096/* end confdefs.h. */
4097#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004098#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004099
4100int
4101main ()
4102{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004103#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104 bogus endian macros
4105#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004106
4107 ;
4108 return 0;
4109}
4110_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111rm -f conftest.$ac_objext
4112if { (ac_try="$ac_compile"
4113case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004145 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004151/* end confdefs.h. */
4152#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004154
4155int
4156main ()
4157{
4158#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 not big endian
4160#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004161
4162 ;
4163 return 0;
4164}
4165_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004166rm -f conftest.$ac_objext
4167if { (ac_try="$ac_compile"
4168case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004200 ac_cv_c_bigendian=yes
4201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 ac_cv_c_bigendian=no
4206fi
4207
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209else
4210 echo "$as_me: failed program was:" >&5
4211sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 # It does not; compile a test program.
4214if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004229int
4230main ()
4231{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004232 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004233 ;
4234 return 0;
4235}
4236_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004237rm -f conftest.$ac_objext
4238if { (ac_try="$ac_compile"
4239case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004272 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273fi
4274if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4277 else
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4280 fi
4281fi
Reid Spencera773bd52006-08-04 18:18:08 +00004282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004286
Torok Edwin871384f2010-01-26 08:50:50 +00004287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288
Reid Spencera773bd52006-08-04 18:18:08 +00004289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291 cat >conftest.$ac_ext <<_ACEOF
4292/* confdefs.h. */
4293_ACEOF
4294cat confdefs.h >>conftest.$ac_ext
4295cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004296/* end confdefs.h. */
4297$ac_includes_default
4298int
4299main ()
4300{
4301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302 /* Are we little or big endian? From Harbison&Steele. */
4303 union
4304 {
4305 long int l;
4306 char c[sizeof (long int)];
4307 } u;
4308 u.l = 1;
4309 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004310
4311 ;
4312 return 0;
4313}
4314_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004315rm -f conftest$ac_exeext
4316if { (ac_try="$ac_link"
4317case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004335 ac_cv_c_bigendian=no
4336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004337 echo "$as_me: program exited with status $ac_status" >&5
4338echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341( exit $ac_status )
4342ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004344rm -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 +00004345fi
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347
Reid Spencera773bd52006-08-04 18:18:08 +00004348fi
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351fi
4352{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354case $ac_cv_c_bigendian in
4355 yes)
4356 ENDIAN=big
4357 ;;
4358 no)
4359 ENDIAN=little
4360 ;;
4361 *)
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364echo "$as_me: error: unknown endianness
4365presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367esac
Reid Spencera773bd52006-08-04 18:18:08 +00004368
4369
4370if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4372
4373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004378else
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4381else
4382 ac_build_prefix=${build_alias}-
4383
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004390else
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 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 +00004401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004403 break 2
4404 fi
4405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406done
Reid Spencera773bd52006-08-04 18:18:08 +00004407IFS=$as_save_IFS
4408
4409fi
4410fi
4411BUILD_CC=$ac_cv_prog_BUILD_CC
4412if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416 { echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004418fi
4419
4420
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004428else
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 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 +00004439 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004441 break 2
4442 fi
4443done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004444done
Reid Spencera773bd52006-08-04 18:18:08 +00004445IFS=$as_save_IFS
4446
4447fi
4448fi
4449BUILD_CC=$ac_cv_prog_BUILD_CC
4450if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454 { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004456fi
4457
4458
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004466else
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469else
4470 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4480 continue
4481 fi
4482 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004484 break 2
4485 fi
4486done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004487done
Reid Spencera773bd52006-08-04 18:18:08 +00004488IFS=$as_save_IFS
4489
4490if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4500 fi
4501fi
4502fi
4503fi
4504BUILD_CC=$ac_cv_prog_BUILD_CC
4505if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509 { echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004511fi
4512
4513
4514 fi
4515 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 rm -f conftest*
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004524 (eval $ac_build_link) 2>&5
4525 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004528 for file in conftest.*; do
4529 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004530 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532 esac
4533 done
4534 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004538 fi
4539 rm -f conftest*
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4541fi
4542fi
4543
4544BUILD_EXEEXT=""
4545test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004548ac_build_exeext=$BUILD_EXEEXT
4549
Jim Grosbach673612e2008-10-02 22:56:44 +00004550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004557else
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 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 +00004568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004570 break 2
4571 fi
4572done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573done
Jim Grosbach673612e2008-10-02 22:56:44 +00004574IFS=$as_save_IFS
4575
4576fi
4577fi
4578BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 { echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004585fi
4586
4587
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004595else
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 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 +00004606 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004608 break 2
4609 fi
4610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004611done
Jim Grosbach673612e2008-10-02 22:56:44 +00004612IFS=$as_save_IFS
4613
4614fi
4615fi
4616BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621 { echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004623fi
4624
4625
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004633else
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636else
4637 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4647 continue
4648 fi
4649 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004651 break 2
4652 fi
4653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004654done
Jim Grosbach673612e2008-10-02 22:56:44 +00004655IFS=$as_save_IFS
4656
4657if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4660 shift
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 shift
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4667 fi
4668fi
4669fi
4670fi
4671BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676 { echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004678fi
4679
4680
4681 fi
4682 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004683else
4684 LLVM_CROSS_COMPILING=0
4685
4686fi
4687
Dan Gohman56fb5f92010-08-04 16:25:01 +00004688if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004689 cvsbuild="yes"
4690 optimize="no"
4691 CVSBUILD=CVSBUILD=1
4692
4693else
4694 cvsbuild="no"
4695 optimize="yes"
4696fi
4697
4698
4699# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004701 enableval=$enable_optimized;
4702else
4703 enableval=$optimize
4704fi
4705
4706if test ${enableval} = "no" ; then
4707 ENABLE_OPTIMIZED=
4708
4709else
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4711
4712fi
4713
David Greene2a5a12c2009-04-17 14:50:39 +00004714# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004716 enableval=$enable_profiling;
4717else
4718 enableval="no"
4719fi
4720
4721if test ${enableval} = "no" ; then
4722 ENABLE_PROFILING=
4723
4724else
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4726
4727fi
4728
Reid Spencera773bd52006-08-04 18:18:08 +00004729# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004731 enableval=$enable_assertions;
4732else
4733 enableval="yes"
4734fi
4735
4736if test ${enableval} = "yes" ; then
4737 DISABLE_ASSERTIONS=
4738
4739else
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4741
4742fi
4743
David Greenea696d242007-06-28 19:36:08 +00004744# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004746 enableval=$enable_expensive_checks;
4747else
4748 enableval="no"
4749fi
4750
4751if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753
4754 EXPENSIVE_CHECKS=yes
4755
4756else
4757 ENABLE_EXPENSIVE_CHECKS=
4758
4759 EXPENSIVE_CHECKS=no
4760
4761fi
4762
Reid Spencer8b2e1412006-11-17 03:32:33 +00004763# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004765 enableval=$enable_debug_runtime;
4766else
4767 enableval=no
4768fi
4769
4770if test ${enableval} = "no" ; then
4771 DEBUG_RUNTIME=
4772
4773else
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4775
4776fi
4777
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004778# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004779if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004780 enableval=$enable_debug_symbols;
4781else
4782 enableval=no
4783fi
4784
4785if test ${enableval} = "no" ; then
4786 DEBUG_SYMBOLS=
4787
4788else
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4790
4791fi
4792
Reid Spencera773bd52006-08-04 18:18:08 +00004793# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004794if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004795 enableval=$enable_jit;
4796else
4797 enableval=default
4798fi
4799
4800if test ${enableval} = "no"
4801then
4802 JIT=
4803
4804else
4805 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004806 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004807 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004808 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004809 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004810 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004811 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004812 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004813 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004814 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004815 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004816 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004817 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004818 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004819 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004820 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004821 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004822 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004823 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004824 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004825 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004826 Blackfin) TARGET_HAS_JIT=0
4827 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004828 MBlaze) TARGET_HAS_JIT=0
4829 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004830 PTX) TARGET_HAS_JIT=0
4831 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004832 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004833 ;;
4834 esac
4835fi
4836
4837# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004839 enableval=$enable_doxygen;
4840else
4841 enableval=default
4842fi
4843
4844case "$enableval" in
4845 yes) ENABLE_DOXYGEN=1
4846 ;;
4847 no) ENABLE_DOXYGEN=0
4848 ;;
4849 default) ENABLE_DOXYGEN=0
4850 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4852echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004854esac
4855
4856# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004858 enableval=$enable_threads;
4859else
Reid Spencer65c5d752006-11-05 17:08:18 +00004860 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004861fi
4862
4863case "$enableval" in
4864 yes) ENABLE_THREADS=1
4865 ;;
4866 no) ENABLE_THREADS=0
4867 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004868 default) ENABLE_THREADS=1
4869 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4871echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004873esac
4874
Owen Andersona8603702009-05-19 22:18:56 +00004875cat >>confdefs.h <<_ACEOF
4876#define ENABLE_THREADS $ENABLE_THREADS
4877_ACEOF
4878
4879
Reid Spencer89b0d992006-12-16 22:07:52 +00004880# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004882 enableval=$enable_pic;
4883else
4884 enableval=default
4885fi
4886
4887case "$enableval" in
4888 yes) ENABLE_PIC=1
4889 ;;
4890 no) ENABLE_PIC=0
4891 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004892 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004893 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4895echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004897esac
4898
4899cat >>confdefs.h <<_ACEOF
4900#define ENABLE_PIC $ENABLE_PIC
4901_ACEOF
4902
4903
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004904# Check whether --enable-shared was given.
4905if test "${enable_shared+set}" = set; then
4906 enableval=$enable_shared;
4907else
4908 enableval=default
4909fi
4910
4911case "$enableval" in
4912 yes) ENABLE_SHARED=1
4913 ;;
4914 no) ENABLE_SHARED=0
4915 ;;
4916 default) ENABLE_SHARED=0
4917 ;;
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4919echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4921esac
4922
Daniel Dunbardd464df2010-05-10 20:11:56 +00004923# Check whether --enable-timestamps was given.
4924if test "${enable_timestamps+set}" = set; then
4925 enableval=$enable_timestamps;
4926else
4927 enableval=default
4928fi
4929
4930case "$enableval" in
4931 yes) ENABLE_TIMESTAMPS=1
4932 ;;
4933 no) ENABLE_TIMESTAMPS=0
4934 ;;
4935 default) ENABLE_TIMESTAMPS=1
4936 ;;
4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4938echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4939 { (exit 1); exit 1; }; } ;;
4940esac
4941
4942cat >>confdefs.h <<_ACEOF
4943#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4944_ACEOF
4945
4946
Reid Spencera773bd52006-08-04 18:18:08 +00004947TARGETS_TO_BUILD=""
4948# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004949if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004950 enableval=$enable_targets;
4951else
4952 enableval=all
4953fi
4954
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004955if test "$enableval" = host-only ; then
4956 enableval=host
4957fi
Reid Spencera773bd52006-08-04 18:18:08 +00004958case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00004959 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 +00004960 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4961 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004962 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4965 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4966 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4967 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4968 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4969 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004975 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004976 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004977 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004978 host) case "$llvm_cv_target_arch" in
4979 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4982 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4983 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4984 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4985 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004986 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004987 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004988 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004990 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004991 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004992 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994echo "$as_me: error: Can not set target to build" >&2;}
4995 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004996 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004997 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4998echo "$as_me: error: Unrecognized target $a_target" >&2;}
4999 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005000 esac
5001 done
5002 ;;
5003esac
Reid Spencera773bd52006-08-04 18:18:08 +00005004TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5005
5006
Douglas Gregor0711c302009-06-17 00:43:20 +00005007# Determine whether we are building LLVM support for the native architecture.
5008# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5009for a_target in $TARGETS_TO_BUILD; do
5010 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5011
5012cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005013#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5014_ACEOF
5015
5016 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5017 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5018 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5019
5020cat >>confdefs.h <<_ACEOF
5021#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005022_ACEOF
5023
5024
5025cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005026#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5027_ACEOF
5028
5029
5030cat >>confdefs.h <<_ACEOF
5031#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005032_ACEOF
5033
5034 fi
5035done
5036
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005037# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5038# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005039LLVM_ENUM_TARGETS=""
5040LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005041LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005042LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005043for target_to_build in $TARGETS_TO_BUILD; do
5044 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5045 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5046 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5047 fi
Jim Grosbach7ac16092010-10-01 22:39:28 +00005048 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5049 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5050 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5051 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005052 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5053 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5054 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005055 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5056 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5057 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005058done
5059
5060
5061
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005062
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005063
Reid Spencer65c5d752006-11-05 17:08:18 +00005064# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005065if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005066 enableval=$enable_cbe_printf_a;
5067else
5068 enableval=default
5069fi
5070
5071case "$enableval" in
5072 yes) ENABLE_CBE_PRINTF_A=1
5073 ;;
5074 no) ENABLE_CBE_PRINTF_A=0
5075 ;;
5076 default) ENABLE_CBE_PRINTF_A=1
5077 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005078 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5079echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5080 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005081esac
5082
5083cat >>confdefs.h <<_ACEOF
5084#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5085_ACEOF
5086
5087
Reid Spencera773bd52006-08-04 18:18:08 +00005088
5089# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005090if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005091 withval=$with_llvmgccdir;
5092else
5093 withval=default
5094fi
5095
5096case "$withval" in
5097 default) WITH_LLVMGCCDIR=default ;;
5098 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005099 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5100echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5101 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005102esac
5103
5104
Devang Patel5d28b882007-12-04 22:54:47 +00005105# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005106if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005107 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5108 WITH_LLVMGCCDIR=""
5109fi
5110
5111
5112
5113# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005114if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005115 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5116 WITH_LLVMGCCDIR=""
5117fi
5118
Douglas Gregor01746742009-05-11 18:05:52 +00005119
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005120if test -n "$LLVMGCC"; then
5121 LLVMGCCCOMMAND="$LLVMGCC"
5122fi
5123
5124if test -n "$LLVMGXX"; then
5125 LLVMGXXCOMMAND="$LLVMGXX"
5126fi
Devang Patel5d28b882007-12-04 22:54:47 +00005127
5128if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005129 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5130echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5131 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005132fi
5133
5134if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005135 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5136echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5137 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005138fi
5139
5140
Daniel Dunbar98515672010-02-23 10:00:49 +00005141# Check whether --with-clang was given.
5142if test "${with_clang+set}" = set; then
5143 withval=$with_clang;
5144else
5145 with_clang=default
5146fi
5147
5148
5149
5150# Check whether --with-built-clang was given.
5151if test "${with_built_clang+set}" = set; then
5152 withval=$with_built_clang;
5153else
5154 with_built_clang=check
5155fi
5156
5157
5158{ echo "$as_me:$LINENO: checking clang compiler" >&5
5159echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5160WITH_CLANGPATH=""
5161WITH_BUILT_CLANG=0
5162if test "$with_clang" != "default"; then
5163 WITH_CLANGPATH="$with_clang"
5164 if ! test -x "$WITH_CLANGPATH"; then
5165 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5166echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5167 { (exit 1); exit 1; }; }
5168 fi
5169elif test "$with_built_clang" = "yes"; then
5170 WITH_BUILT_CLANG=1
5171elif test "$with_built_clang" = "no"; then
5172 WITH_BUILT_CLANG=0
5173else
5174 if test "$with_built_clang" != "check"; then
5175 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5176echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5177 { (exit 1); exit 1; }; }
5178 fi
5179
5180 if test -f ${srcdir}/tools/clang/README.txt; then
5181 WITH_BUILT_CLANG=1
5182 fi
5183fi
5184
5185if ! test -z "$WITH_CLANGPATH"; then
5186 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5187echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5188 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5189elif test "$WITH_BUILT_CLANG" = "1"; then
5190 { echo "$as_me:$LINENO: result: built" >&5
5191echo "${ECHO_T}built" >&6; }
5192else
5193 { echo "$as_me:$LINENO: result: none" >&5
5194echo "${ECHO_T}none" >&6; }
5195fi
5196CLANGPATH=$WITH_CLANGPATH
5197
5198CLANGXXPATH=$WITH_CLANGXXPATH
5199
5200ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5201
5202
5203
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005204# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005205if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005206 withval=$with_optimize_option;
5207else
5208 withval=default
5209fi
5210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211{ echo "$as_me:$LINENO: checking optimization flags" >&5
5212echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005213case "$withval" in
5214 default)
5215 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005216 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005217 MingW) optimize_option=-O2 ;;
5218 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005219 esac ;;
5220 *) optimize_option="$withval" ;;
5221esac
5222OPTIMIZE_OPTION=$optimize_option
5223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005224{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5225echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005226
5227
Reid Spencera773bd52006-08-04 18:18:08 +00005228# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005229if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005230 withval=$with_extra_options;
5231else
5232 withval=default
5233fi
5234
5235case "$withval" in
5236 default) EXTRA_OPTIONS= ;;
5237 *) EXTRA_OPTIONS=$withval ;;
5238esac
5239EXTRA_OPTIONS=$EXTRA_OPTIONS
5240
5241
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005242# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005243if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005244 enableval=$enable_bindings;
5245else
5246 enableval=default
5247fi
5248
5249BINDINGS_TO_BUILD=""
5250case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005251 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005252 all ) BINDINGS_TO_BUILD="ocaml" ;;
5253 none | no) BINDINGS_TO_BUILD="" ;;
5254 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5255 case "$a_binding" in
5256 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005257 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5258echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5259 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005260 esac
5261 done
5262 ;;
5263esac
5264
Reid Spencera773bd52006-08-04 18:18:08 +00005265
Gordon Henriksenf0915682007-10-02 16:42:22 +00005266# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005267if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005268 withval=$with_ocaml_libdir;
5269else
5270 withval=auto
5271fi
5272
5273case "$withval" in
5274 auto) with_ocaml_libdir="$withval" ;;
5275 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005276 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5277echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5278 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005279esac
5280
5281
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005282# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005283if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005284 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005285else
5286 withval=""
5287fi
5288
5289
5290cat >>confdefs.h <<_ACEOF
5291#define C_INCLUDE_DIRS "$withval"
5292_ACEOF
5293
5294
5295
Rafael Espindola420d23c2009-11-16 19:46:55 +00005296# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005297if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005298 withval=$with_cxx_include_root;
5299else
5300 withval=""
5301fi
5302
5303
5304cat >>confdefs.h <<_ACEOF
5305#define CXX_INCLUDE_ROOT "$withval"
5306_ACEOF
5307
5308
5309
5310# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005311if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005312 withval=$with_cxx_include_arch;
5313else
5314 withval=""
5315fi
5316
5317
5318cat >>confdefs.h <<_ACEOF
5319#define CXX_INCLUDE_ARCH "$withval"
5320_ACEOF
5321
5322
5323
5324# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005325if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005326 withval=$with_cxx_include_32bit_dir;
5327else
5328 withval=""
5329fi
5330
5331
5332cat >>confdefs.h <<_ACEOF
5333#define CXX_INCLUDE_32BIT_DIR "$withval"
5334_ACEOF
5335
5336
5337
5338# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005339if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005340 withval=$with_cxx_include_64bit_dir;
5341else
5342 withval=""
5343fi
5344
5345
5346cat >>confdefs.h <<_ACEOF
5347#define CXX_INCLUDE_64BIT_DIR "$withval"
5348_ACEOF
5349
5350
5351
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005352# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005353if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005354 withval=$with_binutils_include;
5355else
5356 withval=default
5357fi
5358
5359case "$withval" in
5360 default) WITH_BINUTILS_INCDIR=default ;;
5361 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005362 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5363echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5364 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005365esac
5366if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5367 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5368
5369 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5370 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005371 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5372echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5373 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005374 fi
5375fi
5376
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005377# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005378if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005379 enableval=$enable_libffi; case "$enableval" in
5380 yes) llvm_cv_enable_libffi="yes" ;;
5381 no) llvm_cv_enable_libffi="no" ;;
5382 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5384 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005385 esac
5386else
5387 llvm_cv_enable_libffi=no
5388fi
5389
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005390
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005391
Reid Spencera773bd52006-08-04 18:18:08 +00005392ac_ext=c
5393ac_cpp='$CPP $CPPFLAGS'
5394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005397{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5398echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005399# On Suns, sometimes $CPP names a directory.
5400if test -n "$CPP" && test -d "$CPP"; then
5401 CPP=
5402fi
5403if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005404 if test "${ac_cv_prog_CPP+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005406else
5407 # Double quotes because CPP needs to be expanded
5408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5409 do
5410 ac_preproc_ok=false
5411for ac_c_preproc_warn_flag in '' yes
5412do
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005424/* end confdefs.h. */
5425#ifdef __STDC__
5426# include <limits.h>
5427#else
5428# include <assert.h>
5429#endif
5430 Syntax error
5431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005432if { (ac_try="$ac_cpp conftest.$ac_ext"
5433case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5448 else
5449 ac_cpp_err=
5450 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452 ac_cpp_err=yes
5453fi
5454if test -z "$ac_cpp_err"; then
5455 :
5456else
5457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
Reid Spencera773bd52006-08-04 18:18:08 +00005460 # Broken: fails on valid input.
5461continue
5462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005463
Reid Spencera773bd52006-08-04 18:18:08 +00005464rm -f conftest.err conftest.$ac_ext
5465
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005468 cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005473/* end confdefs.h. */
5474#include <ac_nonexistent.h>
5475_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005476if { (ac_try="$ac_cpp conftest.$ac_ext"
5477case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480esac
5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 else
5493 ac_cpp_err=
5494 fi
5495else
5496 ac_cpp_err=yes
5497fi
5498if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005499 # Broken: success on invalid input.
5500continue
5501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005502 echo "$as_me: failed program was:" >&5
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
Reid Spencera773bd52006-08-04 18:18:08 +00005505 # Passes both tests.
5506ac_preproc_ok=:
5507break
5508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005509
Reid Spencera773bd52006-08-04 18:18:08 +00005510rm -f conftest.err conftest.$ac_ext
5511
5512done
5513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005516 break
5517fi
5518
5519 done
5520 ac_cv_prog_CPP=$CPP
5521
5522fi
5523 CPP=$ac_cv_prog_CPP
5524else
5525 ac_cv_prog_CPP=$CPP
5526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005527{ echo "$as_me:$LINENO: result: $CPP" >&5
5528echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005529ac_preproc_ok=false
5530for ac_c_preproc_warn_flag in '' yes
5531do
5532 # Use a header file that comes with gcc, so configuring glibc
5533 # with a fresh cross-compiler works.
5534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535 # <limits.h> exists even on freestanding compilers.
5536 # On the NeXT, cc -E runs the code through the compiler's parser,
5537 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005538 cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005543/* end confdefs.h. */
5544#ifdef __STDC__
5545# include <limits.h>
5546#else
5547# include <assert.h>
5548#endif
5549 Syntax error
5550_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005551if { (ac_try="$ac_cpp conftest.$ac_ext"
5552case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } >/dev/null; then
5564 if test -s conftest.err; then
5565 ac_cpp_err=$ac_c_preproc_warn_flag
5566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5567 else
5568 ac_cpp_err=
5569 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005571 ac_cpp_err=yes
5572fi
5573if test -z "$ac_cpp_err"; then
5574 :
5575else
5576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
Reid Spencera773bd52006-08-04 18:18:08 +00005579 # Broken: fails on valid input.
5580continue
5581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582
Reid Spencera773bd52006-08-04 18:18:08 +00005583rm -f conftest.err conftest.$ac_ext
5584
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005592/* end confdefs.h. */
5593#include <ac_nonexistent.h>
5594_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005595if { (ac_try="$ac_cpp conftest.$ac_ext"
5596case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611 else
5612 ac_cpp_err=
5613 fi
5614else
5615 ac_cpp_err=yes
5616fi
5617if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005618 # Broken: success on invalid input.
5619continue
5620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621 echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
Reid Spencera773bd52006-08-04 18:18:08 +00005624 # Passes both tests.
5625ac_preproc_ok=:
5626break
5627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005628
Reid Spencera773bd52006-08-04 18:18:08 +00005629rm -f conftest.err conftest.$ac_ext
5630
5631done
5632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005634if $ac_preproc_ok; then
5635 :
Reid Spencera773bd52006-08-04 18:18:08 +00005636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5638See \`config.log' for more details." >&5
5639echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5640See \`config.log' for more details." >&2;}
5641 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005642fi
5643
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655if test -n "$ac_tool_prefix"; then
5656 for ac_prog in gcc
5657 do
5658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662if test "${ac_cv_prog_CC+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005664else
5665 if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5667else
5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 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 +00005675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005677 break 2
5678 fi
5679done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005680done
Reid Spencera773bd52006-08-04 18:18:08 +00005681IFS=$as_save_IFS
5682
5683fi
5684fi
5685CC=$ac_cv_prog_CC
5686if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005687 { echo "$as_me:$LINENO: result: $CC" >&5
5688echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005690 { echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005692fi
5693
5694
5695 test -n "$CC" && break
5696 done
5697fi
5698if test -z "$CC"; then
5699 ac_ct_CC=$CC
5700 for ac_prog in gcc
5701do
5702 # Extract the first word of "$ac_prog", so it can be a program name with args.
5703set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005708else
5709 if test -n "$ac_ct_CC"; then
5710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 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 +00005719 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005721 break 2
5722 fi
5723done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724done
Reid Spencera773bd52006-08-04 18:18:08 +00005725IFS=$as_save_IFS
5726
5727fi
5728fi
5729ac_ct_CC=$ac_cv_prog_ac_ct_CC
5730if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5732echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734 { echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005736fi
5737
5738
5739 test -n "$ac_ct_CC" && break
5740done
5741
5742 if test "x$ac_ct_CC" = x; then
5743 CC=""
5744 else
5745 case $cross_compiling:$ac_tool_warned in
5746yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5748whose name does not start with the host triplet. If you think this
5749configuration is useful to you, please write to autoconf@gnu.org." >&5
5750echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5751whose name does not start with the host triplet. If you think this
5752configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005753ac_tool_warned=yes ;;
5754esac
5755 CC=$ac_ct_CC
5756 fi
5757fi
5758
5759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005760test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5761See \`config.log' for more details." >&5
5762echo "$as_me: error: no acceptable C compiler found in \$PATH
5763See \`config.log' for more details." >&2;}
5764 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005765
5766# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767echo "$as_me:$LINENO: checking for C compiler version" >&5
5768ac_compiler=`set X $ac_compile; echo $2`
5769{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005770case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005776 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }
5779{ (ac_try="$ac_compiler -v >&5"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler -v >&5") 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789{ (ac_try="$ac_compiler -V >&5"
5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -V >&5") 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5802if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005805 cat >conftest.$ac_ext <<_ACEOF
5806/* confdefs.h. */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005810/* end confdefs.h. */
5811
5812int
5813main ()
5814{
5815#ifndef __GNUC__
5816 choke me
5817#endif
5818
5819 ;
5820 return 0;
5821}
5822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823rm -f conftest.$ac_objext
5824if { (ac_try="$ac_compile"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($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_try") 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005857 ac_compiler_gnu=yes
5858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859 echo "$as_me: failed program was:" >&5
5860sed 's/^/| /' conftest.$ac_ext >&5
5861
5862 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864
Reid Spencera773bd52006-08-04 18:18:08 +00005865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866ac_cv_c_compiler_gnu=$ac_compiler_gnu
5867
5868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5870echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5871GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005872ac_test_CFLAGS=${CFLAGS+set}
5873ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5875echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5876if test "${ac_cv_prog_cc_g+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005878else
5879 ac_save_c_werror_flag=$ac_c_werror_flag
5880 ac_c_werror_flag=yes
5881 ac_cv_prog_cc_g=no
5882 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005883 cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005888/* end confdefs.h. */
5889
5890int
5891main ()
5892{
5893
5894 ;
5895 return 0;
5896}
5897_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898rm -f conftest.$ac_objext
5899if { (ac_try="$ac_compile"
5900case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5903esac
5904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916esac
5917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005932 ac_cv_prog_cc_g=yes
5933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 CFLAGS=""
5938 cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h. */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005943/* end confdefs.h. */
5944
5945int
5946main ()
5947{
5948
5949 ;
5950 return 0;
5951}
5952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953rm -f conftest.$ac_objext
5954if { (ac_try="$ac_compile"
5955case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958esac
5959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5968 { (case "(($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_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 :
Torok Edwin871384f2010-01-26 08:50:50 +00005988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005989 echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005993 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005999/* end confdefs.h. */
6000
6001int
6002main ()
6003{
6004
6005 ;
6006 return 0;
6007}
6008_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009rm -f conftest.$ac_objext
6010if { (ac_try="$ac_compile"
6011case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027esac
6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006043 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044else
6045 echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
Reid Spencera773bd52006-08-04 18:18:08 +00006049fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050
Reid Spencera773bd52006-08-04 18:18:08 +00006051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053
Reid Spencera773bd52006-08-04 18:18:08 +00006054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056
Reid Spencera773bd52006-08-04 18:18:08 +00006057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_c_werror_flag=$ac_save_c_werror_flag
6059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6061echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006062if test "$ac_test_CFLAGS" = set; then
6063 CFLAGS=$ac_save_CFLAGS
6064elif test $ac_cv_prog_cc_g = yes; then
6065 if test "$GCC" = yes; then
6066 CFLAGS="-g -O2"
6067 else
6068 CFLAGS="-g"
6069 fi
6070else
6071 if test "$GCC" = yes; then
6072 CFLAGS="-O2"
6073 else
6074 CFLAGS=
6075 fi
6076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6078echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6079if test "${ac_cv_prog_cc_c89+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006081else
6082 ac_cv_prog_cc_c89=no
6083ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006084cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006089/* end confdefs.h. */
6090#include <stdarg.h>
6091#include <stdio.h>
6092#include <sys/types.h>
6093#include <sys/stat.h>
6094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6095struct buf { int x; };
6096FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097static char *e (p, i)
6098 char **p;
6099 int i;
6100{
6101 return p[i];
6102}
6103static char *f (char * (*g) (char **, int), char **p, ...)
6104{
6105 char *s;
6106 va_list v;
6107 va_start (v,p);
6108 s = g (p, va_arg (v,int));
6109 va_end (v);
6110 return s;
6111}
6112
6113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6114 function prototypes and stuff, but not '\xHH' hex character constants.
6115 These don't provoke an error unfortunately, instead are silently treated
6116 as 'x'. The following induces an error, until -std is added to get
6117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6118 array size at least. It's necessary to write '\x00'==0 to get something
6119 that's true only with -std. */
6120int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6121
6122/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123 inside strings and character constants. */
6124#define FOO(x) 'x'
6125int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6126
6127int test (int i, double x);
6128struct s1 {int (*f) (int a);};
6129struct s2 {int (*f) (double a);};
6130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131int argc;
6132char **argv;
6133int
6134main ()
6135{
6136return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6137 ;
6138 return 0;
6139}
6140_ACEOF
6141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6143do
6144 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145 rm -f conftest.$ac_objext
6146if { (ac_try="$ac_compile"
6147case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150esac
6151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006179 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006180else
6181 echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184
Reid Spencera773bd52006-08-04 18:18:08 +00006185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006186
Reid Spencera773bd52006-08-04 18:18:08 +00006187rm -f core conftest.err conftest.$ac_objext
6188 test "x$ac_cv_prog_cc_c89" != "xno" && break
6189done
6190rm -f conftest.$ac_ext
6191CC=$ac_save_CC
6192
6193fi
6194# AC_CACHE_VAL
6195case "x$ac_cv_prog_cc_c89" in
6196 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197 { echo "$as_me:$LINENO: result: none needed" >&5
6198echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006199 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200 { echo "$as_me:$LINENO: result: unsupported" >&5
6201echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006202 *)
6203 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6205echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006206esac
6207
6208
6209ac_ext=c
6210ac_cpp='$CPP $CPPFLAGS'
6211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214
6215ac_ext=cpp
6216ac_cpp='$CXXCPP $CPPFLAGS'
6217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220if test -z "$CXX"; then
6221 if test -n "$CCC"; then
6222 CXX=$CCC
6223 else
6224 if test -n "$ac_tool_prefix"; then
6225 for ac_prog in g++
6226 do
6227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231if test "${ac_cv_prog_CXX+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006233else
6234 if test -n "$CXX"; then
6235 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 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 +00006244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006246 break 2
6247 fi
6248done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249done
Reid Spencera773bd52006-08-04 18:18:08 +00006250IFS=$as_save_IFS
6251
6252fi
6253fi
6254CXX=$ac_cv_prog_CXX
6255if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006256 { echo "$as_me:$LINENO: result: $CXX" >&5
6257echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006259 { echo "$as_me:$LINENO: result: no" >&5
6260echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006261fi
6262
6263
6264 test -n "$CXX" && break
6265 done
6266fi
6267if test -z "$CXX"; then
6268 ac_ct_CXX=$CXX
6269 for ac_prog in g++
6270do
6271 # Extract the first word of "$ac_prog", so it can be a program name with args.
6272set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006277else
6278 if test -n "$ac_ct_CXX"; then
6279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 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 +00006288 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006290 break 2
6291 fi
6292done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293done
Reid Spencera773bd52006-08-04 18:18:08 +00006294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6299if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6301echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303 { echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006305fi
6306
6307
6308 test -n "$ac_ct_CXX" && break
6309done
6310
6311 if test "x$ac_ct_CXX" = x; then
6312 CXX="g++"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006316{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317whose name does not start with the host triplet. If you think this
6318configuration is useful to you, please write to autoconf@gnu.org." >&5
6319echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320whose name does not start with the host triplet. If you think this
6321configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006322ac_tool_warned=yes ;;
6323esac
6324 CXX=$ac_ct_CXX
6325 fi
6326fi
6327
6328 fi
6329fi
6330# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6332ac_compiler=`set X $ac_compile; echo $2`
6333{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006334case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006340 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }
6343{ (ac_try="$ac_compiler -v >&5"
6344case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compiler -v >&5") 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }
6353{ (ac_try="$ac_compiler -V >&5"
6354case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357esac
6358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compiler -V >&5") 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6365echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6366if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369 cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h. */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006374/* end confdefs.h. */
6375
6376int
6377main ()
6378{
6379#ifndef __GNUC__
6380 choke me
6381#endif
6382
6383 ;
6384 return 0;
6385}
6386_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387rm -f conftest.$ac_objext
6388if { (ac_try="$ac_compile"
6389case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392esac
6393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (case "(($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_try") 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006421 ac_compiler_gnu=yes
6422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006428
Reid Spencera773bd52006-08-04 18:18:08 +00006429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6431
6432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6434echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6435GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006436ac_test_CXXFLAGS=${CXXFLAGS+set}
6437ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6439echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6440if test "${ac_cv_prog_cxx_g+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006442else
6443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444 ac_cxx_werror_flag=yes
6445 ac_cv_prog_cxx_g=no
6446 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006447 cat >conftest.$ac_ext <<_ACEOF
6448/* confdefs.h. */
6449_ACEOF
6450cat confdefs.h >>conftest.$ac_ext
6451cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006452/* end confdefs.h. */
6453
6454int
6455main ()
6456{
6457
6458 ;
6459 return 0;
6460}
6461_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462rm -f conftest.$ac_objext
6463if { (ac_try="$ac_compile"
6464case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
6468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490esac
6491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006496 ac_cv_prog_cxx_g=yes
6497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006498 echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 CXXFLAGS=""
6502 cat >conftest.$ac_ext <<_ACEOF
6503/* confdefs.h. */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006507/* end confdefs.h. */
6508
6509int
6510main ()
6511{
6512
6513 ;
6514 return 0;
6515}
6516_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517rm -f conftest.$ac_objext
6518if { (ac_try="$ac_compile"
6519case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522esac
6523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6532 { (case "(($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_try") 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545esac
6546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 :
Torok Edwin871384f2010-01-26 08:50:50 +00006552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006557 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006563/* end confdefs.h. */
6564
6565int
6566main ()
6567{
6568
6569 ;
6570 return 0;
6571}
6572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006573rm -f conftest.$ac_objext
6574if { (ac_try="$ac_compile"
6575case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591esac
6592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006607 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608else
6609 echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612
Reid Spencera773bd52006-08-04 18:18:08 +00006613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614
Reid Spencera773bd52006-08-04 18:18:08 +00006615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617
Reid Spencera773bd52006-08-04 18:18:08 +00006618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006620
Reid Spencera773bd52006-08-04 18:18:08 +00006621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6625echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006626if test "$ac_test_CXXFLAGS" = set; then
6627 CXXFLAGS=$ac_save_CXXFLAGS
6628elif test $ac_cv_prog_cxx_g = yes; then
6629 if test "$GXX" = yes; then
6630 CXXFLAGS="-g -O2"
6631 else
6632 CXXFLAGS="-g"
6633 fi
6634else
6635 if test "$GXX" = yes; then
6636 CXXFLAGS="-O2"
6637 else
6638 CXXFLAGS=
6639 fi
6640fi
6641ac_ext=c
6642ac_cpp='$CPP $CPPFLAGS'
6643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646
Reid Spencera773bd52006-08-04 18:18:08 +00006647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6649echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6650if test "${lt_cv_path_NM+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006652else
6653 if test -n "$NM"; then
6654 # Let the user override the test.
6655 lt_cv_path_NM="$NM"
6656else
6657 lt_nm_to_check="${ac_tool_prefix}nm"
6658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6659 lt_nm_to_check="$lt_nm_to_check nm"
6660 fi
6661 for lt_tmp_nm in $lt_nm_to_check; do
6662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6664 IFS="$lt_save_ifs"
6665 test -z "$ac_dir" && ac_dir=.
6666 tmp_nm="$ac_dir/$lt_tmp_nm"
6667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6668 # Check to see if the nm accepts a BSD-compat flag.
6669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6670 # nm: unknown option "B" ignored
6671 # Tru64's nm complains that /dev/null is an invalid object file
6672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6673 */dev/null* | *'Invalid file or object type'*)
6674 lt_cv_path_NM="$tmp_nm -B"
6675 break
6676 ;;
6677 *)
6678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6679 */dev/null*)
6680 lt_cv_path_NM="$tmp_nm -p"
6681 break
6682 ;;
6683 *)
6684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6685 continue # so that we can try to find one that supports BSD flags
6686 ;;
6687 esac
6688 ;;
6689 esac
6690 fi
6691 done
6692 IFS="$lt_save_ifs"
6693 done
6694 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6695fi
6696fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6698echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006699NM="$lt_cv_path_NM"
6700
6701
6702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703{ echo "$as_me:$LINENO: checking for GNU make" >&5
6704echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6705if test "${llvm_cv_gnu_make_command+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006707else
6708 llvm_cv_gnu_make_command=''
6709 for a in "$MAKE" make gmake gnumake ; do
6710 if test -z "$a" ; then continue ; fi ;
6711 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6712 then
6713 llvm_cv_gnu_make_command=$a ;
6714 break;
6715 fi
6716 done
6717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6719echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006720 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6721 ifGNUmake='' ;
6722 else
6723 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6725echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006726 fi
6727
6728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006731LN_S=$as_ln_s
6732if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733 { echo "$as_me:$LINENO: result: yes" >&5
6734echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006738fi
6739
6740# Extract the first word of "cmp", so it can be a program name with args.
6741set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744if test "${ac_cv_path_CMP+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006746else
6747 case $CMP in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6750 ;;
6751 *)
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 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 +00006759 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006761 break 2
6762 fi
6763done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764done
Reid Spencera773bd52006-08-04 18:18:08 +00006765IFS=$as_save_IFS
6766
6767 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6768 ;;
6769esac
6770fi
6771CMP=$ac_cv_path_CMP
6772if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773 { echo "$as_me:$LINENO: result: $CMP" >&5
6774echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006778fi
6779
6780
6781# Extract the first word of "cp", so it can be a program name with args.
6782set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785if test "${ac_cv_path_CP+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006787else
6788 case $CP in
6789 [\\/]* | ?:[\\/]*)
6790 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6791 ;;
6792 *)
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 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 +00006800 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006802 break 2
6803 fi
6804done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805done
Reid Spencera773bd52006-08-04 18:18:08 +00006806IFS=$as_save_IFS
6807
6808 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6809 ;;
6810esac
6811fi
6812CP=$ac_cv_path_CP
6813if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814 { echo "$as_me:$LINENO: result: $CP" >&5
6815echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006817 { echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006819fi
6820
6821
6822# Extract the first word of "date", so it can be a program name with args.
6823set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826if test "${ac_cv_path_DATE+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006828else
6829 case $DATE in
6830 [\\/]* | ?:[\\/]*)
6831 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6832 ;;
6833 *)
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 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 +00006841 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006843 break 2
6844 fi
6845done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846done
Reid Spencera773bd52006-08-04 18:18:08 +00006847IFS=$as_save_IFS
6848
6849 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6850 ;;
6851esac
6852fi
6853DATE=$ac_cv_path_DATE
6854if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006855 { echo "$as_me:$LINENO: result: $DATE" >&5
6856echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006858 { echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006860fi
6861
6862
6863# Extract the first word of "find", so it can be a program name with args.
6864set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_path_FIND+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006869else
6870 case $FIND in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6873 ;;
6874 *)
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 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 +00006882 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006884 break 2
6885 fi
6886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887done
Reid Spencera773bd52006-08-04 18:18:08 +00006888IFS=$as_save_IFS
6889
6890 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6891 ;;
6892esac
6893fi
6894FIND=$ac_cv_path_FIND
6895if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006896 { echo "$as_me:$LINENO: result: $FIND" >&5
6897echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006901fi
6902
6903
6904# Extract the first word of "grep", so it can be a program name with args.
6905set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_GREP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006910else
6911 case $GREP in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 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 +00006923 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006925 break 2
6926 fi
6927done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928done
Reid Spencera773bd52006-08-04 18:18:08 +00006929IFS=$as_save_IFS
6930
6931 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6932 ;;
6933esac
6934fi
6935GREP=$ac_cv_path_GREP
6936if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006937 { echo "$as_me:$LINENO: result: $GREP" >&5
6938echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006942fi
6943
6944
6945# Extract the first word of "mkdir", so it can be a program name with args.
6946set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949if test "${ac_cv_path_MKDIR+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006951else
6952 case $MKDIR in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6955 ;;
6956 *)
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 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 +00006964 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006966 break 2
6967 fi
6968done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969done
Reid Spencera773bd52006-08-04 18:18:08 +00006970IFS=$as_save_IFS
6971
6972 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6973 ;;
6974esac
6975fi
6976MKDIR=$ac_cv_path_MKDIR
6977if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006978 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6979echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006983fi
6984
6985
6986# Extract the first word of "mv", so it can be a program name with args.
6987set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_path_MV+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006992else
6993 case $MV in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6996 ;;
6997 *)
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 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 +00007005 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007007 break 2
7008 fi
7009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010done
Reid Spencera773bd52006-08-04 18:18:08 +00007011IFS=$as_save_IFS
7012
7013 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7014 ;;
7015esac
7016fi
7017MV=$ac_cv_path_MV
7018if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019 { echo "$as_me:$LINENO: result: $MV" >&5
7020echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022 { echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007024fi
7025
7026
7027if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032if test "${ac_cv_prog_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007034else
7035 if test -n "$RANLIB"; then
7036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 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 +00007045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007047 break 2
7048 fi
7049done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007050done
Reid Spencera773bd52006-08-04 18:18:08 +00007051IFS=$as_save_IFS
7052
7053fi
7054fi
7055RANLIB=$ac_cv_prog_RANLIB
7056if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7058echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007062fi
7063
7064
7065fi
7066if test -z "$ac_cv_prog_RANLIB"; then
7067 ac_ct_RANLIB=$RANLIB
7068 # Extract the first word of "ranlib", so it can be a program name with args.
7069set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007074else
7075 if test -n "$ac_ct_RANLIB"; then
7076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 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 +00007085 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007087 break 2
7088 fi
7089done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090done
Reid Spencera773bd52006-08-04 18:18:08 +00007091IFS=$as_save_IFS
7092
7093fi
7094fi
7095ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007097 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100 { echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007102fi
7103
7104 if test "x$ac_ct_RANLIB" = x; then
7105 RANLIB=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007109{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7110whose name does not start with the host triplet. If you think this
7111configuration is useful to you, please write to autoconf@gnu.org." >&5
7112echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7113whose name does not start with the host triplet. If you think this
7114configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007115ac_tool_warned=yes ;;
7116esac
7117 RANLIB=$ac_ct_RANLIB
7118 fi
7119else
7120 RANLIB="$ac_cv_prog_RANLIB"
7121fi
7122
Torok Edwin871384f2010-01-26 08:50:50 +00007123if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7125set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128if test "${ac_cv_prog_AR+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007130else
7131 if test -n "$AR"; then
7132 ac_cv_prog_AR="$AR" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 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 +00007141 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007143 break 2
7144 fi
7145done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146done
Torok Edwin871384f2010-01-26 08:50:50 +00007147IFS=$as_save_IFS
7148
7149fi
7150fi
7151AR=$ac_cv_prog_AR
7152if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 { echo "$as_me:$LINENO: result: $AR" >&5
7154echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007158fi
7159
7160
7161fi
7162if test -z "$ac_cv_prog_AR"; then
7163 ac_ct_AR=$AR
7164 # Extract the first word of "ar", so it can be a program name with args.
7165set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007170else
7171 if test -n "$ac_ct_AR"; then
7172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 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 +00007181 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007183 break 2
7184 fi
7185done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186done
Torok Edwin871384f2010-01-26 08:50:50 +00007187IFS=$as_save_IFS
7188
7189fi
7190fi
7191ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7194echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007198fi
7199
7200 if test "x$ac_ct_AR" = x; then
7201 AR="false"
7202 else
7203 case $cross_compiling:$ac_tool_warned in
7204yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7206whose name does not start with the host triplet. If you think this
7207configuration is useful to you, please write to autoconf@gnu.org." >&5
7208echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7209whose name does not start with the host triplet. If you think this
7210configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007211ac_tool_warned=yes ;;
7212esac
7213 AR=$ac_ct_AR
7214 fi
7215else
7216 AR="$ac_cv_prog_AR"
7217fi
7218
Reid Spencera773bd52006-08-04 18:18:08 +00007219# Extract the first word of "rm", so it can be a program name with args.
7220set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223if test "${ac_cv_path_RM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007225else
7226 case $RM in
7227 [\\/]* | ?:[\\/]*)
7228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7229 ;;
7230 *)
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 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 +00007238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007240 break 2
7241 fi
7242done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243done
Reid Spencera773bd52006-08-04 18:18:08 +00007244IFS=$as_save_IFS
7245
7246 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7247 ;;
7248esac
7249fi
7250RM=$ac_cv_path_RM
7251if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007252 { echo "$as_me:$LINENO: result: $RM" >&5
7253echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255 { echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007257fi
7258
7259
7260# Extract the first word of "sed", so it can be a program name with args.
7261set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_SED+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007266else
7267 case $SED in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007279 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007281 break 2
7282 fi
7283done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284done
Reid Spencera773bd52006-08-04 18:18:08 +00007285IFS=$as_save_IFS
7286
7287 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7288 ;;
7289esac
7290fi
7291SED=$ac_cv_path_SED
7292if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293 { echo "$as_me:$LINENO: result: $SED" >&5
7294echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007296 { echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007298fi
7299
7300
7301# Extract the first word of "tar", so it can be a program name with args.
7302set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305if test "${ac_cv_path_TAR+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007307else
7308 case $TAR in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7311 ;;
7312 *)
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 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 +00007320 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007322 break 2
7323 fi
7324done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325done
Reid Spencera773bd52006-08-04 18:18:08 +00007326IFS=$as_save_IFS
7327
7328 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7329 ;;
7330esac
7331fi
7332TAR=$ac_cv_path_TAR
7333if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334 { echo "$as_me:$LINENO: result: $TAR" >&5
7335echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007337 { echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007339fi
7340
7341
7342# Extract the first word of "pwd", so it can be a program name with args.
7343set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_path_BINPWD+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007348else
7349 case $BINPWD in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7352 ;;
7353 *)
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 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 +00007361 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007363 break 2
7364 fi
7365done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366done
Reid Spencera773bd52006-08-04 18:18:08 +00007367IFS=$as_save_IFS
7368
7369 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7370 ;;
7371esac
7372fi
7373BINPWD=$ac_cv_path_BINPWD
7374if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7376echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378 { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007380fi
7381
7382
7383
7384# Extract the first word of "Graphviz", so it can be a program name with args.
7385set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007390else
7391 case $GRAPHVIZ in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7394 ;;
7395 *)
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 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 +00007403 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007405 break 2
7406 fi
7407done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408done
Reid Spencera773bd52006-08-04 18:18:08 +00007409IFS=$as_save_IFS
7410
7411 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7412 ;;
7413esac
7414fi
7415GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7416if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7418echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 { echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007422fi
7423
7424
7425if test "$GRAPHVIZ" != "echo Graphviz" ; then
7426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427cat >>confdefs.h <<\_ACEOF
7428#define HAVE_GRAPHVIZ 1
7429_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007430
Jeff Cohen28783c32007-01-12 18:22:38 +00007431 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007432 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7433 fi
7434
7435cat >>confdefs.h <<_ACEOF
7436#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7437_ACEOF
7438
7439fi
7440# Extract the first word of "dot", so it can be a program name with args.
7441set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444if test "${ac_cv_path_DOT+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007446else
7447 case $DOT in
7448 [\\/]* | ?:[\\/]*)
7449 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7450 ;;
7451 *)
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 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 +00007459 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007461 break 2
7462 fi
7463done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464done
Reid Spencera773bd52006-08-04 18:18:08 +00007465IFS=$as_save_IFS
7466
7467 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7468 ;;
7469esac
7470fi
7471DOT=$ac_cv_path_DOT
7472if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 { echo "$as_me:$LINENO: result: $DOT" >&5
7474echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476 { echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007478fi
7479
7480
7481if test "$DOT" != "echo dot" ; then
7482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483cat >>confdefs.h <<\_ACEOF
7484#define HAVE_DOT 1
7485_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007486
Jeff Cohen28783c32007-01-12 18:22:38 +00007487 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007488 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7489 fi
7490
7491cat >>confdefs.h <<_ACEOF
7492#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7493_ACEOF
7494
7495fi
David Greenef0b9eff2009-07-09 17:16:26 +00007496# Extract the first word of "fdp", so it can be a program name with args.
7497set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500if test "${ac_cv_path_FDP+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007502else
7503 case $FDP in
7504 [\\/]* | ?:[\\/]*)
7505 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7506 ;;
7507 *)
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 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 +00007515 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007517 break 2
7518 fi
7519done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007520done
David Greenef0b9eff2009-07-09 17:16:26 +00007521IFS=$as_save_IFS
7522
7523 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7524 ;;
7525esac
7526fi
7527FDP=$ac_cv_path_FDP
7528if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 { echo "$as_me:$LINENO: result: $FDP" >&5
7530echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532 { echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007534fi
7535
7536
7537if test "$FDP" != "echo fdp" ; then
7538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539cat >>confdefs.h <<\_ACEOF
7540#define HAVE_FDP 1
7541_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007542
7543 if test "$llvm_cv_os_type" = "MingW" ; then
7544 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7545 fi
7546
7547cat >>confdefs.h <<_ACEOF
7548#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7549_ACEOF
7550
7551fi
7552# Extract the first word of "neato", so it can be a program name with args.
7553set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556if test "${ac_cv_path_NEATO+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007558else
7559 case $NEATO in
7560 [\\/]* | ?:[\\/]*)
7561 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7562 ;;
7563 *)
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 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 +00007571 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007573 break 2
7574 fi
7575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576done
David Greenef0b9eff2009-07-09 17:16:26 +00007577IFS=$as_save_IFS
7578
7579 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7580 ;;
7581esac
7582fi
7583NEATO=$ac_cv_path_NEATO
7584if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007585 { echo "$as_me:$LINENO: result: $NEATO" >&5
7586echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588 { echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007590fi
7591
7592
7593if test "$NEATO" != "echo neato" ; then
7594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595cat >>confdefs.h <<\_ACEOF
7596#define HAVE_NEATO 1
7597_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007598
7599 if test "$llvm_cv_os_type" = "MingW" ; then
7600 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7601 fi
7602
7603cat >>confdefs.h <<_ACEOF
7604#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7605_ACEOF
7606
7607fi
7608# Extract the first word of "twopi", so it can be a program name with args.
7609set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612if test "${ac_cv_path_TWOPI+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007614else
7615 case $TWOPI in
7616 [\\/]* | ?:[\\/]*)
7617 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7618 ;;
7619 *)
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 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 +00007627 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007629 break 2
7630 fi
7631done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632done
David Greenef0b9eff2009-07-09 17:16:26 +00007633IFS=$as_save_IFS
7634
7635 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7636 ;;
7637esac
7638fi
7639TWOPI=$ac_cv_path_TWOPI
7640if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7642echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644 { echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007646fi
7647
7648
7649if test "$TWOPI" != "echo twopi" ; then
7650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651cat >>confdefs.h <<\_ACEOF
7652#define HAVE_TWOPI 1
7653_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007654
7655 if test "$llvm_cv_os_type" = "MingW" ; then
7656 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7657 fi
7658
7659cat >>confdefs.h <<_ACEOF
7660#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7661_ACEOF
7662
7663fi
7664# Extract the first word of "circo", so it can be a program name with args.
7665set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668if test "${ac_cv_path_CIRCO+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007670else
7671 case $CIRCO in
7672 [\\/]* | ?:[\\/]*)
7673 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7674 ;;
7675 *)
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 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 +00007683 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007685 break 2
7686 fi
7687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688done
David Greenef0b9eff2009-07-09 17:16:26 +00007689IFS=$as_save_IFS
7690
7691 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7692 ;;
7693esac
7694fi
7695CIRCO=$ac_cv_path_CIRCO
7696if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7698echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 { echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007702fi
7703
7704
7705if test "$CIRCO" != "echo circo" ; then
7706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707cat >>confdefs.h <<\_ACEOF
7708#define HAVE_CIRCO 1
7709_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007710
7711 if test "$llvm_cv_os_type" = "MingW" ; then
7712 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7713 fi
7714
7715cat >>confdefs.h <<_ACEOF
7716#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7717_ACEOF
7718
7719fi
Reid Spencera773bd52006-08-04 18:18:08 +00007720for ac_prog in gv gsview32
7721do
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726if test "${ac_cv_path_GV+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007728else
7729 case $GV in
7730 [\\/]* | ?:[\\/]*)
7731 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7732 ;;
7733 *)
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 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 +00007741 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007743 break 2
7744 fi
7745done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746done
Reid Spencera773bd52006-08-04 18:18:08 +00007747IFS=$as_save_IFS
7748
7749 ;;
7750esac
7751fi
7752GV=$ac_cv_path_GV
7753if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007754 { echo "$as_me:$LINENO: result: $GV" >&5
7755echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007757 { echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007759fi
7760
7761
7762 test -n "$GV" && break
7763done
7764test -n "$GV" || GV="echo gv"
7765
7766if test "$GV" != "echo gv" ; then
7767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007768cat >>confdefs.h <<\_ACEOF
7769#define HAVE_GV 1
7770_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007771
Jeff Cohen28783c32007-01-12 18:22:38 +00007772 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007773 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7774 fi
7775
7776cat >>confdefs.h <<_ACEOF
7777#define LLVM_PATH_GV "$GV${EXEEXT}"
7778_ACEOF
7779
7780fi
7781# Extract the first word of "dotty", so it can be a program name with args.
7782set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785if test "${ac_cv_path_DOTTY+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007787else
7788 case $DOTTY in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7791 ;;
7792 *)
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 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 +00007800 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007802 break 2
7803 fi
7804done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805done
Reid Spencera773bd52006-08-04 18:18:08 +00007806IFS=$as_save_IFS
7807
7808 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7809 ;;
7810esac
7811fi
7812DOTTY=$ac_cv_path_DOTTY
7813if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7815echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007817 { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007819fi
7820
7821
7822if test "$DOTTY" != "echo dotty" ; then
7823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824cat >>confdefs.h <<\_ACEOF
7825#define HAVE_DOTTY 1
7826_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007827
Jeff Cohen28783c32007-01-12 18:22:38 +00007828 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007829 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7830 fi
7831
7832cat >>confdefs.h <<_ACEOF
7833#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7834_ACEOF
7835
7836fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007837# Extract the first word of "xdot.py", so it can be a program name with args.
7838set dummy xdot.py; ac_word=$2
7839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841if test "${ac_cv_path_XDOT_PY+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844 case $XDOT_PY in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7847 ;;
7848 *)
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860done
7861done
7862IFS=$as_save_IFS
7863
7864 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7865 ;;
7866esac
7867fi
7868XDOT_PY=$ac_cv_path_XDOT_PY
7869if test -n "$XDOT_PY"; then
7870 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7871echo "${ECHO_T}$XDOT_PY" >&6; }
7872else
7873 { echo "$as_me:$LINENO: result: no" >&5
7874echo "${ECHO_T}no" >&6; }
7875fi
7876
7877
7878if test "$XDOT_PY" != "echo xdot.py" ; then
7879
7880cat >>confdefs.h <<\_ACEOF
7881#define HAVE_XDOT_PY 1
7882_ACEOF
7883
7884 if test "$llvm_cv_os_type" = "MingW" ; then
7885 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7886 fi
7887
7888cat >>confdefs.h <<_ACEOF
7889#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7890_ACEOF
7891
7892fi
Reid Spencera773bd52006-08-04 18:18:08 +00007893
7894
7895# Extract the first word of "perl", so it can be a program name with args.
7896set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899if test "${ac_cv_path_PERL+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007901else
7902 case $PERL in
7903 [\\/]* | ?:[\\/]*)
7904 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7905 ;;
7906 *)
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908for as_dir in $PATH
7909do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 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 +00007914 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007916 break 2
7917 fi
7918done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007919done
Reid Spencera773bd52006-08-04 18:18:08 +00007920IFS=$as_save_IFS
7921
7922 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7923 ;;
7924esac
7925fi
7926PERL=$ac_cv_path_PERL
7927if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007928 { echo "$as_me:$LINENO: result: $PERL" >&5
7929echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007931 { echo "$as_me:$LINENO: result: no" >&5
7932echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007933fi
7934
7935
7936if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007937 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7938echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007939 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007940 { echo "$as_me:$LINENO: result: yes" >&5
7941echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007942 else
7943 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007944 { echo "$as_me:$LINENO: result: not found" >&5
7945echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007946 fi
7947fi
7948
7949
7950if test x"$PERL" = xnone; then
7951 HAVE_PERL=0
7952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7954echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7955 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007956else
7957 HAVE_PERL=1
7958
7959fi
7960
7961# Find a good install program. We prefer a C program (faster),
7962# so one script is as good as another. But avoid the broken or
7963# incompatible versions:
7964# SysV /etc/install, /usr/sbin/install
7965# SunOS /usr/etc/install
7966# IRIX /sbin/install
7967# AIX /bin/install
7968# AmigaOS /C/install, which installs bootblocks on floppy discs
7969# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7970# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7971# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7972# OS/2's system install, which has a completely different semantic
7973# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007974{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7975echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007976if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007977if test "${ac_cv_path_install+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007979else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985 # Account for people who put trailing slashes in PATH elements.
7986case $as_dir/ in
7987 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007990 /usr/ucb/* ) ;;
7991 *)
7992 # OSF1 and SCO ODT 3.0 have their own names for install.
7993 # Don't use installbsd from OSF since it installs stuff as root
7994 # by default.
7995 for ac_prog in ginstall scoinst install; do
7996 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997 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 +00007998 if test $ac_prog = install &&
7999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8000 # AIX install. It has an incompatible calling convention.
8001 :
8002 elif test $ac_prog = install &&
8003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8004 # program-specific install script used by HP pwplus--don't use.
8005 :
8006 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8008 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008009 fi
8010 fi
8011 done
8012 done
8013 ;;
8014esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008015done
Reid Spencera773bd52006-08-04 18:18:08 +00008016IFS=$as_save_IFS
8017
8018
8019fi
8020 if test "${ac_cv_path_install+set}" = set; then
8021 INSTALL=$ac_cv_path_install
8022 else
8023 # As a last resort, use the slow shell script. Don't cache a
8024 # value for INSTALL within a source directory, because that will
8025 # break other packages using the cache if that directory is
8026 # removed, or if the value is a relative name.
8027 INSTALL=$ac_install_sh
8028 fi
8029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008030{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8031echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008032
8033# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8034# It thinks the first close brace ends the variable substitution.
8035test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8036
8037test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8038
8039test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8040
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008041case "$INSTALL" in
8042 [\\/$]* | ?:[\\/]* ) ;;
8043 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8044esac
Reid Spencera773bd52006-08-04 18:18:08 +00008045
8046# Extract the first word of "bzip2", so it can be a program name with args.
8047set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050if test "${ac_cv_path_BZIP2+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008052else
8053 case $BZIP2 in
8054 [\\/]* | ?:[\\/]*)
8055 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8056 ;;
8057 *)
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 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 +00008065 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008067 break 2
8068 fi
8069done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008070done
Reid Spencera773bd52006-08-04 18:18:08 +00008071IFS=$as_save_IFS
8072
Reid Spencera773bd52006-08-04 18:18:08 +00008073 ;;
8074esac
8075fi
8076BZIP2=$ac_cv_path_BZIP2
8077if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8079echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081 { echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008083fi
8084
8085
mike-m68cb3192010-05-06 23:45:43 +00008086# Extract the first word of "cat", so it can be a program name with args.
8087set dummy cat; ac_word=$2
8088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090if test "${ac_cv_path_CAT+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093 case $CAT in
8094 [\\/]* | ?:[\\/]*)
8095 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8096 ;;
8097 *)
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109done
8110done
8111IFS=$as_save_IFS
8112
8113 ;;
8114esac
8115fi
8116CAT=$ac_cv_path_CAT
8117if test -n "$CAT"; then
8118 { echo "$as_me:$LINENO: result: $CAT" >&5
8119echo "${ECHO_T}$CAT" >&6; }
8120else
8121 { echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6; }
8123fi
8124
8125
Reid Spencera773bd52006-08-04 18:18:08 +00008126# Extract the first word of "doxygen", so it can be a program name with args.
8127set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8130if test "${ac_cv_path_DOXYGEN+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008132else
8133 case $DOXYGEN in
8134 [\\/]* | ?:[\\/]*)
8135 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8136 ;;
8137 *)
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 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 +00008145 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008147 break 2
8148 fi
8149done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008150done
Reid Spencera773bd52006-08-04 18:18:08 +00008151IFS=$as_save_IFS
8152
Reid Spencera773bd52006-08-04 18:18:08 +00008153 ;;
8154esac
8155fi
8156DOXYGEN=$ac_cv_path_DOXYGEN
8157if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8159echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008161 { echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008163fi
8164
8165
Reid Spencera773bd52006-08-04 18:18:08 +00008166# Extract the first word of "groff", so it can be a program name with args.
8167set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8170if test "${ac_cv_path_GROFF+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008172else
8173 case $GROFF in
8174 [\\/]* | ?:[\\/]*)
8175 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8176 ;;
8177 *)
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 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 +00008185 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008187 break 2
8188 fi
8189done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008190done
Reid Spencera773bd52006-08-04 18:18:08 +00008191IFS=$as_save_IFS
8192
Reid Spencera773bd52006-08-04 18:18:08 +00008193 ;;
8194esac
8195fi
8196GROFF=$ac_cv_path_GROFF
8197if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198 { echo "$as_me:$LINENO: result: $GROFF" >&5
8199echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008201 { echo "$as_me:$LINENO: result: no" >&5
8202echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008203fi
8204
8205
8206# Extract the first word of "gzip", so it can be a program name with args.
8207set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8210if test "${ac_cv_path_GZIP+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008212else
8213 case $GZIP in
8214 [\\/]* | ?:[\\/]*)
8215 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8216 ;;
8217 *)
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 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 +00008225 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008227 break 2
8228 fi
8229done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230done
Reid Spencera773bd52006-08-04 18:18:08 +00008231IFS=$as_save_IFS
8232
Reid Spencera773bd52006-08-04 18:18:08 +00008233 ;;
8234esac
8235fi
8236GZIP=$ac_cv_path_GZIP
8237if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238 { echo "$as_me:$LINENO: result: $GZIP" >&5
8239echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241 { echo "$as_me:$LINENO: result: no" >&5
8242echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008243fi
8244
8245
8246# Extract the first word of "pod2html", so it can be a program name with args.
8247set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8250if test "${ac_cv_path_POD2HTML+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008252else
8253 case $POD2HTML in
8254 [\\/]* | ?:[\\/]*)
8255 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8256 ;;
8257 *)
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259for as_dir in $PATH
8260do
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 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 +00008265 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008267 break 2
8268 fi
8269done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008270done
Reid Spencera773bd52006-08-04 18:18:08 +00008271IFS=$as_save_IFS
8272
Reid Spencera773bd52006-08-04 18:18:08 +00008273 ;;
8274esac
8275fi
8276POD2HTML=$ac_cv_path_POD2HTML
8277if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008278 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8279echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281 { echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008283fi
8284
8285
8286# Extract the first word of "pod2man", so it can be a program name with args.
8287set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8290if test "${ac_cv_path_POD2MAN+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008292else
8293 case $POD2MAN in
8294 [\\/]* | ?:[\\/]*)
8295 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8296 ;;
8297 *)
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 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 +00008305 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008307 break 2
8308 fi
8309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310done
Reid Spencera773bd52006-08-04 18:18:08 +00008311IFS=$as_save_IFS
8312
Reid Spencera773bd52006-08-04 18:18:08 +00008313 ;;
8314esac
8315fi
8316POD2MAN=$ac_cv_path_POD2MAN
8317if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8319echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321 { echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008323fi
8324
8325
mike-m68cb3192010-05-06 23:45:43 +00008326# Extract the first word of "pdfroff", so it can be a program name with args.
8327set dummy pdfroff; ac_word=$2
8328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8330if test "${ac_cv_path_PDFROFF+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332else
8333 case $PDFROFF in
8334 [\\/]* | ?:[\\/]*)
8335 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8336 ;;
8337 *)
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349done
8350done
8351IFS=$as_save_IFS
8352
8353 ;;
8354esac
8355fi
8356PDFROFF=$ac_cv_path_PDFROFF
8357if test -n "$PDFROFF"; then
8358 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8359echo "${ECHO_T}$PDFROFF" >&6; }
8360else
8361 { echo "$as_me:$LINENO: result: no" >&5
8362echo "${ECHO_T}no" >&6; }
8363fi
8364
8365
Reid Spencera773bd52006-08-04 18:18:08 +00008366# Extract the first word of "runtest", so it can be a program name with args.
8367set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8370if test "${ac_cv_path_RUNTEST+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008372else
8373 case $RUNTEST in
8374 [\\/]* | ?:[\\/]*)
8375 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8376 ;;
8377 *)
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 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 +00008385 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008387 break 2
8388 fi
8389done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390done
Reid Spencera773bd52006-08-04 18:18:08 +00008391IFS=$as_save_IFS
8392
Reid Spencera773bd52006-08-04 18:18:08 +00008393 ;;
8394esac
8395fi
8396RUNTEST=$ac_cv_path_RUNTEST
8397if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008398 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8399echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008401 { echo "$as_me:$LINENO: result: no" >&5
8402echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008403fi
8404
8405
8406
8407no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008408{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8409echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008410
8411# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008412if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008413 withval=$with_tclinclude; with_tclinclude=${withval}
8414else
8415 with_tclinclude=''
8416fi
8417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418if test "${ac_cv_path_tclsh+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008420else
8421
8422if test x"${with_tclinclude}" != x ; then
8423 if test -f ${with_tclinclude}/tclsh ; then
8424 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8425 elif test -f ${with_tclinclude}/src/tclsh ; then
8426 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8427 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8429echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8430 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008431 fi
8432fi
Torok Edwin871384f2010-01-26 08:50:50 +00008433fi
8434
Reid Spencera773bd52006-08-04 18:18:08 +00008435
8436if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437 { echo "$as_me:$LINENO: result: none" >&5
8438echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008439 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
8440do
8441 # Extract the first word of "$ac_prog", so it can be a program name with args.
8442set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8445if test "${ac_cv_path_TCLSH+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008447else
8448 case $TCLSH in
8449 [\\/]* | ?:[\\/]*)
8450 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8451 ;;
8452 *)
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 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 +00008460 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008462 break 2
8463 fi
8464done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008465done
Reid Spencera773bd52006-08-04 18:18:08 +00008466IFS=$as_save_IFS
8467
8468 ;;
8469esac
8470fi
8471TCLSH=$ac_cv_path_TCLSH
8472if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8474echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008476 { echo "$as_me:$LINENO: result: no" >&5
8477echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008478fi
8479
8480
8481 test -n "$TCLSH" && break
8482done
8483
8484 if test x"${TCLSH}" = x ; then
8485 ac_cv_path_tclsh='';
8486 else
8487 ac_cv_path_tclsh="${TCLSH}";
8488 fi
8489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8491echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008492 TCLSH="${ac_cv_path_tclsh}"
8493
8494fi
8495
Reid Spencera773bd52006-08-04 18:18:08 +00008496# Extract the first word of "zip", so it can be a program name with args.
8497set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8500if test "${ac_cv_path_ZIP+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008502else
8503 case $ZIP in
8504 [\\/]* | ?:[\\/]*)
8505 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8506 ;;
8507 *)
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509for as_dir in $PATH
8510do
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 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 +00008515 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008517 break 2
8518 fi
8519done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520done
Reid Spencera773bd52006-08-04 18:18:08 +00008521IFS=$as_save_IFS
8522
Reid Spencera773bd52006-08-04 18:18:08 +00008523 ;;
8524esac
8525fi
8526ZIP=$ac_cv_path_ZIP
8527if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528 { echo "$as_me:$LINENO: result: $ZIP" >&5
8529echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008531 { echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008533fi
8534
8535
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008536for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008537do
8538 # Extract the first word of "$ac_prog", so it can be a program name with args.
8539set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8542if test "${ac_cv_path_OCAMLC+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008544else
8545 case $OCAMLC in
8546 [\\/]* | ?:[\\/]*)
8547 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8548 ;;
8549 *)
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551for as_dir in $PATH
8552do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 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 +00008557 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008559 break 2
8560 fi
8561done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008563IFS=$as_save_IFS
8564
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008565 ;;
8566esac
8567fi
8568OCAMLC=$ac_cv_path_OCAMLC
8569if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008570 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8571echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573 { echo "$as_me:$LINENO: result: no" >&5
8574echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008575fi
8576
8577
Gordon Henriksene7072162008-03-07 18:20:01 +00008578 test -n "$OCAMLC" && break
8579done
8580
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008581for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008582do
8583 # Extract the first word of "$ac_prog", so it can be a program name with args.
8584set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8587if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008589else
8590 case $OCAMLOPT in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8593 ;;
8594 *)
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596for as_dir in $PATH
8597do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 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 +00008602 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008604 break 2
8605 fi
8606done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008607done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008608IFS=$as_save_IFS
8609
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008610 ;;
8611esac
8612fi
8613OCAMLOPT=$ac_cv_path_OCAMLOPT
8614if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008615 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8616echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008618 { echo "$as_me:$LINENO: result: no" >&5
8619echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008620fi
8621
8622
Gordon Henriksene7072162008-03-07 18:20:01 +00008623 test -n "$OCAMLOPT" && break
8624done
8625
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008626for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008627do
8628 # Extract the first word of "$ac_prog", so it can be a program name with args.
8629set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8632if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008634else
8635 case $OCAMLDEP in
8636 [\\/]* | ?:[\\/]*)
8637 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8638 ;;
8639 *)
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 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 +00008647 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008649 break 2
8650 fi
8651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008652done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008653IFS=$as_save_IFS
8654
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008655 ;;
8656esac
8657fi
8658OCAMLDEP=$ac_cv_path_OCAMLDEP
8659if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008660 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8661echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008663 { echo "$as_me:$LINENO: result: no" >&5
8664echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008665fi
8666
8667
Gordon Henriksene7072162008-03-07 18:20:01 +00008668 test -n "$OCAMLDEP" && break
8669done
8670
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008671for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008672do
8673 # Extract the first word of "$ac_prog", so it can be a program name with args.
8674set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8677if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008679else
8680 case $OCAMLDOC in
8681 [\\/]* | ?:[\\/]*)
8682 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8683 ;;
8684 *)
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 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 +00008692 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008694 break 2
8695 fi
8696done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008697done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008698IFS=$as_save_IFS
8699
8700 ;;
8701esac
8702fi
8703OCAMLDOC=$ac_cv_path_OCAMLDOC
8704if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008705 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8706echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008707else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708 { echo "$as_me:$LINENO: result: no" >&5
8709echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008710fi
8711
8712
8713 test -n "$OCAMLDOC" && break
8714done
8715
Torok Edwincc499a42008-10-22 09:56:27 +00008716for ac_prog in gas as
8717do
8718 # Extract the first word of "$ac_prog", so it can be a program name with args.
8719set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8722if test "${ac_cv_path_GAS+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008724else
8725 case $GAS in
8726 [\\/]* | ?:[\\/]*)
8727 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8728 ;;
8729 *)
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731for as_dir in $PATH
8732do
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 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 +00008737 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008739 break 2
8740 fi
8741done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008742done
Torok Edwincc499a42008-10-22 09:56:27 +00008743IFS=$as_save_IFS
8744
8745 ;;
8746esac
8747fi
8748GAS=$ac_cv_path_GAS
8749if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008750 { echo "$as_me:$LINENO: result: $GAS" >&5
8751echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008753 { echo "$as_me:$LINENO: result: no" >&5
8754echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008755fi
8756
8757
8758 test -n "$GAS" && break
8759done
8760
Reid Spencera773bd52006-08-04 18:18:08 +00008761
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008762{ echo "$as_me:$LINENO: checking for linker version" >&5
8763echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8764if test "${llvm_cv_link_version+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766else
8767
8768 version_string="$(ld -v 2>&1 | head -1)"
8769
8770 # Check for ld64.
8771 if (echo "$version_string" | grep -q "ld64"); then
8772 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8773 else
8774 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8775 fi
8776
8777fi
8778{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8779echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8780
8781cat >>confdefs.h <<_ACEOF
8782#define HOST_LINK_VERSION "$llvm_cv_link_version"
8783_ACEOF
8784
8785
8786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008787{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8788echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8789if test "${llvm_cv_link_use_r+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008791else
8792 ac_ext=c
8793ac_cpp='$CPP $CPPFLAGS'
8794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796ac_compiler_gnu=$ac_cv_c_compiler_gnu
8797
8798 oldcflags="$CFLAGS"
8799 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008800 cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008805/* end confdefs.h. */
8806
8807int
8808main ()
8809{
Dan Gohman39ed6782010-04-25 00:12:20 +00008810
Reid Spencera773bd52006-08-04 18:18:08 +00008811 ;
8812 return 0;
8813}
8814_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008815rm -f conftest.$ac_objext conftest$ac_exeext
8816if { (ac_try="$ac_link"
8817case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820esac
8821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_link") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833esac
8834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008849 llvm_cv_link_use_r=yes
8850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008851 echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008855fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008856
Bill Wendlingebcceee2009-04-18 11:20:33 +00008857rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008858 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008859 CFLAGS="$oldcflags"
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
8867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008868{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8869echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008870if test "$llvm_cv_link_use_r" = yes ; then
8871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008872cat >>confdefs.h <<\_ACEOF
8873#define HAVE_LINK_R 1
8874_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008875
8876 fi
8877
8878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008879{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8880echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8881if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008883else
8884 ac_ext=c
8885ac_cpp='$CPP $CPPFLAGS'
8886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890 oldcflags="$CFLAGS"
8891 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008892 cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h. */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008897/* end confdefs.h. */
8898
8899int
8900main ()
8901{
Dan Gohman39ed6782010-04-25 00:12:20 +00008902
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008903 ;
8904 return 0;
8905}
8906_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008907rm -f conftest.$ac_objext conftest$ac_exeext
8908if { (ac_try="$ac_link"
8909case "(($ac_try" in
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8912esac
8913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_link") 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8922 { (case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8925esac
8926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_try") 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest$ac_exeext'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935esac
8936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008941 llvm_cv_link_use_export_dynamic=yes
8942else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008943 echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008948
Bill Wendlingebcceee2009-04-18 11:20:33 +00008949rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008950 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008951 CFLAGS="$oldcflags"
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
8959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008960{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8961echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008962if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008964cat >>confdefs.h <<\_ACEOF
8965#define HAVE_LINK_EXPORT_DYNAMIC 1
8966_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008967
8968 fi
8969
8970
Dan Gohmanda612d62010-06-01 14:56:56 +00008971{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8972echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8973if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008974 echo $ECHO_N "(cached) $ECHO_C" >&6
8975else
8976 ac_ext=c
8977ac_cpp='$CPP $CPPFLAGS'
8978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980ac_compiler_gnu=$ac_cv_c_compiler_gnu
8981
8982 oldcflags="$CFLAGS"
8983
8984 # The following code is from the autoconf manual,
8985 # "11.13: Limitations of Usual Tools".
8986 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8987 # Use mktemp if possible; otherwise fall back on mkdir,
8988 # with $RANDOM to make collisions less likely.
8989 : ${TMPDIR=/tmp}
8990 {
8991 tmp=`
8992 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8993 ` &&
8994 test -n "$tmp" && test -d "$tmp"
8995 } || {
8996 tmp=$TMPDIR/foo$$-$RANDOM
8997 (umask 077 && mkdir "$tmp")
8998 } || exit $?
8999
Dan Gohmanda612d62010-06-01 14:56:56 +00009000 echo "{" > "$tmp/export.map"
9001 echo " global: main;" >> "$tmp/export.map"
9002 echo " local: *;" >> "$tmp/export.map"
9003 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009004
Dan Gohmanda612d62010-06-01 14:56:56 +00009005 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009006 cat >conftest.$ac_ext <<_ACEOF
9007/* confdefs.h. */
9008_ACEOF
9009cat confdefs.h >>conftest.$ac_ext
9010cat >>conftest.$ac_ext <<_ACEOF
9011/* end confdefs.h. */
9012
9013int
9014main ()
9015{
Dan Gohman39ed6782010-04-25 00:12:20 +00009016
Dan Gohman391569c2010-04-16 22:59:06 +00009017 ;
9018 return 0;
9019}
9020_ACEOF
9021rm -f conftest.$ac_objext conftest$ac_exeext
9022if { (ac_try="$ac_link"
9023case "(($ac_try" in
9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025 *) ac_try_echo=$ac_try;;
9026esac
9027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028 (eval "$ac_link") 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9036 { (case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9039esac
9040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_try") 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest$ac_exeext'
9046 { (case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049esac
9050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_try") 2>&5
9052 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009055 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009056else
9057 echo "$as_me: failed program was:" >&5
9058sed 's/^/| /' conftest.$ac_ext >&5
9059
Dan Gohman943005e2010-06-01 16:22:27 +00009060 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009061fi
9062
9063rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009065 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009066 rmdir "$tmp"
9067 CFLAGS="$oldcflags"
9068 ac_ext=c
9069ac_cpp='$CPP $CPPFLAGS'
9070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9072ac_compiler_gnu=$ac_cv_c_compiler_gnu
9073
9074
9075fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009076{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9077echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9078if test "$llvm_cv_link_use_version_script" = yes ; then
9079 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009080
9081 fi
9082
9083
Reid Spencera773bd52006-08-04 18:18:08 +00009084
9085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009086{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9087echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9088if test "${ac_cv_c_const+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009091 cat >conftest.$ac_ext <<_ACEOF
9092/* confdefs.h. */
9093_ACEOF
9094cat confdefs.h >>conftest.$ac_ext
9095cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009096/* end confdefs.h. */
9097
9098int
9099main ()
9100{
9101/* FIXME: Include the comments suggested by Paul. */
9102#ifndef __cplusplus
9103 /* Ultrix mips cc rejects this. */
9104 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009105 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009106 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009107 char const *const *ccp;
9108 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009109 /* NEC SVR4.0.2 mips cc rejects this. */
9110 struct point {int x, y;};
9111 static struct point const zero = {0,0};
9112 /* AIX XL C 1.02.0.0 rejects this.
9113 It does not let you subtract one const X* pointer from another in
9114 an arm of an if-expression whose if-part is not a constant
9115 expression */
9116 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009117 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009118 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009119 ++ccp;
9120 p = (char**) ccp;
9121 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009122 { /* SCO 3.2v4 cc rejects this. */
9123 char *t;
9124 char const *s = 0 ? (char *) 0 : (char const *) 0;
9125
9126 *t++ = 0;
9127 if (s) return 0;
9128 }
9129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9130 int x[] = {25, 17};
9131 const int *foo = &x[0];
9132 ++foo;
9133 }
9134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9135 typedef const int *iptr;
9136 iptr p = 0;
9137 ++p;
9138 }
9139 { /* AIX XL C 1.02.0.0 rejects this saying
9140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9141 struct s { int j; const int *ap[3]; };
9142 struct s *b; b->j = 5;
9143 }
9144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9145 const int foo = 10;
9146 if (!foo) return 0;
9147 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009148 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009149#endif
9150
9151 ;
9152 return 0;
9153}
9154_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009155rm -f conftest.$ac_objext
9156if { (ac_try="$ac_compile"
9157case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160esac
9161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_compile") 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9170 { (case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9173esac
9174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_try") 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest.$ac_objext'
9180 { (case "(($ac_try" in
9181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182 *) ac_try_echo=$ac_try;;
9183esac
9184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9185 (eval "$ac_try") 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009189 ac_cv_c_const=yes
9190else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009191 echo "$as_me: failed program was:" >&5
9192sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009196
Reid Spencera773bd52006-08-04 18:18:08 +00009197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009199{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9200echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009201if test $ac_cv_c_const = no; then
9202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009203cat >>confdefs.h <<\_ACEOF
9204#define const
9205_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009206
9207fi
9208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009209
9210
9211
9212
9213
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009214ac_header_dirent=no
9215for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009216 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9217{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9218echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009222 cat >conftest.$ac_ext <<_ACEOF
9223/* confdefs.h. */
9224_ACEOF
9225cat confdefs.h >>conftest.$ac_ext
9226cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227/* end confdefs.h. */
9228#include <sys/types.h>
9229#include <$ac_hdr>
9230
9231int
9232main ()
9233{
9234if ((DIR *) 0)
9235return 0;
9236 ;
9237 return 0;
9238}
9239_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009240rm -f conftest.$ac_objext
9241if { (ac_try="$ac_compile"
9242case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
9246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9255 { (case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9258esac
9259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_try") 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest.$ac_objext'
9265 { (case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268esac
9269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_try") 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009274 eval "$as_ac_Header=yes"
9275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009276 echo "$as_me: failed program was:" >&5
9277sed 's/^/| /' conftest.$ac_ext >&5
9278
9279 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009281
Reid Spencera773bd52006-08-04 18:18:08 +00009282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009283fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009284ac_res=`eval echo '${'$as_ac_Header'}'`
9285 { echo "$as_me:$LINENO: result: $ac_res" >&5
9286echo "${ECHO_T}$ac_res" >&6; }
9287if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009288 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009289#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009290_ACEOF
9291
9292ac_header_dirent=$ac_hdr; break
9293fi
9294
9295done
9296# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9297if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009298 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9299echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9300if test "${ac_cv_search_opendir+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009302else
9303 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009304cat >conftest.$ac_ext <<_ACEOF
9305/* confdefs.h. */
9306_ACEOF
9307cat confdefs.h >>conftest.$ac_ext
9308cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009309/* end confdefs.h. */
9310
Reid Spencera773bd52006-08-04 18:18:08 +00009311/* Override any GCC internal prototype to avoid an error.
9312 Use char because int might match the return type of a GCC
9313 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009314#ifdef __cplusplus
9315extern "C"
9316#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317char opendir ();
9318int
9319main ()
9320{
Reid Spencera773bd52006-08-04 18:18:08 +00009321return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009322 ;
9323 return 0;
9324}
9325_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009326for ac_lib in '' dir; do
9327 if test -z "$ac_lib"; then
9328 ac_res="none required"
9329 else
9330 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009332 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009333 rm -f conftest.$ac_objext conftest$ac_exeext
9334if { (ac_try="$ac_link"
9335case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9338esac
9339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_link") 2>conftest.er1
9341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9348 { (case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9351esac
9352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353 (eval "$ac_try") 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9361esac
9362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_try") 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009367 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009368else
9369 echo "$as_me: failed program was:" >&5
9370sed 's/^/| /' conftest.$ac_ext >&5
9371
9372
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009374
Bill Wendlingebcceee2009-04-18 11:20:33 +00009375rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009376 conftest$ac_exeext
9377 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009378 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379fi
John Criswell7a73b802003-06-30 21:59:07 +00009380done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009381if test "${ac_cv_search_opendir+set}" = set; then
9382 :
Reid Spencera773bd52006-08-04 18:18:08 +00009383else
9384 ac_cv_search_opendir=no
9385fi
9386rm conftest.$ac_ext
9387LIBS=$ac_func_search_save_LIBS
9388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009389{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9390echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009391ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009392if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009394
Reid Spencera773bd52006-08-04 18:18:08 +00009395fi
9396
9397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009398 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9399echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9400if test "${ac_cv_search_opendir+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009402else
9403 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404cat >conftest.$ac_ext <<_ACEOF
9405/* confdefs.h. */
9406_ACEOF
9407cat confdefs.h >>conftest.$ac_ext
9408cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009409/* end confdefs.h. */
9410
9411/* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9414#ifdef __cplusplus
9415extern "C"
9416#endif
9417char opendir ();
9418int
9419main ()
9420{
9421return opendir ();
9422 ;
9423 return 0;
9424}
9425_ACEOF
9426for ac_lib in '' x; do
9427 if test -z "$ac_lib"; then
9428 ac_res="none required"
9429 else
9430 ac_res=-l$ac_lib
9431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9432 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009433 rm -f conftest.$ac_objext conftest$ac_exeext
9434if { (ac_try="$ac_link"
9435case "(($ac_try" in
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9438esac
9439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440 (eval "$ac_link") 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9448 { (case "(($ac_try" in
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9451esac
9452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_try") 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (case "(($ac_try" in
9459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460 *) ac_try_echo=$ac_try;;
9461esac
9462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_try") 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009467 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009468else
9469 echo "$as_me: failed program was:" >&5
9470sed 's/^/| /' conftest.$ac_ext >&5
9471
9472
Reid Spencera773bd52006-08-04 18:18:08 +00009473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009474
Bill Wendlingebcceee2009-04-18 11:20:33 +00009475rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009476 conftest$ac_exeext
9477 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009478 break
9479fi
9480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009481if test "${ac_cv_search_opendir+set}" = set; then
9482 :
Reid Spencera773bd52006-08-04 18:18:08 +00009483else
9484 ac_cv_search_opendir=no
9485fi
9486rm conftest.$ac_ext
9487LIBS=$ac_func_search_save_LIBS
9488fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009489{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9490echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009491ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009492if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9494
9495fi
9496
9497fi
John Criswell7a73b802003-06-30 21:59:07 +00009498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009499
John Criswell7a73b802003-06-30 21:59:07 +00009500for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009501do
9502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508fi
9509ac_res=`eval echo '${'$as_ac_Header'}'`
9510 { echo "$as_me:$LINENO: result: $ac_res" >&5
9511echo "${ECHO_T}$ac_res" >&6; }
9512else
9513 # Is the header compilable?
9514{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9516cat >conftest.$ac_ext <<_ACEOF
9517/* confdefs.h. */
9518_ACEOF
9519cat confdefs.h >>conftest.$ac_ext
9520cat >>conftest.$ac_ext <<_ACEOF
9521/* end confdefs.h. */
9522$ac_includes_default
9523#include <$ac_header>
9524_ACEOF
9525rm -f conftest.$ac_objext
9526if { (ac_try="$ac_compile"
9527case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530esac
9531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_compile") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9540 { (case "(($ac_try" in
9541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542 *) ac_try_echo=$ac_try;;
9543esac
9544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545 (eval "$ac_try") 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; } &&
9549 { ac_try='test -s conftest.$ac_objext'
9550 { (case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553esac
9554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_try") 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_header_compiler=yes
9560else
9561 echo "$as_me: failed program was:" >&5
9562sed 's/^/| /' conftest.$ac_ext >&5
9563
9564 ac_header_compiler=no
9565fi
9566
9567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9569echo "${ECHO_T}$ac_header_compiler" >&6; }
9570
9571# Is the header present?
9572{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9574cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h. */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h. */
9580#include <$ac_header>
9581_ACEOF
9582if { (ac_try="$ac_cpp conftest.$ac_ext"
9583case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9586esac
9587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } >/dev/null; then
9595 if test -s conftest.err; then
9596 ac_cpp_err=$ac_c_preproc_warn_flag
9597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9598 else
9599 ac_cpp_err=
9600 fi
9601else
9602 ac_cpp_err=yes
9603fi
9604if test -z "$ac_cpp_err"; then
9605 ac_header_preproc=yes
9606else
9607 echo "$as_me: failed program was:" >&5
9608sed 's/^/| /' conftest.$ac_ext >&5
9609
9610 ac_header_preproc=no
9611fi
9612
9613rm -f conftest.err conftest.$ac_ext
9614{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9615echo "${ECHO_T}$ac_header_preproc" >&6; }
9616
9617# So? What about this header?
9618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9619 yes:no: )
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9624 ac_header_preproc=yes
9625 ;;
9626 no:yes:* )
9627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9639 ( cat <<\_ASBOX
9640## ----------------------------------- ##
9641## Report this to llvmbugs@cs.uiuc.edu ##
9642## ----------------------------------- ##
9643_ASBOX
9644 ) | sed "s/^/$as_me: WARNING: /" >&2
9645 ;;
9646esac
9647{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9651else
9652 eval "$as_ac_Header=\$ac_header_preproc"
9653fi
9654ac_res=`eval echo '${'$as_ac_Header'}'`
9655 { echo "$as_me:$LINENO: result: $ac_res" >&5
9656echo "${ECHO_T}$ac_res" >&6; }
9657
9658fi
9659if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009660 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009662_ACEOF
9663
9664fi
9665
9666done
9667
Reid Spencera773bd52006-08-04 18:18:08 +00009668# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009669if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009670 enableval=$enable_ltdl_install;
9671fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009672
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009674
9675
9676if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009677 INSTALL_LTDL_TRUE=
9678 INSTALL_LTDL_FALSE='#'
9679else
9680 INSTALL_LTDL_TRUE='#'
9681 INSTALL_LTDL_FALSE=
9682fi
9683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009684
9685
9686if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009687 CONVENIENCE_LTDL_TRUE=
9688 CONVENIENCE_LTDL_FALSE='#'
9689else
9690 CONVENIENCE_LTDL_TRUE='#'
9691 CONVENIENCE_LTDL_FALSE=
9692fi
9693
9694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009695{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9696echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009697library_names_spec=
9698libname_spec='lib$name'
9699soname_spec=
9700shrext_cmds=".so"
9701postinstall_cmds=
9702postuninstall_cmds=
9703finish_cmds=
9704finish_eval=
9705shlibpath_var=
9706shlibpath_overrides_runpath=unknown
9707version_type=none
9708dynamic_linker="$host_os ld.so"
9709sys_lib_dlsearch_path_spec="/lib /usr/lib"
9710if test "$GCC" = yes; then
9711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9713 # if the path contains ";" then we assume it to be the separator
9714 # otherwise default to the standard path separator (i.e. ":") - it is
9715 # assumed that no part of a normal pathname contains ";" but that should
9716 # okay in the real world where ";" in dirpaths is itself problematic.
9717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9718 else
9719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9720 fi
9721else
9722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9723fi
9724need_lib_prefix=unknown
9725hardcode_into_libs=no
9726
9727# when you set need_version to no, make sure it does not cause -set_version
9728# flags to be left without arguments
9729need_version=unknown
9730
9731case $host_os in
9732aix3*)
9733 version_type=linux
9734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9735 shlibpath_var=LIBPATH
9736
9737 # AIX 3 has no versioning support, so we append a major version to the name.
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 ;;
9740
9741aix4* | aix5*)
9742 version_type=linux
9743 need_lib_prefix=no
9744 need_version=no
9745 hardcode_into_libs=yes
9746 if test "$host_cpu" = ia64; then
9747 # AIX 5 supports IA64
9748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9749 shlibpath_var=LD_LIBRARY_PATH
9750 else
9751 # With GCC up to 2.95.x, collect2 would create an import file
9752 # for dependence libraries. The import file would start with
9753 # the line `#! .'. This would cause the generated library to
9754 # depend on `.', always an invalid library. This was fixed in
9755 # development snapshots of GCC prior to 3.0.
9756 case $host_os in
9757 aix4 | aix4.[01] | aix4.[01].*)
9758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9759 echo ' yes '
9760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9761 :
9762 else
9763 can_build_shared=no
9764 fi
9765 ;;
9766 esac
9767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9768 # soname into executable. Probably we can add versioning support to
9769 # collect2, so additional links can be useful in future.
9770 if test "$aix_use_runtimelinking" = yes; then
9771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9772 # instead of lib<name>.a to let people know that these are not
9773 # typical AIX shared libraries.
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 else
9776 # We preserve .a as extension for shared libraries through AIX4.2
9777 # and later when we are not doing run time linking.
9778 library_names_spec='${libname}${release}.a $libname.a'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 fi
9781 shlibpath_var=LIBPATH
9782 fi
9783 ;;
9784
9785amigaos*)
9786 library_names_spec='$libname.ixlibrary $libname.a'
9787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9788 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'
9789 ;;
9790
9791beos*)
9792 library_names_spec='${libname}${shared_ext}'
9793 dynamic_linker="$host_os ld.so"
9794 shlibpath_var=LIBRARY_PATH
9795 ;;
9796
9797bsdi[45]*)
9798 version_type=linux
9799 need_version=no
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9806 # the default ld.so.conf also contains /usr/contrib/lib and
9807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9808 # libtool to hard-code these into programs
9809 ;;
9810
9811cygwin* | mingw* | pw32*)
9812 version_type=windows
9813 shrext_cmds=".dll"
9814 need_version=no
9815 need_lib_prefix=no
9816
9817 case $GCC,$host_os in
9818 yes,cygwin* | yes,mingw* | yes,pw32*)
9819 library_names_spec='$libname.dll.a'
9820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9821 postinstall_cmds='base_file=`basename \${file}`~
9822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9823 dldir=$destdir/`dirname \$dlpath`~
9824 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009825 $install_prog $dir/$dlname \$dldir/$dlname~
9826 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9828 dlpath=$dir/\$dldll~
9829 $rm \$dlpath'
9830 shlibpath_overrides_runpath=yes
9831
9832 case $host_os in
9833 cygwin*)
9834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9837 ;;
9838 mingw*)
9839 # MinGW DLLs use traditional 'lib' prefix
9840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9843 # It is most probably a Windows format PATH printed by
9844 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9845 # path with ; separators, and with drive letters. We can handle the
9846 # drive letters (cygwin fileutils understands them), so leave them,
9847 # especially as we might pass files found there to a mingw objdump,
9848 # which wouldn't understand a cygwinified path. Ahh.
9849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9850 else
9851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9852 fi
9853 ;;
9854 pw32*)
9855 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009856 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 +00009857 ;;
9858 esac
9859 ;;
9860
9861 *)
9862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9863 ;;
9864 esac
9865 dynamic_linker='Win32 ld.exe'
9866 # FIXME: first we should search . and the directory the executable is in
9867 shlibpath_var=PATH
9868 ;;
9869
9870darwin* | rhapsody*)
9871 dynamic_linker="$host_os dyld"
9872 version_type=darwin
9873 need_lib_prefix=no
9874 need_version=no
9875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9876 soname_spec='${libname}${release}${major}$shared_ext'
9877 shlibpath_overrides_runpath=yes
9878 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009879 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9881 if test "$GCC" = yes; then
9882 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"`
9883 else
9884 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9885 fi
9886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9887 ;;
9888
9889dgux*)
9890 version_type=linux
9891 need_lib_prefix=no
9892 need_version=no
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 ;;
9897
9898freebsd1*)
9899 dynamic_linker=no
9900 ;;
9901
9902kfreebsd*-gnu)
9903 version_type=linux
9904 need_lib_prefix=no
9905 need_version=no
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 shlibpath_overrides_runpath=no
9910 hardcode_into_libs=yes
9911 dynamic_linker='GNU ld.so'
9912 ;;
9913
Reid Spencera773bd52006-08-04 18:18:08 +00009914freebsd* | dragonfly*)
9915 # DragonFly does not have aout. When/if they implement a new
9916 # versioning mechanism, adjust this.
9917 if test -x /usr/bin/objformat; then
9918 objformat=`/usr/bin/objformat`
9919 else
9920 case $host_os in
9921 freebsd[123]*) objformat=aout ;;
9922 *) objformat=elf ;;
9923 esac
9924 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925 version_type=freebsd-$objformat
9926 case $version_type in
9927 freebsd-elf*)
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9929 need_version=no
9930 need_lib_prefix=no
9931 ;;
9932 freebsd-*)
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9934 need_version=yes
9935 ;;
9936 esac
9937 shlibpath_var=LD_LIBRARY_PATH
9938 case $host_os in
9939 freebsd2*)
9940 shlibpath_overrides_runpath=yes
9941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009942 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943 shlibpath_overrides_runpath=yes
9944 hardcode_into_libs=yes
9945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948 shlibpath_overrides_runpath=no
9949 hardcode_into_libs=yes
9950 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009951 freebsd*) # from 4.6 on
9952 shlibpath_overrides_runpath=yes
9953 hardcode_into_libs=yes
9954 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955 esac
9956 ;;
9957
9958gnu*)
9959 version_type=linux
9960 need_lib_prefix=no
9961 need_version=no
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 shlibpath_var=LD_LIBRARY_PATH
9965 hardcode_into_libs=yes
9966 ;;
9967
9968hpux9* | hpux10* | hpux11*)
9969 # Give a soname corresponding to the major version so that dld.sl refuses to
9970 # link against other versions.
9971 version_type=sunos
9972 need_lib_prefix=no
9973 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009974 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975 ia64*)
9976 shrext_cmds='.so'
9977 hardcode_into_libs=yes
9978 dynamic_linker="$host_os dld.so"
9979 shlibpath_var=LD_LIBRARY_PATH
9980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 if test "X$HPUX_IA64_MODE" = X32; then
9984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9985 else
9986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9987 fi
9988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9989 ;;
9990 hppa*64*)
9991 shrext_cmds='.sl'
9992 hardcode_into_libs=yes
9993 dynamic_linker="$host_os dld.sl"
9994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10000 ;;
10001 *)
10002 shrext_cmds='.sl'
10003 dynamic_linker="$host_os dld.sl"
10004 shlibpath_var=SHLIB_PATH
10005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 ;;
10009 esac
10010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10011 postinstall_cmds='chmod 555 $lib'
10012 ;;
10013
Reid Spencera773bd52006-08-04 18:18:08 +000010014interix3*)
10015 version_type=linux
10016 need_lib_prefix=no
10017 need_version=no
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=no
10023 hardcode_into_libs=yes
10024 ;;
10025
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026irix5* | irix6* | nonstopux*)
10027 case $host_os in
10028 nonstopux*) version_type=nonstopux ;;
10029 *)
10030 if test "$lt_cv_prog_gnu_ld" = yes; then
10031 version_type=linux
10032 else
10033 version_type=irix
10034 fi ;;
10035 esac
10036 need_lib_prefix=no
10037 need_version=no
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10040 case $host_os in
10041 irix5* | nonstopux*)
10042 libsuff= shlibsuff=
10043 ;;
10044 *)
10045 case $LD in # libtool.m4 will add one of these switches to LD
10046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10047 libsuff= shlibsuff= libmagic=32-bit;;
10048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10049 libsuff=32 shlibsuff=N32 libmagic=N32;;
10050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10052 *) libsuff= shlibsuff= libmagic=never-match;;
10053 esac
10054 ;;
10055 esac
10056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10057 shlibpath_overrides_runpath=no
10058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10060 hardcode_into_libs=yes
10061 ;;
10062
10063# No shared lib support for Linux oldld, aout, or coff.
10064linux*oldld* | linux*aout* | linux*coff*)
10065 dynamic_linker=no
10066 ;;
10067
10068# This must be Linux ELF.
10069linux*)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 # This implies no fast_install, which is unacceptable.
10079 # Some rework will be needed to allow for fast_install
10080 # before this can be enabled.
10081 hardcode_into_libs=yes
10082
10083 # Append ld.so.conf contents to the search path
10084 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010085 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 +000010086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10087 fi
10088
10089 # We used to test for /lib/ld.so.1 and disable shared libraries on
10090 # powerpc, because MkLinux only supported shared libraries with the
10091 # GNU dynamic linker. Since this was broken with cross compilers,
10092 # most powerpc-linux boxes support dynamic linking these days and
10093 # people can always --disable-shared, the test was removed, and we
10094 # assume the GNU/Linux dynamic linker is in use.
10095 dynamic_linker='GNU/Linux ld.so'
10096 ;;
10097
10098knetbsd*-gnu)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=no
10106 hardcode_into_libs=yes
10107 dynamic_linker='GNU ld.so'
10108 ;;
10109
10110netbsd*)
10111 version_type=sunos
10112 need_lib_prefix=no
10113 need_version=no
10114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10117 dynamic_linker='NetBSD (a.out) ld.so'
10118 else
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 dynamic_linker='NetBSD ld.elf_so'
10122 fi
10123 shlibpath_var=LD_LIBRARY_PATH
10124 shlibpath_overrides_runpath=yes
10125 hardcode_into_libs=yes
10126 ;;
10127
10128newsos6)
10129 version_type=linux
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=yes
10133 ;;
10134
10135nto-qnx*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes
10143 ;;
10144
10145openbsd*)
10146 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010147 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010148 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10150 case $host_os in
10151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10152 *) need_version=no ;;
10153 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10158 case $host_os in
10159 openbsd2.[89] | openbsd2.[89].*)
10160 shlibpath_overrides_runpath=no
10161 ;;
10162 *)
10163 shlibpath_overrides_runpath=yes
10164 ;;
10165 esac
10166 else
10167 shlibpath_overrides_runpath=yes
10168 fi
10169 ;;
10170
10171os2*)
10172 libname_spec='$name'
10173 shrext_cmds=".dll"
10174 need_lib_prefix=no
10175 library_names_spec='$libname${shared_ext} $libname.a'
10176 dynamic_linker='OS/2 ld.exe'
10177 shlibpath_var=LIBPATH
10178 ;;
10179
10180osf3* | osf4* | osf5*)
10181 version_type=osf
10182 need_lib_prefix=no
10183 need_version=no
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10189 ;;
10190
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191solaris*)
10192 version_type=linux
10193 need_lib_prefix=no
10194 need_version=no
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec='${libname}${release}${shared_ext}$major'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=yes
10199 hardcode_into_libs=yes
10200 # ldd complains unless libraries are executable
10201 postinstall_cmds='chmod +x $lib'
10202 ;;
10203
10204sunos4*)
10205 version_type=sunos
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=yes
10210 if test "$with_gnu_ld" = yes; then
10211 need_lib_prefix=no
10212 fi
10213 need_version=yes
10214 ;;
10215
Reid Spencera773bd52006-08-04 18:18:08 +000010216sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217 version_type=linux
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 case $host_vendor in
10222 sni)
10223 shlibpath_overrides_runpath=no
10224 need_lib_prefix=no
10225 export_dynamic_flag_spec='${wl}-Blargedynsym'
10226 runpath_var=LD_RUN_PATH
10227 ;;
10228 siemens)
10229 need_lib_prefix=no
10230 ;;
10231 motorola)
10232 need_lib_prefix=no
10233 need_version=no
10234 shlibpath_overrides_runpath=no
10235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10236 ;;
10237 esac
10238 ;;
10239
10240sysv4*MP*)
10241 if test -d /usr/nec ;then
10242 version_type=linux
10243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10244 soname_spec='$libname${shared_ext}.$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 fi
10247 ;;
10248
Reid Spencera773bd52006-08-04 18:18:08 +000010249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10250 version_type=freebsd-elf
10251 need_lib_prefix=no
10252 need_version=no
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 hardcode_into_libs=yes
10257 if test "$with_gnu_ld" = yes; then
10258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10259 shlibpath_overrides_runpath=no
10260 else
10261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10262 shlibpath_overrides_runpath=yes
10263 case $host_os in
10264 sco3.2v5*)
10265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10266 ;;
10267 esac
10268 fi
10269 sys_lib_dlsearch_path_spec='/usr/lib'
10270 ;;
10271
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272uts4*)
10273 version_type=linux
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 ;;
10278
10279*)
10280 dynamic_linker=no
10281 ;;
10282esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010283{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10284echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285test "$dynamic_linker" = no && can_build_shared=no
10286
Reid Spencera773bd52006-08-04 18:18:08 +000010287variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10288if test "$GCC" = yes; then
10289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10290fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291
Reid Spencera773bd52006-08-04 18:18:08 +000010292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010293{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10294echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10295if test "${libltdl_cv_shlibext+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010297else
10298
10299module=yes
10300eval libltdl_cv_shlibext=$shrext_cmds
10301
10302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010303{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10304echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305if test -n "$libltdl_cv_shlibext"; then
10306
10307cat >>confdefs.h <<_ACEOF
10308#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10309_ACEOF
10310
10311fi
10312
10313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010314{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10315echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10316if test "${libltdl_cv_shlibpath_var+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318else
10319 libltdl_cv_shlibpath_var="$shlibpath_var"
10320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010321{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10322echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323if test -n "$libltdl_cv_shlibpath_var"; then
10324
10325cat >>confdefs.h <<_ACEOF
10326#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10327_ACEOF
10328
10329fi
10330
10331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010332{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10333echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10334if test "${libltdl_cv_sys_search_path+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336else
10337 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010339{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10340echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010341if test -n "$libltdl_cv_sys_search_path"; then
10342 sys_search_path=
10343 for dir in $libltdl_cv_sys_search_path; do
10344 if test -z "$sys_search_path"; then
10345 sys_search_path="$dir"
10346 else
10347 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10348 fi
10349 done
10350
10351cat >>confdefs.h <<_ACEOF
10352#define LTDL_SYSSEARCHPATH "$sys_search_path"
10353_ACEOF
10354
10355fi
10356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010357{ echo "$as_me:$LINENO: checking for objdir" >&5
10358echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10359if test "${libltdl_cv_objdir+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010361else
10362 libltdl_cv_objdir="$objdir"
10363 if test -n "$objdir"; then
10364 :
10365 else
10366 rm -f .libs 2>/dev/null
10367 mkdir .libs 2>/dev/null
10368 if test -d .libs; then
10369 libltdl_cv_objdir=.libs
10370 else
10371 # MS-DOS does not allow filenames that begin with a dot.
10372 libltdl_cv_objdir=_libs
10373 fi
10374 rmdir .libs 2>/dev/null
10375 fi
10376
10377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010378{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10379echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010380
10381cat >>confdefs.h <<_ACEOF
10382#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10383_ACEOF
10384
10385
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386
10387
10388
10389
10390# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010391{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10392echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10393if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395else
10396
10397# These are sane defaults that work on at least a few old systems.
10398# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10399
10400# Character class describing NM global symbol codes.
10401symcode='[BCDEGRST]'
10402
10403# Regexp to match symbols that can be accessed directly from C.
10404sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10405
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406# Transform an extracted symbol line into a proper C declaration
10407lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10408
10409# Transform an extracted symbol line into symbol name and symbol address
10410lt_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'"
10411
10412# Define system-specific variables.
10413case $host_os in
10414aix*)
10415 symcode='[BCDT]'
10416 ;;
10417cygwin* | mingw* | pw32*)
10418 symcode='[ABCDGISTW]'
10419 ;;
10420hpux*) # Its linker distinguishes data from code symbols
10421 if test "$host_cpu" = ia64; then
10422 symcode='[ABCDEGRST]'
10423 fi
10424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10425 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'"
10426 ;;
10427linux*)
10428 if test "$host_cpu" = ia64; then
10429 symcode='[ABCDGIRSTW]'
10430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10431 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'"
10432 fi
10433 ;;
10434irix* | nonstopux*)
10435 symcode='[BCDEGRST]'
10436 ;;
10437osf*)
10438 symcode='[BCDEGQRST]'
10439 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010440solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441 symcode='[BDRT]'
10442 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010443sco3.2v5*)
10444 symcode='[DT]'
10445 ;;
10446sysv4.2uw2*)
10447 symcode='[DT]'
10448 ;;
10449sysv5* | sco5v6* | unixware* | OpenUNIX*)
10450 symcode='[ABDT]'
10451 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452sysv4)
10453 symcode='[DFNSTU]'
10454 ;;
10455esac
10456
10457# Handle CRLF in mingw tool chain
10458opt_cr=
10459case $build_os in
10460mingw*)
10461 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10462 ;;
10463esac
10464
10465# If we're using GNU nm, then use its standard symbol codes.
10466case `$NM -V 2>&1` in
10467*GNU* | *'with BFD'*)
10468 symcode='[ABCDGIRSTW]' ;;
10469esac
10470
10471# Try without a prefix undercore, then with it.
10472for ac_symprfx in "" "_"; do
10473
Reid Spencera773bd52006-08-04 18:18:08 +000010474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10475 symxfrm="\\1 $ac_symprfx\\2 \\2"
10476
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010477 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010478 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 +000010479
10480 # Check to see that the pipe works correctly.
10481 pipe_works=no
10482
10483 rm -f conftest*
10484 cat > conftest.$ac_ext <<EOF
10485#ifdef __cplusplus
10486extern "C" {
10487#endif
10488char nm_test_var;
10489void nm_test_func(){}
10490#ifdef __cplusplus
10491}
10492#endif
10493int main(){nm_test_var='a';nm_test_func();return(0);}
10494EOF
10495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497 (eval $ac_compile) 2>&5
10498 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501 # Now try to grab the symbols.
10502 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010503 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 +000010504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10505 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508 # Try sorting and uniquifying the output.
10509 if sort "$nlist" | uniq > "$nlist"T; then
10510 mv -f "$nlist"T "$nlist"
10511 else
10512 rm -f "$nlist"T
10513 fi
10514
10515 # Make sure that we snagged all the symbols we need.
10516 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10517 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10518 cat <<EOF > conftest.$ac_ext
10519#ifdef __cplusplus
10520extern "C" {
10521#endif
10522
10523EOF
10524 # Now generate the symbol file.
10525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10526
10527 cat <<EOF >> conftest.$ac_ext
10528#if defined (__STDC__) && __STDC__
10529# define lt_ptr_t void *
10530#else
10531# define lt_ptr_t char *
10532# define const
10533#endif
10534
10535/* The mapping between symbol names and symbols. */
10536const struct {
10537 const char *name;
10538 lt_ptr_t address;
10539}
10540lt_preloaded_symbols[] =
10541{
10542EOF
10543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10544 cat <<\EOF >> conftest.$ac_ext
10545 {0, (lt_ptr_t) 0}
10546};
10547
10548#ifdef __cplusplus
10549}
10550#endif
10551EOF
10552 # Now try linking the two files.
10553 mv conftest.$ac_objext conftstm.$ac_objext
10554 lt_save_LIBS="$LIBS"
10555 lt_save_CFLAGS="$CFLAGS"
10556 LIBS="conftstm.$ac_objext"
10557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559 (eval $ac_link) 2>&5
10560 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563 pipe_works=yes
10564 fi
10565 LIBS="$lt_save_LIBS"
10566 CFLAGS="$lt_save_CFLAGS"
10567 else
10568 echo "cannot find nm_test_func in $nlist" >&5
10569 fi
10570 else
10571 echo "cannot find nm_test_var in $nlist" >&5
10572 fi
10573 else
10574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10575 fi
10576 else
10577 echo "$progname: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 fi
10580 rm -f conftest* conftst*
10581
10582 # Do not use the global_symbol_pipe unless it works.
10583 if test "$pipe_works" = yes; then
10584 break
10585 else
10586 lt_cv_sys_global_symbol_pipe=
10587 fi
10588done
10589
10590fi
10591
10592if test -z "$lt_cv_sys_global_symbol_pipe"; then
10593 lt_cv_sys_global_symbol_to_cdecl=
10594fi
10595if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010596 { echo "$as_me:$LINENO: result: failed" >&5
10597echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010599 { echo "$as_me:$LINENO: result: ok" >&5
10600echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010601fi
10602
10603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010604{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10605echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10606if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608else
10609 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10610 libltdl_cv_preloaded_symbols=yes
10611 else
10612 libltdl_cv_preloaded_symbols=no
10613 fi
10614
10615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010616{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10617echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010618if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010620cat >>confdefs.h <<\_ACEOF
10621#define HAVE_PRELOADED_SYMBOLS 1
10622_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623
10624fi
10625
10626LIBADD_DL=
10627
10628ac_ext=c
10629ac_cpp='$CPP $CPPFLAGS'
10630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632ac_compiler_gnu=$ac_cv_c_compiler_gnu
10633
10634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010635{ echo "$as_me:$LINENO: checking for shl_load" >&5
10636echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10637if test "${ac_cv_func_shl_load+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639else
10640 cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h. */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h. */
10646/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10648#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010650/* System header to define __stub macros and hopefully few prototypes,
10651 which can conflict with char shl_load (); below.
10652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10653 <limits.h> exists even on freestanding compilers. */
10654
10655#ifdef __STDC__
10656# include <limits.h>
10657#else
10658# include <assert.h>
10659#endif
10660
10661#undef shl_load
10662
10663/* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666#ifdef __cplusplus
10667extern "C"
10668#endif
10669char shl_load ();
10670/* The GNU C library defines this for functions which it implements
10671 to always fail with ENOSYS. Some functions are actually named
10672 something starting with __ and the normal name is an alias. */
10673#if defined __stub_shl_load || defined __stub___shl_load
10674choke me
10675#endif
10676
10677int
10678main ()
10679{
10680return shl_load ();
10681 ;
10682 return 0;
10683}
10684_ACEOF
10685rm -f conftest.$ac_objext conftest$ac_exeext
10686if { (ac_try="$ac_link"
10687case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690esac
10691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_link") 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703esac
10704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_func_shl_load=yes
10720else
10721 echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_cv_func_shl_load=no
10725fi
10726
10727rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729fi
10730{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10731echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10732if test $ac_cv_func_shl_load = yes; then
10733
10734cat >>confdefs.h <<\_ACEOF
10735#define HAVE_SHL_LOAD 1
10736_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737
10738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010739 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10740echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10741if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010743else
10744 ac_check_lib_save_LIBS=$LIBS
10745LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746cat >conftest.$ac_ext <<_ACEOF
10747/* confdefs.h. */
10748_ACEOF
10749cat confdefs.h >>conftest.$ac_ext
10750cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751/* end confdefs.h. */
10752
Reid Spencera773bd52006-08-04 18:18:08 +000010753/* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756#ifdef __cplusplus
10757extern "C"
10758#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759char shl_load ();
10760int
10761main ()
10762{
Reid Spencera773bd52006-08-04 18:18:08 +000010763return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764 ;
10765 return 0;
10766}
10767_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768rm -f conftest.$ac_objext conftest$ac_exeext
10769if { (ac_try="$ac_link"
10770case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10773esac
10774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_link") 2>conftest.er1
10776 ac_status=$?
10777 grep -v '^ *+' conftest.er1 >conftest.err
10778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10783 { (case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
10787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_try") 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; } &&
10792 { ac_try='test -s conftest$ac_exeext'
10793 { (case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796esac
10797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_try") 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802 ac_cv_lib_dld_shl_load=yes
10803else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010804 echo "$as_me: failed program was:" >&5
10805sed 's/^/| /' conftest.$ac_ext >&5
10806
10807 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010809
Bill Wendlingebcceee2009-04-18 11:20:33 +000010810rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010811 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010812LIBS=$ac_check_lib_save_LIBS
10813fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010814{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10815echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10816if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010818cat >>confdefs.h <<\_ACEOF
10819#define HAVE_SHL_LOAD 1
10820_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821
10822 LIBADD_DL="$LIBADD_DL -ldld"
10823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010824 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10825echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10826if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828else
10829 ac_check_lib_save_LIBS=$LIBS
10830LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836/* end confdefs.h. */
10837
Reid Spencera773bd52006-08-04 18:18:08 +000010838/* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841#ifdef __cplusplus
10842extern "C"
10843#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010844char dlopen ();
10845int
10846main ()
10847{
Reid Spencera773bd52006-08-04 18:18:08 +000010848return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849 ;
10850 return 0;
10851}
10852_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010853rm -f conftest.$ac_objext conftest$ac_exeext
10854if { (ac_try="$ac_link"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_link") 2>conftest.er1
10861 ac_status=$?
10862 grep -v '^ *+' conftest.er1 >conftest.err
10863 rm -f conftest.er1
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest$ac_exeext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887 ac_cv_lib_dl_dlopen=yes
10888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010894
Bill Wendlingebcceee2009-04-18 11:20:33 +000010895rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010896 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897LIBS=$ac_check_lib_save_LIBS
10898fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010899{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10900echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10901if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010903cat >>confdefs.h <<\_ACEOF
10904#define HAVE_LIBDL 1
10905_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010906
10907 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10908else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010909 cat >conftest.$ac_ext <<_ACEOF
10910/* confdefs.h. */
10911_ACEOF
10912cat confdefs.h >>conftest.$ac_ext
10913cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914/* end confdefs.h. */
10915#if HAVE_DLFCN_H
10916# include <dlfcn.h>
10917#endif
10918
10919int
10920main ()
10921{
10922dlopen(0, 0);
10923 ;
10924 return 0;
10925}
10926_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010927rm -f conftest.$ac_objext conftest$ac_exeext
10928if { (ac_try="$ac_link"
10929case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932esac
10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945esac
10946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest$ac_exeext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955esac
10956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010962cat >>confdefs.h <<\_ACEOF
10963#define HAVE_LIBDL 1
10964_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965 libltdl_cv_func_dlopen="yes"
10966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010967 echo "$as_me: failed program was:" >&5
10968sed 's/^/| /' conftest.$ac_ext >&5
10969
10970 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10971echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10972if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974else
10975 ac_check_lib_save_LIBS=$LIBS
10976LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010977cat >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
Reid Spencera773bd52006-08-04 18:18:08 +000010984/* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987#ifdef __cplusplus
10988extern "C"
10989#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990char dlopen ();
10991int
10992main ()
10993{
Reid Spencera773bd52006-08-04 18:18:08 +000010994return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995 ;
10996 return 0;
10997}
10998_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010999rm -f conftest.$ac_objext conftest$ac_exeext
11000if { (ac_try="$ac_link"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033 ac_cv_lib_svld_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 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011040
Bill Wendlingebcceee2009-04-18 11:20:33 +000011041rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011042 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043LIBS=$ac_check_lib_save_LIBS
11044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011045{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11046echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11047if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011049cat >>confdefs.h <<\_ACEOF
11050#define HAVE_LIBDL 1
11051_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052
11053 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011055 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11056echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11057if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059else
11060 ac_check_lib_save_LIBS=$LIBS
11061LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011062cat >conftest.$ac_ext <<_ACEOF
11063/* confdefs.h. */
11064_ACEOF
11065cat confdefs.h >>conftest.$ac_ext
11066cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011067/* end confdefs.h. */
11068
Reid Spencera773bd52006-08-04 18:18:08 +000011069/* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072#ifdef __cplusplus
11073extern "C"
11074#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011075char dld_link ();
11076int
11077main ()
11078{
Reid Spencera773bd52006-08-04 18:18:08 +000011079return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080 ;
11081 return 0;
11082}
11083_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011084rm -f conftest.$ac_objext conftest$ac_exeext
11085if { (ac_try="$ac_link"
11086case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_link") 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099 { (case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102esac
11103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_try") 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; } &&
11108 { ac_try='test -s conftest$ac_exeext'
11109 { (case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112esac
11113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_try") 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118 ac_cv_lib_dld_dld_link=yes
11119else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011120 echo "$as_me: failed program was:" >&5
11121sed 's/^/| /' conftest.$ac_ext >&5
11122
11123 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011125
Bill Wendlingebcceee2009-04-18 11:20:33 +000011126rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011127 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128LIBS=$ac_check_lib_save_LIBS
11129fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011130{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11131echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11132if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011134cat >>confdefs.h <<\_ACEOF
11135#define HAVE_DLD 1
11136_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137
11138 LIBADD_DL="$LIBADD_DL -ldld"
11139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011140 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11141echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11142if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144else
11145 cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
11150/* end confdefs.h. */
11151/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11153#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011155/* System header to define __stub macros and hopefully few prototypes,
11156 which can conflict with char _dyld_func_lookup (); below.
11157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11158 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011160#ifdef __STDC__
11161# include <limits.h>
11162#else
11163# include <assert.h>
11164#endif
11165
11166#undef _dyld_func_lookup
11167
11168/* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11171#ifdef __cplusplus
11172extern "C"
11173#endif
11174char _dyld_func_lookup ();
11175/* The GNU C library defines this for functions which it implements
11176 to always fail with ENOSYS. Some functions are actually named
11177 something starting with __ and the normal name is an alias. */
11178#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11179choke me
11180#endif
11181
11182int
11183main ()
11184{
11185return _dyld_func_lookup ();
11186 ;
11187 return 0;
11188}
11189_ACEOF
11190rm -f conftest.$ac_objext conftest$ac_exeext
11191if { (ac_try="$ac_link"
11192case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_link") 2>conftest.er1
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } &&
11204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11205 { (case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11208esac
11209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_try") 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; } &&
11214 { ac_try='test -s conftest$ac_exeext'
11215 { (case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_try") 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_func__dyld_func_lookup=yes
11225else
11226 echo "$as_me: failed program was:" >&5
11227sed 's/^/| /' conftest.$ac_ext >&5
11228
11229 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230fi
Reid Spencera773bd52006-08-04 18:18:08 +000011231
Bill Wendlingebcceee2009-04-18 11:20:33 +000011232rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011233 conftest$ac_exeext conftest.$ac_ext
11234fi
11235{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11236echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11237if test $ac_cv_func__dyld_func_lookup = yes; then
11238
11239cat >>confdefs.h <<\_ACEOF
11240#define HAVE_DYLD 1
11241_ACEOF
11242
11243fi
11244
11245
11246fi
11247
11248
11249fi
11250
11251
11252fi
11253
11254rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256
11257fi
11258
11259
11260fi
11261
11262
11263fi
11264
11265
11266if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11267then
11268 lt_save_LIBS="$LIBS"
11269 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011270
11271for ac_func in dlerror
11272do
11273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11274{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11276if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278else
11279 cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
11285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11287#define $ac_func innocuous_$ac_func
11288
11289/* System header to define __stub macros and hopefully few prototypes,
11290 which can conflict with char $ac_func (); below.
11291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11292 <limits.h> exists even on freestanding compilers. */
11293
11294#ifdef __STDC__
11295# include <limits.h>
11296#else
11297# include <assert.h>
11298#endif
11299
11300#undef $ac_func
11301
11302/* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11305#ifdef __cplusplus
11306extern "C"
11307#endif
11308char $ac_func ();
11309/* The GNU C library defines this for functions which it implements
11310 to always fail with ENOSYS. Some functions are actually named
11311 something starting with __ and the normal name is an alias. */
11312#if defined __stub_$ac_func || defined __stub___$ac_func
11313choke me
11314#endif
11315
11316int
11317main ()
11318{
11319return $ac_func ();
11320 ;
11321 return 0;
11322}
11323_ACEOF
11324rm -f conftest.$ac_objext conftest$ac_exeext
11325if { (ac_try="$ac_link"
11326case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_link") 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339 { (case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342esac
11343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_try") 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest$ac_exeext'
11349 { (case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_try") 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 eval "$as_ac_var=yes"
11359else
11360 echo "$as_me: failed program was:" >&5
11361sed 's/^/| /' conftest.$ac_ext >&5
11362
11363 eval "$as_ac_var=no"
11364fi
11365
11366rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368fi
11369ac_res=`eval echo '${'$as_ac_var'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371echo "${ECHO_T}$ac_res" >&6; }
11372if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375_ACEOF
11376
11377fi
11378done
11379
11380 LIBS="$lt_save_LIBS"
11381fi
11382ac_ext=c
11383ac_cpp='$CPP $CPPFLAGS'
11384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11386ac_compiler_gnu=$ac_cv_c_compiler_gnu
11387
11388
11389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011390{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11391echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11392if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394else
11395 ac_cv_sys_symbol_underscore=no
11396 cat > conftest.$ac_ext <<EOF
11397void nm_test_func(){}
11398int main(){nm_test_func;return 0;}
11399EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011401 (eval $ac_compile) 2>&5
11402 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011405 # Now try to grab the symbols.
11406 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011407 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 +000011408 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11409 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412 # See whether the symbols have a leading underscore.
11413 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11414 ac_cv_sys_symbol_underscore=yes
11415 else
11416 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11417 :
11418 else
11419 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11420 fi
11421 fi
11422 else
11423 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11424 fi
11425 else
11426 echo "configure: failed program was:" >&5
11427 cat conftest.c >&5
11428 fi
11429 rm -rf conftest*
11430
11431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011432{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11433echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011434
11435
11436if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11437 if test x"$libltdl_cv_func_dlopen" = xyes ||
11438 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011439 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11440echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11441if test "${libltdl_cv_need_uscore+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011443else
11444 libltdl_cv_need_uscore=unknown
11445 save_LIBS="$LIBS"
11446 LIBS="$LIBS $LIBADD_DL"
11447 if test "$cross_compiling" = yes; then :
11448 libltdl_cv_need_uscore=cross
11449else
11450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11451 lt_status=$lt_dlunknown
11452 cat > conftest.$ac_ext <<EOF
Eric Christopher14074e82010-10-12 02:42:05 +000011453#line 11453 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454#include "confdefs.h"
11455
11456#if HAVE_DLFCN_H
11457#include <dlfcn.h>
11458#endif
11459
11460#include <stdio.h>
11461
11462#ifdef RTLD_GLOBAL
11463# define LT_DLGLOBAL RTLD_GLOBAL
11464#else
11465# ifdef DL_GLOBAL
11466# define LT_DLGLOBAL DL_GLOBAL
11467# else
11468# define LT_DLGLOBAL 0
11469# endif
11470#endif
11471
11472/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11473 find out it does not work in some platform. */
11474#ifndef LT_DLLAZY_OR_NOW
11475# ifdef RTLD_LAZY
11476# define LT_DLLAZY_OR_NOW RTLD_LAZY
11477# else
11478# ifdef DL_LAZY
11479# define LT_DLLAZY_OR_NOW DL_LAZY
11480# else
11481# ifdef RTLD_NOW
11482# define LT_DLLAZY_OR_NOW RTLD_NOW
11483# else
11484# ifdef DL_NOW
11485# define LT_DLLAZY_OR_NOW DL_NOW
11486# else
11487# define LT_DLLAZY_OR_NOW 0
11488# endif
11489# endif
11490# endif
11491# endif
11492#endif
11493
11494#ifdef __cplusplus
11495extern "C" void exit (int);
11496#endif
11497
11498void fnord() { int i=42;}
11499int main ()
11500{
11501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11502 int status = $lt_dlunknown;
11503
11504 if (self)
11505 {
11506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11507 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11508 /* dlclose (self); */
11509 }
Reid Spencera773bd52006-08-04 18:18:08 +000011510 else
11511 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512
11513 exit (status);
11514}
11515EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517 (eval $ac_link) 2>&5
11518 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011521 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522 lt_status=$?
11523 case x$lt_status in
11524 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11525 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011526 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527 esac
11528 else :
11529 # compilation failed
11530
11531 fi
11532fi
11533rm -fr conftest*
11534
11535 LIBS="$save_LIBS"
11536
11537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011538{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11539echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011540 fi
11541fi
11542
11543if test x"$libltdl_cv_need_uscore" = xyes; then
11544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011545cat >>confdefs.h <<\_ACEOF
11546#define NEED_USCORE 1
11547_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011548
11549fi
11550
11551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011552{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11553echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11554if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556else
11557 # PORTME does your system automatically load deplibs for dlopen?
11558 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11559 # For now, we just catch OSes we know something about -- in the
11560 # future, we'll try test this programmatically.
11561 libltdl_cv_sys_dlopen_deplibs=unknown
11562 case "$host_os" in
11563 aix3*|aix4.1.*|aix4.2.*)
11564 # Unknown whether this is true for these versions of AIX, but
11565 # we want this `case' here to explicitly catch those versions.
11566 libltdl_cv_sys_dlopen_deplibs=unknown
11567 ;;
11568 aix[45]*)
11569 libltdl_cv_sys_dlopen_deplibs=yes
11570 ;;
11571 darwin*)
11572 # Assuming the user has installed a libdl from somewhere, this is true
11573 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11574 libltdl_cv_sys_dlopen_deplibs=yes
11575 ;;
11576 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11577 # GNU and its variants, using gnu ld.so (Glibc)
11578 libltdl_cv_sys_dlopen_deplibs=yes
11579 ;;
11580 hpux10*|hpux11*)
11581 libltdl_cv_sys_dlopen_deplibs=yes
11582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011583 interix*)
11584 libltdl_cv_sys_dlopen_deplibs=yes
11585 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011586 irix[12345]*|irix6.[01]*)
11587 # Catch all versions of IRIX before 6.2, and indicate that we don't
11588 # know how it worked for any of those versions.
11589 libltdl_cv_sys_dlopen_deplibs=unknown
11590 ;;
11591 irix*)
11592 # The case above catches anything before 6.2, and it's known that
11593 # at 6.2 and later dlopen does load deplibs.
11594 libltdl_cv_sys_dlopen_deplibs=yes
11595 ;;
11596 netbsd*)
11597 libltdl_cv_sys_dlopen_deplibs=yes
11598 ;;
11599 openbsd*)
11600 libltdl_cv_sys_dlopen_deplibs=yes
11601 ;;
11602 osf[1234]*)
11603 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11604 # it did *not* use an RPATH in a shared library to find objects the
11605 # library depends on, so we explictly say `no'.
11606 libltdl_cv_sys_dlopen_deplibs=no
11607 ;;
11608 osf5.0|osf5.0a|osf5.1)
11609 # dlopen *does* load deplibs and with the right loader patch applied
11610 # it even uses RPATH in a shared library to search for shared objects
11611 # that the library depends on, but there's no easy way to know if that
11612 # patch is installed. Since this is the case, all we can really
11613 # say is unknown -- it depends on the patch being installed. If
11614 # it is, this changes to `yes'. Without it, it would be `no'.
11615 libltdl_cv_sys_dlopen_deplibs=unknown
11616 ;;
11617 osf*)
11618 # the two cases above should catch all versions of osf <= 5.1. Read
11619 # the comments above for what we know about them.
11620 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11621 # is used to find them so we can finally say `yes'.
11622 libltdl_cv_sys_dlopen_deplibs=yes
11623 ;;
11624 solaris*)
11625 libltdl_cv_sys_dlopen_deplibs=yes
11626 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11628 libltdl_cv_sys_dlopen_deplibs=yes
11629 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011630 esac
11631
11632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011633{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11634echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011637cat >>confdefs.h <<\_ACEOF
11638#define LTDL_DLOPEN_DEPLIBS 1
11639_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640
11641fi
11642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011643
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011645do
11646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652fi
11653ac_res=`eval echo '${'$as_ac_Header'}'`
11654 { echo "$as_me:$LINENO: result: $ac_res" >&5
11655echo "${ECHO_T}$ac_res" >&6; }
11656else
11657 # Is the header compilable?
11658{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11660cat >conftest.$ac_ext <<_ACEOF
11661/* confdefs.h. */
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
11666$ac_includes_default
11667#include <$ac_header>
11668_ACEOF
11669rm -f conftest.$ac_objext
11670if { (ac_try="$ac_compile"
11671case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_compile") 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11684 { (case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687esac
11688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_try") 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; } &&
11693 { ac_try='test -s conftest.$ac_objext'
11694 { (case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11697esac
11698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_try") 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_header_compiler=yes
11704else
11705 echo "$as_me: failed program was:" >&5
11706sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_header_compiler=no
11709fi
11710
11711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713echo "${ECHO_T}$ac_header_compiler" >&6; }
11714
11715# Is the header present?
11716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11718cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724#include <$ac_header>
11725_ACEOF
11726if { (ac_try="$ac_cpp conftest.$ac_ext"
11727case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730esac
11731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } >/dev/null; then
11739 if test -s conftest.err; then
11740 ac_cpp_err=$ac_c_preproc_warn_flag
11741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11742 else
11743 ac_cpp_err=
11744 fi
11745else
11746 ac_cpp_err=yes
11747fi
11748if test -z "$ac_cpp_err"; then
11749 ac_header_preproc=yes
11750else
11751 echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 ac_header_preproc=no
11755fi
11756
11757rm -f conftest.err conftest.$ac_ext
11758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11759echo "${ECHO_T}$ac_header_preproc" >&6; }
11760
11761# So? What about this header?
11762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11763 yes:no: )
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11768 ac_header_preproc=yes
11769 ;;
11770 no:yes:* )
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11783 ( cat <<\_ASBOX
11784## ----------------------------------- ##
11785## Report this to llvmbugs@cs.uiuc.edu ##
11786## ----------------------------------- ##
11787_ASBOX
11788 ) | sed "s/^/$as_me: WARNING: /" >&2
11789 ;;
11790esac
11791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 eval "$as_ac_Header=\$ac_header_preproc"
11797fi
11798ac_res=`eval echo '${'$as_ac_Header'}'`
11799 { echo "$as_me:$LINENO: result: $ac_res" >&5
11800echo "${ECHO_T}$ac_res" >&6; }
11801
11802fi
11803if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806_ACEOF
11807
11808fi
11809
11810done
11811
11812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011813{ echo "$as_me:$LINENO: checking for error_t" >&5
11814echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11815if test "${ac_cv_type_error_t+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817else
11818 cat >conftest.$ac_ext <<_ACEOF
11819/* confdefs.h. */
11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h. */
11824#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011825# include <argz.h>
11826#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011827
11828typedef error_t ac__type_new_;
11829int
11830main ()
11831{
11832if ((ac__type_new_ *) 0)
11833 return 0;
11834if (sizeof (ac__type_new_))
11835 return 0;
11836 ;
11837 return 0;
11838}
11839_ACEOF
11840rm -f conftest.$ac_objext
11841if { (ac_try="$ac_compile"
11842case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845esac
11846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
11854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11855 { (case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11858esac
11859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_try") 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest.$ac_objext'
11865 { (case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868esac
11869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_try") 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_cv_type_error_t=yes
11875else
11876 echo "$as_me: failed program was:" >&5
11877sed 's/^/| /' conftest.$ac_ext >&5
11878
11879 ac_cv_type_error_t=no
11880fi
11881
11882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883fi
11884{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11885echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11886if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887
11888cat >>confdefs.h <<_ACEOF
11889#define HAVE_ERROR_T 1
11890_ACEOF
11891
11892
11893else
11894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011895cat >>confdefs.h <<\_ACEOF
11896#define error_t int
11897_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898
11899fi
11900
11901
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011902
11903
11904
11905
11906
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011908do
11909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11910{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11912if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914else
11915 cat >conftest.$ac_ext <<_ACEOF
11916/* confdefs.h. */
11917_ACEOF
11918cat confdefs.h >>conftest.$ac_ext
11919cat >>conftest.$ac_ext <<_ACEOF
11920/* end confdefs.h. */
11921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11923#define $ac_func innocuous_$ac_func
11924
11925/* System header to define __stub macros and hopefully few prototypes,
11926 which can conflict with char $ac_func (); below.
11927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928 <limits.h> exists even on freestanding compilers. */
11929
11930#ifdef __STDC__
11931# include <limits.h>
11932#else
11933# include <assert.h>
11934#endif
11935
11936#undef $ac_func
11937
11938/* Override any GCC internal prototype to avoid an error.
11939 Use char because int might match the return type of a GCC
11940 builtin and then its argument prototype would still apply. */
11941#ifdef __cplusplus
11942extern "C"
11943#endif
11944char $ac_func ();
11945/* The GNU C library defines this for functions which it implements
11946 to always fail with ENOSYS. Some functions are actually named
11947 something starting with __ and the normal name is an alias. */
11948#if defined __stub_$ac_func || defined __stub___$ac_func
11949choke me
11950#endif
11951
11952int
11953main ()
11954{
11955return $ac_func ();
11956 ;
11957 return 0;
11958}
11959_ACEOF
11960rm -f conftest.$ac_objext conftest$ac_exeext
11961if { (ac_try="$ac_link"
11962case "(($ac_try" in
11963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11965esac
11966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975 { (case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978esac
11979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_try") 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988esac
11989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_try") 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11994 eval "$as_ac_var=yes"
11995else
11996 echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 eval "$as_ac_var=no"
12000fi
12001
12002rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004fi
12005ac_res=`eval echo '${'$as_ac_var'}'`
12006 { echo "$as_me:$LINENO: result: $ac_res" >&5
12007echo "${ECHO_T}$ac_res" >&6; }
12008if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011_ACEOF
12012
12013fi
12014done
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012035
12036
12037
12038
12039
12040
12041
12042
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12044 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012045do
12046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052fi
12053ac_res=`eval echo '${'$as_ac_Header'}'`
12054 { echo "$as_me:$LINENO: result: $ac_res" >&5
12055echo "${ECHO_T}$ac_res" >&6; }
12056else
12057 # Is the header compilable?
12058{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12060cat >conftest.$ac_ext <<_ACEOF
12061/* confdefs.h. */
12062_ACEOF
12063cat confdefs.h >>conftest.$ac_ext
12064cat >>conftest.$ac_ext <<_ACEOF
12065/* end confdefs.h. */
12066$ac_includes_default
12067#include <$ac_header>
12068_ACEOF
12069rm -f conftest.$ac_objext
12070if { (ac_try="$ac_compile"
12071case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_compile") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12087esac
12088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest.$ac_objext'
12094 { (case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097esac
12098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_try") 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_header_compiler=yes
12104else
12105 echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 ac_header_compiler=no
12109fi
12110
12111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12113echo "${ECHO_T}$ac_header_compiler" >&6; }
12114
12115# Is the header present?
12116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12118cat >conftest.$ac_ext <<_ACEOF
12119/* confdefs.h. */
12120_ACEOF
12121cat confdefs.h >>conftest.$ac_ext
12122cat >>conftest.$ac_ext <<_ACEOF
12123/* end confdefs.h. */
12124#include <$ac_header>
12125_ACEOF
12126if { (ac_try="$ac_cpp conftest.$ac_ext"
12127case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } >/dev/null; then
12139 if test -s conftest.err; then
12140 ac_cpp_err=$ac_c_preproc_warn_flag
12141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12142 else
12143 ac_cpp_err=
12144 fi
12145else
12146 ac_cpp_err=yes
12147fi
12148if test -z "$ac_cpp_err"; then
12149 ac_header_preproc=yes
12150else
12151 echo "$as_me: failed program was:" >&5
12152sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 ac_header_preproc=no
12155fi
12156
12157rm -f conftest.err conftest.$ac_ext
12158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12159echo "${ECHO_T}$ac_header_preproc" >&6; }
12160
12161# So? What about this header?
12162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12163 yes:no: )
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12168 ac_header_preproc=yes
12169 ;;
12170 no:yes:* )
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12183 ( cat <<\_ASBOX
12184## ----------------------------------- ##
12185## Report this to llvmbugs@cs.uiuc.edu ##
12186## ----------------------------------- ##
12187_ASBOX
12188 ) | sed "s/^/$as_me: WARNING: /" >&2
12189 ;;
12190esac
12191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 eval "$as_ac_Header=\$ac_header_preproc"
12197fi
12198ac_res=`eval echo '${'$as_ac_Header'}'`
12199 { echo "$as_me:$LINENO: result: $ac_res" >&5
12200echo "${ECHO_T}$ac_res" >&6; }
12201
12202fi
12203if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206_ACEOF
12207
12208fi
12209
12210done
12211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012212
12213
12214
12215
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012216for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012217do
12218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224fi
12225ac_res=`eval echo '${'$as_ac_Header'}'`
12226 { echo "$as_me:$LINENO: result: $ac_res" >&5
12227echo "${ECHO_T}$ac_res" >&6; }
12228else
12229 # Is the header compilable?
12230{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12232cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */
12238$ac_includes_default
12239#include <$ac_header>
12240_ACEOF
12241rm -f conftest.$ac_objext
12242if { (ac_try="$ac_compile"
12243case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246esac
12247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_compile") 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259esac
12260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest.$ac_objext'
12266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269esac
12270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_header_compiler=yes
12276else
12277 echo "$as_me: failed program was:" >&5
12278sed 's/^/| /' conftest.$ac_ext >&5
12279
12280 ac_header_compiler=no
12281fi
12282
12283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12285echo "${ECHO_T}$ac_header_compiler" >&6; }
12286
12287# Is the header present?
12288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12290cat >conftest.$ac_ext <<_ACEOF
12291/* confdefs.h. */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h. */
12296#include <$ac_header>
12297_ACEOF
12298if { (ac_try="$ac_cpp conftest.$ac_ext"
12299case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12305 ac_status=$?
12306 grep -v '^ *+' conftest.er1 >conftest.err
12307 rm -f conftest.er1
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } >/dev/null; then
12311 if test -s conftest.err; then
12312 ac_cpp_err=$ac_c_preproc_warn_flag
12313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12314 else
12315 ac_cpp_err=
12316 fi
12317else
12318 ac_cpp_err=yes
12319fi
12320if test -z "$ac_cpp_err"; then
12321 ac_header_preproc=yes
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 ac_header_preproc=no
12327fi
12328
12329rm -f conftest.err conftest.$ac_ext
12330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12331echo "${ECHO_T}$ac_header_preproc" >&6; }
12332
12333# So? What about this header?
12334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12335 yes:no: )
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12340 ac_header_preproc=yes
12341 ;;
12342 no:yes:* )
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12355 ( cat <<\_ASBOX
12356## ----------------------------------- ##
12357## Report this to llvmbugs@cs.uiuc.edu ##
12358## ----------------------------------- ##
12359_ASBOX
12360 ) | sed "s/^/$as_me: WARNING: /" >&2
12361 ;;
12362esac
12363{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367else
12368 eval "$as_ac_Header=\$ac_header_preproc"
12369fi
12370ac_res=`eval echo '${'$as_ac_Header'}'`
12371 { echo "$as_me:$LINENO: result: $ac_res" >&5
12372echo "${ECHO_T}$ac_res" >&6; }
12373
12374fi
12375if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012376 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012378_ACEOF
12379
12380fi
12381
12382done
12383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012384
12385
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012386for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012387do
12388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394fi
12395ac_res=`eval echo '${'$as_ac_Header'}'`
12396 { echo "$as_me:$LINENO: result: $ac_res" >&5
12397echo "${ECHO_T}$ac_res" >&6; }
12398else
12399 # Is the header compilable?
12400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12402cat >conftest.$ac_ext <<_ACEOF
12403/* confdefs.h. */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h. */
12408$ac_includes_default
12409#include <$ac_header>
12410_ACEOF
12411rm -f conftest.$ac_objext
12412if { (ac_try="$ac_compile"
12413case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416esac
12417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_compile") 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429esac
12430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest.$ac_objext'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_header_compiler=yes
12446else
12447 echo "$as_me: failed program was:" >&5
12448sed 's/^/| /' conftest.$ac_ext >&5
12449
12450 ac_header_compiler=no
12451fi
12452
12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455echo "${ECHO_T}$ac_header_compiler" >&6; }
12456
12457# Is the header present?
12458{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12460cat >conftest.$ac_ext <<_ACEOF
12461/* confdefs.h. */
12462_ACEOF
12463cat confdefs.h >>conftest.$ac_ext
12464cat >>conftest.$ac_ext <<_ACEOF
12465/* end confdefs.h. */
12466#include <$ac_header>
12467_ACEOF
12468if { (ac_try="$ac_cpp conftest.$ac_ext"
12469case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12472esac
12473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } >/dev/null; then
12481 if test -s conftest.err; then
12482 ac_cpp_err=$ac_c_preproc_warn_flag
12483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12484 else
12485 ac_cpp_err=
12486 fi
12487else
12488 ac_cpp_err=yes
12489fi
12490if test -z "$ac_cpp_err"; then
12491 ac_header_preproc=yes
12492else
12493 echo "$as_me: failed program was:" >&5
12494sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 ac_header_preproc=no
12497fi
12498
12499rm -f conftest.err conftest.$ac_ext
12500{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12501echo "${ECHO_T}$ac_header_preproc" >&6; }
12502
12503# So? What about this header?
12504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12505 yes:no: )
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12510 ac_header_preproc=yes
12511 ;;
12512 no:yes:* )
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12525 ( cat <<\_ASBOX
12526## ----------------------------------- ##
12527## Report this to llvmbugs@cs.uiuc.edu ##
12528## ----------------------------------- ##
12529_ASBOX
12530 ) | sed "s/^/$as_me: WARNING: /" >&2
12531 ;;
12532esac
12533{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12537else
12538 eval "$as_ac_Header=\$ac_header_preproc"
12539fi
12540ac_res=`eval echo '${'$as_ac_Header'}'`
12541 { echo "$as_me:$LINENO: result: $ac_res" >&5
12542echo "${ECHO_T}$ac_res" >&6; }
12543
12544fi
12545if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012546 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012548_ACEOF
12549 break
12550fi
12551
12552done
12553
12554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012555
12556
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012557for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012558do
12559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12560{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565 cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12573#define $ac_func innocuous_$ac_func
12574
12575/* System header to define __stub macros and hopefully few prototypes,
12576 which can conflict with char $ac_func (); below.
12577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12578 <limits.h> exists even on freestanding compilers. */
12579
12580#ifdef __STDC__
12581# include <limits.h>
12582#else
12583# include <assert.h>
12584#endif
12585
12586#undef $ac_func
12587
12588/* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12591#ifdef __cplusplus
12592extern "C"
12593#endif
12594char $ac_func ();
12595/* The GNU C library defines this for functions which it implements
12596 to always fail with ENOSYS. Some functions are actually named
12597 something starting with __ and the normal name is an alias. */
12598#if defined __stub_$ac_func || defined __stub___$ac_func
12599choke me
12600#endif
12601
12602int
12603main ()
12604{
12605return $ac_func ();
12606 ;
12607 return 0;
12608}
12609_ACEOF
12610rm -f conftest.$ac_objext conftest$ac_exeext
12611if { (ac_try="$ac_link"
12612case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12625 { (case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628esac
12629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_try") 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638esac
12639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 eval "$as_ac_var=yes"
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 eval "$as_ac_var=no"
12650fi
12651
12652rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654fi
12655ac_res=`eval echo '${'$as_ac_var'}'`
12656 { echo "$as_me:$LINENO: result: $ac_res" >&5
12657echo "${ECHO_T}$ac_res" >&6; }
12658if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012659 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661_ACEOF
12662 break
12663fi
12664done
12665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666
12667
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012668for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012669do
12670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675else
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12684#define $ac_func innocuous_$ac_func
12685
12686/* System header to define __stub macros and hopefully few prototypes,
12687 which can conflict with char $ac_func (); below.
12688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12689 <limits.h> exists even on freestanding compilers. */
12690
12691#ifdef __STDC__
12692# include <limits.h>
12693#else
12694# include <assert.h>
12695#endif
12696
12697#undef $ac_func
12698
12699/* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702#ifdef __cplusplus
12703extern "C"
12704#endif
12705char $ac_func ();
12706/* The GNU C library defines this for functions which it implements
12707 to always fail with ENOSYS. Some functions are actually named
12708 something starting with __ and the normal name is an alias. */
12709#if defined __stub_$ac_func || defined __stub___$ac_func
12710choke me
12711#endif
12712
12713int
12714main ()
12715{
12716return $ac_func ();
12717 ;
12718 return 0;
12719}
12720_ACEOF
12721rm -f conftest.$ac_objext conftest$ac_exeext
12722if { (ac_try="$ac_link"
12723case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 eval "$as_ac_var=yes"
12756else
12757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 eval "$as_ac_var=no"
12761fi
12762
12763rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765fi
12766ac_res=`eval echo '${'$as_ac_var'}'`
12767 { echo "$as_me:$LINENO: result: $ac_res" >&5
12768echo "${ECHO_T}$ac_res" >&6; }
12769if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012770 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012772_ACEOF
12773 break
12774fi
12775done
12776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012777
12778
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012780do
12781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795#define $ac_func innocuous_$ac_func
12796
12797/* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char $ac_func (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12801
12802#ifdef __STDC__
12803# include <limits.h>
12804#else
12805# include <assert.h>
12806#endif
12807
12808#undef $ac_func
12809
12810/* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813#ifdef __cplusplus
12814extern "C"
12815#endif
12816char $ac_func ();
12817/* The GNU C library defines this for functions which it implements
12818 to always fail with ENOSYS. Some functions are actually named
12819 something starting with __ and the normal name is an alias. */
12820#if defined __stub_$ac_func || defined __stub___$ac_func
12821choke me
12822#endif
12823
12824int
12825main ()
12826{
12827return $ac_func ();
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest$ac_exeext
12833if { (ac_try="$ac_link"
12834case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837esac
12838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12840 ac_status=$?
12841 grep -v '^ *+' conftest.er1 >conftest.err
12842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850esac
12851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_var=yes"
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 eval "$as_ac_var=no"
12872fi
12873
12874rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876fi
12877ac_res=`eval echo '${'$as_ac_var'}'`
12878 { echo "$as_me:$LINENO: result: $ac_res" >&5
12879echo "${ECHO_T}$ac_res" >&6; }
12880if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012881 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012883_ACEOF
12884 break
12885fi
12886done
12887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012888
12889
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012890for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012891do
12892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898 cat >conftest.$ac_ext <<_ACEOF
12899/* confdefs.h. */
12900_ACEOF
12901cat confdefs.h >>conftest.$ac_ext
12902cat >>conftest.$ac_ext <<_ACEOF
12903/* end confdefs.h. */
12904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906#define $ac_func innocuous_$ac_func
12907
12908/* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char $ac_func (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12912
12913#ifdef __STDC__
12914# include <limits.h>
12915#else
12916# include <assert.h>
12917#endif
12918
12919#undef $ac_func
12920
12921/* Override any GCC internal prototype to avoid an error.
12922 Use char because int might match the return type of a GCC
12923 builtin and then its argument prototype would still apply. */
12924#ifdef __cplusplus
12925extern "C"
12926#endif
12927char $ac_func ();
12928/* The GNU C library defines this for functions which it implements
12929 to always fail with ENOSYS. Some functions are actually named
12930 something starting with __ and the normal name is an alias. */
12931#if defined __stub_$ac_func || defined __stub___$ac_func
12932choke me
12933#endif
12934
12935int
12936main ()
12937{
12938return $ac_func ();
12939 ;
12940 return 0;
12941}
12942_ACEOF
12943rm -f conftest.$ac_objext conftest$ac_exeext
12944if { (ac_try="$ac_link"
12945case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12948esac
12949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
12972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 eval "$as_ac_var=yes"
12978else
12979 echo "$as_me: failed program was:" >&5
12980sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 eval "$as_ac_var=no"
12983fi
12984
12985rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987fi
12988ac_res=`eval echo '${'$as_ac_var'}'`
12989 { echo "$as_me:$LINENO: result: $ac_res" >&5
12990echo "${ECHO_T}$ac_res" >&6; }
12991if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012992 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012994_ACEOF
12995
12996fi
12997done
12998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999
13000
13001
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013002for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003do
13004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13005{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13007if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009else
13010 cat >conftest.$ac_ext <<_ACEOF
13011/* confdefs.h. */
13012_ACEOF
13013cat confdefs.h >>conftest.$ac_ext
13014cat >>conftest.$ac_ext <<_ACEOF
13015/* end confdefs.h. */
13016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13018#define $ac_func innocuous_$ac_func
13019
13020/* System header to define __stub macros and hopefully few prototypes,
13021 which can conflict with char $ac_func (); below.
13022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13023 <limits.h> exists even on freestanding compilers. */
13024
13025#ifdef __STDC__
13026# include <limits.h>
13027#else
13028# include <assert.h>
13029#endif
13030
13031#undef $ac_func
13032
13033/* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13036#ifdef __cplusplus
13037extern "C"
13038#endif
13039char $ac_func ();
13040/* The GNU C library defines this for functions which it implements
13041 to always fail with ENOSYS. Some functions are actually named
13042 something starting with __ and the normal name is an alias. */
13043#if defined __stub_$ac_func || defined __stub___$ac_func
13044choke me
13045#endif
13046
13047int
13048main ()
13049{
13050return $ac_func ();
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055rm -f conftest.$ac_objext conftest$ac_exeext
13056if { (ac_try="$ac_link"
13057case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060esac
13061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073esac
13074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_try") 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; } &&
13079 { ac_try='test -s conftest$ac_exeext'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 eval "$as_ac_var=yes"
13090else
13091 echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 eval "$as_ac_var=no"
13095fi
13096
13097rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099fi
13100ac_res=`eval echo '${'$as_ac_var'}'`
13101 { echo "$as_me:$LINENO: result: $ac_res" >&5
13102echo "${ECHO_T}$ac_res" >&6; }
13103if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013104 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013106_ACEOF
13107
13108fi
13109done
13110
13111
Douglas Gregor01746742009-05-11 18:05:52 +000013112
Reid Spencer7931a782004-12-27 06:15:02 +000013113if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013114 LLVMGCC="llvm-gcc${EXEEXT}"
13115 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013116 LLVMGCCCOMMAND="$LLVMGCC"
13117 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013118 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13119
13120 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13121
Reid Spencerc84492c2005-06-02 22:34:49 +000013122 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13123set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13126if test "${ac_cv_path_LLVMGCC+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013128else
13129 case $LLVMGCC in
13130 [\\/]* | ?:[\\/]*)
13131 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13132 ;;
13133 *)
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $PATH
13136do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 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 +000013141 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013143 break 2
13144 fi
13145done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013146done
Reid Spencera773bd52006-08-04 18:18:08 +000013147IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013148
Reid Spencer59473af2004-12-25 07:31:29 +000013149 ;;
13150esac
13151fi
13152LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013153if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013154 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13155echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013157 { echo "$as_me:$LINENO: result: no" >&5
13158echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013159fi
13160
Reid Spencera773bd52006-08-04 18:18:08 +000013161
Reid Spencerc84492c2005-06-02 22:34:49 +000013162 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13163set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13166if test "${ac_cv_path_LLVMGXX+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013168else
13169 case $LLVMGXX in
13170 [\\/]* | ?:[\\/]*)
13171 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13172 ;;
13173 *)
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175for as_dir in $PATH
13176do
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 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 +000013181 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013183 break 2
13184 fi
13185done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013186done
Reid Spencera773bd52006-08-04 18:18:08 +000013187IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013188
Reid Spencer59473af2004-12-25 07:31:29 +000013189 ;;
13190esac
13191fi
13192LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013193if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13195echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197 { echo "$as_me:$LINENO: result: no" >&5
13198echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013199fi
13200
Reid Spencera773bd52006-08-04 18:18:08 +000013201
Reid Spencer59473af2004-12-25 07:31:29 +000013202else
Devang Patel5d28b882007-12-04 22:54:47 +000013203 if test -z "$LLVMGCC"; then
13204 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013205 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013206 fi
13207 if test -z "$LLVMGXX"; then
13208 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013209 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013210 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013211
Reid Spencer59473af2004-12-25 07:31:29 +000013212 LLVMGCC=$LLVMGCC
13213
13214 LLVMGXX=$LLVMGXX
13215
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013216 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13217
13218 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13219
Reid Spencer59473af2004-12-25 07:31:29 +000013220fi
13221
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013222
Daniel Dunbar98515672010-02-23 10:00:49 +000013223# Check whether --with-llvmcc was given.
13224if test "${with_llvmcc+set}" = set; then
13225 withval=$with_llvmcc;
13226else
13227 with_llvmcc=check
13228fi
13229
13230{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13231echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13232if test "$with_llvmcc" != "check"; then
13233 if (test "$with_llvmcc" != "llvm-gcc" &&
13234 test "$with_llvmcc" != "clang" &&
13235 test "$with_llvmcc" != "none"); then
13236 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13237echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13238 { (exit 1); exit 1; }; }
13239 fi
13240 WITH_LLVMCC="$with_llvmcc"
13241elif test -n "$LLVMGCC"; then
13242 WITH_LLVMCC=llvm-gcc
13243elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13244 WITH_LLVMCC=clang
13245else
13246 WITH_LLVMCC=none
13247fi
13248{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13249echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13250LLVMCC_OPTION=$WITH_LLVMCC
13251
13252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13254echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013255
Reid Spencer86901802004-12-08 23:07:27 +000013256ICC=no
13257IXX=no
13258case $CC in
13259 icc*|icpc*)
13260 ICC=yes
13261 IXX=yes
13262 ;;
13263 *)
13264 ;;
13265esac
13266
Duraid Madina937c60a2006-02-15 07:57:42 +000013267if test "$GCC" != "yes" && test "$ICC" != "yes"
13268then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13270echo "$as_me: error: gcc|icc required but not found" >&2;}
13271 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013272fi
13273
13274if test "$GXX" != "yes" && test "$IXX" != "yes"
13275then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013276 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13277echo "$as_me: error: g++|icc required but not found" >&2;}
13278 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013279fi
13280
Reid Spencer86901802004-12-08 23:07:27 +000013281if test "$GCC" = "yes"
13282then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013283 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013284#if !defined(__GNUC__) || __GNUC__ < 3
13285#error Unsupported GCC version
13286#endif
13287
13288_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013289rm -f conftest.$ac_objext
13290if { (ac_try="$ac_compile"
13291case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13294esac
13295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_compile") 2>conftest.er1
13297 ac_status=$?
13298 grep -v '^ *+' conftest.er1 >conftest.err
13299 rm -f conftest.er1
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13304 { (case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307esac
13308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_try") 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_try") 2>&5
13320 ac_status=$?
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; }; then
13323 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013325 echo "$as_me: failed program was:" >&5
13326sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13329echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13330 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013332
Chris Lattner399c7c72008-02-05 19:43:53 +000013333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013334fi
13335
13336if test -z "$llvm_cv_gnu_make_command"
13337then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013338 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13339echo "$as_me: error: GNU Make required but not found" >&2;}
13340 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013341fi
13342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013343{ echo "$as_me:$LINENO: result: ok" >&5
13344echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013346{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13347echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013348NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13349
13350NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013352{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13353echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013354
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356
13357{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13358echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13359if test "${ac_cv_lib_m_sin+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013361else
13362 ac_check_lib_save_LIBS=$LIBS
13363LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013369/* end confdefs.h. */
13370
Reid Spencera773bd52006-08-04 18:18:08 +000013371/* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013374#ifdef __cplusplus
13375extern "C"
13376#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013377char sin ();
13378int
13379main ()
13380{
Reid Spencera773bd52006-08-04 18:18:08 +000013381return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013382 ;
13383 return 0;
13384}
13385_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013386rm -f conftest.$ac_objext conftest$ac_exeext
13387if { (ac_try="$ac_link"
13388case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_link") 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13401 { (case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404esac
13405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_try") 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013420 ac_cv_lib_m_sin=yes
13421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013422 echo "$as_me: failed program was:" >&5
13423sed 's/^/| /' conftest.$ac_ext >&5
13424
13425 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427
Bill Wendlingebcceee2009-04-18 11:20:33 +000013428rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013429 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013430LIBS=$ac_check_lib_save_LIBS
13431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013432{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13433echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13434if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013435 cat >>confdefs.h <<_ACEOF
13436#define HAVE_LIBM 1
13437_ACEOF
13438
13439 LIBS="-lm $LIBS"
13440
13441fi
13442
Jeff Cohen28783c32007-01-12 18:22:38 +000013443if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013444
13445{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13446echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13447if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013449else
13450 ac_check_lib_save_LIBS=$LIBS
13451LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013452cat >conftest.$ac_ext <<_ACEOF
13453/* confdefs.h. */
13454_ACEOF
13455cat confdefs.h >>conftest.$ac_ext
13456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013457/* end confdefs.h. */
13458
Reid Spencer48fdf912006-06-01 19:03:21 +000013459
Reid Spencer484fc8e2006-06-01 16:55:59 +000013460int
13461main ()
13462{
Reid Spencera773bd52006-08-04 18:18:08 +000013463return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013464 ;
13465 return 0;
13466}
13467_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013468rm -f conftest.$ac_objext conftest$ac_exeext
13469if { (ac_try="$ac_link"
13470case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_link") 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest$ac_exeext'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013502 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013509
Bill Wendlingebcceee2009-04-18 11:20:33 +000013510rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013512LIBS=$ac_check_lib_save_LIBS
13513fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13515echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13516if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013517 cat >>confdefs.h <<_ACEOF
13518#define HAVE_LIBIMAGEHLP 1
13519_ACEOF
13520
13521 LIBS="-limagehlp $LIBS"
13522
13523fi
13524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013525
13526{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13527echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13528if test "${ac_cv_lib_psapi_main+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013530else
13531 ac_check_lib_save_LIBS=$LIBS
13532LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013533cat >conftest.$ac_ext <<_ACEOF
13534/* confdefs.h. */
13535_ACEOF
13536cat confdefs.h >>conftest.$ac_ext
13537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013538/* end confdefs.h. */
13539
Reid Spencer48fdf912006-06-01 19:03:21 +000013540
Reid Spencer484fc8e2006-06-01 16:55:59 +000013541int
13542main ()
13543{
Reid Spencera773bd52006-08-04 18:18:08 +000013544return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013545 ;
13546 return 0;
13547}
13548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013549rm -f conftest.$ac_objext conftest$ac_exeext
13550if { (ac_try="$ac_link"
13551case "(($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_link") 2>conftest.er1
13557 ac_status=$?
13558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13564 { (case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13567esac
13568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569 (eval "$ac_try") 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest$ac_exeext'
13574 { (case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13577esac
13578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_try") 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013583 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013585 echo "$as_me: failed program was:" >&5
13586sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013589fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013590
Bill Wendlingebcceee2009-04-18 11:20:33 +000013591rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013592 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013593LIBS=$ac_check_lib_save_LIBS
13594fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013595{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13596echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13597if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013598 cat >>confdefs.h <<_ACEOF
13599#define HAVE_LIBPSAPI 1
13600_ACEOF
13601
13602 LIBS="-lpsapi $LIBS"
13603
13604fi
13605
13606fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013608{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13609echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13610if test "${ac_cv_search_dlopen+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013612else
13613 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614cat >conftest.$ac_ext <<_ACEOF
13615/* confdefs.h. */
13616_ACEOF
13617cat confdefs.h >>conftest.$ac_ext
13618cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013620
Reid Spencera773bd52006-08-04 18:18:08 +000013621/* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013624#ifdef __cplusplus
13625extern "C"
13626#endif
John Criswell7a73b802003-06-30 21:59:07 +000013627char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013628int
13629main ()
13630{
Reid Spencera773bd52006-08-04 18:18:08 +000013631return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013632 ;
13633 return 0;
13634}
13635_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013636for ac_lib in '' dl; do
13637 if test -z "$ac_lib"; then
13638 ac_res="none required"
13639 else
13640 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013642 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013643 rm -f conftest.$ac_objext conftest$ac_exeext
13644if { (ac_try="$ac_link"
13645case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_link") 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13658 { (case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13661esac
13662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_try") 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest$ac_exeext'
13668 { (case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13671esac
13672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_try") 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013677 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013678else
13679 echo "$as_me: failed program was:" >&5
13680sed 's/^/| /' conftest.$ac_ext >&5
13681
13682
John Criswell7a73b802003-06-30 21:59:07 +000013683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013684
Bill Wendlingebcceee2009-04-18 11:20:33 +000013685rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013686 conftest$ac_exeext
13687 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013688 break
John Criswell7a73b802003-06-30 21:59:07 +000013689fi
Reid Spencera773bd52006-08-04 18:18:08 +000013690done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013691if test "${ac_cv_search_dlopen+set}" = set; then
13692 :
Reid Spencera773bd52006-08-04 18:18:08 +000013693else
13694 ac_cv_search_dlopen=no
13695fi
13696rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013697LIBS=$ac_func_search_save_LIBS
13698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013699{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13700echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013701ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013702if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013705cat >>confdefs.h <<\_ACEOF
13706#define HAVE_DLOPEN 1
13707_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013708
13709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013710 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13711echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013712fi
13713
13714
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013715if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013716 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13717echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13718if test "${ac_cv_search_ffi_call+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013720else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013721 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013722cat >conftest.$ac_ext <<_ACEOF
13723/* confdefs.h. */
13724_ACEOF
13725cat confdefs.h >>conftest.$ac_ext
13726cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013727/* end confdefs.h. */
13728
13729/* Override any GCC internal prototype to avoid an error.
13730 Use char because int might match the return type of a GCC
13731 builtin and then its argument prototype would still apply. */
13732#ifdef __cplusplus
13733extern "C"
13734#endif
13735char ffi_call ();
13736int
13737main ()
13738{
13739return ffi_call ();
13740 ;
13741 return 0;
13742}
13743_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013744for ac_lib in '' ffi; do
13745 if test -z "$ac_lib"; then
13746 ac_res="none required"
13747 else
13748 ac_res=-l$ac_lib
13749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13750 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013751 rm -f conftest.$ac_objext conftest$ac_exeext
13752if { (ac_try="$ac_link"
13753case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13756esac
13757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_link") 2>conftest.er1
13759 ac_status=$?
13760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769esac
13770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest$ac_exeext'
13776 { (case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13779esac
13780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_try") 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013785 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013786else
13787 echo "$as_me: failed program was:" >&5
13788sed 's/^/| /' conftest.$ac_ext >&5
13789
13790
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013792
Bill Wendlingebcceee2009-04-18 11:20:33 +000013793rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794 conftest$ac_exeext
13795 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013796 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013797fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013798done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799if test "${ac_cv_search_ffi_call+set}" = set; then
13800 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013801else
13802 ac_cv_search_ffi_call=no
13803fi
13804rm conftest.$ac_ext
13805LIBS=$ac_func_search_save_LIBS
13806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013807{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13808echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013809ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013810if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813cat >>confdefs.h <<\_ACEOF
13814#define HAVE_FFI_CALL 1
13815_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013816
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013817else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013818 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13819echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13820 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013821fi
13822
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013823fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013825{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13826echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13827if test "${ac_cv_search_mallinfo+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013829else
13830 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831cat >conftest.$ac_ext <<_ACEOF
13832/* confdefs.h. */
13833_ACEOF
13834cat confdefs.h >>conftest.$ac_ext
13835cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013836/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013837
Reid Spencera773bd52006-08-04 18:18:08 +000013838/* Override any GCC internal prototype to avoid an error.
13839 Use char because int might match the return type of a GCC
13840 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013841#ifdef __cplusplus
13842extern "C"
13843#endif
John Criswell7a73b802003-06-30 21:59:07 +000013844char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013845int
13846main ()
13847{
Reid Spencera773bd52006-08-04 18:18:08 +000013848return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013849 ;
13850 return 0;
13851}
13852_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013853for ac_lib in '' malloc; do
13854 if test -z "$ac_lib"; then
13855 ac_res="none required"
13856 else
13857 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013859 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013860 rm -f conftest.$ac_objext conftest$ac_exeext
13861if { (ac_try="$ac_link"
13862case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13865esac
13866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_link") 2>conftest.er1
13868 ac_status=$?
13869 grep -v '^ *+' conftest.er1 >conftest.err
13870 rm -f conftest.er1
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13875 { (case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878esac
13879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_try") 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; } &&
13884 { ac_try='test -s conftest$ac_exeext'
13885 { (case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13888esac
13889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890 (eval "$ac_try") 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013894 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
13899
John Criswell7a73b802003-06-30 21:59:07 +000013900fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013901
Bill Wendlingebcceee2009-04-18 11:20:33 +000013902rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903 conftest$ac_exeext
13904 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013905 break
John Criswell7a73b802003-06-30 21:59:07 +000013906fi
Reid Spencera773bd52006-08-04 18:18:08 +000013907done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013908if test "${ac_cv_search_mallinfo+set}" = set; then
13909 :
Reid Spencera773bd52006-08-04 18:18:08 +000013910else
13911 ac_cv_search_mallinfo=no
13912fi
13913rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013914LIBS=$ac_func_search_save_LIBS
13915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013916{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13917echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013918ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013919if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013922cat >>confdefs.h <<\_ACEOF
13923#define HAVE_MALLINFO 1
13924_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013925
13926fi
13927
13928
Reid Spencer0a262ba2005-08-24 10:07:20 +000013929if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930
13931{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13932echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13933if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013935else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013936 ac_check_lib_save_LIBS=$LIBS
13937LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938cat >conftest.$ac_ext <<_ACEOF
13939/* confdefs.h. */
13940_ACEOF
13941cat confdefs.h >>conftest.$ac_ext
13942cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013943/* end confdefs.h. */
13944
Reid Spencera773bd52006-08-04 18:18:08 +000013945/* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013948#ifdef __cplusplus
13949extern "C"
13950#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013951char pthread_mutex_init ();
13952int
13953main ()
13954{
Reid Spencera773bd52006-08-04 18:18:08 +000013955return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013956 ;
13957 return 0;
13958}
13959_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013960rm -f conftest.$ac_objext conftest$ac_exeext
13961if { (ac_try="$ac_link"
13962case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13965esac
13966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_link") 2>conftest.er1
13968 ac_status=$?
13969 grep -v '^ *+' conftest.er1 >conftest.err
13970 rm -f conftest.er1
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13975 { (case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13978esac
13979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_try") 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest$ac_exeext'
13985 { (case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13988esac
13989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_try") 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013994 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013996 echo "$as_me: failed program was:" >&5
13997sed 's/^/| /' conftest.$ac_ext >&5
13998
13999 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014001
Bill Wendlingebcceee2009-04-18 11:20:33 +000014002rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014003 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014004LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14007echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14008if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014009 cat >>confdefs.h <<_ACEOF
14010#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014011_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014012
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014013 LIBS="-lpthread $LIBS"
14014
Reid Spencer22177fe2005-07-12 15:24:20 +000014015fi
14016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014017 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14018echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14019if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014021else
14022 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014028/* end confdefs.h. */
14029
Reid Spencera773bd52006-08-04 18:18:08 +000014030/* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014033#ifdef __cplusplus
14034extern "C"
14035#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014036char pthread_mutex_lock ();
14037int
14038main ()
14039{
Reid Spencera773bd52006-08-04 18:18:08 +000014040return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014041 ;
14042 return 0;
14043}
14044_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014045for ac_lib in '' pthread; do
14046 if test -z "$ac_lib"; then
14047 ac_res="none required"
14048 else
14049 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014051 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014052 rm -f conftest.$ac_objext conftest$ac_exeext
14053if { (ac_try="$ac_link"
14054case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057esac
14058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_link") 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14070esac
14071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; } &&
14076 { ac_try='test -s conftest$ac_exeext'
14077 { (case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14080esac
14081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_try") 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014086 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014087else
14088 echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
14091
Brian Gaeke5f268f72003-12-05 19:29:01 +000014092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093
Bill Wendlingebcceee2009-04-18 11:20:33 +000014094rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095 conftest$ac_exeext
14096 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014097 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014098fi
Reid Spencera773bd52006-08-04 18:18:08 +000014099done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14101 :
Reid Spencera773bd52006-08-04 18:18:08 +000014102else
14103 ac_cv_search_pthread_mutex_lock=no
14104fi
14105rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014106LIBS=$ac_func_search_save_LIBS
14107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014108{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14109echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014110ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014114cat >>confdefs.h <<\_ACEOF
14115#define HAVE_PTHREAD_MUTEX_LOCK 1
14116_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014117
14118fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14121echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14122if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014124else
14125 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126cat >conftest.$ac_ext <<_ACEOF
14127/* confdefs.h. */
14128_ACEOF
14129cat confdefs.h >>conftest.$ac_ext
14130cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014131/* end confdefs.h. */
14132
14133/* Override any GCC internal prototype to avoid an error.
14134 Use char because int might match the return type of a GCC
14135 builtin and then its argument prototype would still apply. */
14136#ifdef __cplusplus
14137extern "C"
14138#endif
14139char pthread_rwlock_init ();
14140int
14141main ()
14142{
14143return pthread_rwlock_init ();
14144 ;
14145 return 0;
14146}
14147_ACEOF
14148for ac_lib in '' pthread; do
14149 if test -z "$ac_lib"; then
14150 ac_res="none required"
14151 else
14152 ac_res=-l$ac_lib
14153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14154 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014155 rm -f conftest.$ac_objext conftest$ac_exeext
14156if { (ac_try="$ac_link"
14157case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14160esac
14161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14163 ac_status=$?
14164 grep -v '^ *+' conftest.er1 >conftest.err
14165 rm -f conftest.er1
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14170 { (case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173esac
14174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_try") 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest$ac_exeext'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183esac
14184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014189 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014190else
14191 echo "$as_me: failed program was:" >&5
14192sed 's/^/| /' conftest.$ac_ext >&5
14193
14194
Owen Andersonde8aed22009-06-16 18:20:20 +000014195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014196
Owen Andersonde8aed22009-06-16 18:20:20 +000014197rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014198 conftest$ac_exeext
14199 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014200 break
14201fi
14202done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014203if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14204 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014205else
14206 ac_cv_search_pthread_rwlock_init=no
14207fi
14208rm conftest.$ac_ext
14209LIBS=$ac_func_search_save_LIBS
14210fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014211{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14212echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014213ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014214if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217cat >>confdefs.h <<\_ACEOF
14218#define HAVE_PTHREAD_RWLOCK_INIT 1
14219_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014220
14221fi
14222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014223 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14224echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14225if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014227else
14228 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229cat >conftest.$ac_ext <<_ACEOF
14230/* confdefs.h. */
14231_ACEOF
14232cat confdefs.h >>conftest.$ac_ext
14233cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014234/* end confdefs.h. */
14235
14236/* Override any GCC internal prototype to avoid an error.
14237 Use char because int might match the return type of a GCC
14238 builtin and then its argument prototype would still apply. */
14239#ifdef __cplusplus
14240extern "C"
14241#endif
14242char pthread_getspecific ();
14243int
14244main ()
14245{
14246return pthread_getspecific ();
14247 ;
14248 return 0;
14249}
14250_ACEOF
14251for ac_lib in '' pthread; do
14252 if test -z "$ac_lib"; then
14253 ac_res="none required"
14254 else
14255 ac_res=-l$ac_lib
14256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14257 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258 rm -f conftest.$ac_objext conftest$ac_exeext
14259if { (ac_try="$ac_link"
14260case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14263esac
14264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_link") 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14273 { (case "(($ac_try" in
14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14276esac
14277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_try") 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest$ac_exeext'
14283 { (case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286esac
14287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_try") 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014292 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014293else
14294 echo "$as_me: failed program was:" >&5
14295sed 's/^/| /' conftest.$ac_ext >&5
14296
14297
Owen Anderson27fcfe12009-06-25 23:10:26 +000014298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014299
Owen Anderson27fcfe12009-06-25 23:10:26 +000014300rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301 conftest$ac_exeext
14302 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014303 break
14304fi
14305done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014306if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14307 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014308else
14309 ac_cv_search_pthread_getspecific=no
14310fi
14311rm conftest.$ac_ext
14312LIBS=$ac_func_search_save_LIBS
14313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014314{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14315echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014316ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014317if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014320cat >>confdefs.h <<\_ACEOF
14321#define HAVE_PTHREAD_GETSPECIFIC 1
14322_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014323
14324fi
14325
Reid Spencer0a262ba2005-08-24 10:07:20 +000014326fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014327
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014328
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014329# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014330if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014331 withval=$with_udis86;
14332 USE_UDIS86=1
14333
14334 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014335 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014336 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14337 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338
14339{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14340echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14341if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014343else
14344 ac_check_lib_save_LIBS=$LIBS
14345LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346cat >conftest.$ac_ext <<_ACEOF
14347/* confdefs.h. */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014351/* end confdefs.h. */
14352
14353/* Override any GCC internal prototype to avoid an error.
14354 Use char because int might match the return type of a GCC
14355 builtin and then its argument prototype would still apply. */
14356#ifdef __cplusplus
14357extern "C"
14358#endif
14359char ud_init ();
14360int
14361main ()
14362{
14363return ud_init ();
14364 ;
14365 return 0;
14366}
14367_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014368rm -f conftest.$ac_objext conftest$ac_exeext
14369if { (ac_try="$ac_link"
14370case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14386esac
14387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest$ac_exeext'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14396esac
14397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014402 ac_cv_lib_udis86_ud_init=yes
14403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014404 echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
14406
14407 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014409
Bill Wendlingebcceee2009-04-18 11:20:33 +000014410rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014411 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014412LIBS=$ac_check_lib_save_LIBS
14413fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014414{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14415echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14416if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014417 cat >>confdefs.h <<_ACEOF
14418#define HAVE_LIBUDIS86 1
14419_ACEOF
14420
14421 LIBS="-ludis86 $LIBS"
14422
14423else
14424
14425 echo "Error! You need to have libudis86 around."
14426 exit -1
14427
14428fi
14429
14430
14431else
14432 USE_UDIS86=0
14433
14434fi
14435
14436
14437cat >>confdefs.h <<_ACEOF
14438#define USE_UDIS86 $USE_UDIS86
14439_ACEOF
14440
14441
14442
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014443# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014444if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014445 withval=$with_oprofile;
14446 USE_OPROFILE=1
14447
14448 case "$withval" in
14449 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014450 no) llvm_cv_oppath=
14451 USE_OPROFILE=0
14452 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014453 *) llvm_cv_oppath="${withval}/lib/oprofile"
14454 CPPFLAGS="-I${withval}/include";;
14455 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014456 if test -n "$llvm_cv_oppath" ; then
14457 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014458 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14459echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14460if test "${ac_cv_search_bfd_init+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014462else
14463 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464cat >conftest.$ac_ext <<_ACEOF
14465/* confdefs.h. */
14466_ACEOF
14467cat confdefs.h >>conftest.$ac_ext
14468cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014469/* end confdefs.h. */
14470
14471/* Override any GCC internal prototype to avoid an error.
14472 Use char because int might match the return type of a GCC
14473 builtin and then its argument prototype would still apply. */
14474#ifdef __cplusplus
14475extern "C"
14476#endif
14477char bfd_init ();
14478int
14479main ()
14480{
14481return bfd_init ();
14482 ;
14483 return 0;
14484}
14485_ACEOF
14486for ac_lib in '' bfd; do
14487 if test -z "$ac_lib"; then
14488 ac_res="none required"
14489 else
14490 ac_res=-l$ac_lib
14491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14492 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493 rm -f conftest.$ac_objext conftest$ac_exeext
14494if { (ac_try="$ac_link"
14495case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14498esac
14499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_link") 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
14507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14508 { (case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511esac
14512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_try") 2>&5
14514 ac_status=$?
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }; } &&
14517 { ac_try='test -s conftest$ac_exeext'
14518 { (case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14521esac
14522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_try") 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014527 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014528else
14529 echo "$as_me: failed program was:" >&5
14530sed 's/^/| /' conftest.$ac_ext >&5
14531
14532
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014534
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014535rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536 conftest$ac_exeext
14537 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014538 break
14539fi
14540done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014541if test "${ac_cv_search_bfd_init+set}" = set; then
14542 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014543else
14544 ac_cv_search_bfd_init=no
14545fi
14546rm conftest.$ac_ext
14547LIBS=$ac_func_search_save_LIBS
14548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014549{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14550echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014551ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014552if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14554
14555fi
14556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014557 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14558echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14559if test "${ac_cv_search_op_open_agent+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014561else
14562 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563cat >conftest.$ac_ext <<_ACEOF
14564/* confdefs.h. */
14565_ACEOF
14566cat confdefs.h >>conftest.$ac_ext
14567cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014568/* end confdefs.h. */
14569
14570/* Override any GCC internal prototype to avoid an error.
14571 Use char because int might match the return type of a GCC
14572 builtin and then its argument prototype would still apply. */
14573#ifdef __cplusplus
14574extern "C"
14575#endif
14576char op_open_agent ();
14577int
14578main ()
14579{
14580return op_open_agent ();
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585for ac_lib in '' opagent; do
14586 if test -z "$ac_lib"; then
14587 ac_res="none required"
14588 else
14589 ac_res=-l$ac_lib
14590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14591 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014592 rm -f conftest.$ac_objext conftest$ac_exeext
14593if { (ac_try="$ac_link"
14594case "(($ac_try" in
14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14597esac
14598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_link") 2>conftest.er1
14600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14610esac
14611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest$ac_exeext'
14617 { (case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620esac
14621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_try") 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014626 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014627else
14628 echo "$as_me: failed program was:" >&5
14629sed 's/^/| /' conftest.$ac_ext >&5
14630
14631
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014633
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014634rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014635 conftest$ac_exeext
14636 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014637 break
14638fi
14639done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014640if test "${ac_cv_search_op_open_agent+set}" = set; then
14641 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014642else
14643 ac_cv_search_op_open_agent=no
14644fi
14645rm conftest.$ac_ext
14646LIBS=$ac_func_search_save_LIBS
14647fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014648{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14649echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014650ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014651if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14653
14654else
14655
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014656 echo "Error! You need to have libopagent around."
14657 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014658
14659fi
14660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014661 if test "${ac_cv_header_opagent_h+set}" = set; then
14662 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14663echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14664if test "${ac_cv_header_opagent_h+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666fi
14667{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14668echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14669else
14670 # Is the header compilable?
14671{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14672echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14673cat >conftest.$ac_ext <<_ACEOF
14674/* confdefs.h. */
14675_ACEOF
14676cat confdefs.h >>conftest.$ac_ext
14677cat >>conftest.$ac_ext <<_ACEOF
14678/* end confdefs.h. */
14679$ac_includes_default
14680#include <opagent.h>
14681_ACEOF
14682rm -f conftest.$ac_objext
14683if { (ac_try="$ac_compile"
14684case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687esac
14688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_compile") 2>conftest.er1
14690 ac_status=$?
14691 grep -v '^ *+' conftest.er1 >conftest.err
14692 rm -f conftest.er1
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14697 { (case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700esac
14701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_try") 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_try") 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_header_compiler=yes
14717else
14718 echo "$as_me: failed program was:" >&5
14719sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014721 ac_header_compiler=no
14722fi
14723
14724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14726echo "${ECHO_T}$ac_header_compiler" >&6; }
14727
14728# Is the header present?
14729{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14730echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14731cat >conftest.$ac_ext <<_ACEOF
14732/* confdefs.h. */
14733_ACEOF
14734cat confdefs.h >>conftest.$ac_ext
14735cat >>conftest.$ac_ext <<_ACEOF
14736/* end confdefs.h. */
14737#include <opagent.h>
14738_ACEOF
14739if { (ac_try="$ac_cpp conftest.$ac_ext"
14740case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14743esac
14744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14746 ac_status=$?
14747 grep -v '^ *+' conftest.er1 >conftest.err
14748 rm -f conftest.er1
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } >/dev/null; then
14752 if test -s conftest.err; then
14753 ac_cpp_err=$ac_c_preproc_warn_flag
14754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14755 else
14756 ac_cpp_err=
14757 fi
14758else
14759 ac_cpp_err=yes
14760fi
14761if test -z "$ac_cpp_err"; then
14762 ac_header_preproc=yes
14763else
14764 echo "$as_me: failed program was:" >&5
14765sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 ac_header_preproc=no
14768fi
14769
14770rm -f conftest.err conftest.$ac_ext
14771{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772echo "${ECHO_T}$ac_header_preproc" >&6; }
14773
14774# So? What about this header?
14775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776 yes:no: )
14777 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14778echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14780echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14781 ac_header_preproc=yes
14782 ;;
14783 no:yes:* )
14784 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14785echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14787echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14789echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14791echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14793echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14795echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14796 ( cat <<\_ASBOX
14797## ----------------------------------- ##
14798## Report this to llvmbugs@cs.uiuc.edu ##
14799## ----------------------------------- ##
14800_ASBOX
14801 ) | sed "s/^/$as_me: WARNING: /" >&2
14802 ;;
14803esac
14804{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14805echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14806if test "${ac_cv_header_opagent_h+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808else
14809 ac_cv_header_opagent_h=$ac_header_preproc
14810fi
14811{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14812echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14813
14814fi
14815if test $ac_cv_header_opagent_h = yes; then
14816 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014817else
14818
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014819 echo "Error! You need to have opagent.h around."
14820 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014821
14822fi
14823
14824
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014825 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014826
14827else
14828
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014829 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014830
14831
14832fi
14833
14834
14835cat >>confdefs.h <<_ACEOF
14836#define USE_OPROFILE $USE_OPROFILE
14837_ACEOF
14838
14839
14840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014841
14842
14843
14844
14845
Reid Spencer59473af2004-12-25 07:31:29 +000014846ac_header_dirent=no
14847for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014848 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14849{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14850echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014854 cat >conftest.$ac_ext <<_ACEOF
14855/* confdefs.h. */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014859/* end confdefs.h. */
14860#include <sys/types.h>
14861#include <$ac_hdr>
14862
14863int
14864main ()
14865{
14866if ((DIR *) 0)
14867return 0;
14868 ;
14869 return 0;
14870}
14871_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014872rm -f conftest.$ac_objext
14873if { (ac_try="$ac_compile"
14874case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_compile") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890esac
14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014906 eval "$as_ac_Header=yes"
14907else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014908 echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014913
Reid Spencera773bd52006-08-04 18:18:08 +000014914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014916ac_res=`eval echo '${'$as_ac_Header'}'`
14917 { echo "$as_me:$LINENO: result: $ac_res" >&5
14918echo "${ECHO_T}$ac_res" >&6; }
14919if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014920 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014921#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014922_ACEOF
14923
14924ac_header_dirent=$ac_hdr; break
14925fi
14926
14927done
14928# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14929if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014930 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14931echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14932if test "${ac_cv_search_opendir+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014934else
14935 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014936cat >conftest.$ac_ext <<_ACEOF
14937/* confdefs.h. */
14938_ACEOF
14939cat confdefs.h >>conftest.$ac_ext
14940cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014941/* end confdefs.h. */
14942
Reid Spencera773bd52006-08-04 18:18:08 +000014943/* Override any GCC internal prototype to avoid an error.
14944 Use char because int might match the return type of a GCC
14945 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014946#ifdef __cplusplus
14947extern "C"
14948#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014949char opendir ();
14950int
14951main ()
14952{
Reid Spencera773bd52006-08-04 18:18:08 +000014953return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014954 ;
14955 return 0;
14956}
14957_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014958for ac_lib in '' dir; do
14959 if test -z "$ac_lib"; then
14960 ac_res="none required"
14961 else
14962 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014964 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965 rm -f conftest.$ac_objext conftest$ac_exeext
14966if { (ac_try="$ac_link"
14967case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14970esac
14971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972 (eval "$ac_link") 2>conftest.er1
14973 ac_status=$?
14974 grep -v '^ *+' conftest.er1 >conftest.err
14975 rm -f conftest.er1
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14980 { (case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14983esac
14984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_try") 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; } &&
14989 { ac_try='test -s conftest$ac_exeext'
14990 { (case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_try") 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014999 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015000else
15001 echo "$as_me: failed program was:" >&5
15002sed 's/^/| /' conftest.$ac_ext >&5
15003
15004
Reid Spencer59473af2004-12-25 07:31:29 +000015005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015006
Bill Wendlingebcceee2009-04-18 11:20:33 +000015007rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015008 conftest$ac_exeext
15009 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015010 break
Reid Spencer59473af2004-12-25 07:31:29 +000015011fi
Reid Spencera773bd52006-08-04 18:18:08 +000015012done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015013if test "${ac_cv_search_opendir+set}" = set; then
15014 :
Reid Spencera773bd52006-08-04 18:18:08 +000015015else
15016 ac_cv_search_opendir=no
15017fi
15018rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015019LIBS=$ac_func_search_save_LIBS
15020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015021{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15022echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015023ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015026
15027fi
15028
15029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015030 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15031echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15032if test "${ac_cv_search_opendir+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015034else
15035 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015036cat >conftest.$ac_ext <<_ACEOF
15037/* confdefs.h. */
15038_ACEOF
15039cat confdefs.h >>conftest.$ac_ext
15040cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015041/* end confdefs.h. */
15042
Reid Spencera773bd52006-08-04 18:18:08 +000015043/* Override any GCC internal prototype to avoid an error.
15044 Use char because int might match the return type of a GCC
15045 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015046#ifdef __cplusplus
15047extern "C"
15048#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015049char opendir ();
15050int
15051main ()
15052{
Reid Spencera773bd52006-08-04 18:18:08 +000015053return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015054 ;
15055 return 0;
15056}
15057_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015058for ac_lib in '' x; do
15059 if test -z "$ac_lib"; then
15060 ac_res="none required"
15061 else
15062 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015064 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015065 rm -f conftest.$ac_objext conftest$ac_exeext
15066if { (ac_try="$ac_link"
15067case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070esac
15071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_link") 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15080 { (case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_try") 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest$ac_exeext'
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093esac
15094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_try") 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015099 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015100else
15101 echo "$as_me: failed program was:" >&5
15102sed 's/^/| /' conftest.$ac_ext >&5
15103
15104
Reid Spencer59473af2004-12-25 07:31:29 +000015105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015106
Bill Wendlingebcceee2009-04-18 11:20:33 +000015107rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015108 conftest$ac_exeext
15109 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015110 break
Reid Spencer59473af2004-12-25 07:31:29 +000015111fi
Reid Spencera773bd52006-08-04 18:18:08 +000015112done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015113if test "${ac_cv_search_opendir+set}" = set; then
15114 :
Reid Spencera773bd52006-08-04 18:18:08 +000015115else
15116 ac_cv_search_opendir=no
15117fi
15118rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015119LIBS=$ac_func_search_save_LIBS
15120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015121{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15122echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015123ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015124if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015126
15127fi
15128
15129fi
15130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015131{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15132echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15133if test "${ac_cv_header_mmap_anon+set}" = set; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015135else
15136 ac_ext=c
15137ac_cpp='$CPP $CPPFLAGS'
15138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15140ac_compiler_gnu=$ac_cv_c_compiler_gnu
15141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015142 cat >conftest.$ac_ext <<_ACEOF
15143/* confdefs.h. */
15144_ACEOF
15145cat confdefs.h >>conftest.$ac_ext
15146cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015147/* end confdefs.h. */
15148#include <sys/mman.h>
15149#include <unistd.h>
15150#include <fcntl.h>
15151int
15152main ()
15153{
15154mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15155 ;
15156 return 0;
15157}
15158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159rm -f conftest.$ac_objext
15160if { (ac_try="$ac_compile"
15161case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164esac
15165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_compile") 2>conftest.er1
15167 ac_status=$?
15168 grep -v '^ *+' conftest.er1 >conftest.err
15169 rm -f conftest.er1
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15177esac
15178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15187esac
15188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_try") 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015193 ac_cv_header_mmap_anon=yes
15194else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015195 echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015200
Reid Spencera773bd52006-08-04 18:18:08 +000015201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015202 ac_ext=c
15203ac_cpp='$CPP $CPPFLAGS'
15204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15206ac_compiler_gnu=$ac_cv_c_compiler_gnu
15207
15208
15209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015210{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15211echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015212if test "$ac_cv_header_mmap_anon" = yes; then
15213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015214cat >>confdefs.h <<\_ACEOF
15215#define HAVE_MMAP_ANONYMOUS 1
15216_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015217
15218fi
15219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015220{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15221echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15222if test "${ac_cv_header_stat_broken+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015225 cat >conftest.$ac_ext <<_ACEOF
15226/* confdefs.h. */
15227_ACEOF
15228cat confdefs.h >>conftest.$ac_ext
15229cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015230/* end confdefs.h. */
15231#include <sys/types.h>
15232#include <sys/stat.h>
15233
Reid Spencera773bd52006-08-04 18:18:08 +000015234#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015235# if S_ISBLK (S_IFDIR)
15236You lose.
15237# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015238#endif
15239
Reid Spencera773bd52006-08-04 18:18:08 +000015240#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015241# if S_ISBLK (S_IFCHR)
15242You lose.
15243# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015244#endif
15245
Reid Spencera773bd52006-08-04 18:18:08 +000015246#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015247# if S_ISLNK (S_IFREG)
15248You lose.
15249# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015250#endif
15251
Reid Spencera773bd52006-08-04 18:18:08 +000015252#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015253# if S_ISSOCK (S_IFREG)
15254You lose.
15255# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015256#endif
15257
15258_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15260 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015261 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015262else
15263 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015265rm -f conftest*
15266
Reid Spencer59473af2004-12-25 07:31:29 +000015267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015268{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15269echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015270if test $ac_cv_header_stat_broken = yes; then
15271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015272cat >>confdefs.h <<\_ACEOF
15273#define STAT_MACROS_BROKEN 1
15274_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015275
15276fi
15277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015278{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15279echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15280if test "${ac_cv_header_stdc+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015283 cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015289#include <stdlib.h>
15290#include <stdarg.h>
15291#include <string.h>
15292#include <float.h>
15293
John Criswell0c38eaf2003-09-10 15:17:25 +000015294int
15295main ()
15296{
15297
15298 ;
15299 return 0;
15300}
John Criswell7a73b802003-06-30 21:59:07 +000015301_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015302rm -f conftest.$ac_objext
15303if { (ac_try="$ac_compile"
15304case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307esac
15308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_compile") 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317 { (case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15320esac
15321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_try") 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest.$ac_objext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330esac
15331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015336 ac_cv_header_stdc=yes
15337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015338 echo "$as_me: failed program was:" >&5
15339sed 's/^/| /' conftest.$ac_ext >&5
15340
15341 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015343
Reid Spencera773bd52006-08-04 18:18:08 +000015344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015345
15346if test $ac_cv_header_stdc = yes; then
15347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015348 cat >conftest.$ac_ext <<_ACEOF
15349/* confdefs.h. */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015354#include <string.h>
15355
15356_ACEOF
15357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015358 $EGREP "memchr" >/dev/null 2>&1; then
15359 :
John Criswell7a73b802003-06-30 21:59:07 +000015360else
15361 ac_cv_header_stdc=no
15362fi
15363rm -f conftest*
15364
15365fi
15366
15367if test $ac_cv_header_stdc = yes; then
15368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015369 cat >conftest.$ac_ext <<_ACEOF
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015375#include <stdlib.h>
15376
15377_ACEOF
15378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015379 $EGREP "free" >/dev/null 2>&1; then
15380 :
John Criswell7a73b802003-06-30 21:59:07 +000015381else
15382 ac_cv_header_stdc=no
15383fi
15384rm -f conftest*
15385
15386fi
15387
15388if test $ac_cv_header_stdc = yes; then
15389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015390 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015391 :
15392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015393 cat >conftest.$ac_ext <<_ACEOF
15394/* confdefs.h. */
15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015399#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015400#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015401#if ((' ' & 0x0FF) == 0x020)
15402# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15403# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15404#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015405# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015406 (('a' <= (c) && (c) <= 'i') \
15407 || ('j' <= (c) && (c) <= 'r') \
15408 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015409# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15410#endif
15411
15412#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15413int
15414main ()
15415{
15416 int i;
15417 for (i = 0; i < 256; i++)
15418 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015419 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015420 return 2;
15421 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015422}
15423_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015424rm -f conftest$ac_exeext
15425if { (ac_try="$ac_link"
15426case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429esac
15430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15435 { (case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15438esac
15439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_try") 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 :
John Criswell7a73b802003-06-30 21:59:07 +000015445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015446 echo "$as_me: program exited with status $ac_status" >&5
15447echo "$as_me: failed program was:" >&5
15448sed 's/^/| /' conftest.$ac_ext >&5
15449
15450( exit $ac_status )
15451ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015453rm -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 +000015454fi
15455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015456
John Criswell7a73b802003-06-30 21:59:07 +000015457fi
15458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015459{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15460echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015461if test $ac_cv_header_stdc = yes; then
15462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015463cat >>confdefs.h <<\_ACEOF
15464#define STDC_HEADERS 1
15465_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015466
15467fi
15468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015469{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15470echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15471if test "${ac_cv_header_sys_wait_h+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015474 cat >conftest.$ac_ext <<_ACEOF
15475/* confdefs.h. */
15476_ACEOF
15477cat confdefs.h >>conftest.$ac_ext
15478cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015479/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015480#include <sys/types.h>
15481#include <sys/wait.h>
15482#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015483# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015484#endif
15485#ifndef WIFEXITED
15486# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15487#endif
15488
John Criswell7a73b802003-06-30 21:59:07 +000015489int
15490main ()
15491{
15492 int s;
15493 wait (&s);
15494 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15495 ;
15496 return 0;
15497}
15498_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015499rm -f conftest.$ac_objext
15500if { (ac_try="$ac_compile"
15501case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15504esac
15505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_compile") 2>conftest.er1
15507 ac_status=$?
15508 grep -v '^ *+' conftest.er1 >conftest.err
15509 rm -f conftest.er1
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15517esac
15518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527esac
15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015533 ac_cv_header_sys_wait_h=yes
15534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015540
Reid Spencera773bd52006-08-04 18:18:08 +000015541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015543{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15544echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015545if test $ac_cv_header_sys_wait_h = yes; then
15546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015547cat >>confdefs.h <<\_ACEOF
15548#define HAVE_SYS_WAIT_H 1
15549_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015550
15551fi
15552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015553{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15554echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15555if test "${ac_cv_header_time+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015558 cat >conftest.$ac_ext <<_ACEOF
15559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015563/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015564#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015565#include <sys/time.h>
15566#include <time.h>
15567
15568int
15569main ()
15570{
15571if ((struct tm *) 0)
15572return 0;
15573 ;
15574 return 0;
15575}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015577rm -f conftest.$ac_objext
15578if { (ac_try="$ac_compile"
15579case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15582esac
15583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_compile") 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15601 { ac_try='test -s conftest.$ac_objext'
15602 { (case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15605esac
15606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_try") 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015611 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015613 echo "$as_me: failed program was:" >&5
15614sed 's/^/| /' conftest.$ac_ext >&5
15615
15616 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015618
Reid Spencera773bd52006-08-04 18:18:08 +000015619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015621{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15622echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015623if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015625cat >>confdefs.h <<\_ACEOF
15626#define TIME_WITH_SYS_TIME 1
15627_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015628
15629fi
15630
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015632
15633
15634
15635
15636
15637
Reid Spencer59473af2004-12-25 07:31:29 +000015638for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015639do
15640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646fi
15647ac_res=`eval echo '${'$as_ac_Header'}'`
15648 { echo "$as_me:$LINENO: result: $ac_res" >&5
15649echo "${ECHO_T}$ac_res" >&6; }
15650else
15651 # Is the header compilable?
15652{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15654cat >conftest.$ac_ext <<_ACEOF
15655/* confdefs.h. */
15656_ACEOF
15657cat confdefs.h >>conftest.$ac_ext
15658cat >>conftest.$ac_ext <<_ACEOF
15659/* end confdefs.h. */
15660$ac_includes_default
15661#include <$ac_header>
15662_ACEOF
15663rm -f conftest.$ac_objext
15664if { (ac_try="$ac_compile"
15665case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668esac
15669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_compile") 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678 { (case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15681esac
15682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_try") 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15691esac
15692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_header_compiler=yes
15698else
15699 echo "$as_me: failed program was:" >&5
15700sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_header_compiler=no
15703fi
15704
15705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707echo "${ECHO_T}$ac_header_compiler" >&6; }
15708
15709# Is the header present?
15710{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15712cat >conftest.$ac_ext <<_ACEOF
15713/* confdefs.h. */
15714_ACEOF
15715cat confdefs.h >>conftest.$ac_ext
15716cat >>conftest.$ac_ext <<_ACEOF
15717/* end confdefs.h. */
15718#include <$ac_header>
15719_ACEOF
15720if { (ac_try="$ac_cpp conftest.$ac_ext"
15721case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15724esac
15725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15727 ac_status=$?
15728 grep -v '^ *+' conftest.er1 >conftest.err
15729 rm -f conftest.er1
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } >/dev/null; then
15733 if test -s conftest.err; then
15734 ac_cpp_err=$ac_c_preproc_warn_flag
15735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15736 else
15737 ac_cpp_err=
15738 fi
15739else
15740 ac_cpp_err=yes
15741fi
15742if test -z "$ac_cpp_err"; then
15743 ac_header_preproc=yes
15744else
15745 echo "$as_me: failed program was:" >&5
15746sed 's/^/| /' conftest.$ac_ext >&5
15747
15748 ac_header_preproc=no
15749fi
15750
15751rm -f conftest.err conftest.$ac_ext
15752{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753echo "${ECHO_T}$ac_header_preproc" >&6; }
15754
15755# So? What about this header?
15756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15757 yes:no: )
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15762 ac_header_preproc=yes
15763 ;;
15764 no:yes:* )
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15777 ( cat <<\_ASBOX
15778## ----------------------------------- ##
15779## Report this to llvmbugs@cs.uiuc.edu ##
15780## ----------------------------------- ##
15781_ASBOX
15782 ) | sed "s/^/$as_me: WARNING: /" >&2
15783 ;;
15784esac
15785{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15789else
15790 eval "$as_ac_Header=\$ac_header_preproc"
15791fi
15792ac_res=`eval echo '${'$as_ac_Header'}'`
15793 { echo "$as_me:$LINENO: result: $ac_res" >&5
15794echo "${ECHO_T}$ac_res" >&6; }
15795
15796fi
15797if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015798 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015800_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015801
15802fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015803
Reid Spencer59473af2004-12-25 07:31:29 +000015804done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015806
15807
15808
15809
15810
15811
Douglas Gregor071d73d2009-05-18 17:21:34 +000015812for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015813do
15814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820fi
15821ac_res=`eval echo '${'$as_ac_Header'}'`
15822 { echo "$as_me:$LINENO: result: $ac_res" >&5
15823echo "${ECHO_T}$ac_res" >&6; }
15824else
15825 # Is the header compilable?
15826{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15828cat >conftest.$ac_ext <<_ACEOF
15829/* confdefs.h. */
15830_ACEOF
15831cat confdefs.h >>conftest.$ac_ext
15832cat >>conftest.$ac_ext <<_ACEOF
15833/* end confdefs.h. */
15834$ac_includes_default
15835#include <$ac_header>
15836_ACEOF
15837rm -f conftest.$ac_objext
15838if { (ac_try="$ac_compile"
15839case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842esac
15843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_compile") 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15855esac
15856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; } &&
15861 { ac_try='test -s conftest.$ac_objext'
15862 { (case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865esac
15866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_try") 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 ac_header_compiler=yes
15872else
15873 echo "$as_me: failed program was:" >&5
15874sed 's/^/| /' conftest.$ac_ext >&5
15875
15876 ac_header_compiler=no
15877fi
15878
15879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15880{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15881echo "${ECHO_T}$ac_header_compiler" >&6; }
15882
15883# Is the header present?
15884{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15886cat >conftest.$ac_ext <<_ACEOF
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892#include <$ac_header>
15893_ACEOF
15894if { (ac_try="$ac_cpp conftest.$ac_ext"
15895case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15898esac
15899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15901 ac_status=$?
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } >/dev/null; then
15907 if test -s conftest.err; then
15908 ac_cpp_err=$ac_c_preproc_warn_flag
15909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15910 else
15911 ac_cpp_err=
15912 fi
15913else
15914 ac_cpp_err=yes
15915fi
15916if test -z "$ac_cpp_err"; then
15917 ac_header_preproc=yes
15918else
15919 echo "$as_me: failed program was:" >&5
15920sed 's/^/| /' conftest.$ac_ext >&5
15921
15922 ac_header_preproc=no
15923fi
15924
15925rm -f conftest.err conftest.$ac_ext
15926{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15927echo "${ECHO_T}$ac_header_preproc" >&6; }
15928
15929# So? What about this header?
15930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15931 yes:no: )
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15936 ac_header_preproc=yes
15937 ;;
15938 no:yes:* )
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15951 ( cat <<\_ASBOX
15952## ----------------------------------- ##
15953## Report this to llvmbugs@cs.uiuc.edu ##
15954## ----------------------------------- ##
15955_ASBOX
15956 ) | sed "s/^/$as_me: WARNING: /" >&2
15957 ;;
15958esac
15959{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15963else
15964 eval "$as_ac_Header=\$ac_header_preproc"
15965fi
15966ac_res=`eval echo '${'$as_ac_Header'}'`
15967 { echo "$as_me:$LINENO: result: $ac_res" >&5
15968echo "${ECHO_T}$ac_res" >&6; }
15969
15970fi
15971if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015972 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015974_ACEOF
15975
15976fi
15977
15978done
15979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015980
15981
Douglas Gregor071d73d2009-05-18 17:21:34 +000015982for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015983do
15984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990fi
15991ac_res=`eval echo '${'$as_ac_Header'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993echo "${ECHO_T}$ac_res" >&6; }
15994else
15995 # Is the header compilable?
15996{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15997echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15998cat >conftest.$ac_ext <<_ACEOF
15999/* confdefs.h. */
16000_ACEOF
16001cat confdefs.h >>conftest.$ac_ext
16002cat >>conftest.$ac_ext <<_ACEOF
16003/* end confdefs.h. */
16004$ac_includes_default
16005#include <$ac_header>
16006_ACEOF
16007rm -f conftest.$ac_objext
16008if { (ac_try="$ac_compile"
16009case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012esac
16013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_compile") 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16022 { (case "(($ac_try" in
16023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024 *) ac_try_echo=$ac_try;;
16025esac
16026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16027 (eval "$ac_try") 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; } &&
16031 { ac_try='test -s conftest.$ac_objext'
16032 { (case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16035esac
16036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_try") 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_header_compiler=yes
16042else
16043 echo "$as_me: failed program was:" >&5
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 ac_header_compiler=no
16047fi
16048
16049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16050{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16051echo "${ECHO_T}$ac_header_compiler" >&6; }
16052
16053# Is the header present?
16054{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16055echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16056cat >conftest.$ac_ext <<_ACEOF
16057/* confdefs.h. */
16058_ACEOF
16059cat confdefs.h >>conftest.$ac_ext
16060cat >>conftest.$ac_ext <<_ACEOF
16061/* end confdefs.h. */
16062#include <$ac_header>
16063_ACEOF
16064if { (ac_try="$ac_cpp conftest.$ac_ext"
16065case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16068esac
16069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } >/dev/null; then
16077 if test -s conftest.err; then
16078 ac_cpp_err=$ac_c_preproc_warn_flag
16079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16080 else
16081 ac_cpp_err=
16082 fi
16083else
16084 ac_cpp_err=yes
16085fi
16086if test -z "$ac_cpp_err"; then
16087 ac_header_preproc=yes
16088else
16089 echo "$as_me: failed program was:" >&5
16090sed 's/^/| /' conftest.$ac_ext >&5
16091
16092 ac_header_preproc=no
16093fi
16094
16095rm -f conftest.err conftest.$ac_ext
16096{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097echo "${ECHO_T}$ac_header_preproc" >&6; }
16098
16099# So? What about this header?
16100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 yes:no: )
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16103echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16105echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16106 ac_header_preproc=yes
16107 ;;
16108 no:yes:* )
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16110echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16112echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16114echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16116echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16120echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16121 ( cat <<\_ASBOX
16122## ----------------------------------- ##
16123## Report this to llvmbugs@cs.uiuc.edu ##
16124## ----------------------------------- ##
16125_ASBOX
16126 ) | sed "s/^/$as_me: WARNING: /" >&2
16127 ;;
16128esac
16129{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16133else
16134 eval "$as_ac_Header=\$ac_header_preproc"
16135fi
16136ac_res=`eval echo '${'$as_ac_Header'}'`
16137 { echo "$as_me:$LINENO: result: $ac_res" >&5
16138echo "${ECHO_T}$ac_res" >&6; }
16139
16140fi
16141if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016142 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016144_ACEOF
16145
16146fi
16147
16148done
Reid Spencer59473af2004-12-25 07:31:29 +000016149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016150
16151
16152
16153
Reid Spencerbe3e4192007-08-17 05:45:26 +000016154for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016155do
16156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16162fi
16163ac_res=`eval echo '${'$as_ac_Header'}'`
16164 { echo "$as_me:$LINENO: result: $ac_res" >&5
16165echo "${ECHO_T}$ac_res" >&6; }
16166else
16167 # Is the header compilable?
16168{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16170cat >conftest.$ac_ext <<_ACEOF
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176$ac_includes_default
16177#include <$ac_header>
16178_ACEOF
16179rm -f conftest.$ac_objext
16180if { (ac_try="$ac_compile"
16181case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16184esac
16185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_compile") 2>conftest.er1
16187 ac_status=$?
16188 grep -v '^ *+' conftest.er1 >conftest.err
16189 rm -f conftest.er1
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
16193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16197esac
16198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16207esac
16208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_try") 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_header_compiler=yes
16214else
16215 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_header_compiler=no
16219fi
16220
16221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223echo "${ECHO_T}$ac_header_compiler" >&6; }
16224
16225# Is the header present?
16226{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16228cat >conftest.$ac_ext <<_ACEOF
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
16234#include <$ac_header>
16235_ACEOF
16236if { (ac_try="$ac_cpp conftest.$ac_ext"
16237case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16240esac
16241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16243 ac_status=$?
16244 grep -v '^ *+' conftest.er1 >conftest.err
16245 rm -f conftest.er1
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } >/dev/null; then
16249 if test -s conftest.err; then
16250 ac_cpp_err=$ac_c_preproc_warn_flag
16251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16252 else
16253 ac_cpp_err=
16254 fi
16255else
16256 ac_cpp_err=yes
16257fi
16258if test -z "$ac_cpp_err"; then
16259 ac_header_preproc=yes
16260else
16261 echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 ac_header_preproc=no
16265fi
16266
16267rm -f conftest.err conftest.$ac_ext
16268{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16269echo "${ECHO_T}$ac_header_preproc" >&6; }
16270
16271# So? What about this header?
16272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16273 yes:no: )
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16278 ac_header_preproc=yes
16279 ;;
16280 no:yes:* )
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16293 ( cat <<\_ASBOX
16294## ----------------------------------- ##
16295## Report this to llvmbugs@cs.uiuc.edu ##
16296## ----------------------------------- ##
16297_ASBOX
16298 ) | sed "s/^/$as_me: WARNING: /" >&2
16299 ;;
16300esac
16301{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305else
16306 eval "$as_ac_Header=\$ac_header_preproc"
16307fi
16308ac_res=`eval echo '${'$as_ac_Header'}'`
16309 { echo "$as_me:$LINENO: result: $ac_res" >&5
16310echo "${ECHO_T}$ac_res" >&6; }
16311
16312fi
16313if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016314 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016316_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016317
16318fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016319
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016320done
16321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016322
16323
16324
16325
Douglas Gregor01746742009-05-11 18:05:52 +000016326for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016327do
16328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334fi
16335ac_res=`eval echo '${'$as_ac_Header'}'`
16336 { echo "$as_me:$LINENO: result: $ac_res" >&5
16337echo "${ECHO_T}$ac_res" >&6; }
16338else
16339 # Is the header compilable?
16340{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16342cat >conftest.$ac_ext <<_ACEOF
16343/* confdefs.h. */
16344_ACEOF
16345cat confdefs.h >>conftest.$ac_ext
16346cat >>conftest.$ac_ext <<_ACEOF
16347/* end confdefs.h. */
16348$ac_includes_default
16349#include <$ac_header>
16350_ACEOF
16351rm -f conftest.$ac_objext
16352if { (ac_try="$ac_compile"
16353case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356esac
16357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_compile") 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16366 { (case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369esac
16370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_try") 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; } &&
16375 { ac_try='test -s conftest.$ac_objext'
16376 { (case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16379esac
16380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_try") 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 ac_header_compiler=yes
16386else
16387 echo "$as_me: failed program was:" >&5
16388sed 's/^/| /' conftest.$ac_ext >&5
16389
16390 ac_header_compiler=no
16391fi
16392
16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16395echo "${ECHO_T}$ac_header_compiler" >&6; }
16396
16397# Is the header present?
16398{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16400cat >conftest.$ac_ext <<_ACEOF
16401/* confdefs.h. */
16402_ACEOF
16403cat confdefs.h >>conftest.$ac_ext
16404cat >>conftest.$ac_ext <<_ACEOF
16405/* end confdefs.h. */
16406#include <$ac_header>
16407_ACEOF
16408if { (ac_try="$ac_cpp conftest.$ac_ext"
16409case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16412esac
16413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16415 ac_status=$?
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } >/dev/null; then
16421 if test -s conftest.err; then
16422 ac_cpp_err=$ac_c_preproc_warn_flag
16423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16424 else
16425 ac_cpp_err=
16426 fi
16427else
16428 ac_cpp_err=yes
16429fi
16430if test -z "$ac_cpp_err"; then
16431 ac_header_preproc=yes
16432else
16433 echo "$as_me: failed program was:" >&5
16434sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 ac_header_preproc=no
16437fi
16438
16439rm -f conftest.err conftest.$ac_ext
16440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16441echo "${ECHO_T}$ac_header_preproc" >&6; }
16442
16443# So? What about this header?
16444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16445 yes:no: )
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16450 ac_header_preproc=yes
16451 ;;
16452 no:yes:* )
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16465 ( cat <<\_ASBOX
16466## ----------------------------------- ##
16467## Report this to llvmbugs@cs.uiuc.edu ##
16468## ----------------------------------- ##
16469_ASBOX
16470 ) | sed "s/^/$as_me: WARNING: /" >&2
16471 ;;
16472esac
16473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477else
16478 eval "$as_ac_Header=\$ac_header_preproc"
16479fi
16480ac_res=`eval echo '${'$as_ac_Header'}'`
16481 { echo "$as_me:$LINENO: result: $ac_res" >&5
16482echo "${ECHO_T}$ac_res" >&6; }
16483
16484fi
16485if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016486 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016488_ACEOF
16489
16490fi
16491
16492done
16493
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016494
16495for ac_header in valgrind/valgrind.h
16496do
16497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16503fi
16504ac_res=`eval echo '${'$as_ac_Header'}'`
16505 { echo "$as_me:$LINENO: result: $ac_res" >&5
16506echo "${ECHO_T}$ac_res" >&6; }
16507else
16508 # Is the header compilable?
16509{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16511cat >conftest.$ac_ext <<_ACEOF
16512/* confdefs.h. */
16513_ACEOF
16514cat confdefs.h >>conftest.$ac_ext
16515cat >>conftest.$ac_ext <<_ACEOF
16516/* end confdefs.h. */
16517$ac_includes_default
16518#include <$ac_header>
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (ac_try="$ac_compile"
16522case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525esac
16526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_compile") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16535 { (case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16538esac
16539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_try") 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_header_compiler=yes
16555else
16556 echo "$as_me: failed program was:" >&5
16557sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 ac_header_compiler=no
16560fi
16561
16562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16564echo "${ECHO_T}$ac_header_compiler" >&6; }
16565
16566# Is the header present?
16567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16569cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575#include <$ac_header>
16576_ACEOF
16577if { (ac_try="$ac_cpp conftest.$ac_ext"
16578case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16581esac
16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } >/dev/null; then
16590 if test -s conftest.err; then
16591 ac_cpp_err=$ac_c_preproc_warn_flag
16592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16593 else
16594 ac_cpp_err=
16595 fi
16596else
16597 ac_cpp_err=yes
16598fi
16599if test -z "$ac_cpp_err"; then
16600 ac_header_preproc=yes
16601else
16602 echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
16604
16605 ac_header_preproc=no
16606fi
16607
16608rm -f conftest.err conftest.$ac_ext
16609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16610echo "${ECHO_T}$ac_header_preproc" >&6; }
16611
16612# So? What about this header?
16613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16614 yes:no: )
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16619 ac_header_preproc=yes
16620 ;;
16621 no:yes:* )
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16634 ( cat <<\_ASBOX
16635## ----------------------------------- ##
16636## Report this to llvmbugs@cs.uiuc.edu ##
16637## ----------------------------------- ##
16638_ASBOX
16639 ) | sed "s/^/$as_me: WARNING: /" >&2
16640 ;;
16641esac
16642{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647 eval "$as_ac_Header=\$ac_header_preproc"
16648fi
16649ac_res=`eval echo '${'$as_ac_Header'}'`
16650 { echo "$as_me:$LINENO: result: $ac_res" >&5
16651echo "${ECHO_T}$ac_res" >&6; }
16652
16653fi
16654if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655 cat >>confdefs.h <<_ACEOF
16656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16657_ACEOF
16658
16659fi
16660
16661done
16662
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016663
16664for ac_header in fenv.h
16665do
16666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672fi
16673ac_res=`eval echo '${'$as_ac_Header'}'`
16674 { echo "$as_me:$LINENO: result: $ac_res" >&5
16675echo "${ECHO_T}$ac_res" >&6; }
16676else
16677 # Is the header compilable?
16678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16680cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
16686$ac_includes_default
16687#include <$ac_header>
16688_ACEOF
16689rm -f conftest.$ac_objext
16690if { (ac_try="$ac_compile"
16691case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694esac
16695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_compile") 2>conftest.er1
16697 ac_status=$?
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_header_compiler=yes
16724else
16725 echo "$as_me: failed program was:" >&5
16726sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 ac_header_compiler=no
16729fi
16730
16731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16733echo "${ECHO_T}$ac_header_compiler" >&6; }
16734
16735# Is the header present?
16736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16738cat >conftest.$ac_ext <<_ACEOF
16739/* confdefs.h. */
16740_ACEOF
16741cat confdefs.h >>conftest.$ac_ext
16742cat >>conftest.$ac_ext <<_ACEOF
16743/* end confdefs.h. */
16744#include <$ac_header>
16745_ACEOF
16746if { (ac_try="$ac_cpp conftest.$ac_ext"
16747case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } >/dev/null; then
16759 if test -s conftest.err; then
16760 ac_cpp_err=$ac_c_preproc_warn_flag
16761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16762 else
16763 ac_cpp_err=
16764 fi
16765else
16766 ac_cpp_err=yes
16767fi
16768if test -z "$ac_cpp_err"; then
16769 ac_header_preproc=yes
16770else
16771 echo "$as_me: failed program was:" >&5
16772sed 's/^/| /' conftest.$ac_ext >&5
16773
16774 ac_header_preproc=no
16775fi
16776
16777rm -f conftest.err conftest.$ac_ext
16778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16779echo "${ECHO_T}$ac_header_preproc" >&6; }
16780
16781# So? What about this header?
16782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16783 yes:no: )
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16788 ac_header_preproc=yes
16789 ;;
16790 no:yes:* )
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16803 ( cat <<\_ASBOX
16804## ----------------------------------- ##
16805## Report this to llvmbugs@cs.uiuc.edu ##
16806## ----------------------------------- ##
16807_ASBOX
16808 ) | sed "s/^/$as_me: WARNING: /" >&2
16809 ;;
16810esac
16811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 eval "$as_ac_Header=\$ac_header_preproc"
16817fi
16818ac_res=`eval echo '${'$as_ac_Header'}'`
16819 { echo "$as_me:$LINENO: result: $ac_res" >&5
16820echo "${ECHO_T}$ac_res" >&6; }
16821
16822fi
16823if test `eval echo '${'$as_ac_Header'}'` = yes; then
16824 cat >>confdefs.h <<_ACEOF
16825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16826_ACEOF
16827
16828fi
16829
16830done
16831
Reid Spencer0a262ba2005-08-24 10:07:20 +000016832if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016833
16834for ac_header in pthread.h
16835do
16836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16842fi
16843ac_res=`eval echo '${'$as_ac_Header'}'`
16844 { echo "$as_me:$LINENO: result: $ac_res" >&5
16845echo "${ECHO_T}$ac_res" >&6; }
16846else
16847 # Is the header compilable?
16848{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16849echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16850cat >conftest.$ac_ext <<_ACEOF
16851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
16856$ac_includes_default
16857#include <$ac_header>
16858_ACEOF
16859rm -f conftest.$ac_objext
16860if { (ac_try="$ac_compile"
16861case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864esac
16865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_compile") 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16877esac
16878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887esac
16888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_header_compiler=yes
16894else
16895 echo "$as_me: failed program was:" >&5
16896sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_header_compiler=no
16899fi
16900
16901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16902{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16903echo "${ECHO_T}$ac_header_compiler" >&6; }
16904
16905# Is the header present?
16906{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16908cat >conftest.$ac_ext <<_ACEOF
16909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h. */
16914#include <$ac_header>
16915_ACEOF
16916if { (ac_try="$ac_cpp conftest.$ac_ext"
16917case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16923 ac_status=$?
16924 grep -v '^ *+' conftest.er1 >conftest.err
16925 rm -f conftest.er1
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } >/dev/null; then
16929 if test -s conftest.err; then
16930 ac_cpp_err=$ac_c_preproc_warn_flag
16931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16932 else
16933 ac_cpp_err=
16934 fi
16935else
16936 ac_cpp_err=yes
16937fi
16938if test -z "$ac_cpp_err"; then
16939 ac_header_preproc=yes
16940else
16941 echo "$as_me: failed program was:" >&5
16942sed 's/^/| /' conftest.$ac_ext >&5
16943
16944 ac_header_preproc=no
16945fi
16946
16947rm -f conftest.err conftest.$ac_ext
16948{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16949echo "${ECHO_T}$ac_header_preproc" >&6; }
16950
16951# So? What about this header?
16952case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16953 yes:no: )
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16955echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16957echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16958 ac_header_preproc=yes
16959 ;;
16960 no:yes:* )
16961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16962echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16964echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16966echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16968echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16972echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16973 ( cat <<\_ASBOX
16974## ----------------------------------- ##
16975## Report this to llvmbugs@cs.uiuc.edu ##
16976## ----------------------------------- ##
16977_ASBOX
16978 ) | sed "s/^/$as_me: WARNING: /" >&2
16979 ;;
16980esac
16981{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 eval "$as_ac_Header=\$ac_header_preproc"
16987fi
16988ac_res=`eval echo '${'$as_ac_Header'}'`
16989 { echo "$as_me:$LINENO: result: $ac_res" >&5
16990echo "${ECHO_T}$ac_res" >&6; }
16991
16992fi
16993if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016994 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016996_ACEOF
16997 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016998
16999else
17000 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017001
17002fi
17003
Reid Spencerbe3e4192007-08-17 05:45:26 +000017004done
Reid Spencer1000b732006-12-01 00:37:14 +000017005
17006else
17007 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017008
17009fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017010
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017011if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017012
17013
17014for ac_header in ffi.h ffi/ffi.h
17015do
17016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022fi
17023ac_res=`eval echo '${'$as_ac_Header'}'`
17024 { echo "$as_me:$LINENO: result: $ac_res" >&5
17025echo "${ECHO_T}$ac_res" >&6; }
17026else
17027 # Is the header compilable?
17028{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17030cat >conftest.$ac_ext <<_ACEOF
17031/* confdefs.h. */
17032_ACEOF
17033cat confdefs.h >>conftest.$ac_ext
17034cat >>conftest.$ac_ext <<_ACEOF
17035/* end confdefs.h. */
17036$ac_includes_default
17037#include <$ac_header>
17038_ACEOF
17039rm -f conftest.$ac_objext
17040if { (ac_try="$ac_compile"
17041case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044esac
17045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_compile") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17054 { (case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057esac
17058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_try") 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; } &&
17063 { ac_try='test -s conftest.$ac_objext'
17064 { (case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_try") 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_header_compiler=yes
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 ac_header_compiler=no
17079fi
17080
17081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17083echo "${ECHO_T}$ac_header_compiler" >&6; }
17084
17085# Is the header present?
17086{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17088cat >conftest.$ac_ext <<_ACEOF
17089/* confdefs.h. */
17090_ACEOF
17091cat confdefs.h >>conftest.$ac_ext
17092cat >>conftest.$ac_ext <<_ACEOF
17093/* end confdefs.h. */
17094#include <$ac_header>
17095_ACEOF
17096if { (ac_try="$ac_cpp conftest.$ac_ext"
17097case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100esac
17101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } >/dev/null; then
17109 if test -s conftest.err; then
17110 ac_cpp_err=$ac_c_preproc_warn_flag
17111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17112 else
17113 ac_cpp_err=
17114 fi
17115else
17116 ac_cpp_err=yes
17117fi
17118if test -z "$ac_cpp_err"; then
17119 ac_header_preproc=yes
17120else
17121 echo "$as_me: failed program was:" >&5
17122sed 's/^/| /' conftest.$ac_ext >&5
17123
17124 ac_header_preproc=no
17125fi
17126
17127rm -f conftest.err conftest.$ac_ext
17128{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17129echo "${ECHO_T}$ac_header_preproc" >&6; }
17130
17131# So? What about this header?
17132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17133 yes:no: )
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17137echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17138 ac_header_preproc=yes
17139 ;;
17140 no:yes:* )
17141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17144echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17146echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17148echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17152echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17153 ( cat <<\_ASBOX
17154## ----------------------------------- ##
17155## Report this to llvmbugs@cs.uiuc.edu ##
17156## ----------------------------------- ##
17157_ASBOX
17158 ) | sed "s/^/$as_me: WARNING: /" >&2
17159 ;;
17160esac
17161{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17165else
17166 eval "$as_ac_Header=\$ac_header_preproc"
17167fi
17168ac_res=`eval echo '${'$as_ac_Header'}'`
17169 { echo "$as_me:$LINENO: result: $ac_res" >&5
17170echo "${ECHO_T}$ac_res" >&6; }
17171
17172fi
17173if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017174 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017176_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017177
17178fi
17179
17180done
17181
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017182fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017183
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017184
Eric Christopher654dee42010-06-22 21:01:04 +000017185for ac_header in CrashReporterClient.h
17186do
17187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17193fi
17194ac_res=`eval echo '${'$as_ac_Header'}'`
17195 { echo "$as_me:$LINENO: result: $ac_res" >&5
17196echo "${ECHO_T}$ac_res" >&6; }
17197else
17198 # Is the header compilable?
17199{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17200echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17201cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
17207$ac_includes_default
17208#include <$ac_header>
17209_ACEOF
17210rm -f conftest.$ac_objext
17211if { (ac_try="$ac_compile"
17212case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17215esac
17216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_compile") 2>conftest.er1
17218 ac_status=$?
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17228esac
17229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_try") 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238esac
17239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_try") 2>&5
17241 ac_status=$?
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 ac_header_compiler=yes
17245else
17246 echo "$as_me: failed program was:" >&5
17247sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 ac_header_compiler=no
17250fi
17251
17252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17254echo "${ECHO_T}$ac_header_compiler" >&6; }
17255
17256# Is the header present?
17257{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17258echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17259cat >conftest.$ac_ext <<_ACEOF
17260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
17265#include <$ac_header>
17266_ACEOF
17267if { (ac_try="$ac_cpp conftest.$ac_ext"
17268case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271esac
17272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } >/dev/null; then
17280 if test -s conftest.err; then
17281 ac_cpp_err=$ac_c_preproc_warn_flag
17282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17283 else
17284 ac_cpp_err=
17285 fi
17286else
17287 ac_cpp_err=yes
17288fi
17289if test -z "$ac_cpp_err"; then
17290 ac_header_preproc=yes
17291else
17292 echo "$as_me: failed program was:" >&5
17293sed 's/^/| /' conftest.$ac_ext >&5
17294
17295 ac_header_preproc=no
17296fi
17297
17298rm -f conftest.err conftest.$ac_ext
17299{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17300echo "${ECHO_T}$ac_header_preproc" >&6; }
17301
17302# So? What about this header?
17303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17304 yes:no: )
17305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17309 ac_header_preproc=yes
17310 ;;
17311 no:yes:* )
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17315echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17319echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17324 ( cat <<\_ASBOX
17325## ----------------------------------- ##
17326## Report this to llvmbugs@cs.uiuc.edu ##
17327## ----------------------------------- ##
17328_ASBOX
17329 ) | sed "s/^/$as_me: WARNING: /" >&2
17330 ;;
17331esac
17332{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17336else
17337 eval "$as_ac_Header=\$ac_header_preproc"
17338fi
17339ac_res=`eval echo '${'$as_ac_Header'}'`
17340 { echo "$as_me:$LINENO: result: $ac_res" >&5
17341echo "${ECHO_T}$ac_res" >&6; }
17342
17343fi
17344if test `eval echo '${'$as_ac_Header'}'` = yes; then
17345 cat >>confdefs.h <<_ACEOF
17346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17347_ACEOF
17348
17349fi
17350
17351done
17352
17353
17354
Reid Spencer8085cff2005-01-16 02:58:39 +000017355
Torok Edwin871384f2010-01-26 08:50:50 +000017356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017357 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17358echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17359if test "${ac_cv_huge_val_sanity+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017361else
17362
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017363 ac_ext=cpp
17364ac_cpp='$CXXCPP $CPPFLAGS'
17365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017368
Eric Christopherc7718502010-03-02 05:06:54 +000017369 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017370 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017371 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017372 ac_cv_huge_val_sanity=yes
17373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017374 cat >conftest.$ac_ext <<_ACEOF
17375/* confdefs.h. */
17376_ACEOF
17377cat confdefs.h >>conftest.$ac_ext
17378cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017379/* end confdefs.h. */
17380#include <math.h>
17381int
17382main ()
17383{
17384double x = HUGE_VAL; return x != x;
17385 ;
17386 return 0;
17387}
17388_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017389rm -f conftest$ac_exeext
17390if { (ac_try="$ac_link"
17391case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394esac
17395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017409 ac_cv_huge_val_sanity=yes
17410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017411 echo "$as_me: program exited with status $ac_status" >&5
17412echo "$as_me: failed program was:" >&5
17413sed 's/^/| /' conftest.$ac_ext >&5
17414
17415( exit $ac_status )
17416ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017418rm -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 +000017419fi
17420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017421
Eric Christopherc7718502010-03-02 05:06:54 +000017422 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017423 ac_ext=c
17424ac_cpp='$CPP $CPPFLAGS'
17425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427ac_compiler_gnu=$ac_cv_c_compiler_gnu
17428
17429
17430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017431{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17432echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017433 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17434
17435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017436{ echo "$as_me:$LINENO: checking for pid_t" >&5
17437echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17438if test "${ac_cv_type_pid_t+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17440else
17441 cat >conftest.$ac_ext <<_ACEOF
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447$ac_includes_default
17448typedef pid_t ac__type_new_;
17449int
17450main ()
17451{
17452if ((ac__type_new_ *) 0)
17453 return 0;
17454if (sizeof (ac__type_new_))
17455 return 0;
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460rm -f conftest.$ac_objext
17461if { (ac_try="$ac_compile"
17462case "(($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_compile") 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475 { (case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17478esac
17479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_try") 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest.$ac_objext'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_cv_type_pid_t=yes
17495else
17496 echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017499 ac_cv_type_pid_t=no
17500fi
17501
17502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503fi
17504{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17505echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17506if test $ac_cv_type_pid_t = yes; then
17507 :
John Criswell7a73b802003-06-30 21:59:07 +000017508else
17509
17510cat >>confdefs.h <<_ACEOF
17511#define pid_t int
17512_ACEOF
17513
17514fi
17515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017516{ echo "$as_me:$LINENO: checking for size_t" >&5
17517echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17518if test "${ac_cv_type_size_t+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520else
17521 cat >conftest.$ac_ext <<_ACEOF
17522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
17527$ac_includes_default
17528typedef size_t ac__type_new_;
17529int
17530main ()
17531{
17532if ((ac__type_new_ *) 0)
17533 return 0;
17534if (sizeof (ac__type_new_))
17535 return 0;
17536 ;
17537 return 0;
17538}
17539_ACEOF
17540rm -f conftest.$ac_objext
17541if { (ac_try="$ac_compile"
17542case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17545esac
17546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_compile") 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17555 { (case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17558esac
17559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_try") 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest.$ac_objext'
17565 { (case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568esac
17569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_try") 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_cv_type_size_t=yes
17575else
17576 echo "$as_me: failed program was:" >&5
17577sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017579 ac_cv_type_size_t=no
17580fi
17581
17582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583fi
17584{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17585echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17586if test $ac_cv_type_size_t = yes; then
17587 :
John Criswell7a73b802003-06-30 21:59:07 +000017588else
17589
17590cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017591#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017592_ACEOF
17593
17594fi
17595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017596
17597cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017598#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017599_ACEOF
17600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017601{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17602echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17603if test "${ac_cv_struct_tm+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017606 cat >conftest.$ac_ext <<_ACEOF
17607/* confdefs.h. */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017611/* end confdefs.h. */
17612#include <sys/types.h>
17613#include <time.h>
17614
17615int
17616main ()
17617{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017618struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017619 ;
17620 return 0;
17621}
17622_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017623rm -f conftest.$ac_objext
17624if { (ac_try="$ac_compile"
17625case "(($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_compile") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
17637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17638 { (case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17641esac
17642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_try") 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest.$ac_objext'
17648 { (case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17651esac
17652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_try") 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017657 ac_cv_struct_tm=time.h
17658else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017659 echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017664
Reid Spencera773bd52006-08-04 18:18:08 +000017665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017667{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17668echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017669if test $ac_cv_struct_tm = sys/time.h; then
17670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017671cat >>confdefs.h <<\_ACEOF
17672#define TM_IN_SYS_TIME 1
17673_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017674
17675fi
17676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017677{ echo "$as_me:$LINENO: checking for int64_t" >&5
17678echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17679if test "${ac_cv_type_int64_t+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682 cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689typedef int64_t ac__type_new_;
17690int
17691main ()
17692{
17693if ((ac__type_new_ *) 0)
17694 return 0;
17695if (sizeof (ac__type_new_))
17696 return 0;
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
17702if { (ac_try="$ac_compile"
17703case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706esac
17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719esac
17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_type_int64_t=yes
17736else
17737 echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
17739
17740 ac_cv_type_int64_t=no
17741fi
17742
17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744fi
17745{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17746echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17747if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017748
17749cat >>confdefs.h <<_ACEOF
17750#define HAVE_INT64_T 1
17751_ACEOF
17752
17753
17754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017755 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17756echo "$as_me: error: Type int64_t required but not found" >&2;}
17757 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017758fi
17759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017760{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17761echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17762if test "${ac_cv_type_uint64_t+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764else
17765 cat >conftest.$ac_ext <<_ACEOF
17766/* confdefs.h. */
17767_ACEOF
17768cat confdefs.h >>conftest.$ac_ext
17769cat >>conftest.$ac_ext <<_ACEOF
17770/* end confdefs.h. */
17771$ac_includes_default
17772typedef uint64_t ac__type_new_;
17773int
17774main ()
17775{
17776if ((ac__type_new_ *) 0)
17777 return 0;
17778if (sizeof (ac__type_new_))
17779 return 0;
17780 ;
17781 return 0;
17782}
17783_ACEOF
17784rm -f conftest.$ac_objext
17785if { (ac_try="$ac_compile"
17786case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789esac
17790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_compile") 2>conftest.er1
17792 ac_status=$?
17793 grep -v '^ *+' conftest.er1 >conftest.err
17794 rm -f conftest.er1
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17799 { (case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17802esac
17803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_try") 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest.$ac_objext'
17809 { (case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17812esac
17813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_try") 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_cv_type_uint64_t=yes
17819else
17820 echo "$as_me: failed program was:" >&5
17821sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 ac_cv_type_uint64_t=no
17824fi
17825
17826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827fi
17828{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17829echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17830if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017831
17832cat >>confdefs.h <<_ACEOF
17833#define HAVE_UINT64_T 1
17834_ACEOF
17835
17836
17837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017838 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17839echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17840if test "${ac_cv_type_u_int64_t+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842else
17843 cat >conftest.$ac_ext <<_ACEOF
17844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h. */
17849$ac_includes_default
17850typedef u_int64_t ac__type_new_;
17851int
17852main ()
17853{
17854if ((ac__type_new_ *) 0)
17855 return 0;
17856if (sizeof (ac__type_new_))
17857 return 0;
17858 ;
17859 return 0;
17860}
17861_ACEOF
17862rm -f conftest.$ac_objext
17863if { (ac_try="$ac_compile"
17864case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17867esac
17868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_compile") 2>conftest.er1
17870 ac_status=$?
17871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17877 { (case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880esac
17881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_try") 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890esac
17891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_type_u_int64_t=yes
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901 ac_cv_type_u_int64_t=no
17902fi
17903
17904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17905fi
17906{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17907echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17908if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017909
17910cat >>confdefs.h <<_ACEOF
17911#define HAVE_U_INT64_T 1
17912_ACEOF
17913
17914
Misha Brukmanceca9042004-09-02 23:02:30 +000017915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017916 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17917echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17918 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017919fi
17920
John Criswell679ff312004-09-02 18:44:44 +000017921fi
17922
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017923
17924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017925
17926
17927
17928
17929
17930
17931
Reid Spencerdf3be822006-01-23 08:15:53 +000017932for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017933do
17934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17935{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17937if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939else
17940 cat >conftest.$ac_ext <<_ACEOF
17941/* confdefs.h. */
17942_ACEOF
17943cat confdefs.h >>conftest.$ac_ext
17944cat >>conftest.$ac_ext <<_ACEOF
17945/* end confdefs.h. */
17946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17948#define $ac_func innocuous_$ac_func
17949
17950/* System header to define __stub macros and hopefully few prototypes,
17951 which can conflict with char $ac_func (); below.
17952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17953 <limits.h> exists even on freestanding compilers. */
17954
17955#ifdef __STDC__
17956# include <limits.h>
17957#else
17958# include <assert.h>
17959#endif
17960
17961#undef $ac_func
17962
17963/* Override any GCC internal prototype to avoid an error.
17964 Use char because int might match the return type of a GCC
17965 builtin and then its argument prototype would still apply. */
17966#ifdef __cplusplus
17967extern "C"
17968#endif
17969char $ac_func ();
17970/* The GNU C library defines this for functions which it implements
17971 to always fail with ENOSYS. Some functions are actually named
17972 something starting with __ and the normal name is an alias. */
17973#if defined __stub_$ac_func || defined __stub___$ac_func
17974choke me
17975#endif
17976
17977int
17978main ()
17979{
17980return $ac_func ();
17981 ;
17982 return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext conftest$ac_exeext
17986if { (ac_try="$ac_link"
17987case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17990esac
17991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_link") 2>conftest.er1
17993 ac_status=$?
17994 grep -v '^ *+' conftest.er1 >conftest.err
17995 rm -f conftest.er1
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } &&
17999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18000 { (case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18003esac
18004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_try") 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest$ac_exeext'
18010 { (case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013esac
18014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_try") 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; }; then
18019 eval "$as_ac_var=yes"
18020else
18021 echo "$as_me: failed program was:" >&5
18022sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 eval "$as_ac_var=no"
18025fi
18026
18027rm -f core conftest.err conftest.$ac_objext \
18028 conftest$ac_exeext conftest.$ac_ext
18029fi
18030ac_res=`eval echo '${'$as_ac_var'}'`
18031 { echo "$as_me:$LINENO: result: $ac_res" >&5
18032echo "${ECHO_T}$ac_res" >&6; }
18033if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018034 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018036_ACEOF
18037
18038fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018039done
John Criswell7a73b802003-06-30 21:59:07 +000018040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018041
18042
18043
18044
Reid Spencer96cf5872007-07-13 10:05:30 +000018045for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018046do
18047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18052else
18053 cat >conftest.$ac_ext <<_ACEOF
18054/* confdefs.h. */
18055_ACEOF
18056cat confdefs.h >>conftest.$ac_ext
18057cat >>conftest.$ac_ext <<_ACEOF
18058/* end confdefs.h. */
18059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18061#define $ac_func innocuous_$ac_func
18062
18063/* System header to define __stub macros and hopefully few prototypes,
18064 which can conflict with char $ac_func (); below.
18065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18066 <limits.h> exists even on freestanding compilers. */
18067
18068#ifdef __STDC__
18069# include <limits.h>
18070#else
18071# include <assert.h>
18072#endif
18073
18074#undef $ac_func
18075
18076/* Override any GCC internal prototype to avoid an error.
18077 Use char because int might match the return type of a GCC
18078 builtin and then its argument prototype would still apply. */
18079#ifdef __cplusplus
18080extern "C"
18081#endif
18082char $ac_func ();
18083/* The GNU C library defines this for functions which it implements
18084 to always fail with ENOSYS. Some functions are actually named
18085 something starting with __ and the normal name is an alias. */
18086#if defined __stub_$ac_func || defined __stub___$ac_func
18087choke me
18088#endif
18089
18090int
18091main ()
18092{
18093return $ac_func ();
18094 ;
18095 return 0;
18096}
18097_ACEOF
18098rm -f conftest.$ac_objext conftest$ac_exeext
18099if { (ac_try="$ac_link"
18100case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103esac
18104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>conftest.er1
18106 ac_status=$?
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18113 { (case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18116esac
18117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_try") 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest$ac_exeext'
18123 { (case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18126esac
18127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_try") 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 eval "$as_ac_var=yes"
18133else
18134 echo "$as_me: failed program was:" >&5
18135sed 's/^/| /' conftest.$ac_ext >&5
18136
18137 eval "$as_ac_var=no"
18138fi
18139
18140rm -f core conftest.err conftest.$ac_objext \
18141 conftest$ac_exeext conftest.$ac_ext
18142fi
18143ac_res=`eval echo '${'$as_ac_var'}'`
18144 { echo "$as_me:$LINENO: result: $ac_res" >&5
18145echo "${ECHO_T}$ac_res" >&6; }
18146if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018147 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018149_ACEOF
18150
18151fi
18152done
18153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018154
18155
18156
18157
18158
Reid Spencerb90645c2007-02-16 19:17:20 +000018159for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018160do
18161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18164if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18166else
18167 cat >conftest.$ac_ext <<_ACEOF
18168/* confdefs.h. */
18169_ACEOF
18170cat confdefs.h >>conftest.$ac_ext
18171cat >>conftest.$ac_ext <<_ACEOF
18172/* end confdefs.h. */
18173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175#define $ac_func innocuous_$ac_func
18176
18177/* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char $ac_func (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18181
18182#ifdef __STDC__
18183# include <limits.h>
18184#else
18185# include <assert.h>
18186#endif
18187
18188#undef $ac_func
18189
18190/* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18193#ifdef __cplusplus
18194extern "C"
18195#endif
18196char $ac_func ();
18197/* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200#if defined __stub_$ac_func || defined __stub___$ac_func
18201choke me
18202#endif
18203
18204int
18205main ()
18206{
18207return $ac_func ();
18208 ;
18209 return 0;
18210}
18211_ACEOF
18212rm -f conftest.$ac_objext conftest$ac_exeext
18213if { (ac_try="$ac_link"
18214case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217esac
18218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_link") 2>conftest.er1
18220 ac_status=$?
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
18226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18227 { (case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18230esac
18231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232 (eval "$ac_try") 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } &&
18236 { ac_try='test -s conftest$ac_exeext'
18237 { (case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18240esac
18241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_try") 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 eval "$as_ac_var=yes"
18247else
18248 echo "$as_me: failed program was:" >&5
18249sed 's/^/| /' conftest.$ac_ext >&5
18250
18251 eval "$as_ac_var=no"
18252fi
18253
18254rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256fi
18257ac_res=`eval echo '${'$as_ac_var'}'`
18258 { echo "$as_me:$LINENO: result: $ac_res" >&5
18259echo "${ECHO_T}$ac_res" >&6; }
18260if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018261 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018263_ACEOF
18264
18265fi
18266done
18267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018268
18269
18270
Reid Spencerb90645c2007-02-16 19:17:20 +000018271for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018272do
18273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18274{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18276if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18278else
18279 cat >conftest.$ac_ext <<_ACEOF
18280/* confdefs.h. */
18281_ACEOF
18282cat confdefs.h >>conftest.$ac_ext
18283cat >>conftest.$ac_ext <<_ACEOF
18284/* end confdefs.h. */
18285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18287#define $ac_func innocuous_$ac_func
18288
18289/* System header to define __stub macros and hopefully few prototypes,
18290 which can conflict with char $ac_func (); below.
18291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18292 <limits.h> exists even on freestanding compilers. */
18293
18294#ifdef __STDC__
18295# include <limits.h>
18296#else
18297# include <assert.h>
18298#endif
18299
18300#undef $ac_func
18301
18302/* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18305#ifdef __cplusplus
18306extern "C"
18307#endif
18308char $ac_func ();
18309/* The GNU C library defines this for functions which it implements
18310 to always fail with ENOSYS. Some functions are actually named
18311 something starting with __ and the normal name is an alias. */
18312#if defined __stub_$ac_func || defined __stub___$ac_func
18313choke me
18314#endif
18315
18316int
18317main ()
18318{
18319return $ac_func ();
18320 ;
18321 return 0;
18322}
18323_ACEOF
18324rm -f conftest.$ac_objext conftest$ac_exeext
18325if { (ac_try="$ac_link"
18326case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329esac
18330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18342esac
18343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest$ac_exeext'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18352esac
18353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358 eval "$as_ac_var=yes"
18359else
18360 echo "$as_me: failed program was:" >&5
18361sed 's/^/| /' conftest.$ac_ext >&5
18362
18363 eval "$as_ac_var=no"
18364fi
18365
18366rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368fi
18369ac_res=`eval echo '${'$as_ac_var'}'`
18370 { echo "$as_me:$LINENO: result: $ac_res" >&5
18371echo "${ECHO_T}$ac_res" >&6; }
18372if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018373 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018375_ACEOF
18376
18377fi
18378done
18379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018380
18381
18382
18383
18384
Eric Christophere4291822010-04-16 05:14:21 +000018385
18386for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018387do
18388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18389{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18391if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18393else
18394 cat >conftest.$ac_ext <<_ACEOF
18395/* confdefs.h. */
18396_ACEOF
18397cat confdefs.h >>conftest.$ac_ext
18398cat >>conftest.$ac_ext <<_ACEOF
18399/* end confdefs.h. */
18400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18402#define $ac_func innocuous_$ac_func
18403
18404/* System header to define __stub macros and hopefully few prototypes,
18405 which can conflict with char $ac_func (); below.
18406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 <limits.h> exists even on freestanding compilers. */
18408
18409#ifdef __STDC__
18410# include <limits.h>
18411#else
18412# include <assert.h>
18413#endif
18414
18415#undef $ac_func
18416
18417/* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18420#ifdef __cplusplus
18421extern "C"
18422#endif
18423char $ac_func ();
18424/* The GNU C library defines this for functions which it implements
18425 to always fail with ENOSYS. Some functions are actually named
18426 something starting with __ and the normal name is an alias. */
18427#if defined __stub_$ac_func || defined __stub___$ac_func
18428choke me
18429#endif
18430
18431int
18432main ()
18433{
18434return $ac_func ();
18435 ;
18436 return 0;
18437}
18438_ACEOF
18439rm -f conftest.$ac_objext conftest$ac_exeext
18440if { (ac_try="$ac_link"
18441case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18444esac
18445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_link") 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18454 { (case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18457esac
18458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_try") 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest$ac_exeext'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18467esac
18468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 eval "$as_ac_var=yes"
18474else
18475 echo "$as_me: failed program was:" >&5
18476sed 's/^/| /' conftest.$ac_ext >&5
18477
18478 eval "$as_ac_var=no"
18479fi
18480
18481rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18483fi
18484ac_res=`eval echo '${'$as_ac_var'}'`
18485 { echo "$as_me:$LINENO: result: $ac_res" >&5
18486echo "${ECHO_T}$ac_res" >&6; }
18487if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018488 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018490_ACEOF
18491
18492fi
18493done
Reid Spencerdf3be822006-01-23 08:15:53 +000018494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018495
18496
18497
18498
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018499for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018500do
18501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18502{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18504if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
18513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18515#define $ac_func innocuous_$ac_func
18516
18517/* System header to define __stub macros and hopefully few prototypes,
18518 which can conflict with char $ac_func (); below.
18519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18520 <limits.h> exists even on freestanding compilers. */
18521
18522#ifdef __STDC__
18523# include <limits.h>
18524#else
18525# include <assert.h>
18526#endif
18527
18528#undef $ac_func
18529
18530/* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18533#ifdef __cplusplus
18534extern "C"
18535#endif
18536char $ac_func ();
18537/* The GNU C library defines this for functions which it implements
18538 to always fail with ENOSYS. Some functions are actually named
18539 something starting with __ and the normal name is an alias. */
18540#if defined __stub_$ac_func || defined __stub___$ac_func
18541choke me
18542#endif
18543
18544int
18545main ()
18546{
18547return $ac_func ();
18548 ;
18549 return 0;
18550}
18551_ACEOF
18552rm -f conftest.$ac_objext conftest$ac_exeext
18553if { (ac_try="$ac_link"
18554case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18557esac
18558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_link") 2>conftest.er1
18560 ac_status=$?
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
18566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18567 { (case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570esac
18571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_try") 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest$ac_exeext'
18577 { (case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18580esac
18581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_try") 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; }; then
18586 eval "$as_ac_var=yes"
18587else
18588 echo "$as_me: failed program was:" >&5
18589sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 eval "$as_ac_var=no"
18592fi
18593
18594rm -f core conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18596fi
18597ac_res=`eval echo '${'$as_ac_var'}'`
18598 { echo "$as_me:$LINENO: result: $ac_res" >&5
18599echo "${ECHO_T}$ac_res" >&6; }
18600if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018601 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018603_ACEOF
18604
18605fi
18606done
18607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018608
18609
18610
18611
Chris Lattner511f11d2005-11-14 07:25:50 +000018612for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018613do
18614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18615{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18617if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18619else
18620 cat >conftest.$ac_ext <<_ACEOF
18621/* confdefs.h. */
18622_ACEOF
18623cat confdefs.h >>conftest.$ac_ext
18624cat >>conftest.$ac_ext <<_ACEOF
18625/* end confdefs.h. */
18626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18628#define $ac_func innocuous_$ac_func
18629
18630/* System header to define __stub macros and hopefully few prototypes,
18631 which can conflict with char $ac_func (); below.
18632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18633 <limits.h> exists even on freestanding compilers. */
18634
18635#ifdef __STDC__
18636# include <limits.h>
18637#else
18638# include <assert.h>
18639#endif
18640
18641#undef $ac_func
18642
18643/* Override any GCC internal prototype to avoid an error.
18644 Use char because int might match the return type of a GCC
18645 builtin and then its argument prototype would still apply. */
18646#ifdef __cplusplus
18647extern "C"
18648#endif
18649char $ac_func ();
18650/* The GNU C library defines this for functions which it implements
18651 to always fail with ENOSYS. Some functions are actually named
18652 something starting with __ and the normal name is an alias. */
18653#if defined __stub_$ac_func || defined __stub___$ac_func
18654choke me
18655#endif
18656
18657int
18658main ()
18659{
18660return $ac_func ();
18661 ;
18662 return 0;
18663}
18664_ACEOF
18665rm -f conftest.$ac_objext conftest$ac_exeext
18666if { (ac_try="$ac_link"
18667case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670esac
18671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_link") 2>conftest.er1
18673 ac_status=$?
18674 grep -v '^ *+' conftest.er1 >conftest.err
18675 rm -f conftest.er1
18676 cat conftest.err >&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } &&
18679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18680 { (case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18683esac
18684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685 (eval "$ac_try") 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest$ac_exeext'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693esac
18694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 eval "$as_ac_var=yes"
18700else
18701 echo "$as_me: failed program was:" >&5
18702sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 eval "$as_ac_var=no"
18705fi
18706
18707rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18709fi
18710ac_res=`eval echo '${'$as_ac_var'}'`
18711 { echo "$as_me:$LINENO: result: $ac_res" >&5
18712echo "${ECHO_T}$ac_res" >&6; }
18713if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018714 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018716_ACEOF
18717
18718fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018719done
John Criswell7a73b802003-06-30 21:59:07 +000018720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018721
18722
18723
18724
Reid Spencerafa22e22006-12-10 23:29:19 +000018725for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018726do
18727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18728{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18730if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18732else
18733 cat >conftest.$ac_ext <<_ACEOF
18734/* confdefs.h. */
18735_ACEOF
18736cat confdefs.h >>conftest.$ac_ext
18737cat >>conftest.$ac_ext <<_ACEOF
18738/* end confdefs.h. */
18739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18741#define $ac_func innocuous_$ac_func
18742
18743/* System header to define __stub macros and hopefully few prototypes,
18744 which can conflict with char $ac_func (); below.
18745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18746 <limits.h> exists even on freestanding compilers. */
18747
18748#ifdef __STDC__
18749# include <limits.h>
18750#else
18751# include <assert.h>
18752#endif
18753
18754#undef $ac_func
18755
18756/* Override any GCC internal prototype to avoid an error.
18757 Use char because int might match the return type of a GCC
18758 builtin and then its argument prototype would still apply. */
18759#ifdef __cplusplus
18760extern "C"
18761#endif
18762char $ac_func ();
18763/* The GNU C library defines this for functions which it implements
18764 to always fail with ENOSYS. Some functions are actually named
18765 something starting with __ and the normal name is an alias. */
18766#if defined __stub_$ac_func || defined __stub___$ac_func
18767choke me
18768#endif
18769
18770int
18771main ()
18772{
18773return $ac_func ();
18774 ;
18775 return 0;
18776}
18777_ACEOF
18778rm -f conftest.$ac_objext conftest$ac_exeext
18779if { (ac_try="$ac_link"
18780case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783esac
18784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18796esac
18797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806esac
18807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 eval "$as_ac_var=yes"
18813else
18814 echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 eval "$as_ac_var=no"
18818fi
18819
18820rm -f core conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822fi
18823ac_res=`eval echo '${'$as_ac_var'}'`
18824 { echo "$as_me:$LINENO: result: $ac_res" >&5
18825echo "${ECHO_T}$ac_res" >&6; }
18826if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018827 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018829_ACEOF
18830
18831fi
18832done
18833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018834{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18835echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18836if test "${llvm_cv_c_printf_a+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018838else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018839 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018840ac_cpp='$CPP $CPPFLAGS'
18841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843ac_compiler_gnu=$ac_cv_c_compiler_gnu
18844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018845 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018846 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018847else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018848 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018850 /* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018855
John Criswella0137d32003-10-13 16:22:01 +000018856#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018857#include <stdlib.h>
18858
John Criswella0137d32003-10-13 16:22:01 +000018859int
18860main ()
18861{
18862
Reid Spencer2706f8c2004-09-19 23:53:36 +000018863volatile double A, B;
18864char Buffer[100];
18865A = 1;
18866A /= 10.0;
18867sprintf(Buffer, "%a", A);
18868B = atof(Buffer);
18869if (A != B)
18870 return (1);
18871if (A != 0x1.999999999999ap-4)
18872 return (1);
18873return (0);
John Criswella0137d32003-10-13 16:22:01 +000018874 ;
18875 return 0;
18876}
18877_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018878rm -f conftest$ac_exeext
18879if { (ac_try="$ac_link"
18880case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18883esac
18884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_link") 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892esac
18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_try") 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018898 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018900 echo "$as_me: program exited with status $ac_status" >&5
18901echo "$as_me: failed program was:" >&5
18902sed 's/^/| /' conftest.$ac_ext >&5
18903
18904( exit $ac_status )
18905llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018907rm -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 +000018908fi
Reid Spencera773bd52006-08-04 18:18:08 +000018909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018910
Reid Spencer2706f8c2004-09-19 23:53:36 +000018911 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018912ac_cpp='$CPP $CPPFLAGS'
18913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915ac_compiler_gnu=$ac_cv_c_compiler_gnu
18916
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018918{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18919echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018920 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018922cat >>confdefs.h <<\_ACEOF
18923#define HAVE_PRINTF_A 1
18924_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018925
Reid Spencer2706f8c2004-09-19 23:53:36 +000018926 fi
John Criswella0137d32003-10-13 16:22:01 +000018927
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018929{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18930echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18931if test "${ac_cv_func_rand48+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018933else
Reid Spencera773bd52006-08-04 18:18:08 +000018934 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018935ac_cpp='$CXXCPP $CPPFLAGS'
18936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018940 cat >conftest.$ac_ext <<_ACEOF
18941/* confdefs.h. */
18942_ACEOF
18943cat confdefs.h >>conftest.$ac_ext
18944cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018945/* end confdefs.h. */
18946#include <stdlib.h>
18947int
18948main ()
18949{
18950srand48(0);lrand48();drand48();
18951 ;
18952 return 0;
18953}
18954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018955rm -f conftest.$ac_objext
18956if { (ac_try="$ac_compile"
18957case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18960esac
18961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_compile") 2>conftest.er1
18963 ac_status=$?
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18970 { (case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_try") 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest.$ac_objext'
18980 { (case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18983esac
18984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_try") 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018989 ac_cv_func_rand48=yes
18990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018991 echo "$as_me: failed program was:" >&5
18992sed 's/^/| /' conftest.$ac_ext >&5
18993
18994 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018996
Reid Spencera773bd52006-08-04 18:18:08 +000018997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018998 ac_ext=c
18999ac_cpp='$CPP $CPPFLAGS'
19000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19002ac_compiler_gnu=$ac_cv_c_compiler_gnu
19003
19004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019005{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19006echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019007
19008if test "$ac_cv_func_rand48" = "yes" ; then
19009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019010cat >>confdefs.h <<\_ACEOF
19011#define HAVE_RAND48 1
19012_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019013
19014fi
John Criswell0021c312004-02-13 21:57:29 +000019015
19016
Torok Edwin871384f2010-01-26 08:50:50 +000019017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019018{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19019echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19020if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019022else
Reid Spencera773bd52006-08-04 18:18:08 +000019023 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019024ac_cpp='$CXXCPP $CPPFLAGS'
19025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019029 cat >conftest.$ac_ext <<_ACEOF
19030/* confdefs.h. */
19031_ACEOF
19032cat confdefs.h >>conftest.$ac_ext
19033cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019034/* end confdefs.h. */
19035#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019036int
19037main ()
19038{
19039float f; isnan(f);
19040 ;
19041 return 0;
19042}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019043_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019044rm -f conftest.$ac_objext
19045if { (ac_try="$ac_compile"
19046case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19049esac
19050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_compile") 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } &&
19058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19059 { (case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19062esac
19063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_try") 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } &&
19068 { ac_try='test -s conftest.$ac_objext'
19069 { (case "(($ac_try" in
19070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071 *) ac_try_echo=$ac_try;;
19072esac
19073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074 (eval "$ac_try") 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019078 ac_cv_func_isnan_in_math_h=yes
19079else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019080 echo "$as_me: failed program was:" >&5
19081sed 's/^/| /' conftest.$ac_ext >&5
19082
19083 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019085
Reid Spencera773bd52006-08-04 18:18:08 +000019086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019087 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019088ac_cpp='$CPP $CPPFLAGS'
19089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19091ac_compiler_gnu=$ac_cv_c_compiler_gnu
19092
19093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019094{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19095echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019096
19097
19098if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019100cat >>confdefs.h <<\_ACEOF
19101#define HAVE_ISNAN_IN_MATH_H 1
19102_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019103
Reid Spencerabec8f92004-10-27 23:03:44 +000019104fi
19105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019106{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19107echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19108if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019110else
Reid Spencera773bd52006-08-04 18:18:08 +000019111 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019112ac_cpp='$CXXCPP $CPPFLAGS'
19113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019117 cat >conftest.$ac_ext <<_ACEOF
19118/* confdefs.h. */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019122/* end confdefs.h. */
19123#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019124int
19125main ()
19126{
19127float f; isnan(f);
19128 ;
19129 return 0;
19130}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019131_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019132rm -f conftest.$ac_objext
19133if { (ac_try="$ac_compile"
19134case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137esac
19138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_compile") 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19147 { (case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150esac
19151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_try") 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest.$ac_objext'
19157 { (case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19160esac
19161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162 (eval "$ac_try") 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019166 ac_cv_func_isnan_in_cmath=yes
19167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019168 echo "$as_me: failed program was:" >&5
19169sed 's/^/| /' conftest.$ac_ext >&5
19170
19171 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019173
Reid Spencera773bd52006-08-04 18:18:08 +000019174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019175 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019176ac_cpp='$CPP $CPPFLAGS'
19177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179ac_compiler_gnu=$ac_cv_c_compiler_gnu
19180
19181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019182{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19183echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019184
19185if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019187cat >>confdefs.h <<\_ACEOF
19188#define HAVE_ISNAN_IN_CMATH 1
19189_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019190
Reid Spencerabec8f92004-10-27 23:03:44 +000019191fi
19192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019193{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19194echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19195if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019197else
Reid Spencera773bd52006-08-04 18:18:08 +000019198 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019199ac_cpp='$CXXCPP $CPPFLAGS'
19200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019204 cat >conftest.$ac_ext <<_ACEOF
19205/* confdefs.h. */
19206_ACEOF
19207cat confdefs.h >>conftest.$ac_ext
19208cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019209/* end confdefs.h. */
19210#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019211int
19212main ()
19213{
19214float f; std::isnan(f);
19215 ;
19216 return 0;
19217}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019218_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019219rm -f conftest.$ac_objext
19220if { (ac_try="$ac_compile"
19221case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19224esac
19225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_compile") 2>conftest.er1
19227 ac_status=$?
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19234 { (case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19237esac
19238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239 (eval "$ac_try") 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
19244 { (case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19247esac
19248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_try") 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019253 ac_cv_func_std_isnan_in_cmath=yes
19254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019255 echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019260
Reid Spencera773bd52006-08-04 18:18:08 +000019261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019262 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019263ac_cpp='$CPP $CPPFLAGS'
19264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267
19268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019269{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19270echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019271
19272if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019274cat >>confdefs.h <<\_ACEOF
19275#define HAVE_STD_ISNAN_IN_CMATH 1
19276_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019277
Reid Spencerabec8f92004-10-27 23:03:44 +000019278fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019279
19280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019281{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19282echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19283if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019285else
Reid Spencera773bd52006-08-04 18:18:08 +000019286 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019287ac_cpp='$CXXCPP $CPPFLAGS'
19288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019292 cat >conftest.$ac_ext <<_ACEOF
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019297/* end confdefs.h. */
19298#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019299int
19300main ()
19301{
19302float f; isinf(f);
19303 ;
19304 return 0;
19305}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019306_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019307rm -f conftest.$ac_objext
19308if { (ac_try="$ac_compile"
19309case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19312esac
19313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_compile") 2>conftest.er1
19315 ac_status=$?
19316 grep -v '^ *+' conftest.er1 >conftest.err
19317 rm -f conftest.er1
19318 cat conftest.err >&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } &&
19321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19322 { (case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325esac
19326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_try") 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; } &&
19331 { ac_try='test -s conftest.$ac_objext'
19332 { (case "(($ac_try" in
19333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334 *) ac_try_echo=$ac_try;;
19335esac
19336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337 (eval "$ac_try") 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019341 ac_cv_func_isinf_in_math_h=yes
19342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019343 echo "$as_me: failed program was:" >&5
19344sed 's/^/| /' conftest.$ac_ext >&5
19345
19346 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019348
Reid Spencera773bd52006-08-04 18:18:08 +000019349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019350 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019351ac_cpp='$CPP $CPPFLAGS'
19352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354ac_compiler_gnu=$ac_cv_c_compiler_gnu
19355
19356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019357{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19358echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019359
19360if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019362cat >>confdefs.h <<\_ACEOF
19363#define HAVE_ISINF_IN_MATH_H 1
19364_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019365
Reid Spencerabec8f92004-10-27 23:03:44 +000019366fi
19367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019368{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19369echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19370if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019372else
Reid Spencera773bd52006-08-04 18:18:08 +000019373 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019374ac_cpp='$CXXCPP $CPPFLAGS'
19375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019379 cat >conftest.$ac_ext <<_ACEOF
19380/* confdefs.h. */
19381_ACEOF
19382cat confdefs.h >>conftest.$ac_ext
19383cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019384/* end confdefs.h. */
19385#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019386int
19387main ()
19388{
19389float f; isinf(f);
19390 ;
19391 return 0;
19392}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019393_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019394rm -f conftest.$ac_objext
19395if { (ac_try="$ac_compile"
19396case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19399esac
19400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19409 { (case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19412esac
19413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_try") 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19422esac
19423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019428 ac_cv_func_isinf_in_cmath=yes
19429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019430 echo "$as_me: failed program was:" >&5
19431sed 's/^/| /' conftest.$ac_ext >&5
19432
19433 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019435
Reid Spencera773bd52006-08-04 18:18:08 +000019436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019437 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019438ac_cpp='$CPP $CPPFLAGS'
19439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441ac_compiler_gnu=$ac_cv_c_compiler_gnu
19442
19443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019444{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19445echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019446
19447if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019449cat >>confdefs.h <<\_ACEOF
19450#define HAVE_ISINF_IN_CMATH 1
19451_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019452
Reid Spencerabec8f92004-10-27 23:03:44 +000019453fi
19454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019455{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19456echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19457if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019459else
Reid Spencera773bd52006-08-04 18:18:08 +000019460 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019461ac_cpp='$CXXCPP $CPPFLAGS'
19462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019466 cat >conftest.$ac_ext <<_ACEOF
19467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019471/* end confdefs.h. */
19472#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019473int
19474main ()
19475{
19476float f; std::isinf(f)}
19477 ;
19478 return 0;
19479}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019480_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019481rm -f conftest.$ac_objext
19482if { (ac_try="$ac_compile"
19483case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19486esac
19487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_compile") 2>conftest.er1
19489 ac_status=$?
19490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
19495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19496 { (case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499esac
19500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_try") 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try='test -s conftest.$ac_objext'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019515 ac_cv_func_std_isinf_in_cmath=yes
19516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019517 echo "$as_me: failed program was:" >&5
19518sed 's/^/| /' conftest.$ac_ext >&5
19519
19520 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019522
Reid Spencera773bd52006-08-04 18:18:08 +000019523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019524 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019525ac_cpp='$CPP $CPPFLAGS'
19526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19528ac_compiler_gnu=$ac_cv_c_compiler_gnu
19529
19530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019531{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19532echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019533
19534if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019536cat >>confdefs.h <<\_ACEOF
19537#define HAVE_STD_ISINF_IN_CMATH 1
19538_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019539
Reid Spencerabec8f92004-10-27 23:03:44 +000019540fi
19541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019542{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19543echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19544if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019546else
Reid Spencera773bd52006-08-04 18:18:08 +000019547 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019548ac_cpp='$CXXCPP $CPPFLAGS'
19549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019553 cat >conftest.$ac_ext <<_ACEOF
19554/* confdefs.h. */
19555_ACEOF
19556cat confdefs.h >>conftest.$ac_ext
19557cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019558/* end confdefs.h. */
19559#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019560int
19561main ()
19562{
19563float f; finite(f);
19564 ;
19565 return 0;
19566}
Brian Gaeked59a6472004-07-21 03:33:58 +000019567_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019568rm -f conftest.$ac_objext
19569if { (ac_try="$ac_compile"
19570case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19573esac
19574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19583 { (case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586esac
19587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_try") 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; } &&
19592 { ac_try='test -s conftest.$ac_objext'
19593 { (case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19596esac
19597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_try") 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019602 ac_cv_func_finite_in_ieeefp_h=yes
19603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019604 echo "$as_me: failed program was:" >&5
19605sed 's/^/| /' conftest.$ac_ext >&5
19606
19607 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019609
Reid Spencera773bd52006-08-04 18:18:08 +000019610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019611 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019612ac_cpp='$CPP $CPPFLAGS'
19613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19615ac_compiler_gnu=$ac_cv_c_compiler_gnu
19616
19617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019618{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19619echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019620
Brian Gaeke6802b552004-10-28 05:06:45 +000019621if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623cat >>confdefs.h <<\_ACEOF
19624#define HAVE_FINITE_IN_IEEEFP_H 1
19625_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019626
Reid Spencerabec8f92004-10-27 23:03:44 +000019627fi
19628
19629
19630
Reid Spencer30fe5262007-01-20 07:48:49 +000019631if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019632
19633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019634for ac_header in stdlib.h unistd.h
19635do
19636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642fi
19643ac_res=`eval echo '${'$as_ac_Header'}'`
19644 { echo "$as_me:$LINENO: result: $ac_res" >&5
19645echo "${ECHO_T}$ac_res" >&6; }
19646else
19647 # Is the header compilable?
19648{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19650cat >conftest.$ac_ext <<_ACEOF
19651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h. */
19656$ac_includes_default
19657#include <$ac_header>
19658_ACEOF
19659rm -f conftest.$ac_objext
19660if { (ac_try="$ac_compile"
19661case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19664esac
19665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_compile") 2>conftest.er1
19667 ac_status=$?
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
19673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19674 { (case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677esac
19678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_try") 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687esac
19688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 ac_header_compiler=yes
19694else
19695 echo "$as_me: failed program was:" >&5
19696sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019698 ac_header_compiler=no
19699fi
19700
19701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19703echo "${ECHO_T}$ac_header_compiler" >&6; }
19704
19705# Is the header present?
19706{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19708cat >conftest.$ac_ext <<_ACEOF
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714#include <$ac_header>
19715_ACEOF
19716if { (ac_try="$ac_cpp conftest.$ac_ext"
19717case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19720esac
19721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19723 ac_status=$?
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } >/dev/null; then
19729 if test -s conftest.err; then
19730 ac_cpp_err=$ac_c_preproc_warn_flag
19731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19732 else
19733 ac_cpp_err=
19734 fi
19735else
19736 ac_cpp_err=yes
19737fi
19738if test -z "$ac_cpp_err"; then
19739 ac_header_preproc=yes
19740else
19741 echo "$as_me: failed program was:" >&5
19742sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 ac_header_preproc=no
19745fi
19746
19747rm -f conftest.err conftest.$ac_ext
19748{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19749echo "${ECHO_T}$ac_header_preproc" >&6; }
19750
19751# So? What about this header?
19752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19753 yes:no: )
19754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19758 ac_header_preproc=yes
19759 ;;
19760 no:yes:* )
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19764echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19768echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19773 ( cat <<\_ASBOX
19774## ----------------------------------- ##
19775## Report this to llvmbugs@cs.uiuc.edu ##
19776## ----------------------------------- ##
19777_ASBOX
19778 ) | sed "s/^/$as_me: WARNING: /" >&2
19779 ;;
19780esac
19781{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785else
19786 eval "$as_ac_Header=\$ac_header_preproc"
19787fi
19788ac_res=`eval echo '${'$as_ac_Header'}'`
19789 { echo "$as_me:$LINENO: result: $ac_res" >&5
19790echo "${ECHO_T}$ac_res" >&6; }
19791
19792fi
19793if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019794 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019796_ACEOF
19797
19798fi
19799
19800done
19801
19802
19803for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019804do
19805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19806{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19808if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810else
19811 cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
19817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19819#define $ac_func innocuous_$ac_func
19820
19821/* System header to define __stub macros and hopefully few prototypes,
19822 which can conflict with char $ac_func (); below.
19823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19824 <limits.h> exists even on freestanding compilers. */
19825
19826#ifdef __STDC__
19827# include <limits.h>
19828#else
19829# include <assert.h>
19830#endif
19831
19832#undef $ac_func
19833
19834/* Override any GCC internal prototype to avoid an error.
19835 Use char because int might match the return type of a GCC
19836 builtin and then its argument prototype would still apply. */
19837#ifdef __cplusplus
19838extern "C"
19839#endif
19840char $ac_func ();
19841/* The GNU C library defines this for functions which it implements
19842 to always fail with ENOSYS. Some functions are actually named
19843 something starting with __ and the normal name is an alias. */
19844#if defined __stub_$ac_func || defined __stub___$ac_func
19845choke me
19846#endif
19847
19848int
19849main ()
19850{
19851return $ac_func ();
19852 ;
19853 return 0;
19854}
19855_ACEOF
19856rm -f conftest.$ac_objext conftest$ac_exeext
19857if { (ac_try="$ac_link"
19858case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861esac
19862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871 { (case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest$ac_exeext'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884esac
19885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 eval "$as_ac_var=yes"
19891else
19892 echo "$as_me: failed program was:" >&5
19893sed 's/^/| /' conftest.$ac_ext >&5
19894
19895 eval "$as_ac_var=no"
19896fi
19897
19898rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900fi
19901ac_res=`eval echo '${'$as_ac_var'}'`
19902 { echo "$as_me:$LINENO: result: $ac_res" >&5
19903echo "${ECHO_T}$ac_res" >&6; }
19904if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019905 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019907_ACEOF
19908
19909fi
19910done
19911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019912{ echo "$as_me:$LINENO: checking for working mmap" >&5
19913echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19914if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019917 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019918 ac_cv_func_mmap_fixed_mapped=no
19919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019920 cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h. */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019926$ac_includes_default
19927/* malloc might have been renamed as rpl_malloc. */
19928#undef malloc
19929
19930/* Thanks to Mike Haertel and Jim Avera for this test.
19931 Here is a matrix of mmap possibilities:
19932 mmap private not fixed
19933 mmap private fixed at somewhere currently unmapped
19934 mmap private fixed at somewhere already mapped
19935 mmap shared not fixed
19936 mmap shared fixed at somewhere currently unmapped
19937 mmap shared fixed at somewhere already mapped
19938 For private mappings, we should verify that changes cannot be read()
19939 back from the file, nor mmap's back from the file at a different
19940 address. (There have been systems where private was not correctly
19941 implemented like the infamous i386 svr4.0, and systems where the
19942 VM page cache was not coherent with the file system buffer cache
19943 like early versions of FreeBSD and possibly contemporary NetBSD.)
19944 For shared mappings, we should conversely verify that changes get
19945 propagated back to all the places they're supposed to be.
19946
19947 Grep wants private fixed already mapped.
19948 The main things grep needs to know about mmap are:
19949 * does it exist and is it safe to write into the mmap'd area
19950 * how to use it (BSD variants) */
19951
19952#include <fcntl.h>
19953#include <sys/mman.h>
19954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019955#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019956char *malloc ();
19957#endif
19958
19959/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019960#if !HAVE_GETPAGESIZE
19961/* Assume that all systems that can run configure have sys/param.h. */
19962# if !HAVE_SYS_PARAM_H
19963# define HAVE_SYS_PARAM_H 1
19964# endif
19965
John Criswell7a73b802003-06-30 21:59:07 +000019966# ifdef _SC_PAGESIZE
19967# define getpagesize() sysconf(_SC_PAGESIZE)
19968# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019969# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019970# include <sys/param.h>
19971# ifdef EXEC_PAGESIZE
19972# define getpagesize() EXEC_PAGESIZE
19973# else /* no EXEC_PAGESIZE */
19974# ifdef NBPG
19975# define getpagesize() NBPG * CLSIZE
19976# ifndef CLSIZE
19977# define CLSIZE 1
19978# endif /* no CLSIZE */
19979# else /* no NBPG */
19980# ifdef NBPC
19981# define getpagesize() NBPC
19982# else /* no NBPC */
19983# ifdef PAGESIZE
19984# define getpagesize() PAGESIZE
19985# endif /* PAGESIZE */
19986# endif /* no NBPC */
19987# endif /* no NBPG */
19988# endif /* no EXEC_PAGESIZE */
19989# else /* no HAVE_SYS_PARAM_H */
19990# define getpagesize() 8192 /* punt totally */
19991# endif /* no HAVE_SYS_PARAM_H */
19992# endif /* no _SC_PAGESIZE */
19993
19994#endif /* no HAVE_GETPAGESIZE */
19995
19996int
19997main ()
19998{
19999 char *data, *data2, *data3;
20000 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020001 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020002
20003 pagesize = getpagesize ();
20004
20005 /* First, make a file with some known garbage in it. */
20006 data = (char *) malloc (pagesize);
20007 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020008 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020009 for (i = 0; i < pagesize; ++i)
20010 *(data + i) = rand ();
20011 umask (0);
20012 fd = creat ("conftest.mmap", 0600);
20013 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020014 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020015 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020016 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020017 close (fd);
20018
20019 /* Next, try to mmap the file at a fixed address which already has
20020 something else allocated at it. If we can, also make sure that
20021 we see the same garbage. */
20022 fd = open ("conftest.mmap", O_RDWR);
20023 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020024 return 1;
20025 data2 = (char *) malloc (2 * pagesize);
20026 if (!data2)
20027 return 1;
20028 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020029 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020030 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020031 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020032 for (i = 0; i < pagesize; ++i)
20033 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020034 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020035
20036 /* Finally, make sure that changes to the mapped area do not
20037 percolate back to the file as seen by read(). (This is a bug on
20038 some variants of i386 svr4.0.) */
20039 for (i = 0; i < pagesize; ++i)
20040 *(data2 + i) = *(data2 + i) + 1;
20041 data3 = (char *) malloc (pagesize);
20042 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020043 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020044 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020045 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020046 for (i = 0; i < pagesize; ++i)
20047 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020048 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020049 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020050 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020051}
20052_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020053rm -f conftest$ac_exeext
20054if { (ac_try="$ac_link"
20055case "(($ac_try" in
20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057 *) ac_try_echo=$ac_try;;
20058esac
20059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060 (eval "$ac_link") 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20064 { (case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067esac
20068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_try") 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020073 ac_cv_func_mmap_fixed_mapped=yes
20074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020075 echo "$as_me: program exited with status $ac_status" >&5
20076echo "$as_me: failed program was:" >&5
20077sed 's/^/| /' conftest.$ac_ext >&5
20078
20079( exit $ac_status )
20080ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020082rm -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 +000020083fi
Reid Spencera773bd52006-08-04 18:18:08 +000020084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085
John Criswell7a73b802003-06-30 21:59:07 +000020086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020087{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20088echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020089if test $ac_cv_func_mmap_fixed_mapped = yes; then
20090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020091cat >>confdefs.h <<\_ACEOF
20092#define HAVE_MMAP 1
20093_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020094
20095fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020096rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020098 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20099echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20100if test "${ac_cv_func_mmap_file+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020102else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020103 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020104ac_cpp='$CPP $CPPFLAGS'
20105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20107ac_compiler_gnu=$ac_cv_c_compiler_gnu
20108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020109 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020110 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020111else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020112 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020114 /* confdefs.h. */
20115_ACEOF
20116cat confdefs.h >>conftest.$ac_ext
20117cat >>conftest.$ac_ext <<_ACEOF
20118/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020119
John Criswell7a73b802003-06-30 21:59:07 +000020120#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020121#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020122#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020123
20124int
20125main ()
20126{
John Criswell7a73b802003-06-30 21:59:07 +000020127
20128 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020129 fd = creat ("foo",0777);
20130 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20131 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020132 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020133 ;
20134 return 0;
20135}
John Criswell7a73b802003-06-30 21:59:07 +000020136_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020137rm -f conftest$ac_exeext
20138if { (ac_try="$ac_link"
20139case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142esac
20143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20151esac
20152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020157 ac_cv_func_mmap_file=yes
20158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020159 echo "$as_me: program exited with status $ac_status" >&5
20160echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
20163( exit $ac_status )
20164ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020166rm -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 +000020167fi
Reid Spencera773bd52006-08-04 18:18:08 +000020168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020169
John Criswell7a73b802003-06-30 21:59:07 +000020170 ac_ext=c
20171ac_cpp='$CPP $CPPFLAGS'
20172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174ac_compiler_gnu=$ac_cv_c_compiler_gnu
20175
20176
20177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020178{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20179echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020180if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020182cat >>confdefs.h <<\_ACEOF
20183#define HAVE_MMAP_FILE
20184_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020185
20186 MMAP_FILE=yes
20187
20188fi
20189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020190 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20191echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20192if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020194else
Reid Spencer582a23c2004-12-29 07:07:57 +000020195 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020196 ac_cv_need_dev_zero_for_mmap=yes
20197 else
20198 ac_cv_need_dev_zero_for_mmap=no
20199 fi
20200
20201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020202{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20203echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020204if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020206cat >>confdefs.h <<\_ACEOF
20207#define NEED_DEV_ZERO_FOR_MMAP 1
20208_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020209
20210fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020211
Reid Spencer30fe5262007-01-20 07:48:49 +000020212 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20213 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020214 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20215echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020216 fi
20217 if test "$ac_cv_func_mmap_file" = "no"
20218 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020219 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20220echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020221 fi
John Criswellb13092b2003-07-22 21:00:24 +000020222fi
John Criswell7a73b802003-06-30 21:59:07 +000020223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020224{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20225echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020226ac_ext=cpp
20227ac_cpp='$CXXCPP $CPPFLAGS'
20228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020232cat >conftest.$ac_ext <<_ACEOF
20233/* confdefs.h. */
20234_ACEOF
20235cat confdefs.h >>conftest.$ac_ext
20236cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020237/* end confdefs.h. */
20238int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020239 volatile unsigned long val = 1;
20240 __sync_synchronize();
20241 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020242 __sync_add_and_fetch(&val, 1);
20243 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020244 return 0;
20245 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020246
20247_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020248rm -f conftest.$ac_objext conftest$ac_exeext
20249if { (ac_try="$ac_link"
20250case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20253esac
20254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_link") 2>conftest.er1
20256 ac_status=$?
20257 grep -v '^ *+' conftest.er1 >conftest.err
20258 rm -f conftest.er1
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } &&
20262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20263 { (case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20266esac
20267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_try") 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest$ac_exeext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276esac
20277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020282 ac_ext=c
20283ac_cpp='$CPP $CPPFLAGS'
20284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286ac_compiler_gnu=$ac_cv_c_compiler_gnu
20287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020288 { echo "$as_me:$LINENO: result: yes" >&5
20289echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291cat >>confdefs.h <<\_ACEOF
20292#define LLVM_MULTITHREADED 1
20293_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020294
Owen Andersond4b272b2009-05-18 23:58:51 +000020295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020296 echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020299 { echo "$as_me:$LINENO: result: no" >&5
20300echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020302cat >>confdefs.h <<\_ACEOF
20303#define LLVM_MULTITHREADED 0
20304_ACEOF
20305
20306 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20307echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020308fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020309
Owen Andersond4b272b2009-05-18 23:58:51 +000020310rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020311 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020312
John Criswell7a73b802003-06-30 21:59:07 +000020313
Nick Lewycky4372e692009-09-29 06:18:23 +000020314if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020315 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20316echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20317if test "${llvm_cv_linux_mixed+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020319else
20320 ac_ext=c
20321ac_cpp='$CPP $CPPFLAGS'
20322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20324ac_compiler_gnu=$ac_cv_c_compiler_gnu
20325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020326 cat >conftest.$ac_ext <<_ACEOF
20327/* confdefs.h. */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020331/* end confdefs.h. */
20332#ifndef __x86_64__
20333 error: Not x86-64 even if uname says so!
20334 #endif
20335
20336int
20337main ()
20338{
20339
20340 ;
20341 return 0;
20342}
20343_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020344rm -f conftest.$ac_objext
20345if { (ac_try="$ac_compile"
20346case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349esac
20350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_compile") 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } &&
20358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20359 { (case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20362esac
20363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_try") 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest.$ac_objext'
20369 { (case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20372esac
20373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_try") 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020378 llvm_cv_linux_mixed=no
20379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020380 echo "$as_me: failed program was:" >&5
20381sed 's/^/| /' conftest.$ac_ext >&5
20382
20383 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385
Nick Lewycky4372e692009-09-29 06:18:23 +000020386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20387 ac_ext=c
20388ac_cpp='$CPP $CPPFLAGS'
20389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391ac_compiler_gnu=$ac_cv_c_compiler_gnu
20392
20393
20394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020395{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20396echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020397
20398 if test "$llvm_cv_linux_mixed" = "yes"; then
20399 llvm_cv_target_arch="x86"
20400 ARCH="x86"
20401 fi
20402fi
20403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020404
Reid Spencer9372f152007-07-30 20:13:24 +000020405for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020406do
20407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20410if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20412else
20413 cat >conftest.$ac_ext <<_ACEOF
20414/* confdefs.h. */
20415_ACEOF
20416cat confdefs.h >>conftest.$ac_ext
20417cat >>conftest.$ac_ext <<_ACEOF
20418/* end confdefs.h. */
20419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20421#define $ac_func innocuous_$ac_func
20422
20423/* System header to define __stub macros and hopefully few prototypes,
20424 which can conflict with char $ac_func (); below.
20425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20426 <limits.h> exists even on freestanding compilers. */
20427
20428#ifdef __STDC__
20429# include <limits.h>
20430#else
20431# include <assert.h>
20432#endif
20433
20434#undef $ac_func
20435
20436/* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439#ifdef __cplusplus
20440extern "C"
20441#endif
20442char $ac_func ();
20443/* The GNU C library defines this for functions which it implements
20444 to always fail with ENOSYS. Some functions are actually named
20445 something starting with __ and the normal name is an alias. */
20446#if defined __stub_$ac_func || defined __stub___$ac_func
20447choke me
20448#endif
20449
20450int
20451main ()
20452{
20453return $ac_func ();
20454 ;
20455 return 0;
20456}
20457_ACEOF
20458rm -f conftest.$ac_objext conftest$ac_exeext
20459if { (ac_try="$ac_link"
20460case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20463esac
20464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_link") 2>conftest.er1
20466 ac_status=$?
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -f conftest.er1
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20473 { (case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20476esac
20477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_try") 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; } &&
20482 { ac_try='test -s conftest$ac_exeext'
20483 { (case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486esac
20487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_try") 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; }; then
20492 eval "$as_ac_var=yes"
20493else
20494 echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 eval "$as_ac_var=no"
20498fi
20499
20500rm -f core conftest.err conftest.$ac_objext \
20501 conftest$ac_exeext conftest.$ac_ext
20502fi
20503ac_res=`eval echo '${'$as_ac_var'}'`
20504 { echo "$as_me:$LINENO: result: $ac_res" >&5
20505echo "${ECHO_T}$ac_res" >&6; }
20506if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020507 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020509_ACEOF
20510
20511fi
20512done
20513
20514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020515{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20516echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20517if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020519else
20520 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020521if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020522 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020523 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20524 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020525 if test $? -eq 0 ; then
20526 llvm_cv_llvmgcc_sanity="yes"
20527 fi
20528 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020529fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20532echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020533
20534if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020535 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20536echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020537 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020538 LLVMCC1=$llvmcc1path
20539
Reid Spencer502935f2004-12-22 05:56:56 +000020540 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020541 LLVMCC1PLUS=$llvmcc1pluspath
20542
Reid Spencer502935f2004-12-22 05:56:56 +000020543 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20544 LLVMGCCDIR=$llvmgccdir
20545
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020546 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020547 LLVMGCC_LANGS=$llvmgcclangs
20548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020549 { echo "$as_me:$LINENO: result: ok" >&5
20550echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020551fi
20552
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020553SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020554
20555
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020556SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20557
20558
Reid Spencere9de0912004-08-20 09:03:57 +000020559# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020560# information into substitutions that will end up in Makefile.config.in
20561# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020562if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020563 prefix="/usr/local"
20564fi
Reid Spencere9de0912004-08-20 09:03:57 +000020565eval LLVM_PREFIX="${prefix}";
20566eval LLVM_BINDIR="${prefix}/bin";
20567eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020568eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020569eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020570eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020571eval LLVM_INCLUDEDIR="${prefix}/include";
20572eval LLVM_INFODIR="${prefix}/info";
20573eval LLVM_MANDIR="${prefix}/man";
20574LLVM_CONFIGTIME=`date`
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020586# Place the various directores into the config.h file as #defines so that we
20587# can know about the installation paths within LLVM.
20588
Reid Spencere9de0912004-08-20 09:03:57 +000020589cat >>confdefs.h <<_ACEOF
20590#define LLVM_PREFIX "$LLVM_PREFIX"
20591_ACEOF
20592
20593
20594cat >>confdefs.h <<_ACEOF
20595#define LLVM_BINDIR "$LLVM_BINDIR"
20596_ACEOF
20597
20598
20599cat >>confdefs.h <<_ACEOF
20600#define LLVM_LIBDIR "$LLVM_LIBDIR"
20601_ACEOF
20602
20603
20604cat >>confdefs.h <<_ACEOF
20605#define LLVM_DATADIR "$LLVM_DATADIR"
20606_ACEOF
20607
20608
20609cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020610#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020611_ACEOF
20612
20613
20614cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020615#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020616_ACEOF
20617
20618
20619cat >>confdefs.h <<_ACEOF
20620#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20621_ACEOF
20622
20623
20624cat >>confdefs.h <<_ACEOF
20625#define LLVM_INFODIR "$LLVM_INFODIR"
20626_ACEOF
20627
20628
20629cat >>confdefs.h <<_ACEOF
20630#define LLVM_MANDIR "$LLVM_MANDIR"
20631_ACEOF
20632
20633
20634cat >>confdefs.h <<_ACEOF
20635#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20636_ACEOF
20637
20638
Eric Christopher790e11c2007-12-01 00:34:39 +000020639cat >>confdefs.h <<_ACEOF
20640#define LLVM_HOSTTRIPLE "$host"
20641_ACEOF
20642
20643
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020644# Determine which bindings to build.
20645if test "$BINDINGS_TO_BUILD" = auto ; then
20646 BINDINGS_TO_BUILD=""
20647 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20648 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20649 fi
20650fi
20651BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20652
20653
20654# This isn't really configurey, but it avoids having to repeat the list in
20655# other files.
20656ALL_BINDINGS=ocaml
20657
20658
Gordon Henriksenf0915682007-10-02 16:42:22 +000020659# Do any work necessary to ensure that bindings have what they need.
20660binding_prereqs_failed=0
20661for a_binding in $BINDINGS_TO_BUILD ; do
20662 case "$a_binding" in
20663 ocaml)
20664 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020665 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20666echo "$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 +000020667 binding_prereqs_failed=1
20668 fi
20669 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020670 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20671echo "$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 +000020672 binding_prereqs_failed=1
20673 fi
20674 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020675 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20676echo "$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 +000020677 fi
20678 if test "x$with_ocaml_libdir" != xauto ; then
20679 OCAML_LIBDIR=$with_ocaml_libdir
20680
20681 else
20682 ocaml_stdlib="`"$OCAMLC" -where`"
20683 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20684 then
20685 # ocaml stdlib is beneath our prefix; use stdlib
20686 OCAML_LIBDIR=$ocaml_stdlib
20687
20688 else
20689 # ocaml stdlib is outside our prefix; use libdir/ocaml
20690 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20691
20692 fi
20693 fi
20694 ;;
20695 esac
20696done
20697if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020698 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20699echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20700 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020701fi
20702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020703{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20704echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20705if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020707else
20708 ac_ext=cpp
20709ac_cpp='$CXXCPP $CPPFLAGS'
20710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20713
20714 oldcxxflags="$CXXFLAGS"
20715 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716 cat >conftest.$ac_ext <<_ACEOF
20717/* confdefs.h. */
20718_ACEOF
20719cat confdefs.h >>conftest.$ac_ext
20720cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020721/* end confdefs.h. */
20722
20723int
20724main ()
20725{
20726
20727 ;
20728 return 0;
20729}
20730_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020731rm -f conftest.$ac_objext
20732if { (ac_try="$ac_compile"
20733case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736esac
20737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_compile") 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } &&
20745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20746 { (case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749esac
20750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_try") 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest.$ac_objext'
20756 { (case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20759esac
20760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_try") 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020765 llvm_cv_cxx_visibility_inlines_hidden=yes
20766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020767 echo "$as_me: failed program was:" >&5
20768sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020771fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020772
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20774 CXXFLAGS="$oldcxxflags"
20775 ac_ext=c
20776ac_cpp='$CPP $CPPFLAGS'
20777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779ac_compiler_gnu=$ac_cv_c_compiler_gnu
20780
20781
20782fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20784echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020785if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20786 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20787
20788else
20789 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20790
20791fi
20792
Gordon Henriksenf0915682007-10-02 16:42:22 +000020793
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020794if test "$llvm_cv_link_use_r" = "yes" ; then
20795 RPATH="-Wl,-R"
20796else
20797 RPATH="-Wl,-rpath"
20798fi
20799
20800
20801if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20802 RDYNAMIC="-Wl,-export-dynamic"
20803else
20804 RDYNAMIC=""
20805fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020806
20807
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020808
Eric Christophera1cba682010-08-08 02:44:25 +000020809ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020810
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020811
20812
20813
20814
20815
Douglas Gregor1555a232009-06-16 20:12:29 +000020816ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20817
20818ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20819
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020820ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20821
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020822ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20823
Chandler Carruth8b67f772009-10-26 01:35:46 +000020824ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020825
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020826
Reid Spencera773bd52006-08-04 18:18:08 +000020827ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020828
20829
Reid Spencerea949cf2006-08-16 00:45:38 +000020830ac_config_files="$ac_config_files llvm.spec"
20831
20832
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020833ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020834
20835
Reid Spencera773bd52006-08-04 18:18:08 +000020836ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020837
20838
Reid Spencera773bd52006-08-04 18:18:08 +000020839ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020840
Reid Spencera773bd52006-08-04 18:18:08 +000020841ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020842
20843
Reid Spencera773bd52006-08-04 18:18:08 +000020844ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020845
20846
Reid Spencera773bd52006-08-04 18:18:08 +000020847ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020848
20849
Reid Spencera773bd52006-08-04 18:18:08 +000020850ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020851
20852
Reid Spencer8b2e1412006-11-17 03:32:33 +000020853ac_config_commands="$ac_config_commands runtime/Makefile"
20854
20855
Reid Spencera773bd52006-08-04 18:18:08 +000020856ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020857
20858
Reid Spencera773bd52006-08-04 18:18:08 +000020859ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020860
20861
Bill Wendlingf24eb392009-01-04 23:12:30 +000020862ac_config_commands="$ac_config_commands unittests/Makefile"
20863
20864
Reid Spencera773bd52006-08-04 18:18:08 +000020865ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020866
20867
Reid Spencera773bd52006-08-04 18:18:08 +000020868ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020869
20870
Reid Spencera773bd52006-08-04 18:18:08 +000020871ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020872
20873
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020874ac_config_commands="$ac_config_commands bindings/Makefile"
20875
20876
20877ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20878
20879
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020880
John Criswell7a73b802003-06-30 21:59:07 +000020881cat >confcache <<\_ACEOF
20882# This file is a shell script that caches the results of configure
20883# tests run on this system so they can be shared between configure
20884# scripts and configure runs, see configure's option --config-cache.
20885# It is not useful on other systems. If it contains results you don't
20886# want to keep, you may remove or edit it.
20887#
20888# config.status only pays attention to the cache file if you give it
20889# the --recheck option to rerun configure.
20890#
John Criswell0c38eaf2003-09-10 15:17:25 +000020891# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020892# loading this file, other *unset* `ac_cv_foo' will be assigned the
20893# following values.
20894
20895_ACEOF
20896
20897# The following way of writing the cache mishandles newlines in values,
20898# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020899# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020900# Ultrix sh set writes to stderr and can't be redirected directly,
20901# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020902(
20903 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20904 eval ac_val=\$$ac_var
20905 case $ac_val in #(
20906 *${as_nl}*)
20907 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020908 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20909echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020910 esac
20911 case $ac_var in #(
20912 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020913 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020914 esac ;;
20915 esac
20916 done
20917
John Criswell7a73b802003-06-30 21:59:07 +000020918 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020919 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20920 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020921 # `set' does not quote correctly, so add quotes (double-quote
20922 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020923 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020924 "s/'/'\\\\''/g;
20925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020926 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020927 *)
20928 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020930 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020931 esac |
20932 sort
20933) |
John Criswell7a73b802003-06-30 21:59:07 +000020934 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020935 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020936 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020937 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20939 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20941 :end' >>confcache
20942if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20943 if test -w "$cache_file"; then
20944 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020945 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20946echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020947 cat confcache >$cache_file
20948 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20950echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020951 fi
20952fi
20953rm -f confcache
20954
20955test "x$prefix" = xNONE && prefix=$ac_default_prefix
20956# Let make expand exec_prefix.
20957test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20958
John Criswell7a73b802003-06-30 21:59:07 +000020959DEFS=-DHAVE_CONFIG_H
20960
John Criswell0c38eaf2003-09-10 15:17:25 +000020961ac_libobjs=
20962ac_ltlibobjs=
20963for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20964 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020965 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020966 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020967 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20968 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020969 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20970 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020971done
20972LIBOBJS=$ac_libobjs
20973
20974LTLIBOBJS=$ac_ltlibobjs
20975
20976
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020977if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020978 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20979Usually this means the macro was only invoked conditionally." >&5
20980echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20981Usually this means the macro was only invoked conditionally." >&2;}
20982 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020983fi
20984if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20986Usually this means the macro was only invoked conditionally." >&5
20987echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20988Usually this means the macro was only invoked conditionally." >&2;}
20989 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020990fi
John Criswell7a73b802003-06-30 21:59:07 +000020991
20992: ${CONFIG_STATUS=./config.status}
20993ac_clean_files_save=$ac_clean_files
20994ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20996echo "$as_me: creating $CONFIG_STATUS" >&6;}
20997cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020998#! $SHELL
20999# Generated by $as_me.
21000# Run this file to recreate the current configuration.
21001# Compiler output produced by configure, useful for debugging
21002# configure, is in config.log if it exists.
21003
21004debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021005ac_cs_recheck=false
21006ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021007SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021008_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010cat >>$CONFIG_STATUS <<\_ACEOF
21011## --------------------- ##
21012## M4sh Initialization. ##
21013## --------------------- ##
21014
21015# Be Bourne compatible
21016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021017 emulate sh
21018 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021019 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021020 # is contrary to our usage. Disable this feature.
21021 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021022 setopt NO_GLOB_SUBST
21023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021024 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021026BIN_SH=xpg4; export BIN_SH # for Tru64
21027DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021028
John Criswell7a73b802003-06-30 21:59:07 +000021029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021030# PATH needs CR
21031# Avoid depending upon Character Ranges.
21032as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21033as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21034as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21035as_cr_digits='0123456789'
21036as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021037
21038# The user is always right.
21039if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021040 echo "#! /bin/sh" >conf$$.sh
21041 echo "exit 0" >>conf$$.sh
21042 chmod +x conf$$.sh
21043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21044 PATH_SEPARATOR=';'
21045 else
21046 PATH_SEPARATOR=:
21047 fi
21048 rm -f conf$$.sh
21049fi
21050
21051# Support unset when possible.
21052if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21053 as_unset=unset
21054else
21055 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021056fi
John Criswell7a73b802003-06-30 21:59:07 +000021057
Reid Spencera773bd52006-08-04 18:18:08 +000021058
21059# IFS
21060# We need space, tab and new line, in precisely that order. Quoting is
21061# there to prevent editors from complaining about space-tab.
21062# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21063# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021064as_nl='
21065'
Reid Spencera773bd52006-08-04 18:18:08 +000021066IFS=" "" $as_nl"
21067
21068# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021069case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021070 *[\\/]* ) as_myself=$0 ;;
21071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021072for as_dir in $PATH
21073do
21074 IFS=$as_save_IFS
21075 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21077done
Reid Spencera773bd52006-08-04 18:18:08 +000021078IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021079
Reid Spencera773bd52006-08-04 18:18:08 +000021080 ;;
21081esac
21082# We did not find ourselves, most probably we were run as `sh COMMAND'
21083# in which case we are not to be found in the path.
21084if test "x$as_myself" = x; then
21085 as_myself=$0
21086fi
21087if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021088 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21089 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021090fi
21091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021092# Work around bugs in pre-3.0 UWIN ksh.
21093for as_var in ENV MAIL MAILPATH
21094do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021095done
21096PS1='$ '
21097PS2='> '
21098PS4='+ '
21099
21100# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021101for as_var in \
21102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21104 LC_TELEPHONE LC_TIME
21105do
21106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21107 eval $as_var=C; export $as_var
21108 else
21109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021110 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021111done
Torok Edwin871384f2010-01-26 08:50:50 +000021112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021113# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021114if expr a : '\(a\)' >/dev/null 2>&1 &&
21115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21116 as_expr=expr
21117else
21118 as_expr=false
21119fi
21120
21121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21122 as_basename=basename
21123else
21124 as_basename=false
21125fi
21126
21127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021128# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021129as_me=`$as_basename -- "$0" ||
21130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21131 X"$0" : 'X\(//\)$' \| \
21132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021133echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021134 sed '/^.*\/\([^/][^/]*\)\/*$/{
21135 s//\1/
21136 q
21137 }
21138 /^X\/\(\/\/\)$/{
21139 s//\1/
21140 q
21141 }
21142 /^X\/\(\/\).*/{
21143 s//\1/
21144 q
21145 }
21146 s/.*/./; q'`
21147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148# CDPATH.
21149$as_unset CDPATH
21150
21151
21152
21153 as_lineno_1=$LINENO
21154 as_lineno_2=$LINENO
21155 test "x$as_lineno_1" != "x$as_lineno_2" &&
21156 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21157
21158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21159 # uniformly replaced by the line number. The first 'sed' inserts a
21160 # line-number line after each line using $LINENO; the second 'sed'
21161 # does the real work. The second script uses 'N' to pair each
21162 # line-number line with the line containing $LINENO, and appends
21163 # trailing '-' during substitution so that $LINENO is not a special
21164 # case at line end.
21165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21166 # scripts with optimization help from Paolo Bonzini. Blame Lee
21167 # E. McMahon (1931-1989) for sed's syntax. :-)
21168 sed -n '
21169 p
21170 /[$]LINENO/=
21171 ' <$as_myself |
21172 sed '
21173 s/[$]LINENO.*/&-/
21174 t lineno
21175 b
21176 :lineno
21177 N
21178 :loop
21179 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21180 t loop
21181 s/-\n.*//
21182 ' >$as_me.lineno &&
21183 chmod +x "$as_me.lineno" ||
21184 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21185 { (exit 1); exit 1; }; }
21186
21187 # Don't try to exec as it changes $[0], causing all sort of problems
21188 # (the dirname of $[0] is not the place where we might find the
21189 # original and so on. Autoconf is especially sensitive to this).
21190 . "./$as_me.lineno"
21191 # Exit status is that of the last command.
21192 exit
21193}
21194
21195
21196if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21197 as_dirname=dirname
21198else
21199 as_dirname=false
21200fi
Reid Spencera773bd52006-08-04 18:18:08 +000021201
21202ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021203case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021204-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021205 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021206 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021207 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021208 esac;;
21209*)
21210 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021211esac
21212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213if expr a : '\(a\)' >/dev/null 2>&1 &&
21214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21215 as_expr=expr
21216else
21217 as_expr=false
21218fi
21219
John Criswell7a73b802003-06-30 21:59:07 +000021220rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021221if test -d conf$$.dir; then
21222 rm -f conf$$.dir/conf$$.file
21223else
21224 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021225 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021227echo >conf$$.file
21228if ln -s conf$$.file conf$$ 2>/dev/null; then
21229 as_ln_s='ln -s'
21230 # ... but there are two gotchas:
21231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21233 # In both cases, we have to default to `cp -p'.
21234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021235 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236elif ln conf$$.file conf$$ 2>/dev/null; then
21237 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021238else
21239 as_ln_s='cp -p'
21240fi
Reid Spencera773bd52006-08-04 18:18:08 +000021241rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21242rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021243
John Criswell0c38eaf2003-09-10 15:17:25 +000021244if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021245 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021246else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021247 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021248 as_mkdir_p=false
21249fi
21250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21252# systems may use methods other than mode bits to determine executability.
21253cat >conf$$.file <<_ASEOF
21254#! /bin/sh
21255exit 0
21256_ASEOF
21257chmod +x conf$$.file
21258if test -x conf$$.file >/dev/null 2>&1; then
21259 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021261 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021263rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021264
21265# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021266as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021267
21268# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021269as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021270
21271
John Criswell7a73b802003-06-30 21:59:07 +000021272exec 6>&1
21273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021274# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021275# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021276# values after options handling.
21277ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021278This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021279generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021280
21281 CONFIG_FILES = $CONFIG_FILES
21282 CONFIG_HEADERS = $CONFIG_HEADERS
21283 CONFIG_LINKS = $CONFIG_LINKS
21284 CONFIG_COMMANDS = $CONFIG_COMMANDS
21285 $ $0 $@
21286
Reid Spencera773bd52006-08-04 18:18:08 +000021287on `(hostname || uname -n) 2>/dev/null | sed 1q`
21288"
21289
John Criswell7a73b802003-06-30 21:59:07 +000021290_ACEOF
21291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021292cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021293# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021294config_files="$ac_config_files"
21295config_headers="$ac_config_headers"
21296config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021297
Reid Spencera773bd52006-08-04 18:18:08 +000021298_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021301ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302\`$as_me' instantiates files from templates according to the
21303current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021305Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021306
21307 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021308 -V, --version print version number, then exit
21309 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021310 -d, --debug don't remove temporary files
21311 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021312 --file=FILE[:TEMPLATE]
21313 instantiate the configuration file FILE
21314 --header=FILE[:TEMPLATE]
21315 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021316
21317Configuration files:
21318$config_files
21319
21320Configuration headers:
21321$config_headers
21322
John Criswellc764fbc2003-09-06 15:17:13 +000021323Configuration commands:
21324$config_commands
21325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021326Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021327
Reid Spencera773bd52006-08-04 18:18:08 +000021328_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021329cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021330ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021331llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021332configured by $0, generated by GNU Autoconf 2.60,
21333 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021335Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021336This config.status script is free software; the Free Software Foundation
21337gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021338
21339ac_pwd='$ac_pwd'
21340srcdir='$srcdir'
21341INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021342_ACEOF
21343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344cat >>$CONFIG_STATUS <<\_ACEOF
21345# If no file are specified by the user, then we need to provide default
21346# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021347ac_need_defaults=:
21348while test $# != 0
21349do
21350 case $1 in
21351 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021354 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021355 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021356 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021357 ac_option=$1
21358 ac_optarg=$2
21359 ac_shift=shift
21360 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021361 esac
21362
John Criswell0c38eaf2003-09-10 15:17:25 +000021363 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021364 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21366 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021368 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021369 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021370 debug=: ;;
21371 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021372 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021373 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021374 ac_need_defaults=false;;
21375 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021376 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021377 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021378 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021379 --he | --h)
21380 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021381 { echo "$as_me: error: ambiguous option: $1
21382Try \`$0 --help' for more information." >&2
21383 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021384 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021385 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21387 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21388 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021389
21390 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391 -*) { echo "$as_me: error: unrecognized option: $1
21392Try \`$0 --help' for more information." >&2
21393 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021395 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021396 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021397
21398 esac
21399 shift
21400done
21401
John Criswell0c38eaf2003-09-10 15:17:25 +000021402ac_configure_extra_args=
21403
21404if $ac_cs_silent; then
21405 exec 6>/dev/null
21406 ac_configure_extra_args="$ac_configure_extra_args --silent"
21407fi
21408
21409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021410cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021411if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21413 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021414 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021415 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021416fi
21417
John Criswell7a73b802003-06-30 21:59:07 +000021418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021419cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021420exec 5>>config.log
21421{
21422 echo
21423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21424## Running $as_me. ##
21425_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021426 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021427} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021428
Reid Spencera773bd52006-08-04 18:18:08 +000021429_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021430cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021431#
Reid Spencera773bd52006-08-04 18:18:08 +000021432# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021433#
Reid Spencerc0682832005-02-24 19:05:19 +000021434llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021435
21436_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021438cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021439
21440# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021441for ac_config_target in $ac_config_targets
21442do
Reid Spencera773bd52006-08-04 18:18:08 +000021443 case $ac_config_target in
21444 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021445 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021446 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21447 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021448 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021449 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021450 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021451 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021452 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021453 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021454 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21455 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21456 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21457 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21458 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21459 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021460 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021461 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21462 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021463 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021464 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21465 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21466 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021467 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21468 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21471echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21472 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021473 esac
21474done
21475
Reid Spencera773bd52006-08-04 18:18:08 +000021476
John Criswell7a73b802003-06-30 21:59:07 +000021477# If the user did not use the arguments to specify the items to instantiate,
21478# then the envvar interface is used. Set only those that are not.
21479# We use the long form for the default assignment because of an extremely
21480# bizarre bug on SunOS 4.1.3.
21481if $ac_need_defaults; then
21482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021485fi
21486
John Criswell0c38eaf2003-09-10 15:17:25 +000021487# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021488# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021489# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021490# Hook for its removal unless debugging.
21491# Note that there is a small window in which the directory will not be cleaned:
21492# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021493$debug ||
21494{
Reid Spencera773bd52006-08-04 18:18:08 +000021495 tmp=
21496 trap 'exit_status=$?
21497 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21498' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021500}
John Criswell7a73b802003-06-30 21:59:07 +000021501# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021502
John Criswell7a73b802003-06-30 21:59:07 +000021503{
Reid Spencera773bd52006-08-04 18:18:08 +000021504 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021505 test -n "$tmp" && test -d "$tmp"
21506} ||
21507{
Reid Spencera773bd52006-08-04 18:18:08 +000021508 tmp=./conf$$-$RANDOM
21509 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021510} ||
21511{
21512 echo "$me: cannot create a temporary directory in ." >&2
21513 { (exit 1); exit 1; }
21514}
John Criswell7a73b802003-06-30 21:59:07 +000021515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516#
21517# Set up the sed scripts for CONFIG_FILES section.
21518#
21519
21520# No need to generate the scripts if there are no CONFIG_FILES.
21521# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021522if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021523
21524_ACEOF
21525
Reid Spencera773bd52006-08-04 18:18:08 +000021526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527
Reid Spencera773bd52006-08-04 18:18:08 +000021528ac_delim='%!_!# '
21529for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021530 cat >conf$$subs.sed <<_ACEOF
21531SHELL!$SHELL$ac_delim
21532PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21533PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21534PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21535PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21536PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21537PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21538exec_prefix!$exec_prefix$ac_delim
21539prefix!$prefix$ac_delim
21540program_transform_name!$program_transform_name$ac_delim
21541bindir!$bindir$ac_delim
21542sbindir!$sbindir$ac_delim
21543libexecdir!$libexecdir$ac_delim
21544datarootdir!$datarootdir$ac_delim
21545datadir!$datadir$ac_delim
21546sysconfdir!$sysconfdir$ac_delim
21547sharedstatedir!$sharedstatedir$ac_delim
21548localstatedir!$localstatedir$ac_delim
21549includedir!$includedir$ac_delim
21550oldincludedir!$oldincludedir$ac_delim
21551docdir!$docdir$ac_delim
21552infodir!$infodir$ac_delim
21553htmldir!$htmldir$ac_delim
21554dvidir!$dvidir$ac_delim
21555pdfdir!$pdfdir$ac_delim
21556psdir!$psdir$ac_delim
21557libdir!$libdir$ac_delim
21558localedir!$localedir$ac_delim
21559mandir!$mandir$ac_delim
21560DEFS!$DEFS$ac_delim
21561ECHO_C!$ECHO_C$ac_delim
21562ECHO_N!$ECHO_N$ac_delim
21563ECHO_T!$ECHO_T$ac_delim
21564LIBS!$LIBS$ac_delim
21565build_alias!$build_alias$ac_delim
21566host_alias!$host_alias$ac_delim
21567target_alias!$target_alias$ac_delim
21568LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21569subdirs!$subdirs$ac_delim
21570build!$build$ac_delim
21571build_cpu!$build_cpu$ac_delim
21572build_vendor!$build_vendor$ac_delim
21573build_os!$build_os$ac_delim
21574host!$host$ac_delim
21575host_cpu!$host_cpu$ac_delim
21576host_vendor!$host_vendor$ac_delim
21577host_os!$host_os$ac_delim
21578target!$target$ac_delim
21579target_cpu!$target_cpu$ac_delim
21580target_vendor!$target_vendor$ac_delim
21581target_os!$target_os$ac_delim
21582OS!$OS$ac_delim
21583HOST_OS!$HOST_OS$ac_delim
21584TARGET_OS!$TARGET_OS$ac_delim
21585LINKALL!$LINKALL$ac_delim
21586NOLINKALL!$NOLINKALL$ac_delim
21587LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21588LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21589ARCH!$ARCH$ac_delim
21590ENDIAN!$ENDIAN$ac_delim
21591CC!$CC$ac_delim
21592CFLAGS!$CFLAGS$ac_delim
21593LDFLAGS!$LDFLAGS$ac_delim
21594CPPFLAGS!$CPPFLAGS$ac_delim
21595ac_ct_CC!$ac_ct_CC$ac_delim
21596EXEEXT!$EXEEXT$ac_delim
21597OBJEXT!$OBJEXT$ac_delim
21598CPP!$CPP$ac_delim
21599GREP!$GREP$ac_delim
21600EGREP!$EGREP$ac_delim
21601LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21602BUILD_CC!$BUILD_CC$ac_delim
21603BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21604BUILD_CXX!$BUILD_CXX$ac_delim
21605CVSBUILD!$CVSBUILD$ac_delim
21606ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21607ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21608DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21609ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21610EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21611DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21612DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21613JIT!$JIT$ac_delim
21614TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21615ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21616ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21617ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021618ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021619ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21621LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21622LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21623LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21624LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21625ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021626CLANGPATH!$CLANGPATH$ac_delim
21627CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021631 break
21632 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021633 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21634echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21635 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021636 else
21637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021638 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021639done
21640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021641ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21642if test -n "$ac_eof"; then
21643 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21644 ac_eof=`expr $ac_eof + 1`
21645fi
21646
21647cat >>$CONFIG_STATUS <<_ACEOF
21648cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21649/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021650_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021651sed '
21652s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21653s/^/s,@/; s/!/@,|#_!!_#|/
21654:n
21655t n
21656s/'"$ac_delim"'$/,g/; t
21657s/$/\\/; p
21658N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21659' >>$CONFIG_STATUS <conf$$subs.sed
21660rm -f conf$$subs.sed
21661cat >>$CONFIG_STATUS <<_ACEOF
21662CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021663_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664
21665
21666ac_delim='%!_!# '
21667for ac_last_try in false false false false false :; do
21668 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021669ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021670OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021671EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21672BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021673CXX!$CXX$ac_delim
21674CXXFLAGS!$CXXFLAGS$ac_delim
21675ac_ct_CXX!$ac_ct_CXX$ac_delim
21676NM!$NM$ac_delim
21677ifGNUmake!$ifGNUmake$ac_delim
21678LN_S!$LN_S$ac_delim
21679CMP!$CMP$ac_delim
21680CP!$CP$ac_delim
21681DATE!$DATE$ac_delim
21682FIND!$FIND$ac_delim
21683MKDIR!$MKDIR$ac_delim
21684MV!$MV$ac_delim
21685RANLIB!$RANLIB$ac_delim
21686AR!$AR$ac_delim
21687RM!$RM$ac_delim
21688SED!$SED$ac_delim
21689TAR!$TAR$ac_delim
21690BINPWD!$BINPWD$ac_delim
21691GRAPHVIZ!$GRAPHVIZ$ac_delim
21692DOT!$DOT$ac_delim
21693FDP!$FDP$ac_delim
21694NEATO!$NEATO$ac_delim
21695TWOPI!$TWOPI$ac_delim
21696CIRCO!$CIRCO$ac_delim
21697GV!$GV$ac_delim
21698DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021699XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021700PERL!$PERL$ac_delim
21701HAVE_PERL!$HAVE_PERL$ac_delim
21702INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21703INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21704INSTALL_DATA!$INSTALL_DATA$ac_delim
21705BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021706CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021707DOXYGEN!$DOXYGEN$ac_delim
21708GROFF!$GROFF$ac_delim
21709GZIP!$GZIP$ac_delim
21710POD2HTML!$POD2HTML$ac_delim
21711POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021712PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713RUNTEST!$RUNTEST$ac_delim
21714TCLSH!$TCLSH$ac_delim
21715ZIP!$ZIP$ac_delim
21716OCAMLC!$OCAMLC$ac_delim
21717OCAMLOPT!$OCAMLOPT$ac_delim
21718OCAMLDEP!$OCAMLDEP$ac_delim
21719OCAMLDOC!$OCAMLDOC$ac_delim
21720GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021721HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021722INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21723INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21724CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21725CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21726LIBADD_DL!$LIBADD_DL$ac_delim
21727LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21728LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21729LLVMGCC!$LLVMGCC$ac_delim
21730LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021731LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21733NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21734USE_UDIS86!$USE_UDIS86$ac_delim
21735USE_OPROFILE!$USE_OPROFILE$ac_delim
21736HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21737HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21738MMAP_FILE!$MMAP_FILE$ac_delim
21739LLVMCC1!$LLVMCC1$ac_delim
21740LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21741LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021742LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21743SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021744SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021745LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21746LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21747LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21748LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21749LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21750LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21751LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21752LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21753LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21754LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21755BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21756ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21757OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21758ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21759RPATH!$RPATH$ac_delim
21760RDYNAMIC!$RDYNAMIC$ac_delim
21761LIBOBJS!$LIBOBJS$ac_delim
21762LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021763_ACEOF
21764
Dan Gohman48fd5a72010-09-27 16:28:34 +000021765 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021766 break
21767 elif $ac_last_try; then
21768 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21769echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21770 { (exit 1); exit 1; }; }
21771 else
21772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21773 fi
21774done
21775
21776ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21777if test -n "$ac_eof"; then
21778 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21779 ac_eof=`expr $ac_eof + 1`
21780fi
21781
21782cat >>$CONFIG_STATUS <<_ACEOF
21783cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21784/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21785_ACEOF
21786sed '
21787s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21788s/^/s,@/; s/!/@,|#_!!_#|/
21789:n
21790t n
21791s/'"$ac_delim"'$/,g/; t
21792s/$/\\/; p
21793N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21794' >>$CONFIG_STATUS <conf$$subs.sed
21795rm -f conf$$subs.sed
21796cat >>$CONFIG_STATUS <<_ACEOF
21797:end
21798s/|#_!!_#|//g
21799CEOF$ac_eof
21800_ACEOF
21801
21802
Reid Spencera773bd52006-08-04 18:18:08 +000021803# VPATH may cause trouble with some makes, so we remove $(srcdir),
21804# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21805# trailing colons and then remove the whole line if VPATH becomes empty
21806# (actually we leave an empty line to preserve line numbers).
21807if test "x$srcdir" = x.; then
21808 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21809s/:*\$(srcdir):*/:/
21810s/:*\${srcdir}:*/:/
21811s/:*@srcdir@:*/:/
21812s/^\([^=]*=[ ]*\):*/\1/
21813s/:*$//
21814s/^[^=]*=[ ]*$//
21815}'
21816fi
21817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021818cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021819fi # test -n "$CONFIG_FILES"
21820
Reid Spencera773bd52006-08-04 18:18:08 +000021821
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021823do
21824 case $ac_tag in
21825 :[FHLC]) ac_mode=$ac_tag; continue;;
21826 esac
21827 case $ac_mode$ac_tag in
21828 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21830echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21831 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021832 :[FH]-) ac_tag=-:-;;
21833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21834 esac
21835 ac_save_IFS=$IFS
21836 IFS=:
21837 set x $ac_tag
21838 IFS=$ac_save_IFS
21839 shift
21840 ac_file=$1
21841 shift
21842
21843 case $ac_mode in
21844 :L) ac_source=$1;;
21845 :[FH])
21846 ac_file_inputs=
21847 for ac_f
21848 do
21849 case $ac_f in
21850 -) ac_f="$tmp/stdin";;
21851 *) # Look for the file first in the build tree, then in the source tree
21852 # (if the path is not absolute). The absolute path cannot be DOS-style,
21853 # because $ac_f cannot contain `:'.
21854 test -f "$ac_f" ||
21855 case $ac_f in
21856 [\\/$]*) false;;
21857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21858 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021859 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21860echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21861 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021862 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021864 done
21865
21866 # Let's still pretend it is `configure' which instantiates (i.e., don't
21867 # use $as_me), people would be surprised to read:
21868 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869 configure_input="Generated from "`IFS=:
21870 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021871 if test x"$ac_file" != x-; then
21872 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873 { echo "$as_me:$LINENO: creating $ac_file" >&5
21874echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021875 fi
21876
21877 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021879 esac
21880 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021881 esac
21882
Reid Spencera773bd52006-08-04 18:18:08 +000021883 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021884$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021885 X"$ac_file" : 'X\(//\)[^/]' \| \
21886 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021887 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021888echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21890 s//\1/
21891 q
21892 }
21893 /^X\(\/\/\)[^/].*/{
21894 s//\1/
21895 q
21896 }
21897 /^X\(\/\/\)$/{
21898 s//\1/
21899 q
21900 }
21901 /^X\(\/\).*/{
21902 s//\1/
21903 q
21904 }
21905 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021906 { as_dir="$ac_dir"
21907 case $as_dir in #(
21908 -*) as_dir=./$as_dir;;
21909 esac
21910 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21911 as_dirs=
21912 while :; do
21913 case $as_dir in #(
21914 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21915 *) as_qdir=$as_dir;;
21916 esac
21917 as_dirs="'$as_qdir' $as_dirs"
21918 as_dir=`$as_dirname -- "$as_dir" ||
21919$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21920 X"$as_dir" : 'X\(//\)[^/]' \| \
21921 X"$as_dir" : 'X\(//\)$' \| \
21922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21923echo X"$as_dir" |
21924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21925 s//\1/
21926 q
21927 }
21928 /^X\(\/\/\)[^/].*/{
21929 s//\1/
21930 q
21931 }
21932 /^X\(\/\/\)$/{
21933 s//\1/
21934 q
21935 }
21936 /^X\(\/\).*/{
21937 s//\1/
21938 q
21939 }
21940 s/.*/./; q'`
21941 test -d "$as_dir" && break
21942 done
21943 test -z "$as_dirs" || eval "mkdir $as_dirs"
21944 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21945echo "$as_me: error: cannot create directory $as_dir" >&2;}
21946 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021947 ac_builddir=.
21948
Reid Spencera773bd52006-08-04 18:18:08 +000021949case "$ac_dir" in
21950.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21951*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021953 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021955 case $ac_top_builddir_sub in
21956 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21957 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21958 esac ;;
21959esac
21960ac_abs_top_builddir=$ac_pwd
21961ac_abs_builddir=$ac_pwd$ac_dir_suffix
21962# for backward compatibility:
21963ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021964
21965case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021966 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021967 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021968 ac_top_srcdir=$ac_top_builddir_sub
21969 ac_abs_top_srcdir=$ac_pwd ;;
21970 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021971 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021972 ac_top_srcdir=$srcdir
21973 ac_abs_top_srcdir=$srcdir ;;
21974 *) # Relative name.
21975 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21976 ac_top_srcdir=$ac_top_build_prefix$srcdir
21977 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021978esac
Reid Spencera773bd52006-08-04 18:18:08 +000021979ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021980
John Criswell7a73b802003-06-30 21:59:07 +000021981
Reid Spencera773bd52006-08-04 18:18:08 +000021982 case $ac_mode in
21983 :F)
21984 #
21985 # CONFIG_FILE
21986 #
John Criswell7a73b802003-06-30 21:59:07 +000021987
21988 case $INSTALL in
21989 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021990 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021991 esac
John Criswell7a73b802003-06-30 21:59:07 +000021992_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021994cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021995# If the template does not know about datarootdir, expand it.
21996# FIXME: This hack should be removed a few years after 2.60.
21997ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021998
21999case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022000 p
22001 q
22002}
22003/@datadir@/p
22004/@docdir@/p
22005/@infodir@/p
22006/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022007/@mandir@/p
22008' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022009*datarootdir*) ac_datarootdir_seen=yes;;
22010*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022011 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22012echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022013_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022015 ac_datarootdir_hack='
22016 s&@datadir@&$datadir&g
22017 s&@docdir@&$docdir&g
22018 s&@infodir@&$infodir&g
22019 s&@localedir@&$localedir&g
22020 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022021 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022022esac
22023_ACEOF
22024
22025# Neutralize VPATH when `$srcdir' = `.'.
22026# Shell code in configure.ac might set extrasub.
22027# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022028cat >>$CONFIG_STATUS <<_ACEOF
22029 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022030$extrasub
22031_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022032cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022033:t
22034/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022036s&@top_builddir@&$ac_top_builddir_sub&;t t
22037s&@srcdir@&$ac_srcdir&;t t
22038s&@abs_srcdir@&$ac_abs_srcdir&;t t
22039s&@top_srcdir@&$ac_top_srcdir&;t t
22040s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22041s&@builddir@&$ac_builddir&;t t
22042s&@abs_builddir@&$ac_abs_builddir&;t t
22043s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22044s&@INSTALL@&$ac_INSTALL&;t t
22045$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022046" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022047
Reid Spencera773bd52006-08-04 18:18:08 +000022048test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22049 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022051 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022052which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022053echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022054which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022055
Reid Spencera773bd52006-08-04 18:18:08 +000022056 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022057 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058 -) cat "$tmp/out"; rm -f "$tmp/out";;
22059 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22060 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022061 ;;
22062 :H)
22063 #
22064 # CONFIG_HEADER
22065 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066_ACEOF
22067
22068# Transform confdefs.h into a sed script `conftest.defines', that
22069# substitutes the proper values into config.h.in to produce config.h.
22070rm -f conftest.defines conftest.tail
22071# First, append a space to every undef/define line, to ease matching.
22072echo 's/$/ /' >conftest.defines
22073# Then, protect against being on the right side of a sed subst, or in
22074# an unquoted here document, in config.status. If some macros were
22075# called several times there might be several #defines for the same
22076# symbol, which is useless. But do not sort them, since the last
22077# AC_DEFINE must be honored.
22078ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22079# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22080# NAME is the cpp macro being defined, VALUE is the value it is being given.
22081# PARAMS is the parameter list in the macro definition--in most cases, it's
22082# just an empty string.
22083ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22084ac_dB='\\)[ (].*,\\1define\\2'
22085ac_dC=' '
22086ac_dD=' ,'
22087
22088uniq confdefs.h |
22089 sed -n '
22090 t rset
22091 :rset
22092 s/^[ ]*#[ ]*define[ ][ ]*//
22093 t ok
22094 d
22095 :ok
22096 s/[\\&,]/\\&/g
22097 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22098 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22099 ' >>conftest.defines
22100
22101# Remove the space that was appended to ease matching.
22102# Then replace #undef with comments. This is necessary, for
22103# example, in the case of _POSIX_SOURCE, which is predefined and required
22104# on some systems where configure will not decide to define it.
22105# (The regexp can be short, since the line contains either #define or #undef.)
22106echo 's/ $//
22107s,^[ #]*u.*,/* & */,' >>conftest.defines
22108
22109# Break up conftest.defines:
22110ac_max_sed_lines=50
22111
22112# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22113# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22114# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22115# et cetera.
22116ac_in='$ac_file_inputs'
22117ac_out='"$tmp/out1"'
22118ac_nxt='"$tmp/out2"'
22119
22120while :
22121do
22122 # Write a here document:
22123 cat >>$CONFIG_STATUS <<_ACEOF
22124 # First, check the format of the line:
22125 cat >"\$tmp/defines.sed" <<\\CEOF
22126/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22127/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22128b
22129:def
22130_ACEOF
22131 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22132 echo 'CEOF
22133 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22134 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22135 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22136 grep . conftest.tail >/dev/null || break
22137 rm -f conftest.defines
22138 mv conftest.tail conftest.defines
22139done
22140rm -f conftest.defines conftest.tail
22141
22142echo "ac_result=$ac_in" >>$CONFIG_STATUS
22143cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022144 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145 echo "/* $configure_input */" >"$tmp/config.h"
22146 cat "$ac_result" >>"$tmp/config.h"
22147 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22148 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22149echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022150 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022151 rm -f $ac_file
22152 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022153 fi
22154 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022155 echo "/* $configure_input */"
22156 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022157 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022158 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022159 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22162echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022163 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022164 esac
John Criswell7a73b802003-06-30 21:59:07 +000022165
Reid Spencera773bd52006-08-04 18:18:08 +000022166
22167 case $ac_file$ac_mode in
22168 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022169 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022170 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022171 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022172 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022173 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022174 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022175 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022176 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022177 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022178 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022179 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022180 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022181 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022182 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022183 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022184 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022186 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022188 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022190 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022192 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022193 ${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 +000022194
22195 esac
22196done # for ac_tag
22197
John Criswell7a73b802003-06-30 21:59:07 +000022198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022199{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022200_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022201chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022202ac_clean_files=$ac_clean_files_save
22203
22204
22205# configure is writing to config.log, and then calls config.status.
22206# config.status does its own redirection, appending to config.log.
22207# Unfortunately, on DOS this fails, as config.log is still kept open
22208# by configure, so config.status won't be able to write to it; its
22209# output is simply discarded. So we exec the FD to /dev/null,
22210# effectively closing config.log, so it can be properly (re)opened and
22211# appended to by config.status. When coming back to configure, we
22212# need to make the FD available again.
22213if test "$no_create" != yes; then
22214 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022215 ac_config_status_args=
22216 test "$silent" = yes &&
22217 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022218 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022220 exec 5>>config.log
22221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22222 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022223 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022224fi
22225
John Criswell12399a12003-09-30 15:55:44 +000022226#
22227# CONFIG_SUBDIRS section.
22228#
22229if test "$no_recursion" != yes; then
22230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022231 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022232 ac_sub_configure_args=
22233 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022234 eval "set x $ac_configure_args"
22235 shift
22236 for ac_arg
22237 do
John Criswell12399a12003-09-30 15:55:44 +000022238 if test -n "$ac_prev"; then
22239 ac_prev=
22240 continue
22241 fi
22242 case $ac_arg in
22243 -cache-file | --cache-file | --cache-fil | --cache-fi \
22244 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22245 ac_prev=cache_file ;;
22246 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22247 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22248 | --c=*)
22249 ;;
22250 --config-cache | -C)
22251 ;;
22252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22253 ac_prev=srcdir ;;
22254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22255 ;;
22256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22257 ac_prev=prefix ;;
22258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22259 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022260 *)
22261 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022262 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022263 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022264 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022265 esac
22266 done
22267
22268 # Always prepend --prefix to ensure using the same prefix
22269 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022270 ac_arg="--prefix=$prefix"
22271 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022272 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022273 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022274 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022275
22276 ac_popdir=`pwd`
22277 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22278
22279 # Do not complain, so a configure script can configure whichever
22280 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022281 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022282
Reid Spencera773bd52006-08-04 18:18:08 +000022283 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022284 echo "$as_me:$LINENO: $ac_msg" >&5
22285 echo "$ac_msg" >&6
22286 { as_dir="$ac_dir"
22287 case $as_dir in #(
22288 -*) as_dir=./$as_dir;;
22289 esac
22290 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22291 as_dirs=
22292 while :; do
22293 case $as_dir in #(
22294 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22295 *) as_qdir=$as_dir;;
22296 esac
22297 as_dirs="'$as_qdir' $as_dirs"
22298 as_dir=`$as_dirname -- "$as_dir" ||
22299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22300 X"$as_dir" : 'X\(//\)[^/]' \| \
22301 X"$as_dir" : 'X\(//\)$' \| \
22302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22303echo X"$as_dir" |
22304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22305 s//\1/
22306 q
22307 }
22308 /^X\(\/\/\)[^/].*/{
22309 s//\1/
22310 q
22311 }
22312 /^X\(\/\/\)$/{
22313 s//\1/
22314 q
22315 }
22316 /^X\(\/\).*/{
22317 s//\1/
22318 q
22319 }
22320 s/.*/./; q'`
22321 test -d "$as_dir" && break
22322 done
22323 test -z "$as_dirs" || eval "mkdir $as_dirs"
22324 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22325echo "$as_me: error: cannot create directory $as_dir" >&2;}
22326 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022327 ac_builddir=.
22328
Reid Spencera773bd52006-08-04 18:18:08 +000022329case "$ac_dir" in
22330.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22331*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022333 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022334 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022335 case $ac_top_builddir_sub in
22336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22338 esac ;;
22339esac
22340ac_abs_top_builddir=$ac_pwd
22341ac_abs_builddir=$ac_pwd$ac_dir_suffix
22342# for backward compatibility:
22343ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022344
22345case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022346 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022347 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022348 ac_top_srcdir=$ac_top_builddir_sub
22349 ac_abs_top_srcdir=$ac_pwd ;;
22350 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022351 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022352 ac_top_srcdir=$srcdir
22353 ac_abs_top_srcdir=$srcdir ;;
22354 *) # Relative name.
22355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22356 ac_top_srcdir=$ac_top_build_prefix$srcdir
22357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022358esac
Reid Spencera773bd52006-08-04 18:18:08 +000022359ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022360
22361
Reid Spencera773bd52006-08-04 18:18:08 +000022362 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022363
22364 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022365 if test -f "$ac_srcdir/configure.gnu"; then
22366 ac_sub_configure=$ac_srcdir/configure.gnu
22367 elif test -f "$ac_srcdir/configure"; then
22368 ac_sub_configure=$ac_srcdir/configure
22369 elif test -f "$ac_srcdir/configure.in"; then
22370 # This should be Cygnus configure.
22371 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022372 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022373 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22374echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022375 ac_sub_configure=
22376 fi
22377
22378 # The recursion is here.
22379 if test -n "$ac_sub_configure"; then
22380 # Make the cache file name correct relative to the subdirectory.
22381 case $cache_file in
22382 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022383 *) # Relative name.
22384 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022385 esac
22386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022387 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22388echo "$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 +000022389 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022390 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22391 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022392 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22393echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22394 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022395 fi
22396
Reid Spencera773bd52006-08-04 18:18:08 +000022397 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022398 done
22399fi
22400